|
@@ -148,12 +148,8 @@ export default {
|
|
|
|
|
|
},
|
|
|
showDetil(item,flg) {
|
|
|
- if(!flg){
|
|
|
- this.chooseSymp.push(item);
|
|
|
- }else{
|
|
|
- this.tmpItem=item
|
|
|
- this.isSearch=flg
|
|
|
- }
|
|
|
+ this.tmpItem=item
|
|
|
+ this.isSearch=flg||false
|
|
|
this.questId = item.questionId || item.id || item.conceptId;
|
|
|
const id = item.questionId || item.id; //常见症状questionId,推送id,两者均有可能没有
|
|
|
//将选中的name存到store中的text
|
|
@@ -172,13 +168,21 @@ export default {
|
|
|
this.$store.commit('setOrigin', { type: moduleCP['symp'], data: result.data });
|
|
|
if (mapping && mapping.length > 0) {
|
|
|
this.show = true;
|
|
|
+ if(flg){
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.chooseSymp.push(item);
|
|
|
} else { //没有详情,推送
|
|
|
const sympText = this.getSympText();
|
|
|
this.getPush(sympText);
|
|
|
+ this.chooseSymp.push(item);
|
|
|
+ this.searchShow = false
|
|
|
+ // this.complete()
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
} else {//没有questionId或id 则直接调推送
|
|
|
+ this.chooseSymp.push(item);
|
|
|
const sympText = this.getSympText();
|
|
|
this.getPush(sympText);
|
|
|
this.checkText = this.$store.state.symptom.text;
|
|
@@ -243,11 +247,7 @@ export default {
|
|
|
this.delText = "是否删除该信息?<br/>(已填内容将清除)";
|
|
|
},
|
|
|
complete() {//明细填写完成
|
|
|
- if(this.isSearch){
|
|
|
- this.chooseSymp.push(this.tmpItem);
|
|
|
- this.searchShow = false
|
|
|
- }
|
|
|
- this.isSearch = false; //重置,否则每次点开都会叠加
|
|
|
+ this.searchShow = false;
|
|
|
this.checkText = this.$store.state.symptom.text;
|
|
|
this.show = false;
|
|
|
this.questId = null;
|