mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-09 19:06:45 +08:00
-- fix 项目权限
This commit is contained in:
@@ -38,13 +38,13 @@ export function checkPer(per,createId) {
|
||||
if (store?.state?.userInfo?.roleList.some(t => t.code === "system-admin")) {
|
||||
return true;
|
||||
}
|
||||
if(per){
|
||||
return (per + "").split(",").some(t => admin.some(s => s == t));
|
||||
}
|
||||
if (store?.state?.userInfo?.isHrbp) {
|
||||
return true;
|
||||
}
|
||||
if (!per) {
|
||||
return false;
|
||||
}
|
||||
return (per + "").split(",").some(t => admin.some(s => s == t));
|
||||
return false
|
||||
}
|
||||
|
||||
const adminOwner = [6, 9, 12];
|
||||
|
||||
@@ -1425,6 +1425,17 @@ export default {
|
||||
};
|
||||
// 获取项目列表信息
|
||||
let tableData = ref([]);
|
||||
|
||||
watch(tableData,()=> tableData.value?.forEach(t=> dealPermission(t)))
|
||||
|
||||
function dealPermission(data){
|
||||
if(!data){
|
||||
return
|
||||
}
|
||||
data.permissions || (data.children?.some(s=>s.permissions || s.children?.some(j=>j.permissions)) && (data.permissions = '4'))
|
||||
data.children?.forEach(t=>dealPermission(t))
|
||||
}
|
||||
|
||||
const columns = ref([
|
||||
{
|
||||
title: "项目名称",
|
||||
|
||||
Reference in New Issue
Block a user