历史数据:性能优化
This commit is contained in:
parent
456b7f8aa8
commit
0546be6cf3
@ -300,6 +300,7 @@ const changeTemplate = () => {
|
|||||||
selectRowList.value = selectList
|
selectRowList.value = selectList
|
||||||
}
|
}
|
||||||
tableData.value = []
|
tableData.value = []
|
||||||
|
pageSetting.total = 0
|
||||||
}
|
}
|
||||||
|
|
||||||
const delTemplate = (id: string) => {
|
const delTemplate = (id: string) => {
|
||||||
@ -324,7 +325,7 @@ const openMeasure = () => {
|
|||||||
selectWindBlower.value = JSON.parse(JSON.stringify(submitParams.windBlowerList))
|
selectWindBlower.value = JSON.parse(JSON.stringify(submitParams.windBlowerList))
|
||||||
multipleSelection.value = JSON.parse(JSON.stringify(submitParams.column))
|
multipleSelection.value = JSON.parse(JSON.stringify(submitParams.column))
|
||||||
const selectList: any = []
|
const selectList: any = []
|
||||||
multipleSelection.value.forEach((item: { label: string; prop: string; id: string }) => {
|
multipleSelection.value.forEach((item: { label: string; prop: string; id: string; highSpeed: 0 | 1 }) => {
|
||||||
const realProp = item.prop.split('--')
|
const realProp = item.prop.split('--')
|
||||||
const exist = selectList.find((v: any) => v.id === item.id)
|
const exist = selectList.find((v: any) => v.id === item.id)
|
||||||
if (exist) {
|
if (exist) {
|
||||||
@ -334,6 +335,7 @@ const openMeasure = () => {
|
|||||||
id: item.id,
|
id: item.id,
|
||||||
attributeCode: realProp[0],
|
attributeCode: realProp[0],
|
||||||
attributeName: item.label,
|
attributeName: item.label,
|
||||||
|
highSpeed: item.highSpeed,
|
||||||
[realProp[1]]: true,
|
[realProp[1]]: true,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -1011,6 +1013,7 @@ const submitPointDialog = () => {
|
|||||||
submitParams.column = JSON.parse(JSON.stringify(multipleSelection.value))
|
submitParams.column = JSON.parse(JSON.stringify(multipleSelection.value))
|
||||||
tableColumn.value = [...oririnTableColumn, ...submitParams.column]
|
tableColumn.value = [...oririnTableColumn, ...submitParams.column]
|
||||||
tableData.value = []
|
tableData.value = []
|
||||||
|
pageSetting.total = 0
|
||||||
pointDialogVisible.value = false
|
pointDialogVisible.value = false
|
||||||
}
|
}
|
||||||
const cancelPointDialog = () => {
|
const cancelPointDialog = () => {
|
||||||
@ -1086,6 +1089,7 @@ const exportExcel = () => {
|
|||||||
const checkOnlyHighSpeed = (curData: selectData) => {
|
const checkOnlyHighSpeed = (curData: selectData) => {
|
||||||
if (searchData.interval === 'NONE' && multipleSelection.value.length) {
|
if (searchData.interval === 'NONE' && multipleSelection.value.length) {
|
||||||
const firstData = multipleSelection.value[0]
|
const firstData = multipleSelection.value[0]
|
||||||
|
console.log('highSpeed', curData.highSpeed, firstData.highSpeed, firstData)
|
||||||
|
|
||||||
if (curData.highSpeed !== firstData.highSpeed) {
|
if (curData.highSpeed !== firstData.highSpeed) {
|
||||||
curData.interpolation = false
|
curData.interpolation = false
|
||||||
|
Loading…
Reference in New Issue
Block a user