|
@@ -160,7 +160,7 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
slideToggle(){
|
|
|
- let flg = this.slideTxt
|
|
|
+ let flg = this.slideTxt;
|
|
|
if(flg == '展开'){
|
|
|
this.$refs.showHide.style.height = 'auto'
|
|
|
this.slideTxt = '收起'
|
|
@@ -257,6 +257,7 @@ export default {
|
|
|
"id": id,
|
|
|
"sexType": this.sexType
|
|
|
}
|
|
|
+ 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;
|
|
|
if (result.code == 0) {
|
|
@@ -264,9 +265,6 @@ export default {
|
|
|
this.labelDetail = result.data;
|
|
|
if(this.chooseSymp.length == 0){
|
|
|
result.data.idx = 1
|
|
|
- this.$store.commit('setText', { type: moduleCP['symp'], text: '患者出现'+item.name,textP: '患者出现'+(item.description||item.name), pId: this.questId,idx:flg });
|
|
|
- }else{
|
|
|
- this.$store.commit('setText', { type: moduleCP['symp'], text: item.name,textP: item.description||item.name, pId: this.questId,idx:flg });
|
|
|
}
|
|
|
this.$store.commit('setOrigin', { type: moduleCP['symp'], data: result.data });
|
|
|
if (mapping && mapping.length > 0) {
|
|
@@ -307,10 +305,8 @@ export default {
|
|
|
} else {//没有questionId或id
|
|
|
if(this.chooseSymp.length == 0){
|
|
|
item.idx = 1
|
|
|
- this.$store.commit('setText', { type: moduleCP['symp'], text: '患者出现'+item.name,textP: '患者出现'+(item.description||item.name), pId: this.questId,idx:flg });
|
|
|
- }else{
|
|
|
- this.$store.commit('setText', { type: moduleCP['symp'], text: item.name,textP: item.description||item.name, pId: this.questId,idx:flg });
|
|
|
}
|
|
|
+ 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:'' });
|
|
|
this.$store.commit('setSearchShow', false);
|
|
|
this.chooseSymp.push(item);
|
|
|
const sympText = this.getSympText();
|
|
@@ -360,7 +356,6 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- console.log(sympStic)
|
|
|
this.symp = sympAll.slice(0,12);
|
|
|
this.$refs.showHide.style.height = 'auto'
|
|
|
}
|