Ver código fonte

refactor(standardOutput): 更新缓存键名并引入表格列混入

liujt 6 meses atrás
pai
commit
0d4d9d3123

+ 4 - 2
src/views/material/BOMmanage/components/standardOutput.vue

@@ -39,7 +39,7 @@
             row-key="id"
             height="calc(100vh - 350px)"
             class="dict-table"
-            :cacheKey="cacheKeyUrl"
+            :cacheKey="cacheKey"
           >
             <template v-slot:componentAttribute="{ row }">
               <div>
@@ -65,6 +65,7 @@
   import { getTreeByGroup } from '@/api/classifyManage';
   import { getByCode } from '@/api/system/dictionary-data';
   import { produceTypeList } from '@/enum/dict.js';
+  import tabMixins from '@/mixins/tableColumnsMixin';
 
   const measureTypeList = [
     {
@@ -89,6 +90,7 @@
     }
   ];
   export default {
+    mixins: [tabMixins],
     components: { ProductSearch },
     data() {
       return {
@@ -254,7 +256,7 @@
 
         treeList: [],
         treeLoading: false,
-        cacheKeyUrl: 'standardOutputKey',
+        cacheKey: 'main-material-detail-standardOutputKey',
 
         defaultProps: {
           children: 'children',