修改测试问题
This commit is contained in:
@@ -377,6 +377,7 @@ import {
|
||||
getRawData
|
||||
} from '@/api/cs-device-boot/EquipmentDelivery'
|
||||
import { deviceHisData, deviceRtData, realTimeData, getTestData } from '@/api/cs-device-boot/csGroup'
|
||||
import { buildExportFileName } from '@/utils/echartMethod'
|
||||
import { ref, reactive, onMounted, onUnmounted, inject, nextTick, onBeforeUnmount } from 'vue'
|
||||
import { ElMessage } from 'element-plus'
|
||||
import DatePicker from '@/components/form/datePicker/index.vue'
|
||||
@@ -1372,7 +1373,11 @@ const downloadTxt = () => {
|
||||
// 创建 <a> 标签并触发下载
|
||||
const link = document.createElement('a')
|
||||
link.href = url
|
||||
link.download = '实时数据.txt' // 文件名
|
||||
link.download = buildExportFileName({
|
||||
subject: (TrendList.value as any)?.name,
|
||||
feature: '实时数据',
|
||||
ext: 'txt'
|
||||
})
|
||||
link.click()
|
||||
|
||||
// 释放 URL 对象
|
||||
|
||||
Reference in New Issue
Block a user