|
@@ -121,8 +121,7 @@ export default {
|
|
|
start:{},
|
|
|
end:{},
|
|
|
slide:false,
|
|
|
- slideTxt:'展开',
|
|
|
- staticSymp:[]
|
|
|
+ slideTxt:'展开'
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
@@ -273,7 +272,7 @@ export default {
|
|
|
if (mapping && mapping.length > 0) {
|
|
|
for(let i = 0;i < mapping.length;i++){
|
|
|
if(mapping[i].flag == 3){
|
|
|
- this.staticSymp = mapping[i].questionDetailList
|
|
|
+ localStorage.setItem("staticSymp",JSON.stringify(mapping[i].questionDetailList))
|
|
|
}
|
|
|
}
|
|
|
this.$store.commit('setDetail',{detail:result.data,ppId:null,moduleType:moduleCP['symp'],sign:1,idx:this.chooseSymp.length})
|
|
@@ -332,7 +331,7 @@ export default {
|
|
|
if (result.code == 0) {
|
|
|
let symp = result.data.symptom;
|
|
|
let symped = JSON.parse(JSON.stringify(this.chooseSymp));//已选症状
|
|
|
- let sympStic = JSON.parse(JSON.stringify(this.staticSymp));//首次有无症状
|
|
|
+ let sympStic = JSON.parse(localStorage.getItem('staticSymp'));//首次有无症状
|
|
|
let sympAll = sympStic.concat(symp);
|
|
|
var obj = {};
|
|
|
sympAll = sympAll.reduce(function(item, next) {
|