diff --git a/flossom-ui/src/views/system/instrument/index.vue b/flossom-ui/src/views/system/instrument/index.vue
index f2fe16c..e75e6b2 100644
--- a/flossom-ui/src/views/system/instrument/index.vue
+++ b/flossom-ui/src/views/system/instrument/index.vue
@@ -518,7 +518,7 @@
-
+
@@ -1879,24 +1879,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;
+ if(this.nurseList[i].file != '' || this.nurseList[i].message != '') {
+ 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;
+ if(this.introduceList[i].file != '' || this.introduceList[i].message != '') {
+ if (this.introduceList[i].file == '') {
+ this.$modal.msgError('请上传仪器介绍弹窗提示视频或图片');
+ return;
+ }
+ if (this.introduceList[i].message == '') {
+ this.$modal.msgError('请上传仪器介绍规则提示内容');
+ return;
+ }
}
}
this.form.nurseList = this.nurseList