From b186f5b20c4f83773f51786da0cd3e85130540c2 Mon Sep 17 00:00:00 2001
From: yyb <995253665@qq.com>
Date: 星期五, 22 五月 2026 16:32:01 +0800
Subject: [PATCH] feat(审批模板): 增强审批流程编辑器功能,新增只读模式——为 TemplateFlowEditor 添加了只读属性,以在流程不可编辑时防止进行修改。——更新审批模板表单部分,使其能够根据 flowEditable 状态条件性地显示可编辑选项。——优化了用户反馈机制,通过动态消息显示审批流程是否可进行修改。

---
 src/views/reportAnalysis/reportManagement/index.vue |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/src/views/reportAnalysis/reportManagement/index.vue b/src/views/reportAnalysis/reportManagement/index.vue
index 343a2c2..cd8ddd5 100644
--- a/src/views/reportAnalysis/reportManagement/index.vue
+++ b/src/views/reportAnalysis/reportManagement/index.vue
@@ -302,17 +302,17 @@
 };
 
 const getYearlyStatValue = (type, field) => {
-  const stat = yearlyPassRateData.value.find(item => item.inspectType === type);
+  const stat = yearlyPassRateData.value.find(item => item.modelType === type);
   return stat ? stat[field] : 0;
 };
 
 const getInspectStatValue = (type, field) => {
-  const stat = inspectStatisticsData.value.find(item => item.inspectType === type);
+  const stat = inspectStatisticsData.value.find(item => item.modelType === type);
   return stat ? stat[field] : 0;
 };
 
 const getPassRateStatValue = (type, field) => {
-  const stat = passRateStatisticsData.value.find(item => item.inspectType === type);
+  const stat = passRateStatisticsData.value.find(item => item.modelType === type);
   if (stat) {
     if (field === 'completionRate' || field === 'passRate') {
       return stat[field] ? Number(stat[field]).toFixed(0) + '%' : '0%';
@@ -387,7 +387,7 @@
 
 const fetchTopParametersData = async () => {
   try {
-    const typeMap = { raw: 0, semi: 1, final: 2 };
+    const typeMap = { raw: 1, semi: 2, final: 3 };
     const res = await getTopParameters(typeMap[activeTab.value]);
     if (res.code === 200) {
       topParametersData.value = res.data;
@@ -912,7 +912,6 @@
 <style scoped>
 .report-management {
   padding: 20px;
-  background-color: #f5f5f5;
   min-height: 100vh;
   /* height: 87vh;
   overflow: hidden; */

--
Gitblit v1.9.3