This commit is contained in:
Taric Xin
2022-01-10 15:49:06 +08:00
parent e3931d50f8
commit 976e3a7b9b
17 changed files with 450 additions and 192 deletions

View File

@ -43,7 +43,6 @@ export class BasicSettingComponent implements OnInit {
itemValue: item.itemValue ? JSON.parse(item.itemValue) : item.itemValue
}));
this.configList = res;
console.log(res);
} else {
this.configList = [];
}
@ -55,15 +54,7 @@ export class BasicSettingComponent implements OnInit {
this.getConfigList(this.selectedTab.id);
}
saveAction() {
if (this.configList?.length < 0) {
return;
}
const params = this.configList.map((item: any) => ({
...item,
remark: item.remark ? JSON.stringify(item.remark) : null,
itemValue: item.itemValue ? JSON.stringify(item.itemValue) : null
}));
saveAction(params: any) {
this.service.request(this.service.$api_update_config_batch, params).subscribe(res => {
if (res) {
this.service.msgSrv.success('修改配置成功');