From 0b22862346035265ec7ef08d1ffe56b829b0e92b Mon Sep 17 00:00:00 2001 From: "382696293@qq.com" <382696293@qq.com> Date: Mon, 5 Feb 2024 16:10:14 +0800 Subject: [PATCH] =?UTF-8?q?bug=EF=BC=9A=E4=BB=AA=E5=99=A8=E7=AE=A1?= =?UTF-8?q?=E7=90=86-=E4=BB=AA=E5=99=A8=E5=88=97=E8=A1=A8=EF=BC=8C?= =?UTF-8?q?=E9=A6=96=E6=AC=A1=E7=82=B9=E5=87=BB=E7=AC=AC=E4=B8=80=E6=9D=A1?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=BC=96=E8=BE=91=EF=BC=8C=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=EF=BC=9A=E7=B3=BB=E7=BB=9F=E5=BC=82=E5=B8=B8=EF=BC=8C=E8=AF=B7?= =?UTF-8?q?=E8=81=94=E7=B3=BB=E7=AE=A1=E7=90=86=E5=91=98=EF=BC=8C=E6=8E=A5?= =?UTF-8?q?=E7=9D=80=E5=86=8D=E7=82=B9=E5=87=BB=E7=AC=AC=E4=BA=8C=E6=9D=A1?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=BC=96=E8=BE=91=EF=BC=8C=E7=82=B9=E5=87=BB?= =?UTF-8?q?X=E6=B2=A1=E5=8F=8D=E5=BA=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/system/instrument/index.vue | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/flossom-ui/src/views/system/instrument/index.vue b/flossom-ui/src/views/system/instrument/index.vue index b0e3227..0445de8 100644 --- a/flossom-ui/src/views/system/instrument/index.vue +++ b/flossom-ui/src/views/system/instrument/index.vue @@ -612,7 +612,7 @@ /> - + 添加规则 @@ -684,7 +684,7 @@ - + 添加介绍 @@ -1819,18 +1819,21 @@ export default { let temp = [] for (let i = 0; i < this.form.modeIdsValue.length; i++) { let filterModeArr = this.mode.modeIdsOptions.filter( - (item) => item.id == this.form.modeIdsValue[i] + (item) => item !== undefined && this.form.modeIdsValue[i] === item.id ) - temp.push(filterModeArr[0]) + if(filterModeArr !== undefined && filterModeArr.length > 0) { + temp.push(filterModeArr[0]) + } } - this.newModeOptionList = temp + if(temp !== undefined && temp.length > 0) { + this.newModeOptionList = temp + } } }) }) }, /** 提交按钮 */ submitForm() { - console.log(this.form.modeIdsValue) this.form.nurseList = this.nurseList this.form.introduceList = this.introduceList this.$refs['form'].validate((valid) => { @@ -2162,7 +2165,6 @@ export default { }, handleNurseDelete(item) { this.nurseList.splice(item.$index, 1) - console.log('handleNurseDelete', item) }, addNurseFile(index) { this.nurseIndex = index @@ -2174,7 +2176,6 @@ export default { let files = e.target.files if (files.length) { let data = await this.commonFileUpload(files[0]) - console.log('data', data) this.nurseList[this.nurseIndex].file = data.url let type = files[0].type let isImage = this.imageFileType.some((item) => type.includes(item)) @@ -2197,7 +2198,6 @@ export default { }, handleIntroduceDelete(item) { this.introduceList.splice(item.$index, 1) - console.log('handleIntroduceDelete', item) }, addIntroduceFile(index) { this.introduceIndex = index @@ -2284,7 +2284,6 @@ export default { } }, saveInstrumentName(item) { - console.log(item) if (item.id != null) { updateRelate(item).then((response) => { this.$modal.msgSuccess('修改成功')