From 8a3046817d6bf207f38accd0cd6b65d770db3bea Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期五, 12 九月 2025 17:20:08 +0800 Subject: [PATCH] 1. 修改静安第三方接口url地址 2. 修改静安新增设备匹配功能中,上传的经纬度信息为我方的信息 --- 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