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(() => {

变更动态

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

- + 变更台账
-