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('修改成功')