| | |
| | | }, { |
| | | img: require("@/assets/images/CustomPie.jpg"), |
| | | chartData: { |
| | | name: '故障', |
| | | name: '电源故障', |
| | | id: 22, |
| | | w: 0.235, |
| | | h: 0.25, |
| | |
| | | }, { |
| | | img: require("@/assets/images/PictorialBar.jpg"), |
| | | chartData: { |
| | | name: '在线电压和组端电压', |
| | | name: '在线和组端电压告警', |
| | | id: 23, |
| | | w: 0.235, |
| | | h: 0.25, |
| | |
| | | y: 0.35, |
| | | type: 'PictorialBar', |
| | | setData: { |
| | | xData: ['高告警数量', '低告警数量', '告警机房数\n比例', '告警机房总数'], |
| | | xData: ['在线电压低\n告警', '在线电压告警\n告警', '组端电压低\n告警', '组端电压高\n告警'], |
| | | series: [{ |
| | | name: "在线电压", |
| | | data: [{ |
| | | name: '高告警数量', |
| | | name: '在线电压低告警', |
| | | value: 2 |
| | | }, |
| | | { |
| | | name: '低告警数量', |
| | | name: '在线电压告警告警', |
| | | value: 15 |
| | | }, |
| | | { |
| | | name: '告警机房数', |
| | | name: '组端电压低告警', |
| | | value: 32 |
| | | }, |
| | | { |
| | | name: '告警机房总数', |
| | | name: '组端电压高告警', |
| | | value: 39 |
| | | }, |
| | | ], |
| | |
| | | { |
| | | name: "组端电压", |
| | | data: [{ |
| | | name: '高告警数量', |
| | | name: '在线电压低告警', |
| | | value: 22 |
| | | }, |
| | | { |
| | | name: '低告警数量', |
| | | name: '在线电压告警告警', |
| | | value: 25 |
| | | }, |
| | | { |
| | | name: '告警机房数', |
| | | name: '组端电压低告警', |
| | | value: 35 |
| | | }, |
| | | { |
| | | name: '告警机房总数', |
| | | name: '组端电压高告警', |
| | | value: 55 |
| | | }, |
| | | ], |
| | |
| | | }, |
| | | { |
| | | value: 8, |
| | | name: '故障数量', |
| | | name: '通讯故障数量', |
| | | color: '#8278E9' |
| | | }, |
| | | { |
| | |
| | | }, { |
| | | img: require("@/assets/images/MonCap.jpg"), |
| | | chartData: { |
| | | name: '单体容量', |
| | | name: '单体容量告警', |
| | | id: 25, |
| | | w: 0.235, |
| | | h: 0.25, |
| | |
| | | type: 'MonCap', |
| | | setData: { |
| | | circle: [{ |
| | | name: '告警数', |
| | | name: '单体容量高告警', |
| | | value: 380, |
| | | color: '#00DFFC', |
| | | }, |
| | | // { |
| | | // name: '告警占比', |
| | | // value: 180, |
| | | // color: '#FF8B34', |
| | | // }, |
| | | { |
| | | name: '告警总数', |
| | | name: '单体容量低告警', |
| | | value: 180, |
| | | color: '#ED4882', |
| | | }, |
| | | { |
| | | name: '告警机房数', |
| | | value: 280, |
| | | color: '#2EEA9D', |
| | | }, |
| | | // { |
| | | // name: '告警机房占比', |
| | | // value: 70, |
| | | // color: '#F3E501', |
| | | // } |
| | | ] |
| | | } |
| | | } |
| | |
| | | }, { |
| | | img: require("@/assets/images/monomerVoltage.png"), |
| | | chartData: { |
| | | name: '单体电压、内阻温度', |
| | | name: '单体电压、内阻和温度告警', |
| | | id: 12, |
| | | w: 0.300, |
| | | h: 0.35, |
| | |
| | | type: 'monomerVoltage', |
| | | setData: { |
| | | legendData: ['单体电压', '单体内阻', '单体温度'], |
| | | yAxisData: ['高告警数量', '低告警数量', '告警总数', '告警总数比例', '告警机房总数', '告警机房总数比例'], |
| | | yAxisData: ['单体电压高告警', '单体电压低告警', '单体内阻高告警', '单体内阻低告警', '单体温度高告警', '单体内阻低告警'], |
| | | data: [{ |
| | | name: '单体电压', |
| | | type: 'bar', |
| | |
| | | }, { |
| | | img: require("@/assets/images/dischargeCircuit.png"), |
| | | chartData: { |
| | | name: '放电电流', |
| | | name: '放电电流告警', |
| | | id: 13, |
| | | w: 0.300, |
| | | h: 0.35, |
| | |
| | | y: 0.35, |
| | | type: 'dischargeCircuit', |
| | | setData: { |
| | | xAxisData: ['低告警数量', '告警机房总数', '告警机房数比例', '告警总数', '告警总数比例'], |
| | | maxYAxis: [50, 50, 50, 50, 50], |
| | | xData: [30, 19, "37%", 44, "25%"], |
| | | data: [30, 19, 37, 44, 25] |
| | | xAxisData: ['放电电流高告警', '放电电流低告警'], |
| | | maxYAxis: [50, 50], |
| | | xData: [30, 19], |
| | | data: [30, 19] |
| | | } |
| | | } |
| | | }, |
| | |
| | | let modularData = [{ |
| | | img: require("@/assets/images/modular-latticeBar.png"), |
| | | chartData: { |
| | | name: '放电和充电电流', |
| | | name: '放电和充电电流告警', |
| | | id: 1, |
| | | w: 0.235, |
| | | h: 0.25, |
| | |
| | | y: 0.35, |
| | | type: 'latticeBar', |
| | | setData: { |
| | | xData: ['高告\n警数量', '告警\n总数', '告警机房\n总数'], |
| | | xData: ['放电电流高\n告警', '放电电流低\n告警', '充电电流高\n告警', '充电电流低\n告警'], |
| | | series: [{ |
| | | name: '放电', |
| | | data: [120, 220, 80], |
| | | data: [120, 220, 80, 100], |
| | | color: '#90ec7d' |
| | | }, { |
| | | name: '充电', |
| | | data: [80, 160, 310], |
| | | data: [80, 160, 310, 180], |
| | | color: '#ff6b6b' |
| | | }] |
| | | } |
| | |
| | | { |
| | | img: require("@/assets/images/modular-ImgPieChart.png"), |
| | | chartData: { |
| | | name: '整流器', |
| | | name: '电源整流器', |
| | | id: 2, |
| | | w: 0.235, |
| | | h: 0.25, |
| | |
| | | }, |
| | | { |
| | | value: 120, |
| | | name: '总故障' |
| | | name: '整流器总故障' |
| | | }, |
| | | { |
| | | value: 50, |
| | |
| | | { |
| | | img: require("@/assets/images/modular-TriangleBarChart.png"), |
| | | chartData: { |
| | | name: '电池组', |
| | | name: '电池组告警', |
| | | id: 3, |
| | | w: 0.235, |
| | | h: 0.25, |
| | |
| | | constructor(url, msgCallback, time, port) { |
| | | this.wsUrl = getWsUrl(url, port) |
| | | this.msgCallback = msgCallback; |
| | | this.time = time; //心跳时间 |
| | | this.time = time || 15000; //心跳时间 |
| | | this.initTime = 5000 //重连时间 |
| | | this.init() |
| | | } |
| | |
| | | }, |
| | | postData() { |
| | | let userId = localStorage.getItem('userId'); |
| | | this.websock = new WebSocketClass(`/screen/powerAlarm/acInput/${userId}`, this.wsMessage, 4000) |
| | | this.websock = new WebSocketClass(`/screen/powerAlarm/acInput/${userId}`, this.wsMessage) |
| | | }, |
| | | wsMessage(res) { |
| | | if (res.code == 1) { |
| | |
| | | }, |
| | | postData() { |
| | | let userId = localStorage.getItem('userId'); |
| | | this.websock = new WebSocketClass(`/screen/powerAlarm/error/${userId}`, this.wsMessage, 4000) |
| | | this.websock = new WebSocketClass(`/screen/powerAlarm/error/${userId}`, this.wsMessage) |
| | | }, |
| | | wsMessage(res) { |
| | | if (res.code == 1) { |
| | |
| | | }, |
| | | postData() { |
| | | let userId = localStorage.getItem('userId'); |
| | | this.websock = new WebSocketClass(`/screen/batteryAlarm/monCapacity/${userId}`, this.wsMessage, 4000) |
| | | this.websock = new WebSocketClass(`/screen/batteryAlarm/monCapacity/${userId}`, this.wsMessage) |
| | | }, |
| | | wsMessage(res) { |
| | | if (res.code == 1) { |
| | |
| | | }, |
| | | postData() { |
| | | let userId = localStorage.getItem('userId'); |
| | | this.websock = new WebSocketClass(`/screen/batteryAlarm/onlinegroupVolAnalysis/${userId}`, this.wsMessage, 4000) |
| | | this.websock = new WebSocketClass(`/screen/batteryAlarm/onlinegroupVolAnalysis/${userId}`, this.wsMessage) |
| | | }, |
| | | wsMessage(res) { |
| | | if (res.code == 1) { |
| | |
| | | }, |
| | | postData() { |
| | | let userId = localStorage.getItem('userId'); |
| | | this.websock = new WebSocketClass(`/screen/batteryAlarm/btsStatus/${userId}`, this.wsMessage, 4000) |
| | | this.websock = new WebSocketClass(`/screen/batteryAlarm/btsStatus/${userId}`, this.wsMessage) |
| | | }, |
| | | wsMessage(res) { |
| | | if (res.code == 1) { |
| | |
| | | cmd: "syncPage", |
| | | params: { |
| | | pageInfo: { |
| | | label: "电池续航能力历史查询", |
| | | name: "endure", |
| | | src: "#/reportStatistics/endure", |
| | | label: "电池信息统计分析", |
| | | name: "produceTotal", |
| | | src: "#/dataMager/produceTotal", |
| | | closable: true |
| | | }, |
| | | } |
| | |
| | | }, |
| | | postData() { |
| | | let userId = localStorage.getItem('userId'); |
| | | this.websock = new WebSocketClass(`/screen/batteryData/endurance/${userId}`, this.wsMessage, 4000) |
| | | this.websock = new WebSocketClass(`/screen/batteryData/endurance/${userId}`, this.wsMessage) |
| | | }, |
| | | wsMessage(res) { |
| | | if (res.code == 1) { |
| | |
| | | }, |
| | | postData() { |
| | | let userId = localStorage.getItem('userId'); |
| | | this.websock = new WebSocketClass(`/screen/batteryData/capStatus/${userId}`, this.wsMessage, 4000) |
| | | this.websock = new WebSocketClass(`/screen/batteryData/capStatus/${userId}`, this.wsMessage) |
| | | }, |
| | | wsMessage(res) { |
| | | if (res.code == 1) { |
| | |
| | | cmd: "syncPage", |
| | | params: { |
| | | pageInfo: { |
| | | label: "电池实时告警", |
| | | name: "batteryrTimequery", |
| | | src: "#/batteryrTimequery", |
| | | label: "设备状态查询", |
| | | name: "btsStatusTest", |
| | | src: "#/dataMager/btsStatus", |
| | | closable: true |
| | | }, |
| | | } |
| | |
| | | }, |
| | | postData() { |
| | | let userId = localStorage.getItem('userId'); |
| | | this.websock = new WebSocketClass(`/screen/battery/status/${userId}`, this.wsMessage, 4000) |
| | | this.websock = new WebSocketClass(`/screen/battery/status/${userId}`, this.wsMessage) |
| | | }, |
| | | wsMessage(res) { |
| | | if (res.code == 1) { |
| | |
| | | }, |
| | | postData() { |
| | | let userId = localStorage.getItem('userId'); |
| | | this.websock = new WebSocketClass(`/screen/batteryAlarm/dischargeAnalysis/${userId}`, this.wsMessage, 4000) |
| | | this.websock = new WebSocketClass(`/screen/batteryAlarm/dischargeAnalysis/${userId}`, this.wsMessage) |
| | | }, |
| | | wsMessage(res) { |
| | | let self = this; |
| | |
| | | }, |
| | | postData() { |
| | | let userId = localStorage.getItem('userId'); |
| | | this.websock = new WebSocketClass(`/screen/powerAlarm/acABC/${userId}`, this.wsMessage, 4000) |
| | | this.websock = new WebSocketClass(`/screen/powerAlarm/acABC/${userId}`, this.wsMessage) |
| | | }, |
| | | wsMessage(res) { |
| | | let self = this; |
| | |
| | | }, |
| | | postData() { |
| | | let userId = localStorage.getItem('userId'); |
| | | this.websock = new WebSocketClass(`/screen/powerAlarm/rectifier/${userId}`, this.wsMessage, 4000) |
| | | this.websock = new WebSocketClass(`/screen/powerAlarm/rectifier/${userId}`, this.wsMessage) |
| | | }, |
| | | wsMessage(res) { |
| | | if (res.code == 1) { |
| | | let optionData = { |
| | | data: [] |
| | | data: [{ |
| | | value: 0, |
| | | name: '整流器交流异常' |
| | | }, |
| | | { |
| | | value: 0, |
| | | name: '整流器过流' |
| | | }, |
| | | { |
| | | value: 0, |
| | | name: '整流器总故障' |
| | | }, |
| | | { |
| | | value: 0, |
| | | name: '整流器欠压' |
| | | }, |
| | | ] |
| | | } |
| | | let resData = res.data; |
| | | for (let key in resData) { |
| | | let obj = {}; |
| | | obj.name = key; |
| | | obj.value = resData[key]; |
| | | optionData.data.push(obj) |
| | | optionData.data.map(item => { |
| | | if (item.name == key) { |
| | | item.value = resData[key] |
| | | } |
| | | }) |
| | | } |
| | | this.$options.chartData = optionData; |
| | | this.organizeData(optionData) |
| | |
| | | }, |
| | | postData() { |
| | | let userId = localStorage.getItem('userId'); |
| | | this.websock = new WebSocketClass(`/screen/batteryAlarm/chargeAnalysis/${userId}`, this.wsMessage, 4000) |
| | | this.websock = new WebSocketClass(`/screen/batteryAlarm/chargeAnalysis/${userId}`, this.wsMessage) |
| | | }, |
| | | wsMessage(res) { |
| | | if (res.code == 1) { |
| | |
| | | }, |
| | | postData() { |
| | | let userId = localStorage.getItem('userId'); |
| | | this.websock = new WebSocketClass(`/screen/batteryAlarm/monVRTAnalysis/${userId}`, this.wsMessage, 4000) |
| | | this.websock = new WebSocketClass(`/screen/batteryAlarm/monVRTAnalysis/${userId}`, this.wsMessage) |
| | | }, |
| | | wsMessage(res) { |
| | | let self = this; |
| | |
| | | }, |
| | | postData() { |
| | | let userId = localStorage.getItem('userId'); |
| | | this.websock = new WebSocketClass(`/screen/powerAlarm/status/${userId}`, this.wsMessage, 4000) |
| | | this.websock = new WebSocketClass(`/screen/powerAlarm/status/${userId}`, this.wsMessage) |
| | | }, |
| | | wsMessage(res) { |
| | | if (res.code == 1) { |
| | |
| | | cmd: "syncPage", |
| | | params: { |
| | | pageInfo: { |
| | | label: "电池实时告警", |
| | | name: "batteryrTimequery", |
| | | src: "#/batteryrTimequery", |
| | | label: "电源实时告警", |
| | | name: "powerRealtimeInfo", |
| | | src: "#/powerRealtimeInfo", |
| | | closable: true |
| | | }, |
| | | } |
| | |
| | | }, |
| | | postData() { |
| | | let userId = localStorage.getItem('userId'); |
| | | this.websock = new WebSocketClass(`/screen/powerAlarm/batteryGroup/${userId}`, this.wsMessage, 4000) |
| | | this.websock = new WebSocketClass(`/screen/powerAlarm/batteryGroup/${userId}`, this.wsMessage) |
| | | }, |
| | | wsMessage(res) { |
| | | if (res.code == 1) { |