|
|
@ -73,7 +73,8 @@ import * as EquipmentItemApi from "@/api/eam/equipmentAccounts"; |
|
|
|
import {ToolAccounts} from "@/views/eam/toolAccounts/toolAccounts.data"; |
|
|
|
import * as ToolItemApi from "@/api/eam/toolAccounts"; |
|
|
|
import AudiForm from '@/views/eam/planInspection/audiForm.vue' |
|
|
|
|
|
|
|
import { usePageLoading } from '@/hooks/web/usePageLoading' |
|
|
|
const { loadStart, loadDone } = usePageLoading() |
|
|
|
defineOptions({ name: 'PlanInspection' }) |
|
|
|
|
|
|
|
const message = useMessage() // 消息弹窗 |
|
|
@ -343,18 +344,17 @@ const onChange = (field, item) => { |
|
|
|
} |
|
|
|
|
|
|
|
/** 导出按钮操作 */ |
|
|
|
const exportLoading = ref(false) // 导出的加载中 |
|
|
|
const handleExport = async () => { |
|
|
|
try { |
|
|
|
// 导出的二次确认 |
|
|
|
await message.exportConfirm() |
|
|
|
// 发起导出 |
|
|
|
exportLoading.value = true |
|
|
|
loadStart() |
|
|
|
const data = await PlanInspectionApi.exportPlanInspection(tableObject.params) |
|
|
|
download.excel(data, '巡检计划.xlsx') |
|
|
|
} catch { |
|
|
|
} finally { |
|
|
|
exportLoading.value = false |
|
|
|
loadDone() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|