From f664d855bf8f1a4161131e33cdf14bef18124d26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=98=E6=B0=91=E5=BA=B7?= Date: Fri, 27 Jun 2025 14:15:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=AF=E4=BF=A1=E4=BB=A3=E7=A0=81=E5=BA=93-?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=B4=A8=E9=87=8F=E6=A3=80=E6=B5=8B=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/jyh/index.ts | 32 ++++ .../ViewHistoryAside/ViewHistoryAside.vue | 4 +- .../Jyh/Version/Detail/CodeQuality/Code.vue | 31 +++- .../Jyh/Version/Detail/CodeQuality/index.vue | 168 +++++++++++------- 4 files changed, 167 insertions(+), 68 deletions(-) diff --git a/src/api/jyh/index.ts b/src/api/jyh/index.ts index f3af4f3..d13a381 100644 --- a/src/api/jyh/index.ts +++ b/src/api/jyh/index.ts @@ -452,3 +452,35 @@ export function fetchUpdateRecommendQuestions(data) { data: data, }); } +export function qualityTaskOverview(data) { + const {softwareId} = data; + return axios.request({ + url: `/gateway/quality/task-overview/software` + `/${softwareId}`, + method: 'GET', + // headers: { + // Authorization: 'Bearer ' + localStorage.getItem('access_token'), + // } + }); +} + +export function qualityDefectPage(data) { + const {pageNum,pageSize,softwareId} = data; + return axios.request({ + url: `/gateway/quality/defect/page` + `?pageNum=${pageNum}&pageSize=${pageSize}&softwareId=${softwareId}`, + method: 'GET', + // headers: { + // Authorization: 'Bearer ' + localStorage.getItem('access_token'), + // } + }); +} + +export function loginAccess() { + return axios.request({ + url: `/gateway/u-auth/login-access`, + method: 'POST', + data: {}, + headers: { + Authorization: 'Bearer ' + localStorage.getItem('access_token'), + } + }); +} diff --git a/src/views/Jyh/AI/Home/components/ViewHistoryAside/ViewHistoryAside.vue b/src/views/Jyh/AI/Home/components/ViewHistoryAside/ViewHistoryAside.vue index b40bca9..d7c44f6 100644 --- a/src/views/Jyh/AI/Home/components/ViewHistoryAside/ViewHistoryAside.vue +++ b/src/views/Jyh/AI/Home/components/ViewHistoryAside/ViewHistoryAside.vue @@ -446,7 +446,7 @@ const getQuestionHistory = async () => { // Message.error(data.error||'接口异常!') } } else { - Message.error('请先登录!') + // Message.error('请先登录!') } }; const getQuestionCollection = async () => { @@ -473,7 +473,7 @@ const getQuestionCollection = async () => { // Message.error(data.error||'接口异常!') } } else { - Message.error('请先登录!') + // Message.error('请先登录!') } }; diff --git a/src/views/Jyh/Version/Detail/CodeQuality/Code.vue b/src/views/Jyh/Version/Detail/CodeQuality/Code.vue index c1e0fea..c503582 100644 --- a/src/views/Jyh/Version/Detail/CodeQuality/Code.vue +++ b/src/views/Jyh/Version/Detail/CodeQuality/Code.vue @@ -1,6 +1,6 @@