Skip to content

Commit

Permalink
feat:用户个人视角 权限管理优化-我的交接 #11138
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 26099
  • Loading branch information
vhwweng committed Dec 6, 2024
1 parent 380e5c9 commit bcb1db3
Show file tree
Hide file tree
Showing 5 changed files with 725 additions and 23 deletions.
6 changes: 6 additions & 0 deletions src/frontend/devops-permission/src/http/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,5 +196,11 @@ export default {
*/
fetchHandoverOverviewList(params: any) {
return fetch.post(`${apiPerfix}/auth/handover/listHandoverOverviews`, params);
},
/**
* 处理交接审批单
*/
handleHanoverApplication(params: any) {
return fetch.post(`${apiPerfix}/auth/handover/handleHanoverApplication`, params);
}
}
33 changes: 32 additions & 1 deletion src/frontend/devops-permission/src/store/userDetailGroupTable.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
import http from '@/http/api';
import { defineStore } from 'pinia';
import { ref } from 'vue';
import pipelineIcon from '@/css/svg/color-logo-pipeline.svg';
import codelibIcon from '@/css/svg/color-logo-codelib.svg';
import codeccIcon from '@/css/svg/color-logo-codecc.svg';
import environmentIcon from '@/css/svg/color-logo-environment.svg';
import experienceIcon from '@/css/svg/color-logo-experience.svg';
import qualityIcon from '@/css/svg/color-logo-quality.svg';
import ticketIcon from '@/css/svg/color-logo-ticket.svg';
import turboIcon from '@/css/svg/color-logo-turbo.svg';

enum HandoverType {
AUTHORIZATION = 'AUTHORIZATION',
Expand Down Expand Up @@ -48,7 +56,8 @@ interface DetailParams {
previewConditionReq?: String;
queryChannel?: String;
page?: Number,
pageSize?: Number
pageSize?: Number,
flowNo?: String
}

export default defineStore('userDetailGroupTable', () => {
Expand Down Expand Up @@ -196,6 +205,27 @@ export default defineStore('userDetailGroupTable', () => {
}
}

function getServiceIcon (type: string) {
const iconMap = {
'pipeline': pipelineIcon,
'pipeline_group': pipelineIcon,
'repertory': codelibIcon,
'credential': ticketIcon,
'cert': ticketIcon,
'environment': environmentIcon,
'env_node': pipelineIcon,
'codecc_task': codeccIcon,
'codecc_rule_set': codeccIcon,
'codecc_ignore_type': codeccIcon,
'experience_task': experienceIcon,
'experience_group': experienceIcon,
'rule': qualityIcon,
'quality_group': qualityIcon,
'pipeline_template': pipelineIcon,
}
return iconMap[type]
}

return {
isLoading,
detailSourceList,
Expand All @@ -204,5 +234,6 @@ export default defineStore('userDetailGroupTable', () => {
detailCollapseClick,
detailPageLimitChange,
detailPageValueChange,
getServiceIcon,
};
});
Loading

0 comments on commit bcb1db3

Please sign in to comment.