Эх сурвалжийг харах

fix:表格列表computed冲突问题

Karsa 1 жил өмнө
parent
commit
d774fb8105

+ 13 - 15
src/views/datasheet_manage/sheetList.vue

@@ -382,9 +382,21 @@ export default {
         ExcelClassifyId: _.ExcelClassifyId,
         ExcelClassifyId: _.ExcelClassifyId,
         ExcelClassifyName: _.ExcelClassifyName,
         ExcelClassifyName: _.ExcelClassifyName,
       }));
       }));
-
       return options;
       return options;
     },
     },
+
+     //数据表格是否展示
+    isShowDataSheet(){
+        const cell = {Source:2}
+        return this.isSheetBtnShow(cell,'edit')||this.isSheetBtnShow(cell,'refresh')||this.isSheetBtnShow(cell,'otherSave')
+            || this.isSheetBtnShow(cell,'download')||this.isSheetBtnShow(cell,'del')
+    },
+    //混合表格是否展示
+    isShowMixSheet(){
+        const cell = {Source:3}
+        return this.isSheetBtnShow(cell,'edit')||this.isSheetBtnShow(cell,'refresh')||this.isSheetBtnShow(cell,'otherSave')
+            || this.isSheetBtnShow(cell,'download')||this.isSheetBtnShow(cell,'del')
+    }
   },
   },
   data() {
   data() {
     return {
     return {
@@ -477,20 +489,6 @@ export default {
       }
       }
     },
     },
   },
   },
-  computed:{
-    //数据表格是否展示
-    isShowDataSheet(){
-        const cell = {Source:2}
-        return this.isSheetBtnShow(cell,'edit')||this.isSheetBtnShow(cell,'refresh')||this.isSheetBtnShow(cell,'otherSave')
-            || this.isSheetBtnShow(cell,'download')||this.isSheetBtnShow(cell,'del')
-    },
-    //混合表格是否展示
-    isShowMixSheet(){
-        const cell = {Source:3}
-        return this.isSheetBtnShow(cell,'edit')||this.isSheetBtnShow(cell,'refresh')||this.isSheetBtnShow(cell,'otherSave')
-            || this.isSheetBtnShow(cell,'download')||this.isSheetBtnShow(cell,'del')
-    }
-  },
   methods: {
   methods: {
     /* 添加表格 */
     /* 添加表格 */
     goAddSheetHandle(type) {
     goAddSheetHandle(type) {