|
@@ -6,7 +6,7 @@
|
|
<el-scrollbar>
|
|
<el-scrollbar>
|
|
<basic-container>
|
|
<basic-container>
|
|
<avue-tree :option="treeOption" :data="customTypeData" @node-click="nodeClick">
|
|
<avue-tree :option="treeOption" :data="customTypeData" @node-click="nodeClick">
|
|
- <template slot="addBtn">
|
|
|
|
|
|
+ <template v-if="!eldialog" slot="addBtn">
|
|
<el-tooltip class="item" effect="dark" content="新建分类" placement="top">
|
|
<el-tooltip class="item" effect="dark" content="新建分类" placement="top">
|
|
<i class="el-icon-setting" style="font-size:18px;line-height: 30px;width: 20px;padding: 0 10px;"
|
|
<i class="el-icon-setting" style="font-size:18px;line-height: 30px;width: 20px;padding: 0 10px;"
|
|
@click="corpTypeVisible = true"></i>
|
|
@click="corpTypeVisible = true"></i>
|
|
@@ -37,14 +37,14 @@
|
|
class="statusClass" :style="'background:' + item.colour">{{ item.dictValue }}</div>
|
|
class="statusClass" :style="'background:' + item.colour">{{ item.dictValue }}</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
- <template slot="menuLeft">
|
|
|
|
|
|
+ <template v-if="!eldialog" slot="menuLeft">
|
|
<el-button type="warning" size="small" icon="el-icon-printer" @click="excelBox = true">导入</el-button>
|
|
<el-button type="warning" size="small" icon="el-icon-printer" @click="excelBox = true">导入</el-button>
|
|
<el-button type="success" size="small" @click="handleExport" icon="el-icon-printer">导出</el-button>
|
|
<el-button type="success" size="small" @click="handleExport" icon="el-icon-printer">导出</el-button>
|
|
<!--<el-button type="primary" size="small" icon="el-icon-turn-off" @click="Deactivatefun" >批量停用</el-button>-->
|
|
<!--<el-button type="primary" size="small" icon="el-icon-turn-off" @click="Deactivatefun" >批量停用</el-button>-->
|
|
<!--<el-button type="success" size="small" @click="handleReportDesigner" icon="el-icon-printer">设计报表</el-button>-->
|
|
<!--<el-button type="success" size="small" @click="handleReportDesigner" icon="el-icon-printer">设计报表</el-button>-->
|
|
<!--<el-button type="success" size="small" @click="handleReportPreview" icon="el-icon-printer">预览报表</el-button>-->
|
|
<!--<el-button type="success" size="small" @click="handleReportPreview" icon="el-icon-printer">预览报表</el-button>-->
|
|
</template>
|
|
</template>
|
|
- <template slot-scope="{ row, index }" slot="menu">
|
|
|
|
|
|
+ <template v-if="!eldialog" slot-scope="{ row, index }" slot="menu">
|
|
<el-button icon="el-icon-edit" type="text" size="small" @click.stop="editOpen(row)">
|
|
<el-button icon="el-icon-edit" type="text" size="small" @click.stop="editOpen(row)">
|
|
编辑
|
|
编辑
|
|
</el-button>
|
|
</el-button>
|
|
@@ -434,7 +434,7 @@ export default {
|
|
};
|
|
};
|
|
},
|
|
},
|
|
props: {
|
|
props: {
|
|
- // 是否的弹窗状态打开
|
|
|
|
|
|
+ // 是否的弹窗状态打开,弹窗状态时,不能编辑
|
|
eldialog: {
|
|
eldialog: {
|
|
type: Boolean,
|
|
type: Boolean,
|
|
default: false
|
|
default: false
|
|
@@ -445,6 +445,8 @@ export default {
|
|
permissionList() {
|
|
permissionList() {
|
|
return {
|
|
return {
|
|
// addBtn: this.vaildData(this.permission.bcorps_add, false),
|
|
// addBtn: this.vaildData(this.permission.bcorps_add, false),
|
|
|
|
+ addBtn: !this.eldialog,
|
|
|
|
+ menu: !this.eldialog,
|
|
viewBtn: this.vaildData(this.permission.bcorps_view, false),
|
|
viewBtn: this.vaildData(this.permission.bcorps_view, false),
|
|
delBtn: this.vaildData(this.permission.bcorps_delete, false),
|
|
delBtn: this.vaildData(this.permission.bcorps_delete, false),
|
|
editBtn: this.vaildData(this.permission.bcorps_edit, false)
|
|
editBtn: this.vaildData(this.permission.bcorps_edit, false)
|
|
@@ -615,6 +617,10 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
editOpen(row) {
|
|
editOpen(row) {
|
|
|
|
+ if(this.eldialog){
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+
|
|
this.detailData = {
|
|
this.detailData = {
|
|
id: row.id
|
|
id: row.id
|
|
};
|
|
};
|