diff --git a/src/views/home/modules/template4.vue b/src/views/home/modules/template4.vue index c749beb..dc1736d 100644 --- a/src/views/home/modules/template4.vue +++ b/src/views/home/modules/template4.vue @@ -23,12 +23,6 @@ let timer: any = null; // 首页数据 const homeData = ref(null); -const highRisk = [ - { title: "聚合反应温度控制上限调整", why: "涉及工艺安全边界,建议参与 HAZOP 分析" }, - { title: "R-101 搅拌提速至 180rpm", why: "搅拌轴强度与密封形式需校核" }, -]; - - // 跳转变更申请页面、变更台账、我的任务、发起变更 const jumpTo = (key: string,qid:number = 0) => { if(key==='my_initiatechange' && qid){ @@ -75,7 +69,6 @@ const getData = async () => { loading.value = true; const {data,error} = await homeProfessionalApi(); if(!error){ - console.log(data) homeData.value = data; } loading.value = false; @@ -377,7 +370,7 @@ onUnmounted(() => { @@ -389,7 +382,7 @@ onUnmounted(() => { diff --git a/src/views/home/modules/template6.vue b/src/views/home/modules/template6.vue index 65558b5..ca69a5c 100644 --- a/src/views/home/modules/template6.vue +++ b/src/views/home/modules/template6.vue @@ -28,30 +28,14 @@ let timer: any = null; // 首页数据 const homeData = ref(null); -const highRisk = [ - { title: "聚合反应温度控制上限调整", why: "涉及工艺安全边界,建议参与 HAZOP 分析" }, - { title: "R-101 搅拌提速至 180rpm", why: "搅拌轴强度与密封形式需校核" }, -]; -const LEVEL_UPGRADES = [ - { id: "MOC-2026-R01-0036", title: "聚合反应温度控制上限调整", change: "一般 → 重要", reason: "涉及聚合工艺温度安全边界", date: "2026-07-26" }, - { id: "MOC-2026-R02-0027", title: "冷冻机组载冷剂更换", change: "一般 → 重要", reason: "与检修交叉作业,风险叠加", date: "2026-07-10" }, -]; - - -// 跳转变更申请页面、变更台账、我的任务、发起变更 +// 跳转页面 const jumpTo = (key: string,qid:number = 0) => { - if(key==='my_initiatechange' && qid){ - routerPushByKey(key,{ query: { id: qid.toString() } }); - }else if(key==='details_closedoc' && qid){ + if(key==='details_approval' && qid){ routerPushByKey(key,{ query: { id: qid.toString(),key:'home' } }); }else{ routerPushByKey(key as any); } } -// 打开审批详情 -const openDetail = (row: any) => { - routerPushByKey("details_approval",{ query: { id: row?.change_id?.toString(),key:'home' } }); -}; // 获取当前时间字符串 const getCurrentTimeStr = () => { @@ -98,7 +82,6 @@ const getData = async () => { loading.value = true; const {data,error} = await homeSafeApi(); if(!error){ - console.log(data) homeData.value = data; } loading.value = false; @@ -163,10 +146,10 @@ onUnmounted(() => {

{{clock}}

- + 投用与验收总览 - + 全厂风险看板 @@ -187,14 +170,15 @@ onUnmounted(() => {

待我审批

-

安全审查节点 · 与我的任务同源

+

其中超期 {{homeData?.todo_sign?.overdue_count}} 项 · 请优先处理

+

安全审查节点 · 与我的任务同源

@@ -202,12 +186,12 @@ onUnmounted(() => {
@@ -222,12 +206,12 @@ onUnmounted(() => {
@@ -242,19 +226,20 @@ onUnmounted(() => {

临时变更到期

-

含超期 1 起 · 红色预警

+

含超期 {{homeData?.temp_expiry_scope?.overdue_count}} 项 · 红色预警

+

无超期

@@ -271,14 +256,14 @@ onUnmounted(() => {

审批待办

安全审查 · 审批时自动展示相关附件

- + 我的任务
-