yusheng 11 maanden geleden
bovenliggende
commit
b05e3cec47
1 gewijzigde bestanden met toevoegingen van 6 en 3 verwijderingen
  1. 6 3
      src/views/system/dictionary/index.vue

+ 6 - 3
src/views/system/dictionary/index.vue

@@ -9,7 +9,6 @@
           icon="el-icon-plus"
           class="ele-btn-icon"
           v-if="$hasPermission('main:dictionary:save')"
-
           @click="openEdit()"
         >
           添加
@@ -32,7 +31,6 @@
           :disabled="!current"
           @click="remove"
           v-if="$hasPermission('main:dictionary:delete')"
-
         >
           删除
         </el-button>
@@ -49,12 +47,13 @@
           :datasource="datasource"
           height="calc(100vh - 350px)"
           :need-page="false"
-          :toolkit="[]"
           :current.sync="current"
           highlight-current-row
           class="dict-table"
           tool-class="ele-toolbar-actions"
           @done="done"
+          @columns-change="handleColumnChange"
+          :cache-key="cacheKeyUrl"
         >
           <!-- 表头工具栏 -->
           <template v-slot:toolbar> </template>
@@ -76,12 +75,16 @@
   import DictEdit from './components/dict-edit.vue';
   import DictDataSearch from './components/dict-data-search.vue';
   import { listDictionaries, removeDictionary } from '@/api/system/dictionary';
+  import tabMixins from '@/mixins/tableColumnsMixin';
 
   export default {
     name: 'SystemDictionary',
     components: { DictData, DictEdit, DictDataSearch },
+    mixins: [tabMixins],
+
     data() {
       return {
+        cacheKeyUrl: 'main-ad4181af-syste-dictionary',
         // 表格列配置
         columns: [
           {