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/crew/index.vue | 41 +++++++++++++++++++++++------------------ 1 files changed, 23 insertions(+), 18 deletions(-) diff --git a/src/views/basic/crew/index.vue b/src/views/basic/crew/index.vue index a083b2c..8b281d4 100644 --- a/src/views/basic/crew/index.vue +++ b/src/views/basic/crew/index.vue @@ -12,7 +12,10 @@ :ajaxFun="ajaxFun" ref="crewTable" > - <template #toolbar></template> + <template #toolbar> + <el-button type="primary" @click="addOrUpdateHandle" + v-if="permissions.basic_crew_add">鏂板</el-button> + </template> </ttable> </el-col> <el-col :span="16"> @@ -25,7 +28,10 @@ :paramObj="paramObj" ref="staffTable" > - <template #toolbar></template> + <template #toolbar> + <el-button type="primary" @click="addHandle" + v-if="permissions.basic_crew_person_add"></el-button> + </template> </ttable> </el-col> <!-- 寮圭獥, 鏂板 / 淇敼 --> @@ -105,13 +111,7 @@ render: { fun: this.addOrUpdateHandle } } ], - toolbar: [ - { - text: '鏂板', - type: 'primary', - fun: this.addOrUpdateHandle - } - ], + toolbar: [], operator: [ { text: '鍒犻櫎', @@ -124,8 +124,8 @@ operatorConfig: { fixed: 'right', label: '鎿嶄綔', - width: 100, - minWidth: 100 + width: 110, + minWidth: 110 } }, crewId: null, @@ -270,13 +270,7 @@ searchInfoType: 'text' } ], - toolbar: [ - { - text: '娣诲姞', - type: 'primary', - fun: this.addHandle - } - ], + toolbar: [], operator: [ { text: '鍒犻櫎', @@ -309,6 +303,9 @@ }, // 鏂板 / 淇敼 addOrUpdateHandle(row) { + if(!this.permissions.basic_crew_edit && row.id!=null){ + return + } this.addOrUpdateVisible = true this.$nextTick(() => { this.$refs.addOrUpdate.init(row == null ? null : row.id) @@ -354,6 +351,10 @@ } }, deleteStaff(row) { + if(!this.permissions.basic_crew_person_del){ + this.$message.error("璇ヨ鑹叉病鏈夋搷浣滄潈闄�") + return + } var newStaffList = [] newStaffList.push(row) this.crewList = { id: this.crewId, staffList: newStaffList } @@ -365,6 +366,10 @@ }, // 鍒犻櫎 deleteHandle(row) { + if(!this.permissions.basic_crew_del){ + this.$message.error("璇ヨ鑹叉病鏈夋搷浣滄潈闄�") + return + } this.$confirm('鏄惁纭鍒犻櫎鐝鍚嶇О涓猴細' + row.crewName, '鎻愮ず', { confirmButtonText: '纭畾', cancelButtonText: '鍙栨秷', -- Gitblit v1.9.3