From 818b7c1e4413ba70e2514db7dd1714e6290c537f Mon Sep 17 00:00:00 2001 From: elliott <382696293@qq.com> Date: Tue, 20 Feb 2024 10:59:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=96=87=E4=BB=B6=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- flossom-ui/src/views/system/mode/index.vue | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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) } }, // 增加组合