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