5.22宁夏领料申请获取权限列表
This commit is contained in:
parent
7da9ce7d63
commit
23c99c7cb8
|
|
@ -246,6 +246,14 @@ const fetchExam = {
|
|||
header
|
||||
)
|
||||
},
|
||||
async getRoleList (data = {} , header = {}){
|
||||
return await Http.get(
|
||||
HttpConfig.systemPath,
|
||||
HttpConfig.serviceUrl.fetchExam.getRoleList,
|
||||
data,
|
||||
header
|
||||
)
|
||||
},
|
||||
}
|
||||
|
||||
const newInStore = {
|
||||
|
|
|
|||
|
|
@ -61,6 +61,7 @@ class HttpConfig {
|
|||
subExamCq: '/tm_task/auditLeaseByCompanyCq', // 通过重庆领料审批
|
||||
rejectExam: '/tm_task/rejectLeaseByCompany', // 驳回领料审批
|
||||
rejectExamCq: '/tm_task/rejectLeaseByCompanyCq', // 驳回重庆领料审批
|
||||
getRoleList: '/role/list', // 获取审批角色
|
||||
},
|
||||
fetchMaterialOutStore: {
|
||||
fetchInfoByCode: '/leaseOutDetails/getMaMachineByCode', // 根据maId获取机具详情
|
||||
|
|
|
|||
|
|
@ -662,6 +662,19 @@ import { basePath } from '../../public'
|
|||
}).catch(err => {
|
||||
console.log(err);
|
||||
})
|
||||
},
|
||||
getRoles () {
|
||||
let that = this
|
||||
that.$api.fetchExam.getRoleList().then(res => {
|
||||
// console.log(res);
|
||||
if (res.data.code == 200) {
|
||||
res.data.rows.forEach(item => {
|
||||
// console.log(item.roleKey);
|
||||
})
|
||||
}
|
||||
}).catch(err => {
|
||||
console.log(err);
|
||||
})
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
|
|
@ -669,6 +682,7 @@ import { basePath } from '../../public'
|
|||
console.log(that.roles);
|
||||
if (that.roles.includes('admin')) that.roles = ['admin', 'fgs', 'sgb', 'ajb', 'jjfgs', 'tsfgs']
|
||||
that.initFetch()
|
||||
that.getRoles()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Reference in New Issue