提交 88726074 编写于 作者: RedPig97's avatar RedPig97

update: 动态表格列优化

上级 d3a39fd7
......@@ -2234,20 +2234,7 @@ ${gridColumn.getName()}
*/
public resetDynaConfig() {
this.allColumns = Util.deepCopy(this.resetColModel);
const viewParams: any = Util.deepCopy(this.viewparams);
Object.assign(viewParams,{utilServiceName: 'grid_dynaconfig', modelid: '${sys.getCodeName()?lower_case}_${app.getCodeName()?lower_case}_${view.getCodeName()?lower_case}_grid_${ctrl.getCodeName()?lower_case}', model: this.allColumns});
const post = this.service.saveModel('grid_dynaconfig', this.context, viewParams);
post.then((response: any) => {
if (response.status == 200) {
this.$Message.success(this.$t('app.gridpage.message.resetconfigsuccess'));
} else {
this.$Message.success(this.$t('app.gridpage.message.resetconfigerror'));
}
localStorage.setItem('dynaconfig_main_grid', JSON.stringify(this.allColumns));
}).catch(() => {
this.$Message.success(this.$t('app.gridpage.message.resetconfigerror'));
localStorage.setItem('dynaconfig_main_grid', JSON.stringify(this.allColumns));
});
}
/**
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册