Selaa lähdekoodia

task-157 分析统计增加埋点

cc12458 9 kuukautta sitten
vanhempi
commit
7e1ada4b42

+ 4 - 0
src/utils/minix/prescribing.js

@@ -1,4 +1,5 @@
 import { getMaxMinDoaseNumber, getRationalSafeUse } from '@/api/diagnosis.js'
+import {addRecipeFrom} from '@/api/dataAnalysis';
 
 let hack_openAddress_true;
 
@@ -81,9 +82,12 @@ export default {
         },
         openPrec() {
             this.showPresc = true
+            addRecipeFrom({ type: 2 }).catch();
+            addRecipeFrom({ type: 4 }).catch();
         },
         openUnifyPrescPrec() {
             this.showUnifyPresc = true
+            addRecipeFrom({ type: 2 }).catch();
         },
         opensafeD() {
             this.showSafeD = true

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

@@ -105,6 +105,7 @@
   import {
     mapGetters
   } from "vuex";
+  import {addRecipeFrom} from '@/api/dataAnalysis';
   export default {
     components: {
       IndexBar,
@@ -137,6 +138,7 @@
       this.getMyOfenUse();
     },
     beforeRouteEnter(to, from, next) {
+      addRecipeFrom({ type: 0 }).catch()
       if (from.fullPath.indexOf("/index/dialecticalq") != -1) {
         next();
       } else {

+ 1 - 0
src/views/diagnosis/Prescribing.vue

@@ -4352,6 +4352,7 @@ export default {
     },
     // 获取协定方详细信息
     async getAccordDetail(id) {
+      addRecipeFrom({ type: 2 }).catch();
       let res = await getAccordDetail({
         pid: id
       });

+ 4 - 0
src/views/knowledge/DoctorCaseBefore.vue

@@ -27,6 +27,7 @@
 </template>
 <script>
 import { getDoctorCaseIndexL } from "@/api/knowledge.js";
+import {addRecipeFrom} from '@/api/dataAnalysis';
 
 export default {
   data() {
@@ -36,6 +37,9 @@ export default {
       list: []
     };
   },
+  created() {
+    addRecipeFrom({ type: 5 }).catch();
+  },
   mounted() {
     this.initData();
   },

+ 2 - 0
src/views/knowledge/Prescription.vue

@@ -51,6 +51,7 @@
 <script>
 import { getEffectQuery, getPrescriptionsList } from "@/api/knowledge.js";
 import { setTimeout } from "timers";
+import {addRecipeFrom} from '@/api/dataAnalysis';
 export default {
   data() {
     return {
@@ -66,6 +67,7 @@ export default {
     };
   },
   created() {
+    addRecipeFrom({ type: 4 }).catch();
     this.getEffectQuery().then(() => this.getPrescriptionsList());
     // setTimeout(() => {
     //   this.getPrescriptionsList();