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) }} - +