From c2fd0bf273c19874d7f1a4f6f6a304ac723b42e3 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期一, 22 九月 2025 09:50:48 +0800
Subject: [PATCH] 2025.9.22 扬尘月度简报分解数据产品(基础-现场巡查、中间-月度巡查简报)完成

---
 src/views/fysp/data-product/base-data-product/PordProblemRecurrence.vue |   32 ++++++++++++++++++++++++--------
 1 files changed, 24 insertions(+), 8 deletions(-)

diff --git a/src/views/fysp/data-product/base-data-product/PordProblemRecurrence.vue b/src/views/fysp/data-product/base-data-product/PordProblemRecurrence.vue
index 72291e6..b5ee0fe 100644
--- a/src/views/fysp/data-product/base-data-product/PordProblemRecurrence.vue
+++ b/src/views/fysp/data-product/base-data-product/PordProblemRecurrence.vue
@@ -1,5 +1,6 @@
 <template>
   <FYTable
+    id="fyTable"
     @search="onSearch"
     :data="showData"
     :pagination="false"
@@ -34,7 +35,14 @@
         <el-radio :value="2">鎸夐棶棰樼被鍨嬬粺璁�</el-radio>
       </el-radio-group>
     </template>
-    <template #buttons> </template>
+    <template #buttons>
+      <FYDownloadTableButton
+        label="涓嬭浇娓呭崟"
+        table-id="fyTable"
+        :file-name="fileName"
+        :disabled="downloadDisabled"
+      ></FYDownloadTableButton>
+    </template>
     <template #table-column="{ size }">
       <!-- <el-table-column fixed="left" label="搴忓彿" width="53">
         <template #default="{ row }">
@@ -58,14 +66,9 @@
       </el-table-column>
       <el-table-column prop="townName" label="琛楅晣" width="110">
       </el-table-column>
-      <el-table-column prop="problemType" label="闂绫诲瀷" width="110">
+      <el-table-column prop="problemType" label="闂绫诲瀷" width="170">
       </el-table-column>
-      <el-table-column
-        v-if="radio == 1"
-        prop="problemName"
-        label="闂鍚嶇О"
-        width="200"
-      >
+      <el-table-column v-if="radio == 1" prop="problemName" label="闂鍚嶇О">
       </el-table-column>
       <el-table-column prop="proNum" label="闂鏁�" width="70">
       </el-table-column>
@@ -134,6 +137,19 @@
   return res;
 });
 
+const fileName = computed(() => {
+  const { locations, scenetype, timeArr } = formSearch.value;
+  return `${locations.dName}${dayjs(timeArr[0]).format(
+    'YYYY骞碝M鏈圖D鏃�'
+  )}鑷�${dayjs(timeArr[1]).format('YYYY骞碝M鏈圖D鏃�')}${
+    scenetype.label
+  }闂澶嶅彂娓呭崟`;
+});
+
+const downloadDisabled = computed(() => {
+  return tableData.value.length == 0;
+});
+
 function onSearch(page, callback) {
   fetchProbRecurrence().finally(() => callback());
 }

--
Gitblit v1.9.3