| | |
| | | } |
| | | |
| | | let seriesData = [] |
| | | if (data.lastTime) { |
| | | if (data.predictTime) { |
| | | seriesData.push({ |
| | | name: '', |
| | | data: [null], |
| | |
| | | width: 2 |
| | | }, |
| | | data: [{ |
| | | xAxis: data.lastTime |
| | | xAxis: data.predictTime |
| | | }], |
| | | label: { |
| | | normal: { |
| | | formatter: data.lastTime |
| | | formatter: data.predictTime |
| | | } |
| | | }, |
| | | symbol: ['circle', 'none'], |
| | |
| | | const exportLoading = ref(false) |
| | | const handleExport = async () => { |
| | | chartParams.itemId = dataForm.value.id; |
| | | chartParams.startTime = dataForm.value.startTime; |
| | | chartParams.endTime = dataForm.value.endTime; |
| | | chartParams.startTime = dataForm.value.startTime?dataForm.value.startTime:""; |
| | | chartParams.endTime = dataForm.value.endTime?dataForm.value.endTime:""; |
| | | try { |
| | | // 导出的二次确认 |
| | | await message.exportConfirm() |
| | | // 发起导出 |
| | | exportLoading.value = true |
| | | /*const data = await DaPoint.exportDaPointValue(chartParams) |
| | | download.excel(data, dataForm.value.pointName + '.xls')*/ |
| | | const data = await McsApi.exportPredictValue(chartParams) |
| | | download.excel(data, dataForm.value.itemName + '.xls') |
| | | } catch { |
| | | } finally { |
| | | exportLoading.value = false |