const STATION_CONFIG = [ { code: 'TKT', name: '呼和浩特', departmentId: '684067705434677248', departmentName: '托克托作业区', level: 3, maskImgPath: '内蒙古/map_mask_tkt@2x.png', mapImgPath: '内蒙古/托克托作业区/map_bg_tkt.png', lineImgPath: '内蒙古/托克托作业区/map_line_tkt.png', imgStyle: { width: 1964, height: 1182, offsetY: -20, }, maskStyle: { width: 390, height: 332, left: 816, top: 270, }, titleStyle: { top: -40, left: 0, }, anchors: ['Top', 'Right'], data: [ { name: '当前有一级报警', value: '0', unit: '个,' }, { name: '二级报警', value: '0', unit: '个' }, { name: '三级报警', value: '0', unit: '个' }, ], stations: [ { id: 'point_1', name: '托克托压气站', type: 'station', left: 942, top: 470, offsetX: -300, offsetY: -280, height: 140, anchors: ['Top', 'Right'], departmentId: '784131093203787776', buildId: '784102618438836224', picPath: '/imgs/yx_tkt.JPG', preTag: '', data: [ { name: '进站压力', value: '0', unit: 'Mpa', tag: '' }, { name: '出站压力', value: '0', unit: 'Mpa', tag: '' }, { name: '进站温度', value: '0', unit: '℃', tag: '' }, { name: '出站温度', value: '0', unit: '℃', tag: '' }, ], }, { id: 'point_2', name: '呼和浩特分输站', type: 'station', left: 1060, top: 468, offsetX: 120, offsetY: -220, height: 140, anchors: ['Top', 'Left'], departmentId: '784131392517709824', buildId: '581056806831267840', picPath: '/imgs/yx_hhht.JPG', preTag: '', data: [ { name: '进站压力', value: '0', unit: 'Mpa', tag: '' }, { name: '出站压力', value: '0', unit: 'Mpa', tag: '' }, { name: '进站温度', value: '0', unit: '℃', tag: '' }, { name: '出站温度', value: '0', unit: '℃', tag: '' }, ], }, { id: 'point_3', name: '17#阀室', type: 'valve', left: 828, top: 463, offsetX: -320, offsetY: -80, height: 140, anchors: ['Top', 'Right'], departmentId: '784131445336580093', buildId: '524944733819117568', picPath: '/imgs/yx_17.JPG', preTag: '', data: [], }, { id: 'point_4', name: '18#阀室', type: 'valve', left: 870, top: 471, offsetX: -320, offsetY: 100, height: 140, anchors: ['Bottom', 'Right'], departmentId: '784131445336580094', buildId: '524944733819117568', picPath: '/imgs/yx_18.JPG', preTag: '', data: [], }, { id: 'point_5', name: '19#阀室', type: 'valve', left: 914, top: 465, offsetX: -220, offsetY: 280, height: 140, anchors: ['Bottom', 'Top'], departmentId: '784131445336580095', buildId: '524944733819117568', picPath: '/imgs/yx_19.JPG', preTag: '', data: [], }, { id: 'point_6', name: '20#阀室', type: 'valve', left: 983, top: 465, offsetX: -80, offsetY: -280, height: 140, anchors: ['Top', 'Bottom'], departmentId: '784131445336580096', buildId: '524944733819117568', picPath: '/imgs/yx_20.JPG', preTag: '', data: [], }, { id: 'point_7', name: '21#阀室', type: 'valve', left: 1030, top: 463, offsetX: -60, offsetY: 300, height: 140, anchors: ['Bottom', 'Top'], departmentId: '784131445336580097', buildId: '524944733819117568', picPath: '/imgs/yx_21.JPG', preTag: '', data: [], }, { id: 'point_8', name: '22#阀室', type: 'valve', left: 1094, top: 473, offsetX: 100, offsetY: 220, height: 140, anchors: ['Bottom', 'Top'], departmentId: '784131445336580098', buildId: '524944733819117568', picPath: '/imgs/yx_22.JPG', preTag: '', data: [], }, { id: 'point_9', name: '23#阀室', type: 'valve', left: 1128, top: 484, offsetX: 100, offsetY: 0, height: 140, anchors: ['Right', 'Left'], departmentId: '784131445336580099', buildId: '524944733819117568', picPath: '/imgs/yx_23.JPG', preTag: '', data: [], }, ], entries: [], }, ] /** * x,y : 切换时整个地图的偏移量 * s : 整个地图的缩放比例 * l,t : 区域地图的定位 */ const STATION_CONFIG_2 = [ { code: 'TKT', name: '呼和浩特', departmentId: '684067705434677248', departmentName: '托克托作业区', level: 3, maskImgPath: '内蒙古/map_mask_tkt@2x.png', mapImgPath: '内蒙古/托克托作业区/map_bg_tkt2.png', lineImgPath: '内蒙古/托克托作业区/map_line_tkt2.png', // imgStyle: { // width: 2651, // height: 1595, // offsetY: -20, // }, imgStyle: { width: 1964, height: 1182, offsetY: -20, }, maskStyle: { width: 390, height: 332, left: 816, top: 270, }, titleStyle: { top: -40, left: 0, }, anchors: ['Top', 'Right'], data: [ { name: '当前有一级报警', value: '0', unit: '个,' }, { name: '二级报警', value: '0', unit: '个' }, { name: '三级报警', value: '0', unit: '个' }, ], stations: [ { id: 'point_1', name: '托克托压气站', type: 'station', left: 942, top: 470, offsetX: -300, offsetY: -280, height: 140, anchors: ['Top', 'Right'], departmentId: '784131093203787776', buildId: '784102618438836224', picPath: '/imgs/yx_tkt.JPG', preTag: '', data: [ { name: '进站压力', value: '0', unit: 'Mpa', tag: '' }, { name: '出站压力', value: '0', unit: 'Mpa', tag: '' }, { name: '进站温度', value: '0', unit: '℃', tag: '' }, { name: '出站温度', value: '0', unit: '℃', tag: '' }, ], }, { id: 'point_2', name: '呼和浩特分输站', type: 'value', left: 1060, top: 468, offsetX: 120, offsetY: -220, height: 140, anchors: ['Top', 'Left'], departmentId: '784131392517709824', buildId: '581056806831267840', picPath: '/imgs/yx_hhht.JPG', preTag: '', data: [ { name: '进站压力', value: '0', unit: 'Mpa', tag: '' }, { name: '出站压力', value: '0', unit: 'Mpa', tag: '' }, { name: '进站温度', value: '0', unit: '℃', tag: '' }, { name: '出站温度', value: '0', unit: '℃', tag: '' }, ], }, { id: 'point_3', name: '17#阀室', type: 'valve', left: 828, top: 463, offsetX: -380, offsetY: -80, height: 140, anchors: ['Top', 'Right'], departmentId: '784131445336580093', buildId: '524944733819117568', picPath: '/imgs/yx_17.JPG', preTag: '', data: [], }, { id: 'point_4', name: '18#阀室', type: 'valve', left: 870, top: 471, offsetX: -320, offsetY: 100, height: 140, anchors: ['Bottom', 'Right'], departmentId: '784131445336580094', buildId: '524944733819117568', picPath: '/imgs/yx_18.JPG', preTag: '', data: [], }, { id: 'point_5', name: '19#阀室', type: 'valve', left: 914, top: 465, offsetX: -220, offsetY: 280, height: 140, anchors: ['Bottom', 'Top'], departmentId: '784131445336580095', buildId: '524944733819117568', picPath: '/imgs/yx_19.JPG', preTag: '', data: [], }, { id: 'point_6', name: '20#阀室', type: 'valve', left: 983, top: 465, offsetX: -80, offsetY: -280, height: 140, anchors: ['Top', 'Bottom'], departmentId: '784131445336580096', buildId: '524944733819117568', picPath: '/imgs/yx_20.JPG', preTag: '', data: [], }, { id: 'point_7', name: '21#阀室', type: 'valve', left: 1030, top: 463, offsetX: -60, offsetY: 300, height: 140, anchors: ['Bottom', 'Top'], departmentId: '784131445336580097', buildId: '524944733819117568', picPath: '/imgs/yx_21.JPG', preTag: '', data: [], }, { id: 'point_8', name: '22#阀室', type: 'valve', left: 1094, top: 473, offsetX: 100, offsetY: 220, height: 140, anchors: ['Bottom', 'Top'], departmentId: '784131445336580098', buildId: '524944733819117568', picPath: '/imgs/yx_22.JPG', preTag: '', data: [], }, { id: 'point_9', name: '23#阀室', type: 'valve', left: 1128, top: 484, offsetX: 100, offsetY: 0, height: 140, anchors: ['Right', 'Left'], departmentId: '784131445336580099', buildId: '524944733819117568', picPath: '/imgs/yx_23.JPG', preTag: '', data: [], }, ], entries: [], }, ] const DEFAULT_AREA = { id: "all", name: "全部", x: 223, y: 160, s: 1, imgUrl: "all.png", };