From 7fca02745d606514a22dc2f4673e3ea1475495b6 Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期二, 30 一月 2024 16:54:52 +0800
Subject: [PATCH] 质检报告修改

---
 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