From 9a61e46d96536f3299e57f7259ae1c9972256ec6 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期二, 30 九月 2025 09:42:09 +0800
Subject: [PATCH] 1. 隐藏未完成的账户匹配页面 2. 根据第三方新的接口文档修改接口url地址
---
src/views/fysp/data-product/middle-data-product/ProdEvaluationSummary.vue | 91 ++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 89 insertions(+), 2 deletions(-)
diff --git a/src/views/fysp/data-product/middle-data-product/ProdEvaluationSummary.vue b/src/views/fysp/data-product/middle-data-product/ProdEvaluationSummary.vue
index 21ce1c9..d234759 100644
--- a/src/views/fysp/data-product/middle-data-product/ProdEvaluationSummary.vue
+++ b/src/views/fysp/data-product/middle-data-product/ProdEvaluationSummary.vue
@@ -6,6 +6,57 @@
@onStep3="onStep3"
:loading="loading"
>
+ <template #step2="{ contentHeight }">
+ <el-table
+ id="prod-evaluation-summary-table"
+ :data="tableData"
+ v-loading="loading"
+ :height="contentHeight + 'px'"
+ table-layout="fixed"
+ :show-overflow-tooltip="true"
+ size="small"
+ border
+ >
+ <el-table-column fixed="left" prop="index" label="鎺掑悕" width="50">
+ </el-table-column>
+ <el-table-column prop="townName" label="琛楅晣" min-width="110" />
+ <el-table-column
+ prop="validSceneCount"
+ label="寤鸿涓伐鍦版暟"
+ min-width="90"
+ >
+ </el-table-column>
+ <el-table-column
+ prop="evaluationCount"
+ label="璇勪及鐐规"
+ min-width="50"
+ />
+ <el-table-column label="闃叉不瑙勮寖鎬х偣娆¤瘎浼�" min-width="60">
+ <el-table-column prop="evalLevelACount" label="瑙勮寖" min-width="50" />
+ <el-table-column
+ prop="evalLevelBCount"
+ label="鍩烘湰瑙勮寖"
+ min-width="50"
+ />
+ <el-table-column
+ prop="evalLevelCCount"
+ label="涓嶈鑼�"
+ min-width="50"
+ />
+ <el-table-column
+ prop="evalLevelDCount"
+ label="涓ラ噸涓嶈鑼�"
+ min-width="50"
+ />
+ </el-table-column>
+ <el-table-column
+ prop="evalLevelRatioAB"
+ label="瑙勮寖鍙婂熀鏈鑼冭瘎浼板崰姣�"
+ min-width="90"
+ :formatter="ratioFormat"
+ />
+ </el-table>
+ </template>
</BaseProdProcess>
</template>
<script setup>
@@ -17,12 +68,48 @@
const { active, changeActive } = useProdStepChange();
const loading = ref(false);
+const tableData = ref([]);
-function onStep1(opt) {}
+function onStep1(opt) {
+ loading.value = true;
+ dataprodmiddleApi
+ .fetchEvaluationByArea(opt)
+ .then((res) => {
+ if (res.success) {
+ tableData.value = res.data
+ .sort((a, b) => {
+ return b.evalLevelRatioAB - a.evalLevelRatioAB;
+ })
+ .map((item, index) => {
+ return {
+ ...item,
+ index: index + 1
+ };
+ });
+ }
+ changeActive();
+ })
+ .finally(() => {
+ loading.value = false;
+ });
+}
function onStep2() {
changeActive();
}
-function onStep3(val) {}
+function onStep3(val) {
+ if (val.downloadType == '1') {
+ loading.value = true;
+ conversionFromTable(
+ 'prod-evaluation-summary-table',
+ '鎵皹姹℃煋闂绫诲瀷鍗犳瘮娓呭崟'
+ );
+ loading.value = false;
+ }
+}
+
+function ratioFormat(row, column, cellValue, index) {
+ return Math.round(cellValue * 1000) / 10 + '%';
+}
</script>
--
Gitblit v1.9.3