tangning 4 months ago
parent
commit
0e8824d5da
2 changed files with 5 additions and 18 deletions
  1. 0 1
      src/store/modules/permission.ts
  2. 5 17
      src/views/productOperation/viewKankan.vue

+ 0 - 1
src/store/modules/permission.ts

@@ -72,7 +72,6 @@ export const usePermissionStore = defineStore({
     },
     },
     getCheckPerm(value: string | string[]): boolean {
     getCheckPerm(value: string | string[]): boolean {
       const permCodeList = this.permCodeList;
       const permCodeList = this.permCodeList;
-      console.log(permCodeList);
       if (!value) {
       if (!value) {
         return false;
         return false;
       }
       }

+ 5 - 17
src/views/productOperation/viewKankan.vue

@@ -262,24 +262,12 @@
         canResize: true,
         canResize: true,
       });
       });
       async function handleDelete(record: Recordable) {
       async function handleDelete(record: Recordable) {
-        console.log('handleDelete', record);
-        if (tableType.value == 1) {
-          sceneDelete({ num: record.num }).then(() => {
-            message.success({
-              content: '删除成功',
-            });
-
-            reload1();
-          });
-        } else {
-          overallDelete({ id: record.id }).then(() => {
-            message.success({
-              content: '删除成功',
-            });
-
-            reload0();
+        overallDelete({ id: record.id }).then(() => {
+          message.success({
+            content: '删除成功',
           });
           });
-        }
+          reload();
+        });
       }
       }
 
 
       function getTypeCheckPerm(val) {
       function getTypeCheckPerm(val) {