+
{
});
});
-
-
+
diff --git a/frontend/src/views/DataQueryMenuModule/components/monitorData/Export/index.vue b/frontend/src/views/DataQueryMenuModule/components/monitorData/Export/index.vue
index 9cf4ad31..6471fd71 100644
--- a/frontend/src/views/DataQueryMenuModule/components/monitorData/Export/index.vue
+++ b/frontend/src/views/DataQueryMenuModule/components/monitorData/Export/index.vue
@@ -97,7 +97,11 @@
/>
-
+
日统计表
小时表
@@ -250,7 +254,7 @@
导出
-
+
@@ -361,7 +365,7 @@ const loadStationOptions = async (rvcds?: string[]) => {
const initDone = ref(false);
watch(
() => JidiSelectEventStore.jidiData,
- (val) => {
+ val => {
if (initDone.value) return;
const data = (val || []).filter((item: any) => item.wbsCode !== 'all');
if (data.length === 0) return;
@@ -403,6 +407,12 @@ const loadLyOptions = async () => {
lyLoading.value = false;
}
};
+const dataOptions = ref([
+ { itemCode: 'month', dictName: '月度报表' },
+ { itemCode: 'year', dictName: '年度报表' },
+ { itemCode: 'day', dictName: '日度报表' },
+ { itemCode: 'hour', dictName: '小时报表' }
+]);
const getExstatus = async (taskId, exportParams) => {
let res1: any = await qgcExportstatus({ taskId: taskId });
if (res1.status == 'PROCESSING') {
@@ -410,12 +420,16 @@ const getExstatus = async (taskId, exportParams) => {
getExstatus(taskId, exportParams);
}, 5000);
} else if (res1.status == 'DONE') {
- const blob = await qgcExportdownload({ taskId: taskId, ...exportParams });
+ const blob: any = await qgcExportdownload({
+ taskId: taskId,
+ ...exportParams
+ });
// 触发浏览器下载
const url = window.URL.createObjectURL(blob);
const a = document.createElement('a');
a.href = url;
- a.download = `export_${taskId}.zip`;
+ const matched = dataOptions.value.find((item:any) => item.itemCode == formData.timeDimension);
+ a.download =`${matched.dictName}.zip`;
a.click();
window.URL.revokeObjectURL(url);
exportLoading.value = false;
@@ -474,7 +488,7 @@ const handleExport = async () => {
} catch (e) {
message.error('导出失败');
} finally {
- exportLoading.value = false;
+ // exportLoading.value = false;
}
};
const dataFieldOption = ref([]);
diff --git a/frontend/src/views/DataQueryMenuModule/conventionalHydropower.vue b/frontend/src/views/DataQueryMenuModule/conventionalHydropower.vue
index 55acd99a..5a9941c5 100644
--- a/frontend/src/views/DataQueryMenuModule/conventionalHydropower.vue
+++ b/frontend/src/views/DataQueryMenuModule/conventionalHydropower.vue
@@ -11,12 +11,6 @@
-
-
-
-
-
-
@@ -26,9 +20,6 @@
-
-
-
@@ -41,27 +32,12 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-