模式管理,启动暂停图片判断

master
382696293@qq.com 2 years ago
parent 34c22c1013
commit 3cd32a9ad5

@ -858,27 +858,30 @@ export default {
this.form.serviceData = this.serviceData;
let flag = false;
let serverImageFlag = false;
if (this.form.instrumentType == 2 && this.form.serviceData.length > 0) {
this.form.serviceData.forEach(data => {
if(data.startTimeArray == null || data.startTimeArray.length == 0) {
flag = true;
}
if (data.startSourceArray.length == 0 ) {
serverImageFlag = true;
} else {
if(!data.startSourceArray[0].url) {
if (this.form.instrumentType == 2) {
if(this.form.serviceData.length > 0) {
this.form.serviceData.forEach(data => {
if(data.startTimeArray == null || data.startTimeArray.length == 0) {
flag = true;
}
if (data.startSourceArray.length == 0 ) {
serverImageFlag = true;
} else {
if(!data.startSourceArray[0].url) {
serverImageFlag = true;
}
}
}
if (data.stopSourceArray.length == 0) {
serverImageFlag = true;
} else {
if(!data.stopSourceArray[0].url) {
if (data.stopSourceArray.length == 0) {
serverImageFlag = true;
} else {
if(!data.stopSourceArray[0].url) {
serverImageFlag = true;
}
}
}
})
})
} else {
serverImageFlag = true;
}
}
if (flag) {
this.$message.error("护理时间范围不能为空");

Loading…
Cancel
Save