修改测试问题

This commit is contained in:
guanj
2026-06-16 08:34:45 +08:00
parent 1c01fe5ae1
commit d9dfd804c5
63 changed files with 5289 additions and 3842 deletions

View File

@@ -46,6 +46,7 @@ import { ref, onMounted, onUnmounted, provide, reactive, watch, h, computed, nex
import TableStore from '@/utils/tableStore'
import { exportExcel } from '@/views/govern/reportForms/export.js'
import { destroyLuckysheet, renderLuckysheetReport } from '@/utils/luckysheetHelper'
import { buildExportBaseName } from '@/utils/echartMethod'
import TableHeader from '@/components/table/header/index.vue'
import { querySysExcel } from '@/api/harmonic-boot/luckyexcel'
import { getListByIds } from '@/api/harmonic-boot/cockpit/cockpit'
@@ -72,6 +73,8 @@ const templateList = ref([])
const idList = ref()
const exportSubjectName = ref('')
const handleNodeClick = async (data: any) => {
if (templateList.value.length == 0) {
await querySysExcel({}).then(res => {
@@ -83,6 +86,8 @@ const handleNodeClick = async (data: any) => {
}
if (data?.level == 3 || data?.level == 2) {
exportSubjectName.value = data.name || ''
tableStore.exportName = { subject: exportSubjectName.value, feature: '治理效果报表' }
tableStore.table.params.sensitiveUserId = data.id
await tableStore.index()
} else {
@@ -104,7 +109,14 @@ const templateListData = () => {
}
// 下载表格
const downloadExcel = () => {
exportExcel(luckysheet.getAllSheets(), '治理效果报表')
exportExcel(
luckysheet.getAllSheets(),
buildExportBaseName({
subject: exportSubjectName.value,
feature: '治理效果报表',
date: tableStore.table.params.searchEndTime || tableStore.table.params.searchBeginTime
})
)
}
onMounted(() => {