优化文件上传数据

master
elliott 2 years ago
parent d26fe9de5b
commit 818b7c1e44

@ -694,8 +694,21 @@ export default {
submitForm() {
//
this.form.openSourceData = this.openSourceData;
console.log('服务实体===》',this.serviceData)
//
this.form.serviceData = this.serviceData;
let flag = false;
if (this.form.serviceData.length > 0) {
this.form.serviceData.forEach(data => {
if(!data.startTimeArray) {
flag = true;
}
})
}
if (flag) {
this.$message.error("服务时间不能为空");
return;
}
//
this.form.combineData = this.combineData;
this.$refs["form"].validate(valid => {
@ -952,6 +965,7 @@ export default {
}
}
console.log('上传成功后服务内容===》',this.serviceData)
}
},
//

Loading…
Cancel
Save