From 74a1734ab731c7de757798a2ba98e6680e4d6f70 Mon Sep 17 00:00:00 2001 From: jiangzhe <244140623@qq.com> Date: Wed, 29 May 2024 10:14:28 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../activity/component/schedule/index.vue | 29 ++++++++++++----- src/views/archive/information/index.vue | 31 ++++++++++++++----- src/views/archive/interveneRecord/index.vue | 7 ----- src/views/archive/warnRecord/index.vue | 18 +++++++---- 4 files changed, 57 insertions(+), 28 deletions(-) diff --git a/src/views/activity/component/schedule/index.vue b/src/views/activity/component/schedule/index.vue index 158c28d..3f6cfed 100644 --- a/src/views/activity/component/schedule/index.vue +++ b/src/views/activity/component/schedule/index.vue @@ -48,14 +48,15 @@ - + + check-strictly @node-click="handleDeptClick" /> 搜索 @@ -72,8 +73,8 @@ @@ -107,6 +108,9 @@ const batchNo = props.batchNo const sessionName = props.sessionName const scaleList = ref([]) +const currentScaleName = ref('') +const currentDeptName = ref('') + const total = ref(10) const completeTableData = ref([]) @@ -127,6 +131,8 @@ const getTreeSelect = async () => { if (res.data && res.data.length > 0) { queryParams.value.deptId = res.data[0].id; + + currentDeptName.value = res.data[0].label } } @@ -143,10 +149,10 @@ async function getScalePublishList() { if (scaleIds.length) { queryParams.value.scaleId = scaleIds[0] + currentScaleName.value = scaleNames[0] getList() } - } function handleQuery() { @@ -167,12 +173,19 @@ async function getList() { total.value = res.total } -function exportUncomplete() { - console.log(batchNo, sessionName); +function handleScaleChange(val: any) { + const current = scaleList.value.find(item => item.scaleId === val) + currentScaleName.value = current.scaleName +} +function handleDeptClick(dept: any) { + currentDeptName.value = dept.label +} + +function exportUncomplete() { proxy?.download('scale/publish/evaluation/undone/export', { batchNo, sessionName - }, `${sessionName}.xlsx`) + }, `${sessionName}-${currentScaleName.value}-${currentDeptName.value}.xlsx`) } diff --git a/src/views/archive/information/index.vue b/src/views/archive/information/index.vue index 9c8c288..8fd32e8 100644 --- a/src/views/archive/information/index.vue +++ b/src/views/archive/information/index.vue @@ -139,8 +139,12 @@ {{ handleSituation(scope.row.situation) }} - +