Sfoglia il codice sorgente

金牛信息采集药师,医生审核区分

15376779826 1 giorno fa
parent
commit
7012319c52
1 ha cambiato i file con 7 aggiunte e 2 eliminazioni
  1. 7 2
      src/views/order/userInformationOrder/userInfoDetail.vue

+ 7 - 2
src/views/order/userInformationOrder/userInfoDetail.vue

@@ -126,6 +126,7 @@
 <script>
 import axios from "axios";
 import { getUserInformation,doctorConfirm,doctorType2Confirm } from "@/api/userInformation";
+import {mapState} from "vuex";
 
 export default {
   name: "userInfoDetail",
@@ -138,12 +139,16 @@ export default {
       doctorType:1,
     };
   },
+  computed: {
+    ...mapState({
+      doctorType: state => state.user.doctor.doctorType,
+    }),
+  },
 
   methods: {
     /** 供父组件调用 —— 与旧组件保持一致 */
     getDetails(id,doctorType) {
-      this.doctorType = doctorType;
-      console.log(doctorType)
+      console.log(this.doctorType)
       if (!id) return;
       this.loadDetail(id);
     },