edit
This commit is contained in:
@ -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('修改配置成功');
|
||||
|
||||
Reference in New Issue
Block a user