|
|
@@ -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);
|
|
|
},
|