|
@@ -59,7 +59,7 @@
|
|
|
<script>
|
|
|
import { ElMessage } from "element-plus";
|
|
|
import JSEncrypt from 'jsencrypt'
|
|
|
-import { loginApi, apiGetCodeByToken, apiGetUserMsg, apiGetPrivilegesOfCurrentUserAll, apigetPublicKey } from '../api/api'
|
|
|
+import { loginApi, apiGetCodeByToken, apiGetUserMsg,apiGetUserPostList, apiGetPrivilegesOfCurrentUserAll, apigetPublicKey } from '../api/api'
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
@@ -180,6 +180,21 @@ export default {
|
|
|
id: datas.data.id
|
|
|
}
|
|
|
window.sessionStorage.setItem('user', JSON.stringify(obj))
|
|
|
+ window.sessionStorage.setItem('ispersonDept', false)
|
|
|
+ let params = {
|
|
|
+ userId: datas.data.id,
|
|
|
+ current: 1,
|
|
|
+ size: 10
|
|
|
+ }
|
|
|
+ apiGetUserPostList(params).then(datas =>{
|
|
|
+ if (datas.data && datas.data.records.length>0) {
|
|
|
+ datas.data.records.forEach(it =>{
|
|
|
+ if (it.deptName === '组织人事部(人力资源部)') {
|
|
|
+ window.sessionStorage.setItem('ispersonDept', true)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
that.getApprverData()
|
|
|
}
|
|
|
})
|