@@ -17,6 +17,7 @@
tool-class="ele-toolbar-form"
:needPage="false"
row-key="id"
+ :cache-key="cacheKeyUrl"
>
<template v-slot:toolbar v-if="type != 'view'">
<el-button type="primary" @click="fileEditOpen">本地上传</el-button>
@@ -98,6 +99,8 @@
showEditFlag: false,
tableList: [],
type: 'add',
+ cacheKeyUrl: 'main-addDoc',
+ tabMixinsInit: false,
columns: [
{
label: '编码',
@@ -3,12 +3,15 @@ import request from '@/utils/request';
export default {
data() {
return {
- newColumns: []
+ newColumns: [],
+ tabMixinsInit: true //进入页面是否默认请求列配置
};
},
created() {
//从服务器获取缓存列表配置
- this.getTabColumns();
+ if (this.tabMixinsInit) {
+ this.getTabColumns();
+ }
// 创建防抖函数并绑定this
this.debouncedHandleColumnChange = this.debounce(
this.handleColumnChangeImpl,