fix: 将导出列表分成三个模块
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 4m40s

This commit is contained in:
luo
2026-07-09 15:20:28 +08:00
parent f27bbacb1e
commit c1a7118d35
19 changed files with 479 additions and 86 deletions

View File

@@ -37,6 +37,7 @@
import { ElMessage } from 'element-plus'
import { ExportTaskService } from '@/api/modules'
import { useAuth } from '@/composables/useAuth'
import { getExportTaskSceneName } from '@/config/constants'
import type { CreateExportTaskResponse, ExportTaskFormat, ExportTaskScene } from '@/types/api'
const props = withDefaults(
@@ -73,15 +74,7 @@
set: (value: boolean) => emit('update:modelValue', value)
})
const sceneName = computed(() => {
const sceneMap: Record<ExportTaskScene, string> = {
device: '设备管理',
iot_card: 'IoT卡管理',
order: '订单管理'
}
return sceneMap[props.scene]
})
const sceneName = computed(() => getExportTaskSceneName(props.scene))
watch(
() => props.modelValue,