Merge branch 'develop' of https://gitlab.eascs.com/tms-ui/tms-obc-web into develop

This commit is contained in:
wangshiming
2022-03-23 15:51:05 +08:00

View File

@ -51,10 +51,17 @@ export class DynamicSettingH5Component implements OnInit {
return; return;
} }
// 配置校验 // 配置校验
if (this.configList.find((config: any) => !config.itemValue && config.requiredField)) { for (let index = 0; index < this.configList.length; index++) {
this.service.msgSrv.warning('请填写必填项'); const config = this.configList[index];
if (!config.itemValue && config.requiredField) {
this.service.msgSrv.warning(`${config.name}不能为${config.itemValue}`);
return; return;
} }
}
// if (this.configList.find((config: any) => !config.itemValue && config.requiredField)) {
// this.service.msgSrv.warning('请填写必填项');
// return;
// }
let params = [...this.configList]; let params = [...this.configList];
params = params.map((item: any) => { params = params.map((item: any) => {
if (item.itemType == 9) { if (item.itemType == 9) {