mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2025-12-18 00:45:54 +08:00
参数为空校验
This commit is contained in:
@@ -1827,13 +1827,15 @@ export default {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let flag = false;
|
let flag = false;
|
||||||
|
let paramValue = "";
|
||||||
this.baseInfoForm.goodsParamsList.forEach((e)=> {
|
this.baseInfoForm.goodsParamsList.forEach((e)=> {
|
||||||
if(e.required === 1 && e.paramValue === null){
|
if(e.required === 1 && e.paramValue === null || e.paramValue === undefined){
|
||||||
flag = true
|
flag = true
|
||||||
|
paramValue = e.paramName
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
if(flag){
|
if(flag){
|
||||||
this.$Message.error("请填写参数信息 参数不能为空");
|
this.$Message.error(paramValue +" 参数值不能为空");
|
||||||
this.submitLoading = false;
|
this.submitLoading = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user