bug修复:离职人员无法修改人员信息
parent
7490db6777
commit
62c6a063ca
|
@ -99,10 +99,6 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
getUserInfo,
|
||||
getEmployedBy, getIDCardDeduplication
|
||||
} from "../../../api";
|
||||
import FabButton from "@/components/fab_button/index.vue";
|
||||
import {getUserInfoV1} from "../../../api/api";
|
||||
|
||||
|
@ -147,12 +143,21 @@ export default {
|
|||
})
|
||||
},
|
||||
async fnGetData() {
|
||||
let data = await getUserInfoV1(
|
||||
{
|
||||
id: this.$store.getters.getUserInfo.USER_ID,
|
||||
postMethod: 'application/json'
|
||||
}
|
||||
)
|
||||
let data
|
||||
try {
|
||||
data = await getUserInfoV1(
|
||||
{
|
||||
id: this.$store.getters.getUserInfo.USER_ID,
|
||||
postMethod: 'application/json'
|
||||
}
|
||||
)
|
||||
}catch (e){
|
||||
console.log(e)
|
||||
setTimeout(() => {
|
||||
uni.navigateBack()
|
||||
}, 2000)
|
||||
}
|
||||
|
||||
this.info = data.info
|
||||
// 身份证
|
||||
this.userCardIDPhotoFile = []
|
||||
|
|
Loading…
Reference in New Issue