|
@@ -273,9 +273,9 @@ export default {
|
|
|
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;
|
|
|
+ // this.labelDetail = result.data;
|
|
|
if (result.code == 0) {
|
|
|
const mapping = result.data.questionMapping;
|
|
|
- this.labelDetail = result.data;
|
|
|
if(this.chooseSymp.length == 0){
|
|
|
result.data.idx = 1
|
|
|
}
|
|
@@ -285,6 +285,7 @@ export default {
|
|
|
let signNum = 1;//第一个打标的,保存为伴随
|
|
|
for(let i = 0;i < mapping.length;i++){
|
|
|
let tmpMap = mapping[i]
|
|
|
+ tmpMap.slide = 1
|
|
|
if(tmpMap.flag == 3 && signNum == 1){
|
|
|
++signNum
|
|
|
for(let j = 0;j < tmpMap.questionDetailList.length;j++){
|
|
@@ -306,6 +307,8 @@ export default {
|
|
|
this.$store.commit('setSearchShow', false);
|
|
|
this.chooseSymp.push(item);
|
|
|
}
|
|
|
+ result.data.questionMapping = mapping
|
|
|
+ this.labelDetail = result.data;
|
|
|
const sympText = this.getSympText();
|
|
|
this.getPush(sympText);
|
|
|
}
|