From abcfdfe98929ce0399d5d0ac8fd7b1b0b3e56f20 Mon Sep 17 00:00:00 2001 From: zss <zss@example.com> Date: 星期三, 20 十二月 2023 10:01:45 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- src/views/basic/location/index.vue | 21 +++++++++++++-------- 1 files changed, 13 insertions(+), 8 deletions(-) diff --git a/src/views/basic/location/index.vue b/src/views/basic/location/index.vue index e102c95..fecfaa3 100644 --- a/src/views/basic/location/index.vue +++ b/src/views/basic/location/index.vue @@ -11,7 +11,10 @@ :ajaxFun="ajaxFun" ref="locationTable" > - <template #toolbar></template> + <template #toolbar> + <el-button type="primary" @click="addOrUpdateHandle" + v-if="permissions.basic_location_add">鏂板</el-button> + </template> </ttable> <!-- 寮圭獥, 鏂板 / 淇敼 --> <table-form @@ -206,13 +209,7 @@ searchInfoType: 'text' } */ ], - toolbar: [ - { - text: '鏂板', - type: 'primary', - fun: this.addOrUpdateHandle - } - ], + toolbar: [], operator: [ { text: '鍒犻櫎', @@ -351,6 +348,10 @@ }, // 鏂板 / 淇敼 addOrUpdateHandle(row) { + if(!this.permissions.basic_location_edit && row.id!=null){ + this.$message.error("璇ヨ鑹叉病鏈夋搷浣滄潈闄�") + return + } this.addOrUpdateVisible = true this.$nextTick(() => { this.$refs.addOrUpdate.init(row == null ? null : row.id) @@ -358,6 +359,10 @@ }, // 鍒犻櫎 deleteHandle(row) { + if(!this.permissions.basic_location_del){ + this.$message.error("璇ヨ鑹叉病鏈夋搷浣滄潈闄�") + return + } this.$confirm('鏄惁纭鍒犻櫎搴撲綅鍙蜂负' + row.locNo, '鎻愮ず', { confirmButtonText: '纭畾', cancelButtonText: '鍙栨秷', -- Gitblit v1.9.3