Преглед изворни кода

refactor(组件): 调整缓存键位置并添加初始化状态

liujt пре 3 месеци
родитељ
комит
dc3361b4f3
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      src/components/addDoc/main.vue

+ 2 - 1
src/components/addDoc/main.vue

@@ -8,7 +8,6 @@
     ref="Emodal"
     ref="Emodal"
     :maxable="true"
     :maxable="true"
     :resizable="true"
     :resizable="true"
-    :cache-key="cacheKeyUrl"
   >
   >
     <!-- 数据表格 -->
     <!-- 数据表格 -->
     <ele-pro-table
     <ele-pro-table
@@ -18,6 +17,7 @@
       tool-class="ele-toolbar-form"
       tool-class="ele-toolbar-form"
       :needPage="false"
       :needPage="false"
       row-key="id"
       row-key="id"
+      :cache-key="cacheKeyUrl"
     >
     >
       <template v-slot:toolbar v-if="type != 'view'">
       <template v-slot:toolbar v-if="type != 'view'">
         <el-button type="primary" @click="fileEditOpen">本地上传</el-button>
         <el-button type="primary" @click="fileEditOpen">本地上传</el-button>
@@ -97,6 +97,7 @@
         tableList: [],
         tableList: [],
         type: 'add',
         type: 'add',
         cacheKeyUrl: 'mes-add-doc',
         cacheKeyUrl: 'mes-add-doc',
+        tabMixinsInit: false,
         columns: [
         columns: [
           {
           {
             label: '编码',
             label: '编码',