Bläddra i källkod

[优化] 智能辩证进入问卷携带疾病

cc12458 5 månader sedan
förälder
incheckning
91e8d4b6eb
2 ändrade filer med 8 tillägg och 2 borttagningar
  1. 6 2
      src/views/diagnosis/Dialectical.vue
  2. 2 0
      src/views/diagnosis/DialecticalQ.vue

+ 6 - 2
src/views/diagnosis/Dialectical.vue

@@ -106,6 +106,7 @@
     mapGetters
   } from "vuex";
   import {addRecipeFrom} from '@/api/dataAnalysis';
+  import {tryRun} from '@/tool';
   export default {
     components: {
       IndexBar,
@@ -175,13 +176,16 @@
         this.current = 0;
       },
       toQuestion(id = "", type = "1") {
+        const name = tryRun(() => this.bingzhengS.find(item => item.groupid === id).groupname);
         if (this.key2) {
           this.$router.push({
-            path: "/index/dialecticalq?id=" + id + "&type=3"
+            path: `/index/dialecticalq`,
+            query: {id, name, type: 3}
           });
         } else {
           this.$router.push({
-            path: "/index/dialecticalq?id=" + id + "&type=" + type
+            path: `/index/dialecticalq`,
+            query: {id, name, type}
           });
         }
 

+ 2 - 0
src/views/diagnosis/DialecticalQ.vue

@@ -409,6 +409,7 @@ export default {
             item1.checked = false;
           });
         });
+        if (!res.Data.groupname) res.Data.groupname = this.$route.query.name;
         this.info = res.Data;
       }
     },
@@ -436,6 +437,7 @@ export default {
 
       let params = {
         groupid: this.info.groupid,
+        groupname: this.info.groupname,
         itemids: ids.join(","),
         duration,
         tcmElectronicMedicalRecordId: this.getPatiensInfo.pid,