From c5b20fa5014196732dad83246c0e016a3e1f0b0b Mon Sep 17 00:00:00 2001
From: "382696293@qq.com" <382696293@qq.com>
Date: Tue, 27 Feb 2024 11:04:53 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BB=AA=E5=99=A8=E7=AE=A1=E7=90=86-=E4=BB=AA?=
=?UTF-8?q?=E5=99=A8=E4=BB=8B=E7=BB=8D=E5=92=8C=E5=88=9D=E6=AC=A1=E6=8A=A4?=
=?UTF-8?q?=E7=90=86=E5=BC=B9=E7=AA=97=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/views/system/instrument/index.vue | 23 +++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/flossom-ui/src/views/system/instrument/index.vue b/flossom-ui/src/views/system/instrument/index.vue
index 084b0f2..646345b 100644
--- a/flossom-ui/src/views/system/instrument/index.vue
+++ b/flossom-ui/src/views/system/instrument/index.vue
@@ -78,6 +78,7 @@
width="55"
align="center"
/>
+
@@ -1866,6 +1867,28 @@ export default {
},
/** 提交按钮 */
submitForm() {
+ // 初次护理弹窗检验
+ for (let i = 0; i < this.nurseList.length; i++) {
+ if(this.nurseList[i].file == '') {
+ this.$modal.msgError('请上传初次护理弹窗提示视频或图片');
+ return;
+ }
+ if(this.nurseList[i].message == '') {
+ this.$modal.msgError('请上传初次护理规则提示内容');
+ return;
+ }
+ }
+ // 仪器介绍校验
+ for (let i = 0; i < this.introduceList.length; i++) {
+ if(this.introduceList[i].file == '') {
+ this.$modal.msgError('请上传仪器介绍弹窗提示视频或图片');
+ return;
+ }
+ if(this.introduceList[i].message == '') {
+ this.$modal.msgError('请上传仪器介绍规则提示内容');
+ return;
+ }
+ }
this.form.nurseList = this.nurseList
this.form.introduceList = this.introduceList
this.$refs['form'].validate((valid) => {