|
@@ -146,7 +146,7 @@ export default {
|
|
|
that.message.title = "";
|
|
|
that.message.text = "暂无资料";
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
},600)
|
|
|
},
|
|
|
closeTip(){
|
|
@@ -191,8 +191,8 @@ export default {
|
|
|
const id = item.questionId || item.id; //常见症状questionId,推送id,两者均有可能没有
|
|
|
//将选中的name存到store中的text
|
|
|
this.$store.commit('setText', { type: moduleCP['symp'], text: item.name,textP: item.description||item.name, pId: this.questId });
|
|
|
-
|
|
|
- if (id) {
|
|
|
+ //不是第一个症状,都不弹出详情
|
|
|
+ if (this.chooseSymp.length === 0&&id) {
|
|
|
const param = {
|
|
|
"age": this.age,
|
|
|
"id": id,
|
|
@@ -210,13 +210,13 @@ export default {
|
|
|
return
|
|
|
}
|
|
|
this.chooseSymp.push(item);
|
|
|
- } else {
|
|
|
+ } else {
|
|
|
this.chooseSymp.push(item);
|
|
|
this.$store.commit('setSearchShow', false);
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
- } else {//没有questionId或id
|
|
|
+ } else {//没有questionId或id
|
|
|
this.chooseSymp.push(item);
|
|
|
this.checkText = this.$store.state.symptom.text;
|
|
|
}
|
|
@@ -300,7 +300,7 @@ export default {
|
|
|
const read = this.$store.state.symptom.datas;
|
|
|
const data = read[(item.questionId||item.id)] || origin[(item.questionId||item.id)];
|
|
|
if (data&&data.questionMapping && data.questionMapping.length > 0) {
|
|
|
- this.$store.commit('setDetail',{detail:data,ppId:null,moduleType:moduleCP['symp']})
|
|
|
+ this.$store.commit('setDetail',{detail:data,ppId:null,moduleType:moduleCP['symp']})
|
|
|
}
|
|
|
},
|
|
|
},
|
|
@@ -320,7 +320,7 @@ export default {
|
|
|
}else{
|
|
|
this.getSympList();
|
|
|
this.quesText = "请问您这次哪里最不舒服?";
|
|
|
- }
|
|
|
+ }
|
|
|
},
|
|
|
deep:true
|
|
|
}
|