edit
This commit is contained in:
@ -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];
|
||||||
return;
|
if (!config.itemValue && config.requiredField) {
|
||||||
|
this.service.msgSrv.warning(`${config.name}不能为${config.itemValue}!`);
|
||||||
|
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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user