统计分析

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',
method: 'post',
data: data,
timeout: 60 * 1000,
})
}

View File

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