统计分析

This commit is contained in:
geting 2024-12-02 10:44:19 +08:00
parent 09a71eefd3
commit 0a3d16b192
2 changed files with 12 additions and 0 deletions

View File

@ -12,6 +12,7 @@ export const historyReq = (data: any) => {
url: '/api/data/history', url: '/api/data/history',
method: 'post', method: 'post',
data: data, data: data,
timeout: 60 * 1000,
}) })
} }

View File

@ -135,6 +135,9 @@ const switchTime = (index: number) => {
} }
times.splice(index, 1) times.splice(index, 1)
customName.splice(index, 1) customName.splice(index, 1)
customName.forEach((item: any, index: number, arr: any) => {
arr[index] = statAnalysisSelect.attributes + String(index + 1)
})
} }
const timechange = (value: any) => { const timechange = (value: any) => {
if (times.length) { if (times.length) {
@ -148,11 +151,18 @@ const timechange = (value: any) => {
return return
} else { } else {
times.push(value) times.push(value)
customName.push(statAnalysisSelect.attributes + times.length) customName.push(statAnalysisSelect.attributes + times.length)
customName.forEach((item: any, index: number, arr: any) => {
arr[index] = statAnalysisSelect.attributes + String(index + 1)
})
} }
} else { } else {
times.push(value) times.push(value)
customName.push(statAnalysisSelect.attributes + times.length) customName.push(statAnalysisSelect.attributes + times.length)
customName.forEach((item: any, index: number, arr: any) => {
arr[index] = statAnalysisSelect.attributes + String(index + 1)
})
} }
} }
@ -160,6 +170,7 @@ const showTime = ref(false)
const clearList = () => { const clearList = () => {
times.length = 0 times.length = 0
time.value = [] time.value = []
customName.length = 0
} }
const iotModelId = ref('') const iotModelId = ref('')