|
@@ -54,7 +54,7 @@
|
|
|
@cancel="cancelDel"
|
|
|
/>
|
|
|
<Search
|
|
|
- v-if="searchShow"
|
|
|
+ v-if="this.$store.state.searchShow"
|
|
|
@search="search"
|
|
|
@showDetil="showDetil"
|
|
|
:age="age"
|
|
@@ -74,7 +74,7 @@ export default {
|
|
|
name: 'Symptom',
|
|
|
props:['modluesLen','nameStr'],
|
|
|
data() {
|
|
|
- let { datas, pathInfo } = this.$store.state;
|
|
|
+ let { datas, pathInfo,searchShow } = this.$store.state;
|
|
|
const { choose, text } = this.$store.state.symptom;
|
|
|
return {
|
|
|
age: pathInfo.patientAge,
|
|
@@ -90,7 +90,7 @@ export default {
|
|
|
delText: "是否删除该信息?<br/>(已填内容将清除)",
|
|
|
delIndex: null,
|
|
|
showToast: false,
|
|
|
- searchShow: false,//显示搜索界面
|
|
|
+ searchShow: searchShow,//显示搜索界面
|
|
|
tmpItem:{},//检索的症状
|
|
|
isSearch:false,
|
|
|
scroll:null,
|
|
@@ -122,7 +122,7 @@ export default {
|
|
|
console.log(val)
|
|
|
},
|
|
|
search(flg) {
|
|
|
- this.searchShow = flg
|
|
|
+ this.$store.commit('setSearchShow', flg);
|
|
|
},
|
|
|
|
|
|
getSympList() {
|
|
@@ -148,7 +148,6 @@ export default {
|
|
|
}else{
|
|
|
this.$emit('next');
|
|
|
}
|
|
|
-
|
|
|
},
|
|
|
showDetil(item,flg) {
|
|
|
this.tmpItem=item
|
|
@@ -178,7 +177,7 @@ export default {
|
|
|
this.chooseSymp.push(item);
|
|
|
} else {
|
|
|
this.chooseSymp.push(item);
|
|
|
- this.searchShow = false
|
|
|
+ this.$store.commit('setSearchShow', false);
|
|
|
}
|
|
|
}
|
|
|
})
|