Quellcode durchsuchen

删除后的主诉重选上没有详情2544

zhouna vor 5 Jahren
Ursprung
Commit
c3d8e63744
1 geänderte Dateien mit 3 neuen und 2 gelöschten Zeilen
  1. 3 2
      src/components/Symptom.vue

+ 3 - 2
src/components/Symptom.vue

@@ -208,7 +208,7 @@ export default {
           if (result.code == 0) {
             const mapping = result.data.questionMapping;
             this.labelDetail = result.data;
-            this.$store.commit('setOrigin', { type: moduleCP['symp'], data: result.data });
+            //this.$store.commit('setOrigin', { type: moduleCP['symp'], data: result.data }); //2544暂时不存,被删除后加上详情不会再显示
             if (mapping && mapping.length > 0) {
               this.$store.commit('setDetail',{detail:result.data,ppId:null,moduleType:moduleCP['symp']})
               if(flg){
@@ -284,7 +284,8 @@ export default {
       $(".btscroll").css({'position':'absolute'})
       this.chooseSymp.splice(this.delIndex, 1);
       this.checkText.splice(this.delIndex, 1);
-      this.$store.commit('delText', { type: moduleCP['symp'], pId: this.questId })
+      this.$store.commit('delText', { type: moduleCP['symp'], pId: this.questId });
+      console.log(this.$store.state)
       // 删除setDatas数据,防止回读
       this.$store.commit('setDatas', { type: moduleCP['symp'], pId: this.questId ,data:''})
       // 删除完-常见;其他-推送