@@ -8,6 +8,7 @@
ref="Emodal"
:maxable="true"
:resizable="true"
+ :cache-key="cacheKeyUrl"
>
<!-- 数据表格 -->
<ele-pro-table
@@ -95,6 +96,7 @@
showEditFlag: false,
tableList: [],
type: 'add',
+ cacheKeyUrl: 'mes-add-doc',
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,