From bd683ea1c2b8025d0087d84d0e01c963cb214732 Mon Sep 17 00:00:00 2001 From: duwenyuan <15600000461@163.com> Date: Mon, 20 Jul 2026 10:15:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=88=86=E6=9E=90=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E6=B7=BB=E5=8A=A0=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/sjfx/five/index.vue | 6 +++++- src/pages/sjfx/four/index.vue | 5 ++++- src/pages/sjfx/six/index.vue | 5 +++-- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/pages/sjfx/five/index.vue b/src/pages/sjfx/five/index.vue index ff66b37b..fc303a98 100644 --- a/src/pages/sjfx/five/index.vue +++ b/src/pages/sjfx/five/index.vue @@ -43,6 +43,7 @@ const form = reactive({ dataSource: '', nuclideName: '', station: '', + stationIds: [] as any[], startDate: '', endDate: '', createTime: [] as string[], @@ -91,6 +92,7 @@ function handleSampleTypeChange() { return; } form.station = ''; + form.stationIds = []; form.nuclideName = ''; // 切换类型时通常也要清空核素 getStation(); getNuclide(); @@ -245,6 +247,7 @@ async function handleSearch() { await formRef.value.validate((valid) => { if (valid) { + form.stationIds = form.station ? [form.station] : []; getList(); } }); @@ -400,7 +403,8 @@ function initCharts() { const exportChartsData = async () => { try { console.log('开始下载...'); - form.type = 'nuclideTime' + form.type = 'nuclideTime'; + form.stationIds = form.station ? [form.station] : []; const { filename, blob } = await exportData(form); // const filename = '模版' console.log('文件信息:', { diff --git a/src/pages/sjfx/four/index.vue b/src/pages/sjfx/four/index.vue index 8c6b63bd..abf58697 100644 --- a/src/pages/sjfx/four/index.vue +++ b/src/pages/sjfx/four/index.vue @@ -93,6 +93,7 @@ function handleSampleTypeChange() { return; } form.value.station = ''; + form.value.stationIds = []; getStation(); getNuclide(); } @@ -106,6 +107,7 @@ function getList() { return; formEl.validate((valid, fields) => { if (valid) { + form.value.stationIds = [form.value.station]; getActConcIntvl(form.value, (res) => { // const data = await fetch('../../../../public/mock/data.json'); // const res = await data.json(); @@ -378,7 +380,8 @@ function renderChart(series) { const exportChartsData = async () => { try { console.log('开始下载...'); - form.value.type = 'sampleRangeFreq' + form.value.type = 'sampleRangeFreq'; + form.value.stationIds = form.value.station ? [form.value.station] : []; const { filename, blob } = await exportData(form.value); // const filename = '模版' console.log('文件信息:', { diff --git a/src/pages/sjfx/six/index.vue b/src/pages/sjfx/six/index.vue index 3b9bbec5..2239b9ed 100644 --- a/src/pages/sjfx/six/index.vue +++ b/src/pages/sjfx/six/index.vue @@ -345,8 +345,9 @@ function renderChart() { const exportChartsData = async () => { try { console.log('开始下载...'); - form.type = 'nuclideCompare' - const { filename, blob } = await exportData(form); + form.value.type = 'nuclideCompare'; + const payload = JSON.parse(JSON.stringify(form.value)); + const { filename, blob } = await exportData(payload); // const filename = '模版' console.log('文件信息:', { filename,