|
@@ -1,41 +1,43 @@
|
|
<template>
|
|
<template>
|
|
- <div class="symp-wrap">
|
|
|
|
- <div
|
|
|
|
- class="choose"
|
|
|
|
- v-if="chooseSymp.length>0"
|
|
|
|
- >
|
|
|
|
- <p class="quest">已选症状</p>
|
|
|
|
- <p
|
|
|
|
- class="choo-symp"
|
|
|
|
- v-for="(v,i) in chooseSymp"
|
|
|
|
|
|
+ <div class="symp-wrap symper">
|
|
|
|
+ <div class="content">
|
|
|
|
+ <div
|
|
|
|
+ class="choose"
|
|
|
|
+ v-if="chooseSymp.length>0"
|
|
>
|
|
>
|
|
- <span @click="showChecked(v)">{{v.name}}</span>
|
|
|
|
- <span @click="deletSymp(v,i)"><img
|
|
|
|
- src="../images/del.png"
|
|
|
|
|
|
+ <p class="quest">已选症状</p>
|
|
|
|
+ <p
|
|
|
|
+ class="choo-symp"
|
|
|
|
+ v-for="(v,i) in chooseSymp"
|
|
|
|
+ >
|
|
|
|
+ <span @click="showChecked(v)">{{v.name}}</span>
|
|
|
|
+ <span @click="deletSymp(v,i)"><img
|
|
|
|
+ src="../images/del.png"
|
|
|
|
+ alt=""
|
|
|
|
+ ></span>
|
|
|
|
+ </p>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="label">
|
|
|
|
+ <p class="quest">请问您有哪些不适?<img
|
|
|
|
+ @click="search(true)"
|
|
|
|
+ class="searchImg"
|
|
|
|
+ src="../images/search.png"
|
|
alt=""
|
|
alt=""
|
|
- ></span>
|
|
|
|
- </p>
|
|
|
|
- </div>
|
|
|
|
- <div class="label">
|
|
|
|
- <p class="quest">请问您有哪些不适?<img
|
|
|
|
- @click="search(true)"
|
|
|
|
- class="searchImg"
|
|
|
|
- src="../images/search.png"
|
|
|
|
- alt=""
|
|
|
|
- ></p>
|
|
|
|
- <span
|
|
|
|
- class="symp"
|
|
|
|
- v-for="(it,ind) in symp"
|
|
|
|
- :key="it.conceptId"
|
|
|
|
- @click="showDetil(it)"
|
|
|
|
- >{{it.name}}</span>
|
|
|
|
- </div>
|
|
|
|
- <div
|
|
|
|
- class="result"
|
|
|
|
- v-if="checkText.length>0"
|
|
|
|
- >
|
|
|
|
- <p class="title">{{nameStr}}</p>
|
|
|
|
- <p v-for="(value,index) in checkText">{{value.textP}}</p>
|
|
|
|
|
|
+ ></p>
|
|
|
|
+ <span
|
|
|
|
+ class="symp"
|
|
|
|
+ v-for="(it,ind) in symp"
|
|
|
|
+ :key="it.conceptId"
|
|
|
|
+ @click="showDetil(it)"
|
|
|
|
+ >{{it.name}}</span>
|
|
|
|
+ </div>
|
|
|
|
+ <div
|
|
|
|
+ class="result"
|
|
|
|
+ v-if="checkText.length>0"
|
|
|
|
+ >
|
|
|
|
+ <p class="title">{{nameStr}}</p>
|
|
|
|
+ <p v-for="(value,index) in checkText">{{value.textP}}</p>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
<div v-if="modluesLen>1"
|
|
<div v-if="modluesLen>1"
|
|
:class="['footer',{'nofoot':chooseSymp.length==0}]"
|
|
:class="['footer',{'nofoot':chooseSymp.length==0}]"
|
|
@@ -79,7 +81,8 @@ import api from '@utils/api.js';
|
|
import DetailBox from './DetailBox.vue';
|
|
import DetailBox from './DetailBox.vue';
|
|
import Toast from '../common/Toast.vue';
|
|
import Toast from '../common/Toast.vue';
|
|
import Search from './Search.vue';
|
|
import Search from './Search.vue';
|
|
-import {moduleCP} from '@utils/tools'
|
|
|
|
|
|
+import {moduleCP,setScroll} from '@utils/tools'
|
|
|
|
+import BScroll from 'better-scroll';
|
|
export default {
|
|
export default {
|
|
name: 'Symptom',
|
|
name: 'Symptom',
|
|
props:['modluesLen','nameStr'],
|
|
props:['modluesLen','nameStr'],
|
|
@@ -102,7 +105,8 @@ export default {
|
|
showToast: false,
|
|
showToast: false,
|
|
searchShow: false,//显示搜索界面
|
|
searchShow: false,//显示搜索界面
|
|
tmpItem:{},//检索的症状
|
|
tmpItem:{},//检索的症状
|
|
- isSearch:false
|
|
|
|
|
|
+ isSearch:false,
|
|
|
|
+ scroll:null
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
@@ -114,6 +118,10 @@ export default {
|
|
this.getSympList(); //常见
|
|
this.getSympList(); //常见
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ mounted(){
|
|
|
|
+ let scroll = setScroll(BScroll,true,'.symper')
|
|
|
|
+ this.scroll = scroll
|
|
|
|
+ },
|
|
methods: {
|
|
methods: {
|
|
searchVal(val) {
|
|
searchVal(val) {
|
|
console.log(val)
|
|
console.log(val)
|
|
@@ -168,6 +176,7 @@ export default {
|
|
this.$store.commit('setOrigin', { type: moduleCP['symp'], data: result.data });
|
|
this.$store.commit('setOrigin', { type: moduleCP['symp'], data: result.data });
|
|
if (mapping && mapping.length > 0) {
|
|
if (mapping && mapping.length > 0) {
|
|
this.show = true;
|
|
this.show = true;
|
|
|
|
+ this.scroll = setScroll(BScroll,false,'.symper')
|
|
if(flg){
|
|
if(flg){
|
|
return
|
|
return
|
|
}
|
|
}
|
|
@@ -217,6 +226,7 @@ export default {
|
|
this.getPush(sympText);
|
|
this.getPush(sympText);
|
|
this.show = false;
|
|
this.show = false;
|
|
this.questId = null;
|
|
this.questId = null;
|
|
|
|
+ this.scroll = setScroll(BScroll,true,'.symper')
|
|
},
|
|
},
|
|
deletSymp(item, index) {
|
|
deletSymp(item, index) {
|
|
this.delIndex = index;
|
|
this.delIndex = index;
|
|
@@ -225,6 +235,7 @@ export default {
|
|
this.delText = "是否删除该信息?<br/>删除后将重新填写预问诊流程 <br/>(已填内容将清除)"
|
|
this.delText = "是否删除该信息?<br/>删除后将重新填写预问诊流程 <br/>(已填内容将清除)"
|
|
}
|
|
}
|
|
this.showToast = true;
|
|
this.showToast = true;
|
|
|
|
+ this.scroll = setScroll(BScroll,false,'.symper')
|
|
},
|
|
},
|
|
comfirnDel() {
|
|
comfirnDel() {
|
|
this.chooseSymp.splice(this.delIndex, 1);
|
|
this.chooseSymp.splice(this.delIndex, 1);
|
|
@@ -249,11 +260,13 @@ export default {
|
|
this.delIndex = null;
|
|
this.delIndex = null;
|
|
this.questId = null;
|
|
this.questId = null;
|
|
this.delText = "是否删除该信息?<br/>(已填内容将清除)";
|
|
this.delText = "是否删除该信息?<br/>(已填内容将清除)";
|
|
|
|
+ this.scroll = setScroll(BScroll,true,'.symper')
|
|
},
|
|
},
|
|
complete() {//明细填写完成
|
|
complete() {//明细填写完成
|
|
this.searchShow = false;
|
|
this.searchShow = false;
|
|
this.checkText = this.$store.state.symptom.text;
|
|
this.checkText = this.$store.state.symptom.text;
|
|
this.show = false;
|
|
this.show = false;
|
|
|
|
+ this.scroll = setScroll(BScroll,true,'.symper')
|
|
this.questId = null;
|
|
this.questId = null;
|
|
// 推理
|
|
// 推理
|
|
const sympText = this.getSympText();
|
|
const sympText = this.getSympText();
|
|
@@ -266,6 +279,7 @@ export default {
|
|
if (data.questionMapping && data.questionMapping.length > 0) {
|
|
if (data.questionMapping && data.questionMapping.length > 0) {
|
|
this.labelDetail = data;
|
|
this.labelDetail = data;
|
|
this.show = true;
|
|
this.show = true;
|
|
|
|
+ this.scroll = setScroll(BScroll,true,'.symper')
|
|
}
|
|
}
|
|
},
|
|
},
|
|
reload(id) {//清空重新赋值
|
|
reload(id) {//清空重新赋值
|
|
@@ -283,13 +297,15 @@ export default {
|
|
</script>
|
|
</script>
|
|
<style lang="less" scoped>
|
|
<style lang="less" scoped>
|
|
@import "../less/base.less";
|
|
@import "../less/base.less";
|
|
|
|
+
|
|
.symp-wrap {
|
|
.symp-wrap {
|
|
font-size: 0.3rem;
|
|
font-size: 0.3rem;
|
|
|
|
+ .btscroll;
|
|
.quest {
|
|
.quest {
|
|
color: #000;
|
|
color: #000;
|
|
margin-bottom: 0.36rem;
|
|
margin-bottom: 0.36rem;
|
|
font-weight: 700;
|
|
font-weight: 700;
|
|
- padding-right: .3rem;
|
|
|
|
|
|
+ // padding-right: .2rem;
|
|
.searchImg {
|
|
.searchImg {
|
|
width: 0.44rem;
|
|
width: 0.44rem;
|
|
height: 0.44rem;
|
|
height: 0.44rem;
|