From 795fa953f456ea886be77f8bb345c50a0fbea590 Mon Sep 17 00:00:00 2001 From: zouyu <2723363702@qq.com> Date: 星期二, 19 十二月 2023 15:44:28 +0800 Subject: [PATCH] modified: src/page/index/sidebar/index.vue modified: src/page/index/sidebar/sidebarItem.vue modified: src/page/login/index.vue modified: src/views/basic/company/index.vue modified: src/views/basic/crew/index.vue modified: src/views/basic/customizeparamtemplatetype/index.vue modified: src/views/basic/division/index.vue modified: src/views/basic/factory/index.vue modified: src/views/basic/location/index.vue modified: src/views/basic/param/index.vue modified: src/views/basic/part/index.vue modified: src/views/basic/post/index.vue modified: src/views/basic/shift/index.vue modified: src/views/basic/staff/index.vue modified: src/views/basic/template/index.vue modified: src/views/basic/warehouse/index.vue modified: src/views/basic/workstation/index.vue modified: src/views/plan/customerorder/index.vue modified: src/views/technology/routing/routing-form.vue --- src/views/basic/template/index.vue | 24 +++++++++++++++--------- 1 files changed, 15 insertions(+), 9 deletions(-) diff --git a/src/views/basic/template/index.vue b/src/views/basic/template/index.vue index 22996f0..8f1de0a 100644 --- a/src/views/basic/template/index.vue +++ b/src/views/basic/template/index.vue @@ -12,7 +12,10 @@ :ajaxFun="ajaxFun" ref="templateTable" > - <template #toolbar></template> + <template #toolbar> + <el-button type="primary" @click="addOrUpdateHandle" + v-if="permissions.technology_operationtemplate_add">鏂板</el-button> + </template> </ttable> </el-col> <el-col :span="12" style="padding-left: 10px"> @@ -26,6 +29,7 @@ <el-button style="float: right; padding: 3px 0" type="text" + v-if="permissions.technology_operationtemplate_param_add" @click="relateOperationParam()" >娣诲姞</el-button > @@ -107,7 +111,8 @@ <el-table-column label="鍗曚綅" prop="unit" align="center"> </el-table-column> - <el-table-column label="鎿嶄綔" align="center"> + <el-table-column label="鎿嶄綔" align="center" + v-if="permissions.technology_operationtemplate_param_edit"> <template slot-scope="scope"> <el-button type="text" @@ -261,13 +266,7 @@ searchInfoType: 'text' } ], - toolbar: [ - { - text: '鏂板', - type: 'primary', - fun: this.addOrUpdateHandle - } - ], + toolbar: [], operator: [ { text: '鍒犻櫎', @@ -306,6 +305,9 @@ }, // 鏂板 / 淇敼 addOrUpdateHandle(row) { + if(!this.permissions.technology_operationtemplate_edit && row.id!=null){ + return + } this.addOrUpdateVisible = true this.$nextTick(() => { this.$refs.addOrUpdate.init(row == null ? null : row.id) @@ -430,6 +432,10 @@ }, // 鍒犻櫎 deleteHandle(row) { + if(!this.permissions.technology_operationtemplate_del){ + this.$message.error("璇ヨ鑹叉病鏈夋搷浣滄潈闄�") + return + } this.$confirm('鏄惁纭鍒犻櫎妯℃澘缂栧彿涓�' + row.templateNo, '鎻愮ず', { confirmButtonText: '纭畾', cancelButtonText: '鍙栨秷', -- Gitblit v1.9.3