Skip to content

Commit

Permalink
Merge pull request #2749 from lhzzforever/dev/develop_ci
Browse files Browse the repository at this point in the history
Dev/develop ci
  • Loading branch information
ielgnaw authored Jul 9, 2024
2 parents d619ac4 + a71986e commit 62d987d
Show file tree
Hide file tree
Showing 6 changed files with 157 additions and 120 deletions.
52 changes: 37 additions & 15 deletions frontend/src/common/router-handle.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,17 @@ export const getRouterDiff = (payload) => {
'permTemplateDiff',
'addGroupPerm',
'resourcePermiss',
'firstManageSpace',
'ratingManager',
'gradingAdminCreate',
'gradingAdminDetail',
'gradingAdminEdit',
'gradingAdminUpdateTemplate',
'secondaryManageSpace',
'authorBoundary',
'secondaryManageSpaceCreate',
'secondaryManageSpaceDetail',
'authorBoundary',
'authorBoundaryEditFirstLevel',
'authorBoundaryEditSecondLevel',
'userGroupSetting',
'sensitivityLevel',
'memberTemplate',
Expand All @@ -76,6 +82,8 @@ export const getRouterDiff = (payload) => {
'ratingManager',
'gradingAdminCreate',
'gradingAdminDetail',
'gradingAdminEdit',
'gradingAdminUpdateTemplate',
'user',
'gradingAdminUpdateTemplate',
'administrator',
Expand All @@ -89,10 +97,10 @@ export const getRouterDiff = (payload) => {
'systemAccessOptimize',
'systemAccessComplete',
'resourcePermiss',
'userGroupDetail',
'firstManageSpace',
'secondaryManageSpace',
'authorBoundary',
'authorBoundaryEditFirstLevel',
'authorBoundaryEditSecondLevel',
'myManageSpace',
'myManageSpaceCreate',
'permTransfer',
Expand All @@ -116,8 +124,9 @@ export const getRouterDiff = (payload) => {
'ratingManager',
'gradingAdminCreate',
'gradingAdminDetail',
'user',
'gradingAdminEdit',
'gradingAdminUpdateTemplate',
'user',
'approval',
'permRenewal',
'audit',
Expand All @@ -127,10 +136,14 @@ export const getRouterDiff = (payload) => {
'systemAccessRegistry',
'systemAccessOptimize',
'systemAccessComplete',
'firstManageSpace',
'secondaryManageSpace',
'secondaryManageSpaceCreate',
'secondaryManageSpaceDetail',
'authorBoundary',
'authorBoundaryEditFirstLevel',
'authorBoundaryEditSecondLevel',
'myManageSpace',
'myManageSpaceCreate',
'renewalNotice',
'userOrgPerm'
];
Expand All @@ -148,8 +161,9 @@ export const getRouterDiff = (payload) => {
'ratingManager',
'gradingAdminCreate',
'gradingAdminDetail',
'user',
'gradingAdminEdit',
'gradingAdminUpdateTemplate',
'user',
'administrator',
'approval',
'permRenewal',
Expand All @@ -162,7 +176,6 @@ export const getRouterDiff = (payload) => {
'systemAccessComplete',
'myManageSpace',
'resourcePermiss',
'firstManageSpace',
'sensitivityLevel',
'resourcePermManage',
'renewalNotice'
Expand All @@ -181,8 +194,9 @@ export const getRouterDiff = (payload) => {
'ratingManager',
'gradingAdminCreate',
'gradingAdminDetail',
'user',
'gradingAdminEdit',
'gradingAdminUpdateTemplate',
'user',
'administrator',
'approval',
'permRenewal',
Expand All @@ -197,7 +211,6 @@ export const getRouterDiff = (payload) => {
'secondaryManageSpace',
'secondaryManageSpaceCreate',
'secondaryManageSpaceDetail',
'firstManageSpace',
'myManageSpace',
'permTemplate',
'userGroupSetting',
Expand Down Expand Up @@ -281,10 +294,17 @@ export const getNavRouterDiff = (navIndex, managerPerm = '') => {
'permTemplateDiff',
'addGroupPerm',
'resourcePermiss',
'firstManageSpace',
'ratingManager',
'gradingAdminCreate',
'gradingAdminDetail',
'gradingAdminEdit',
'gradingAdminUpdateTemplate',
'authorBoundary',
'authorBoundaryEditFirstLevel',
'authorBoundaryEditSecondLevel',
'secondaryManageSpace',
'secondaryManageSpaceCreate',
'secondaryManageSpaceDetail',
'userGroupSetting',
'sensitivityLevel',
'memberTemplate',
Expand Down Expand Up @@ -333,10 +353,12 @@ export const getNavRouterDiff = (navIndex, managerPerm = '') => {
'permTemplateDiff',
'addGroupPerm',
'resourcePermiss',
'firstManageSpace',
'authorBoundary',
'secondaryManageSpace',
'authorBoundaryEditFirstLevel',
'authorBoundaryEditSecondLevel',
'myManageSpace',
'myManageSpaceCreate',
'secondaryManageSpace',
'secondaryManageSpaceCreate',
'secondaryManageSpaceDetail',
'userGroupSetting',
Expand Down Expand Up @@ -375,12 +397,12 @@ export const getNavRouterDiff = (navIndex, managerPerm = '') => {
'permTemplate',
'permTemplateDetail',
'permTemplateCreate',
'authorBoundary',
'secondaryManageSpace',
'myManageSpace',
'myManageSpaceCreate',
'secondaryManageSpace',
'secondaryManageSpaceCreate',
'secondaryManageSpaceDetail',
'authorBoundary',
'authorBoundaryEditFirstLevel',
'authorBoundaryEditSecondLevel',
'permTemplateEdit',
Expand Down
9 changes: 1 addition & 8 deletions frontend/src/components/header-nav/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,6 @@
},
appLogo () {
// 如果未获取到配置,使用默认logo
console.log(this.globalConfig.appLogo);
const src = this.globalConfig.appLogo || logoSvg;
return src;
}
Expand Down Expand Up @@ -640,13 +639,7 @@
// this.curHeight = document.getElementsByClassName('user-dropdown')[0].offsetHeight
this.isShowGradingWrapper = !this.isShowGradingWrapper;
},
handleBack () {
this.isShowUserDropdown = false;
this.isShowGradingWrapper = false;
this.handleSwitchRole({ id: 0, type: 'staff', name: this.user.role.name });
},
handleLogout () {
window.localStorage.removeItem('iam-header-title-cache');
window.localStorage.removeItem('iam-header-name-cache');
Expand Down
2 changes: 0 additions & 2 deletions frontend/src/components/nav/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,6 @@
[['myManageSpace', 'myManageSpaceCreate', 'gradingAdminDetail', 'gradingAdminEdit', 'gradingAdminCreate', 'myManageSpaceSubDetail', 'secondaryManageSpaceEdit'], 'myManageSpaceNav'],
// 分级管理员
[['ratingManager', 'gradingAdminDetail', 'gradingAdminCreate', 'gradingAdminEdit'], 'gradingAdminNav'],
// 管理空间
[['firstManageSpace', 'firstManageSpaceCreate'], 'firstManageSpaceNav'],
// 二级管理空间
[['secondaryManageSpace', 'secondaryManageSpaceCreate', 'secondaryManageSpaceDetail'], 'secondaryManageSpaceNav'],
// 授权边界
Expand Down
Loading

0 comments on commit 62d987d

Please sign in to comment.