From 187cd383e4362059795d0f48b96ca0037f19da6d Mon Sep 17 00:00:00 2001 From: 王震 <10952869+daywangzhen@user.noreply.gitee.com> Date: 星期五, 12 一月 2024 10:56:19 +0800 Subject: [PATCH] 包装台账修改 --- src/views/basic/param/index.vue | 26 +++++++++++++------------- 1 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/views/basic/param/index.vue b/src/views/basic/param/index.vue index 12f1ce7..3385fc9 100644 --- a/src/views/basic/param/index.vue +++ b/src/views/basic/param/index.vue @@ -40,6 +40,7 @@ uploadInfo: { // 鏄惁灞曠ず涓婁紶EXCEL浠ュ強瀵瑰簲鐨剈rl isShow: false, + download:true, url: '/mes/param/upload' }, prelang: 'operation', @@ -152,15 +153,7 @@ } ], toolbar: [], - operator: [ - { - text: '鍒犻櫎', - icon: 'el-icon-delete', - type: 'text', - size: 'small', - fun: this.deleteHandle - } - ], + operator: null, operatorConfig: { fixed: 'right', label: '鎿嶄綔', @@ -179,6 +172,17 @@ ...mapGetters(['permissions']) }, created() { + if(this.permissions.technology_param_del){ + this.table.operator = [ + { + text: '鍒犻櫎', + icon: 'el-icon-delete', + type: 'text', + size: 'small', + fun: this.deleteHandle + } + ] + } this.getParamType() }, methods: { @@ -219,10 +223,6 @@ }, // 鍒犻櫎 deleteHandle(row) { - if(!this.permissions.technology_param_del){ - this.$message.error("璇ヨ鑹叉病鏈夋搷浣滄潈闄�") - return - } this.$confirm('鏄惁纭鍒犻櫎缂栧彿涓�' + row.code, '鎻愮ず', { confirmButtonText: '纭畾', cancelButtonText: '鍙栨秷', -- Gitblit v1.9.3