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) => {