2025-03-14 14:47:29 +08:00
|
|
|
|
<template>
|
|
|
|
|
|
<div class="version-detail">
|
|
|
|
|
|
<div class="version-header">
|
|
|
|
|
|
<d-breadcrumb class="secret-breadcrumb">
|
|
|
|
|
|
<gc-breadcrumb-item :to="{ name: 'home' }"><span class="title">首页</span></gc-breadcrumb-item>
|
2025-03-15 10:58:49 +08:00
|
|
|
|
<!-- <gc-breadcrumb-item :to="{ name: 'home' }"><span class="title">高级搜索</span></gc-breadcrumb-item>-->
|
2025-03-14 14:47:29 +08:00
|
|
|
|
<gc-breadcrumb-item><span class="cur-title">个人中心</span></gc-breadcrumb-item>
|
|
|
|
|
|
</d-breadcrumb>
|
|
|
|
|
|
<div class="version-detail-header">
|
|
|
|
|
|
<div class="header-top">
|
2025-03-17 19:25:02 +08:00
|
|
|
|
<GAvatar style="margin-right: 16px" :name="accountInfo.username" :src="accountInfo.avatar" name="Vue" :width="72" :height="72"></GAvatar>
|
2025-03-14 14:47:29 +08:00
|
|
|
|
<div class="pt-24">
|
2025-03-17 19:25:02 +08:00
|
|
|
|
<div class="header-title1">{{ accountInfo.username || '--' }}</div>
|
2025-03-14 14:47:29 +08:00
|
|
|
|
<div class="header-div">
|
|
|
|
|
|
<span class="span1">介绍:包含项目管理、代码托管、CI/CD 和制品库等功能,提供完整的研发流程建议的新的团队…</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<!-- <div class="fr">-->
|
|
|
|
|
|
<!-- <d-button class="mr-2" variant="solid">订阅</d-button>-->
|
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<d-tabs class="jyh-tabs jyh-tabs-2 jyh-tabs-3" type="wrapped" v-model="selectTab">
|
|
|
|
|
|
<d-tab id="yjtzlb" title="预警通知列表"></d-tab>
|
|
|
|
|
|
<d-tab id="dylb" title="订阅列表"></d-tab>
|
2025-03-15 12:46:00 +08:00
|
|
|
|
<d-tab id="organizationManage" title="组织管理"></d-tab>
|
2025-03-15 17:37:22 +08:00
|
|
|
|
<d-tab id="invitation" title="邀请通知"></d-tab>
|
2025-03-14 14:47:29 +08:00
|
|
|
|
</d-tabs>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="version-detail-content">
|
|
|
|
|
|
<early-warning v-if="selectTab==='yjtzlb'"/>
|
|
|
|
|
|
<subscribe-list v-if="selectTab==='dylb'"/>
|
2025-03-15 12:46:00 +08:00
|
|
|
|
<OrganizationManage v-if="selectTab === 'organizationManage'" />
|
2025-03-15 17:37:22 +08:00
|
|
|
|
<InvitationNoticeList v-if="selectTab === 'invitation'" />
|
2025-03-14 14:47:29 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
|
|
|
import { ref, reactive } from 'vue';
|
|
|
|
|
|
import { useRouter, useRoute } from 'vue-router';
|
|
|
|
|
|
import { getOrgInfo } from '@/views/Org/hooks/orgInfo';
|
|
|
|
|
|
import EarlyWarning from './Detail/EarlyWarning.vue';
|
|
|
|
|
|
import SubscribeList from './Detail/SubscribeList.vue';
|
2025-03-15 12:46:00 +08:00
|
|
|
|
import OrganizationManage from './OrganizationManage/OrganizationManage.vue';
|
2025-03-15 17:37:22 +08:00
|
|
|
|
import InvitationNoticeList from './Detail/InvitationNoticeList.vue';
|
2025-03-17 19:25:02 +08:00
|
|
|
|
import { useAccount } from '@/utils/hooks/useAccount';
|
2025-03-15 12:46:00 +08:00
|
|
|
|
|
2025-03-14 14:47:29 +08:00
|
|
|
|
const { namespace } = getOrgInfo();
|
|
|
|
|
|
const avatarUrl = '/src/assets/imgs/avatar/male.png';
|
|
|
|
|
|
|
|
|
|
|
|
const selectTab = ref('yjtzlb');
|
2025-03-17 19:25:02 +08:00
|
|
|
|
const { accountInfo, RemoveInfo } = useAccount();
|
2025-03-14 14:47:29 +08:00
|
|
|
|
|
|
|
|
|
|
// 删除弹窗
|
|
|
|
|
|
const item = ref('');
|
|
|
|
|
|
const deleteModal = ref();
|
|
|
|
|
|
const deletevModels = ref(false);
|
|
|
|
|
|
const openDelete = (row: any) => {
|
|
|
|
|
|
item.value = row;
|
|
|
|
|
|
deleteModal.value.showFlag = true;
|
|
|
|
|
|
deletevModels.value = true;
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
const router = useRouter();
|
|
|
|
|
|
|
|
|
|
|
|
// 分页
|
|
|
|
|
|
const changeIndex = () => {
|
|
|
|
|
|
// getGroupClaListData();
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
const changeSize = () => {
|
|
|
|
|
|
pager.value.pageIndex = 1;
|
|
|
|
|
|
// getGroupClaListData();
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
const repoFun = (arr: any) => {
|
|
|
|
|
|
return arr ? (arr.length > 3 ? arr.slice(0, 3) : arr) : [];
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// 编辑
|
|
|
|
|
|
const editRow = (row: any) => {
|
|
|
|
|
|
// 后续请换成params,暂时params传参没传过去
|
|
|
|
|
|
router.push({
|
|
|
|
|
|
path: 'cla/edit/' + row.object_id,
|
|
|
|
|
|
query: { cla: row.cla, pageType: 'edit' }
|
|
|
|
|
|
});
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// 确认删除
|
|
|
|
|
|
const confirmDelete = async (e: any) => {
|
|
|
|
|
|
// const res = await reqCatch(deleteGroupCla, { group_id: namespace.value, cla_id: item.value.object_id });
|
|
|
|
|
|
// if (!res.error) {
|
|
|
|
|
|
// getGroupClaListData();
|
|
|
|
|
|
// }
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// 去成员页
|
|
|
|
|
|
const goMember = (row: any) => {
|
|
|
|
|
|
// 后续请换成params,暂时params传参没传过去,注意路由有个:claID
|
|
|
|
|
|
router.push({
|
|
|
|
|
|
path: 'cla/claId/member',
|
|
|
|
|
|
query: { claId: row.object_id, claName: row.cla_name, group_path: namespace.value, pageType: 'edit' }
|
|
|
|
|
|
});
|
|
|
|
|
|
};
|
|
|
|
|
|
const getGroupClaListData = async () => {
|
|
|
|
|
|
// const params = {
|
|
|
|
|
|
// group_id: namespace.value,
|
|
|
|
|
|
// page: pager.value.pageIndex,
|
|
|
|
|
|
// per_page: pager.value.pageSize
|
|
|
|
|
|
// };
|
|
|
|
|
|
// const res = await reqCatch(getGroupClaList, params);
|
|
|
|
|
|
// if (!res.error) {
|
|
|
|
|
|
// tableData.value = res?.data?.data?.content;
|
|
|
|
|
|
// pager.value.total = res.data.data.total;
|
|
|
|
|
|
// }
|
|
|
|
|
|
};
|
|
|
|
|
|
getGroupClaListData();
|
|
|
|
|
|
|
|
|
|
|
|
const setClaStatus = async (row: any) => {
|
|
|
|
|
|
// const params = {
|
|
|
|
|
|
// group_id: namespace.value,
|
|
|
|
|
|
// cla_id: row.object_id,
|
|
|
|
|
|
// status: row.status
|
|
|
|
|
|
// };
|
|
|
|
|
|
// const res = await reqCatch(setGroupClaStatus, params);
|
|
|
|
|
|
// if (!res.error) {
|
|
|
|
|
|
// Message.success('操作成功!');
|
|
|
|
|
|
// getGroupClaListData();
|
|
|
|
|
|
// }
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
const signCla = (row: any) => {
|
|
|
|
|
|
router.push('/cla/' + row.object_id);
|
|
|
|
|
|
};
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
|
|
@import 'devui-theme/styles-var/devui-var.scss';
|
|
|
|
|
|
|
|
|
|
|
|
.version-detail {
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
|
|
|
|
.secret-op {
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
right: 0;
|
|
|
|
|
|
top: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.error {
|
|
|
|
|
|
color: $devui-contrast;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
:deep(.devui-table__row td) {
|
|
|
|
|
|
padding-top: 16px;
|
|
|
|
|
|
padding-bottom: 16px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
:deep(.devui-tag .devui-tag--default) {
|
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
|
border-radius: 12px;
|
|
|
|
|
|
padding: 4px 8px;
|
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
line-height: 16px;
|
|
|
|
|
|
margin-right: 8px;
|
|
|
|
|
|
border: 1px solid #e3e3ee;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.one-line {
|
|
|
|
|
|
word-break: break-all;
|
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.title {
|
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
|
color: #9a9b9c;
|
|
|
|
|
|
line-height: 20px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.cur-title {
|
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
|
color: #2d2d2e;
|
|
|
|
|
|
line-height: 20px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.search-form {
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
padding: 12px 20px 12px 0;
|
|
|
|
|
|
border-radius: 8px 0px 8px 8px;
|
|
|
|
|
|
background: #f2f5fc;
|
|
|
|
|
|
|
|
|
|
|
|
.output-btn {
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
right: 28px;
|
|
|
|
|
|
bottom: 4px;
|
|
|
|
|
|
color: #191919;
|
|
|
|
|
|
font-family: HarmonyOS Sans SC;
|
|
|
|
|
|
font-weight: regular;
|
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
line-height: 22px;
|
|
|
|
|
|
letter-spacing: 0px;
|
|
|
|
|
|
text-align: left;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.secret-breadcrumb {
|
|
|
|
|
|
padding: 7px 20px 12px;
|
|
|
|
|
|
background: transparent;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.version-header {
|
|
|
|
|
|
background: url('/src/assets/imgs/jyh/grzxBg.png') no-repeat center center; // 使用 url() 包裹路径
|
|
|
|
|
|
background-size: cover; // 确保背景图片覆盖整个区域
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
height: 170px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.version-detail-header {
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
padding: 0 16%;
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
//box-shadow: inset 0px -1px 0px 0px #EEF0F5;
|
|
|
|
|
|
.header-top {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
}
|
|
|
|
|
|
.header-title1 {
|
|
|
|
|
|
color: #191919;
|
|
|
|
|
|
font-family: HarmonyOS Sans;
|
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
|
line-height: 26px;
|
|
|
|
|
|
letter-spacing: 0px;
|
|
|
|
|
|
text-align: left;
|
|
|
|
|
|
margin-bottom: 4px;
|
|
|
|
|
|
}
|
|
|
|
|
|
.header-div {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
height: 20px;
|
|
|
|
|
|
margin-bottom: 12px;
|
|
|
|
|
|
.span1 {
|
|
|
|
|
|
color: #808080;
|
|
|
|
|
|
font-family: HarmonyOS Sans SC;
|
|
|
|
|
|
font-weight: regular;
|
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
line-height: 20px;
|
|
|
|
|
|
letter-spacing: 0px;
|
|
|
|
|
|
text-align: left;
|
|
|
|
|
|
}
|
|
|
|
|
|
.span2 {
|
|
|
|
|
|
color: #191919;
|
|
|
|
|
|
font-family: HarmonyOS Sans;
|
|
|
|
|
|
font-weight: regular;
|
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
line-height: 20px;
|
|
|
|
|
|
letter-spacing: 0px;
|
|
|
|
|
|
text-align: left;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
::v-deep .devui-tag {
|
|
|
|
|
|
.devui-tag--md {
|
|
|
|
|
|
color: #f6933b;
|
|
|
|
|
|
font-family: HarmonyOS Sans SC;
|
|
|
|
|
|
font-weight: regular;
|
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
line-height: 20px;
|
|
|
|
|
|
letter-spacing: 0px;
|
|
|
|
|
|
text-align: left;
|
|
|
|
|
|
height: 20px;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
.jyh-tabs-3 {
|
|
|
|
|
|
padding-top: 8px;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.version-detail-content {
|
|
|
|
|
|
padding: 0 16%;
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
margin-top: 12px;
|
|
|
|
|
|
}
|
|
|
|
|
|
</style>
|