修改稳态告警统计,异常数据清洗详情

This commit is contained in:
GGJ
2025-12-24 11:22:57 +08:00
parent cf7e5fa991
commit 5f4f75d9dd
6 changed files with 270 additions and 84 deletions

View File

@@ -77,7 +77,7 @@ const TableHeaderRef = ref()
const dotList: any = ref({})
const Template: any = ref({})
const reportForm: any = ref('')
const name = ref('')
const templatePolicy: any = ref([])
const reportFormList: any = ref([
{
@@ -100,6 +100,7 @@ const tableStore = new TableStore({
beforeSearchFun: () => {
tableStore.table.params.tempId = Template.value.id
tableStore.table.params.lineId = dotList.value.id
name.value = dotList.value.name
},
loadCallback: () => {
tableStore.table.data.forEach((item: any) => {
@@ -162,7 +163,15 @@ const handleNodeClick = (data: any, node: any) => {
}
const exportEvent = () => {
exportExcel(luckysheet.getAllSheets(), '统计报表下载')
// 基础获取
const now = new Date()
const year = now.getFullYear() // 4位年份
const month = now.getMonth() + 1 // 月份0-11需+1
const day = now.getDate() // 日期1-31
// 格式化YYYY - MM - DD补零
const formattedDate = `${year}${String(month).padStart(2, '0')}${String(day).padStart(2, '0')}`
exportExcel(luckysheet.getAllSheets(), name.value + formattedDate)
}
const exportReport = () => {
loading.value = true