|
@@ -45,7 +45,7 @@
|
|
|
<script>
|
|
|
import api from '@utils/api.js';
|
|
|
export default {
|
|
|
- props: ['age', 'sexType', 'chooseSymp'],
|
|
|
+ props: ['age', 'sexType', 'chooseSymp','setText'],
|
|
|
data() {
|
|
|
return {
|
|
|
searchVal: '',
|
|
@@ -69,6 +69,11 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
showDetil(item) {
|
|
|
+ if(this.chooseSymp.length>0){ //已有选中症状,不展开详情
|
|
|
+ this.$emit('setText',item); //选中症状
|
|
|
+ this.search(); //关闭搜索页
|
|
|
+ return;
|
|
|
+ }
|
|
|
let flg = false;
|
|
|
if(JSON.stringify(this.tmpItem)==JSON.stringify(item)){//eg:重复点击胸痛bug
|
|
|
flg = true
|