diff --git a/flossom-ui/src/views/system/mode/index.vue b/flossom-ui/src/views/system/mode/index.vue index 5b9ddce..1a04700 100644 --- a/flossom-ui/src/views/system/mode/index.vue +++ b/flossom-ui/src/views/system/mode/index.vue @@ -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) } }, // 增加组合