From 3229be76ae2fe7aa895dd995ebccb4d74f9e888e Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期一, 02 二月 2026 11:21:31 +0800
Subject: [PATCH] Merge branch 'dev_New' of http://114.132.189.42:9002/r/product-inventory-management into dev_New
---
src/views/reportAnalysis/reportManagement/index.vue | 8 ++++----
src/api/reportAnalysis/qualityReport.js | 4 ++--
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/api/reportAnalysis/qualityReport.js b/src/api/reportAnalysis/qualityReport.js
index a179a5f..66a7540 100644
--- a/src/api/reportAnalysis/qualityReport.js
+++ b/src/api/reportAnalysis/qualityReport.js
@@ -43,10 +43,10 @@
}
// 鑾峰彇鐑偣妫�娴嬫寚鏍囩粺璁�
-export function getTopParameters(inspectType) {
+export function getTopParameters(modelType) {
return request({
url: '/qualityReport/getTopParameters',
method: 'get',
- params: { inspectType }
+ params: { modelType }
})
}
diff --git a/src/views/reportAnalysis/reportManagement/index.vue b/src/views/reportAnalysis/reportManagement/index.vue
index 343a2c2..dc9d486 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;
--
Gitblit v1.9.3