|
@@ -3,34 +3,34 @@ import request from '@/utils/request';
|
|
|
export default {
|
|
export default {
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
- newColumns: []
|
|
|
|
|
|
|
+ // newColumns: []
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
|
//从服务器获取缓存列表配置
|
|
//从服务器获取缓存列表配置
|
|
|
- this.getTabColumns();
|
|
|
|
|
|
|
+ // this.getTabColumns();
|
|
|
// 创建防抖函数并绑定this
|
|
// 创建防抖函数并绑定this
|
|
|
- this.debouncedHandleColumnChange = this.debounce(
|
|
|
|
|
- this.handleColumnChangeImpl,
|
|
|
|
|
- 1000
|
|
|
|
|
- );
|
|
|
|
|
|
|
+ // this.debouncedHandleColumnChange = this.debounce(
|
|
|
|
|
+ // this.handleColumnChangeImpl,
|
|
|
|
|
+ // 1000
|
|
|
|
|
+ // );
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
// 实际的列变更处理逻辑
|
|
// 实际的列变更处理逻辑
|
|
|
handleColumnChangeImpl() {
|
|
handleColumnChangeImpl() {
|
|
|
- try {
|
|
|
|
|
- const list = this.getStorage(this.cacheKeyUrl + 'Cols');
|
|
|
|
|
- if (list) {
|
|
|
|
|
- this.saveColumns(list);
|
|
|
|
|
- }
|
|
|
|
|
- } catch (error) {
|
|
|
|
|
- console.error('处理列配置出错:', error);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // try {
|
|
|
|
|
+ // const list = this.getStorage(this.cacheKeyUrl + 'Cols');
|
|
|
|
|
+ // if (list) {
|
|
|
|
|
+ // this.saveColumns(list);
|
|
|
|
|
+ // }
|
|
|
|
|
+ // } catch (error) {
|
|
|
|
|
+ // console.error('处理列配置出错:', error);
|
|
|
|
|
+ // }
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
// 列表变化回调
|
|
// 列表变化回调
|
|
|
handleColumnChange() {
|
|
handleColumnChange() {
|
|
|
- this.debouncedHandleColumnChange();
|
|
|
|
|
|
|
+ // this.debouncedHandleColumnChange();
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
// 获取table-column配置
|
|
// 获取table-column配置
|