From 253df87b31bd068ae54b7cca84ec7f2fcff07985 Mon Sep 17 00:00:00 2001 From: bestlee Date: Wed, 30 Sep 2026 10:49:11 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9D=9E=E5=AE=A1=E6=89=B9=E4=BA=BA=E5=91=98?= =?UTF-8?q?=E9=A6=96=E9=A1=B5=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/service/api/statistics.ts | 7 +++ src/views/home/modules/template1.vue | 1 - src/views/home/modules/template10.vue | 76 ++++++++++----------------- src/views/home/modules/template7.vue | 4 +- src/views/home/modules/template8.vue | 2 +- 5 files changed, 39 insertions(+), 51 deletions(-) diff --git a/src/service/api/statistics.ts b/src/service/api/statistics.ts index b9453f8..1c56907 100644 --- a/src/service/api/statistics.ts +++ b/src/service/api/statistics.ts @@ -51,6 +51,13 @@ export function homeQualityApi() { method: 'get', }); } +// 首页(非审批人员) +export function homeNonApproverApi() { + return request({ + url: `/api/workbench/viewer`, + method: 'get', + }); +} // 变更数据中心 export function changeDataCenterApi(params: {from: string | null, to: string | null}) { diff --git a/src/views/home/modules/template1.vue b/src/views/home/modules/template1.vue index ee7bfd9..70c66f6 100644 --- a/src/views/home/modules/template1.vue +++ b/src/views/home/modules/template1.vue @@ -53,7 +53,6 @@ const getData = async () => { const {data,error} = await homeAdminApi(); if(!error){ homeData.value = data; - console.log(data) } loading.value = false; } diff --git a/src/views/home/modules/template10.vue b/src/views/home/modules/template10.vue index dd4bcda..9a30ceb 100644 --- a/src/views/home/modules/template10.vue +++ b/src/views/home/modules/template10.vue @@ -5,7 +5,7 @@ import { useThemeStore } from '@/store/modules/theme'; import { useRouterPush } from '@/hooks/common/router'; import { getColorWithOpacity, tagTextColor, tagBgColor, tagBorderColor } from '@/utils/common'; import { systemConfigApi } from "@/service/api/system"; -import { homeProfessionalApi } from "@/service/api/statistics"; +import { homeNonApproverApi } from "@/service/api/statistics"; const themeStore = useThemeStore(); const { routerPushByKey } = useRouterPush(); @@ -23,22 +23,10 @@ let timer: any = null; // 首页数据 const homeData = ref(null); -// 跳转变更申请页面、变更台账、我的任务、发起变更 -const jumpTo = (key: string,qid:number = 0) => { - if(key==='my_initiatechange' && qid){ - routerPushByKey(key,{ query: { id: qid.toString() } }); - }else if(key==='details_closedoc' && qid){ - routerPushByKey(key,{ query: { id: qid.toString(),key:'home' } }); - }else if(key==='details_index' && qid){ - routerPushByKey("details_index",{ query: { id: qid.toString(),key:'home' } }); - }else{ +// 跳转页面 +const jumpTo = (key: string) => { routerPushByKey(key as any); - } } -// 打开审批详情 -const openDetail = (row: any) => { - routerPushByKey("details_approval",{ query: { id: row?.change_id?.toString(),key:'home' } }); -}; // 获取当前时间字符串 const getCurrentTimeStr = () => { @@ -63,7 +51,7 @@ const tick = () => { // 获取数据 const getData = async () => { loading.value = true; - const {data,error} = await homeProfessionalApi(); + const {data,error} = await homeNonApproverApi(); if(!error){ console.log(data) homeData.value = data; @@ -150,7 +138,7 @@ onUnmounted(() => {
@@ -170,7 +158,7 @@ onUnmounted(() => {
@@ -190,7 +178,7 @@ onUnmounted(() => {
@@ -214,14 +202,14 @@ onUnmounted(() => {

变更动态

全厂 · 按状态更新时间倒序 · 只读

- + 变更台账
-