|
@@ -119,6 +119,7 @@
|
|
|
import {
|
|
|
chemicalAppletSelectStockInfo,
|
|
|
laboratorySubPassOutIsotopeSubSign,
|
|
|
+ systemUserProfile,
|
|
|
} from '@/pages/api/index.js'
|
|
|
import {
|
|
|
tabBar
|
|
@@ -161,8 +162,20 @@
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
+ this.systemUserProfile();
|
|
|
},
|
|
|
methods: {
|
|
|
+ //获取个人信息
|
|
|
+ async systemUserProfile() {
|
|
|
+ const {
|
|
|
+ data
|
|
|
+ } = await systemUserProfile();
|
|
|
+ if (data.code == 200) {
|
|
|
+ this.$set(this, 'userData', data.data)
|
|
|
+ uni.setStorageSync('userDeptId', data.data.deptId);
|
|
|
+ uni.setStorageSync('userDeptName', data.data.deptName);
|
|
|
+ }
|
|
|
+ },
|
|
|
goHome() {
|
|
|
this.pageType = 2;
|
|
|
},
|