| | |
| | | this.drawer = true; |
| | | }); |
| | | }, |
| | | // categoryidChange(id) { |
| | | // // 遍历所有分组,在每个分组的 svyLibScriptCategoryList 中查找 |
| | | // let targetOption = null; |
| | | // for (const group of this.classifylist) { |
| | | // targetOption = group.svyLibScriptCategoryList.find(item => item.id == id); |
| | | // if (targetOption) break; |
| | | // } |
| | | categoryidChange(id) { |
| | | // 遍历所有分组,在每个分组的 svyLibScriptCategoryList 中查找 |
| | | let targetOption = null; |
| | | for (const group of this.classifylist) { |
| | | targetOption = group.svyLibScriptCategoryList.find(item => item.id == id); |
| | | if (targetOption) break; |
| | | } |
| | | |
| | | // if (targetOption) { |
| | | // console.log('选中的选项:', targetOption); |
| | | // // 注意:这里 targetOption.name 是选项名,如“住院满意度调查” |
| | | // if (targetOption.name.includes('住院')) { |
| | | // this.topicobj.type = "zymyd"; |
| | | // } else if (targetOption.name.includes('门诊')) { |
| | | // this.topicobj.type = "mzmyd"; |
| | | // } else if (targetOption.name.includes('出院')) { |
| | | // this.topicobj.type = "cymyd"; |
| | | // } else if (targetOption.name.includes('常用')) { |
| | | // this.topicobj.type = "cymyd"; // 注意:这里和“出院”重复了,确认是否需区分 |
| | | // } |
| | | // } |
| | | // }, |
| | | if (targetOption) { |
| | | console.log('选中的选项:', targetOption); |
| | | // 注意:这里 targetOption.name 是选项名,如“住院满意度调查” |
| | | if (targetOption.name.includes('住院')) { |
| | | this.topicobj.type = "zymyd"; |
| | | } else if (targetOption.name.includes('门诊')) { |
| | | this.topicobj.type = "mzmyd"; |
| | | } else if (targetOption.name.includes('出院')) { |
| | | this.topicobj.type = "cymyd"; |
| | | } else if (targetOption.name.includes('常用')) { |
| | | this.topicobj.type = "cymyd"; // 注意:这里和“出院”重复了,确认是否需区分 |
| | | } |
| | | } |
| | | }, |
| | | // 新增或修改详情 |
| | | compileissue() { |
| | | this.$refs["topicobj"].validate((valid) => { |