const actions = new Map([
[{ pointType: ‘1’, type: ‘2’ }, autoWaterChart],
[{ pointType: ‘1’, type: ‘1’ }, waterChart],
[{ pointType: ‘4’, type: ‘1’ }, rainWaterChart],
[{ pointType: ‘6’, type: ‘1’ }, atmosphereChart],
[{ pointType: ‘6’, type: ‘2’ }, autoGasChart],
])
let type = this.dialogData.type
let pointType = this.dialogData.pointType
let statistical = [...actions].filter(([key], value) => key.pointType == pointType && key.type == type)
let resp = await statistical[0][1](this.queryParams)