From e7a5f78f124c7500ad3e20c9a20c0c21e034f574 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=98=E6=B0=91=E5=BA=B7?= Date: Tue, 18 Mar 2025 16:07:53 +0800 Subject: [PATCH 1/9] =?UTF-8?q?=E8=BD=AF=E4=BB=B6=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E8=B4=A1=E7=8C=AE=E8=80=85=E5=88=86=E5=B8=83?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E5=BC=B9=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Jyh/Search/Components/CountryModal.vue | 84 +++++++++++++++++++ src/views/Jyh/Search/Components/OrgModal.vue | 84 +++++++++++++++++++ src/views/Jyh/Search/Components/OssQuery.vue | 47 ++++++++++- src/views/Jyh/Version/Detail/index.vue | 6 +- 4 files changed, 214 insertions(+), 7 deletions(-) create mode 100644 src/views/Jyh/Search/Components/CountryModal.vue create mode 100644 src/views/Jyh/Search/Components/OrgModal.vue diff --git a/src/views/Jyh/Search/Components/CountryModal.vue b/src/views/Jyh/Search/Components/CountryModal.vue new file mode 100644 index 0000000..8fb5641 --- /dev/null +++ b/src/views/Jyh/Search/Components/CountryModal.vue @@ -0,0 +1,84 @@ + + + + + diff --git a/src/views/Jyh/Search/Components/OrgModal.vue b/src/views/Jyh/Search/Components/OrgModal.vue new file mode 100644 index 0000000..5897911 --- /dev/null +++ b/src/views/Jyh/Search/Components/OrgModal.vue @@ -0,0 +1,84 @@ + + + + + diff --git a/src/views/Jyh/Search/Components/OssQuery.vue b/src/views/Jyh/Search/Components/OssQuery.vue index 6ca72a4..19b3882 100644 --- a/src/views/Jyh/Search/Components/OssQuery.vue +++ b/src/views/Jyh/Search/Components/OssQuery.vue @@ -53,12 +53,16 @@ {{ scope.row.programmingLanguage }} @@ -104,6 +114,8 @@ import { reqCatch } from '@/utils/catch'; import { getOrgInfo } from '@/views/Org/hooks/orgInfo'; import { Message } from 'vue-devui'; import { storeToRefs } from 'pinia'; +import CountryModal from './CountryModal.vue' +import OrgModal from './OrgModal.vue' import { useAccountStore } from '@/stores/user'; const { namespace } = getOrgInfo(); const userInfo = useAccountStore(); @@ -111,6 +123,8 @@ const { isLogin } = storeToRefs(userInfo); // 定义 tableKey,用于强制刷新表格 const tableKey = ref(0); +const countryVisible = ref(false); +const orgVisible = ref(false); const tableData = ref([ { softwareName: 'eslint-plugin-import', @@ -400,12 +414,37 @@ const columns = ref([ // 定义 showColumnList 状态 const showColumnList = ref(false); +// 获取子组件的引用 +const countryModalRef = ref(null); +const orgModalRef = ref(null); +// 打开模态框的方法 +const openCountryModal = () => { + if (countryModalRef.value) { + countryModalRef.value.openModal(); // 调用子组件的方法 + } +}; +// 打开模态框的方法 +const openOrgModal = () => { + if (orgModalRef.value) { + orgModalRef.value.openModal(); // 调用子组件的方法 + } +}; // 更新 showColumnList 的方法 const updateShowColumnList = (newValue) => { showColumnList.value = newValue; tableKey.value++; // 更新 tableKey,强制刷新表格 }; +// 更新 showColumnList 的方法 +const openCountryChart = (row) => { + // selectRow.value = row; + countryVisible.value = true; +}; +// 更新 showColumnList 的方法 +const openOrgChart = (row) => { + // selectRow.value = row; + orgVisible.value = true; +}; const router = useRouter(); const route = useRoute(); diff --git a/src/views/Jyh/Version/Detail/index.vue b/src/views/Jyh/Version/Detail/index.vue index 864874e..422289b 100644 --- a/src/views/Jyh/Version/Detail/index.vue +++ b/src/views/Jyh/Version/Detail/index.vue @@ -13,8 +13,8 @@
版本:{{ softwareData.version }} - 生命周期状态:{{ softwareData.lifecycle }} - + + 集成风险: {{ softwareData.risk }}
@@ -351,4 +351,4 @@ const colseSubscription = () => { \ No newline at end of file + From 6c3635ddabc6bbb828c996faa0eba8c4cee87773 Mon Sep 17 00:00:00 2001 From: MaxShen <997186306@qq.com> Date: Tue, 18 Mar 2025 17:13:54 +0800 Subject: [PATCH 2/9] =?UTF-8?q?=E9=82=80=E8=AF=B7=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E6=8E=A5=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/jyh/index.ts | 22 +++++++ .../Detail/EarlyWarningDetail.vue | 29 +++++----- .../Detail/EarlyWarningOrganization.vue | 2 +- .../Detail/EarlyWarningPerson.vue | 2 +- .../Detail/InvitationNoticeList.vue | 57 +++++++++++++++---- 5 files changed, 84 insertions(+), 28 deletions(-) diff --git a/src/api/jyh/index.ts b/src/api/jyh/index.ts index 8f87160..948748f 100644 --- a/src/api/jyh/index.ts +++ b/src/api/jyh/index.ts @@ -1,3 +1,4 @@ +import { reqCatchV2, type catchRt } from '@/utils/catch'; import request from '@/utils/request'; // 详情-获取版本信息 @@ -8,3 +9,24 @@ export function releaseInfo(params: { repoId: string,releaseId: string }): Prom method: 'get' }); } + +// 获取用户信息 +export function getInviteListData(): catchRt { + return reqCatchV2(() => request({ + url: '/api/v1/group/member/invite/list', + method: 'get' + }, { + customError: true + })); +} + +// 获取用户信息 +export function acceptInvite(params): catchRt { + return reqCatchV2(() => request({ + url: '/api/v1/group/member/invite/accept', + method: 'post', + data: params, + }, { + customError: true + })); +} diff --git a/src/views/Jyh/PersonalCenter/Detail/EarlyWarningDetail.vue b/src/views/Jyh/PersonalCenter/Detail/EarlyWarningDetail.vue index 6ab0c7b..6272ed7 100644 --- a/src/views/Jyh/PersonalCenter/Detail/EarlyWarningDetail.vue +++ b/src/views/Jyh/PersonalCenter/Detail/EarlyWarningDetail.vue @@ -7,30 +7,20 @@ 重要性 {{warningData.importance}} -
+
预览
-
-
可信开源代码库运营团队 {{ warningData.fromTime }}
+
{{warningData.group}} {{ warningData.pulishTime }}
确定 取消 @@ -48,7 +38,8 @@ const warningData = ref({ importance: '高', summary: '近日,安全中心发现Apache lgnite远程代码执行漏洞(CVE-2024-52577)。在 2.6.0 { font-weight: 600; font-size: 20px; line-height: 28px; - padding: 4px 20px 12px; + padding: 20px 20px 12px; .sub-title { display: flex; @@ -102,7 +93,15 @@ const handleModeChange = () => { background: #F6F6F8; color: initial; - ::v-deep .dp-md-view { + :deep .dp-md-readonly { + .dp-md-toolbar-container { + display: none; + } + } + + :deep .dp-md-view { + background-color: #F6F6F8; + h2 { font-size: 1.5em; font-weight: bold; diff --git a/src/views/Jyh/PersonalCenter/Detail/EarlyWarningOrganization.vue b/src/views/Jyh/PersonalCenter/Detail/EarlyWarningOrganization.vue index 2f7492a..70a4da5 100644 --- a/src/views/Jyh/PersonalCenter/Detail/EarlyWarningOrganization.vue +++ b/src/views/Jyh/PersonalCenter/Detail/EarlyWarningOrganization.vue @@ -29,7 +29,7 @@
- + diff --git a/src/views/Jyh/PersonalCenter/Detail/EarlyWarningPerson.vue b/src/views/Jyh/PersonalCenter/Detail/EarlyWarningPerson.vue index f74c7c3..253f059 100644 --- a/src/views/Jyh/PersonalCenter/Detail/EarlyWarningPerson.vue +++ b/src/views/Jyh/PersonalCenter/Detail/EarlyWarningPerson.vue @@ -28,7 +28,7 @@ - + diff --git a/src/views/Jyh/PersonalCenter/Detail/InvitationNoticeList.vue b/src/views/Jyh/PersonalCenter/Detail/InvitationNoticeList.vue index 08b08d2..187de92 100644 --- a/src/views/Jyh/PersonalCenter/Detail/InvitationNoticeList.vue +++ b/src/views/Jyh/PersonalCenter/Detail/InvitationNoticeList.vue @@ -8,26 +8,31 @@ :header-bg="true" :data="noticeTableData" > - - - + + + +
From a252eda5c7c764afe3fcf6fa973878743b603cd1 Mon Sep 17 00:00:00 2001 From: MaxShen <997186306@qq.com> Date: Tue, 18 Mar 2025 17:24:35 +0800 Subject: [PATCH 4/9] =?UTF-8?q?=E9=A2=84=E8=AD=A6=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Detail/EarlyWarningDetail.vue | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/src/views/Jyh/PersonalCenter/Detail/EarlyWarningDetail.vue b/src/views/Jyh/PersonalCenter/Detail/EarlyWarningDetail.vue index 6272ed7..88a1daf 100644 --- a/src/views/Jyh/PersonalCenter/Detail/EarlyWarningDetail.vue +++ b/src/views/Jyh/PersonalCenter/Detail/EarlyWarningDetail.vue @@ -1,7 +1,7 @@