From fb616f2a4d91dd9fb16320fb0b3d5fc3cd9e112c Mon Sep 17 00:00:00 2001 From: zouyu <2723363702@qq.com> Date: 星期五, 05 一月 2024 13:30:02 +0800 Subject: [PATCH] 销售订单-下载按钮修改2 --- src/views/basic/warehouse/index.vue | 23 +++++++++++------------ 1 files changed, 11 insertions(+), 12 deletions(-) diff --git a/src/views/basic/warehouse/index.vue b/src/views/basic/warehouse/index.vue index 65c2b6f..574c177 100644 --- a/src/views/basic/warehouse/index.vue +++ b/src/views/basic/warehouse/index.vue @@ -181,14 +181,7 @@ } ], toolbar: [], - operator: [ - { - text: '鍒犻櫎', - type: 'text', - size: 'small', - fun: this.deleteHandle - } - ], + operator: null, operatorConfig: { fixed: 'right', label: '鎿嶄綔', @@ -214,6 +207,16 @@ TableForm }, created() { + if(this.permissions.basic_warehouse_del){ + this.table.operator = [ + { + text: '鍒犻櫎', + type: 'text', + size: 'small', + fun: this.deleteHandle + } + ] + } this.getWarehouseTypeCache('storehouse_type') // 鑾峰彇瀹氭椂浠诲姟杩愯鏃剁姸鎬� }, computed: { @@ -267,10 +270,6 @@ }, // 鍒犻櫎 deleteHandle(row) { - if(!this.permissions.basic_warehouse_del){ - this.$message.error("璇ヨ鑹叉病鏈夋搷浣滄潈闄�") - return - } this.$confirm('鏄惁纭鍒犻櫎浠撳簱鍚嶇О涓�' + row.warehouseName, '鎻愮ず', { confirmButtonText: '纭畾', cancelButtonText: '鍙栨秷', -- Gitblit v1.9.3