|
@@ -150,7 +150,7 @@ export default {
|
|
|
handler(newVal,oldVal){
|
|
|
const sympText = this.getSympText();
|
|
|
if(sympText){
|
|
|
- if(this.chooseSymp.length>1){
|
|
|
+ if(this.chooseSymp.length>1||localStorage.getItem("staticSymp")){
|
|
|
this.getPush(sympText);
|
|
|
}
|
|
|
this.quesText = "请问您还有其他不适吗?";
|
|
@@ -269,6 +269,7 @@ export default {
|
|
|
"id": id,
|
|
|
"sexType": this.sexType
|
|
|
}
|
|
|
+ localStorage.setItem("staticSymp",null)
|
|
|
this.$store.commit('setText', { type: moduleCP['symp'], text: (this.chooseSymp.length == 0?'患者出现':'')+item.name,textP: (this.chooseSymp.length == 0?'患者出现':'')+(item.description||item.name), pId: this.questId,idx:this.chooseSymp.length == 0?1:'' });
|
|
|
api.getById(param).then((res) => {
|
|
|
const result = res.data;
|
|
@@ -284,7 +285,6 @@ export default {
|
|
|
let signNum = 1;//第一个打标的,保存为伴随
|
|
|
for(let i = 0;i < mapping.length;i++){
|
|
|
let tmpMap = mapping[i]
|
|
|
- console.log(tmpMap.flag)
|
|
|
if(tmpMap.flag == 3 && signNum == 1){
|
|
|
++signNum
|
|
|
for(let j = 0;j < tmpMap.questionDetailList.length;j++){
|
|
@@ -294,7 +294,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
if(numPlus == mapping.length){
|
|
|
- localStorage.setItem("staticSymp",JSON.stringify([]))
|
|
|
+ localStorage.setItem("staticSymp",null)
|
|
|
}
|
|
|
this.$store.commit('setDetail',{detail:result.data,ppId:null,moduleType:moduleCP['symp'],sign:1,idx:this.chooseSymp.length})
|
|
|
if(sign){
|
|
@@ -355,7 +355,7 @@ export default {
|
|
|
if (result.code == 0) {
|
|
|
let symp = result.data.symptom||[];
|
|
|
let symped = JSON.parse(JSON.stringify(this.chooseSymp));//已选症状
|
|
|
- let sympStic = JSON.parse(localStorage.getItem('staticSymp'));//首次有无症状
|
|
|
+ let sympStic = JSON.parse(localStorage.getItem('staticSymp'))||[];//首次有无症状
|
|
|
let sympAll = sympStic.concat(symp);
|
|
|
var obj = {};
|
|
|
sympAll = sympAll.reduce(function(item, next) {
|