|
|
|
|
@ -612,7 +612,7 @@
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
<el-form-item label="初次护理弹窗">
|
|
|
|
|
<el-form-item label="初次护理弹窗" prop="firstNurse">
|
|
|
|
|
<el-button size="small" type="primary" @click="addNurse()"
|
|
|
|
|
>添加规则
|
|
|
|
|
</el-button>
|
|
|
|
|
@ -684,7 +684,7 @@
|
|
|
|
|
</el-table>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
<el-form-item label="仪器介绍">
|
|
|
|
|
<el-form-item label="仪器介绍" prop="instrumentIntroduce">
|
|
|
|
|
<el-button size="small" type="primary" @click="addIntroduce()"
|
|
|
|
|
>添加介绍
|
|
|
|
|
</el-button>
|
|
|
|
|
@ -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('修改成功')
|
|
|
|
|
|