发单页面的校验完善
This commit is contained in:
parent
82f8a40f87
commit
59a662d56a
|
|
@ -549,14 +549,20 @@
|
||||||
// 类目
|
// 类目
|
||||||
let categoryIds = categoryCascader.getCheckedByID();
|
let categoryIds = categoryCascader.getCheckedByID();
|
||||||
if (!categoryIds || categoryIds.length === 0) {
|
if (!categoryIds || categoryIds.length === 0) {
|
||||||
$.modal.msgError("请录入完整必填信息")
|
$.modal.msgError("服务类目不能为空")
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 图片是否上传
|
||||||
|
if (!$('input[name=imageUrl]').val()) {
|
||||||
|
$.modal.msgError("图片未上传")
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 地区
|
// 地区
|
||||||
let checkedAreaPathList = areaCascader.getCheckedPaths();
|
let checkedAreaPathList = areaCascader.getCheckedPaths();
|
||||||
if (!checkedAreaPathList || checkedAreaPathList.length === 0) {
|
if (!checkedAreaPathList || checkedAreaPathList.length === 0) {
|
||||||
$.modal.msgError("请录入完整必填信息")
|
$.modal.msgError("服务地址不能为空")
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue