Przeglądaj źródła

refactor(saleOrder): 将columns定义移至computed属性中

liujt 1 miesiąc temu
rodzic
commit
cd7fe17d1a

+ 11 - 9
src/views/saleManage/saleOrder/invoiceConfirm/index.vue

@@ -214,7 +214,15 @@
         delVisible: false, //批量删除弹框状态
         loading: false, // 加载状态
         processSubmitDialogFlag: false,
-        columns: [
+        cacheKeyUrl: 'eos-436e7400-saleManage-invoiceConfirm'
+      };
+    },
+    computed: {
+      clientEnvironmentId() {
+        return this.$store.state.user.info.clientEnvironmentId;
+      },
+      columns() {
+        return [
           {
             width: 45,
             type: 'selection',
@@ -338,14 +346,8 @@
             showOverflowTooltip: true,
             fixed: 'right'
           }
-        ],
-        cacheKeyUrl: 'eos-436e7400-saleManage-invoiceConfirm'
-      };
-    },
-    computed: {
-      clientEnvironmentId() {
-        return this.$store.state.user.info.clientEnvironmentId;
-      },
+        ]
+      }
     },
 
     methods: {