| | |
| | | label: '平台logo', |
| | | des: '显示平台logo状态', |
| | | fileName: 'gjdw', // gjdw, nfdw, gjdx, qwh, gdnr |
| | | value: false, |
| | | value: true, |
| | | }, |
| | | uKey: { |
| | | label: 'uKey', |
| | |
| | | * 云南昆明供电局:'ynkm' |
| | | */ |
| | | // name: '', |
| | | // name: 'sxty', // 请查看alarmPopup是否开启,logo是否开启且为gjdw |
| | | name: 'sxty', // 请查看alarmPopup是否开启,logo是否开启且为gjdw |
| | | // name: 'tydc', |
| | | // name: 'njck', |
| | | name: 'ynkm', |
| | | // name: 'ynkm', |
| | | //value: false, |
| | | }, |
| | | // 是否要(加验签) 安全模式 |
| | |
| | | label: "告警弹出框", |
| | | des: "登录平台后,右下方告警弹出框提示", |
| | | // value: false |
| | | value: false |
| | | value: true |
| | | }, |
| | | WHYC: { |
| | | label: '自用', |
| | |
| | | value: 2100, |
| | | label: "智能母联" |
| | | }, |
| | | { |
| | | value: 9800, |
| | | label: "FBS9800" |
| | | } |
| | | ], |
| | | power: [ |
| | | { |
| | |
| | | BTSSreen: /^9611/, |
| | | equip4016: /^4016/, |
| | | BTS9605: /^9605/, |
| | | BTS9611: /^9611/, |
| | | BTS9611: /^9611|(9800)/, |
| | | power: /^110/, |
| | | power1: /^115/, |
| | | isolating: /^111/, |
| | |
| | | :batt-curr="battCurr" |
| | | :dev-temp="devTemp" |
| | | :type="type" |
| | | :hum="hum" |
| | | :temp="temp" |
| | | :update="update" |
| | | :batt="batt" |
| | | ></collect-circuit-diagram> |
| | | <lithium-diagram |
| | | v-else-if="diagramType === 'lithium'" |
| | |
| | | bypassswitchSt: 0xAAAA // 旁路状态(0xAAAA-未接入 0xBBBB-接入旁路) |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | temp: { |
| | | // 温度 |
| | | type: [String, Number], |
| | | default: 0, |
| | | }, |
| | | hum: { |
| | | // 湿度 |
| | | type: [String, Number], |
| | | default: 0, |
| | | }, |
| | | }, |
| | | computed: { |
| | | diagramType() { |
| | |
| | | <div class="diagram-content"> |
| | | <div class="diagram-stc" ref="static"></div> |
| | | <div class="diagram-flush" ref="flush"></div> |
| | | <div class="diagram-tools"> |
| | | <div class="tools-header">设备状态</div> |
| | | <table class="tools-table"> |
| | | <tr> |
| | | <td class="item-label">温 度:</td> |
| | | <td>{{toolsInfo.temp}} ℃</td> |
| | | </tr> |
| | | <tr> |
| | | <td class="item-label">湿 度:</td> |
| | | <td>{{toolsInfo.hum}} %rh</td> |
| | | </tr> |
| | | <tr> |
| | | <td class="item-label">在线电压:</td> |
| | | <td>{{toolsInfo.onlineVol}} V</td> |
| | | </tr> |
| | | <tr> |
| | | <td class="item-label">组端电压:</td> |
| | | <td>{{toolsInfo.groupVol}} V</td> |
| | | </tr> |
| | | <tr> |
| | | <td class="item-label">电池电流:</td> |
| | | <td>{{toolsInfo.battCurr}} A</td> |
| | | </tr> |
| | | </table> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | let diagram; |
| | | export default { |
| | | props: { |
| | | batt: { |
| | | type: Object, |
| | | default() { |
| | | return {}; |
| | | }, |
| | | }, |
| | | onlineVol: { |
| | | // 在线电压 |
| | | type: [String, Number], |
| | |
| | | type: { |
| | | type: Number, |
| | | default: -1, |
| | | }, |
| | | temp: { |
| | | // 温度 |
| | | type: [String, Number], |
| | | default: 0, |
| | | }, |
| | | hum: { |
| | | // 湿度 |
| | | type: [String, Number], |
| | | default: 0, |
| | | }, |
| | | update: { |
| | | type: Boolean, |
| | |
| | | } |
| | | }, |
| | | }, |
| | | computed:{ |
| | | toolsInfo() { |
| | | return { |
| | | onlineVol: this.onlineVol.toHold(VOL), |
| | | groupVol: this.groupVol.toHold(VOL), |
| | | battCurr: this.battCurr.toHold(CURR), |
| | | temp: this.temp.toHold(TEMP), |
| | | hum: this.hum.toHold(HUM) |
| | | } |
| | | }, |
| | | }, |
| | | mounted() { |
| | | diagram = circuitDiagram(this.$refs.static, this.$refs.flush); |
| | | // 初始化数据 |
| | |
| | | }; |
| | | </script> |
| | | |
| | | <style scoped></style> |
| | | <style scoped lang="less"> |
| | | .diagram-content { |
| | | position: relative; |
| | | .diagram-tools { |
| | | position: absolute; |
| | | top: 0; |
| | | left: 4px; |
| | | border-radius: 4px; |
| | | overflow: hidden; |
| | | border: 1px solid #00fefe; |
| | | min-width: 120px; |
| | | .tools-header { |
| | | color: #003d64; |
| | | background-color: #00fefe; |
| | | padding: 4px 16px; |
| | | font-weight: bold; |
| | | text-align: center; |
| | | } |
| | | } |
| | | } |
| | | .tools-table { |
| | | user-select: none; |
| | | width: 100%; |
| | | font-size: 14px; |
| | | color: #00fefe; |
| | | td { |
| | | text-align: left; |
| | | padding: 4px 16px 4px 0; |
| | | &.item-label { |
| | | padding-left: 16px; |
| | | padding-right: 0; |
| | | text-align: right; |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | |
| | | :discharge-mon="dischargeMon" |
| | | :buscouple-switch="buscoupleSwitch" |
| | | :bypass="diagram.bypass" |
| | | :temp="diagram.devTemperature" |
| | | :hum="diagram.devHumidity" |
| | | ></circuit-diagram> |
| | | </el-tab-pane> |
| | | <el-tab-pane |
| | |
| | | k1St: 0xAAAA, // 接触器k1状态(0-断开 1-闭合) |
| | | urgentswitchSt: 0xAAAA, // 急停状态(0xAAAA-未触发 0xBBBB-触发) |
| | | bypassswitchSt: 0xAAAA // 旁路状态(0xAAAA-未接入 0xBBBB-接入旁路) |
| | | } |
| | | }, |
| | | devHumidity: 0, // 湿度 |
| | | devTemperature: 0, // 温度 |
| | | }, |
| | | dischargeDialog: { |
| | | show: false, |
| | |
| | | //res = res.data; |
| | | if (res.code && res.data) { |
| | | vm.inputs = res.data2; |
| | | this.diagram.devHumidity = res.data2.devHumidity; |
| | | this.diagram.devTemperature = res.data2.devTemperature; |
| | | // 开启模拟数据 |
| | | if (sysConfig.analogData.value) { |
| | | vm.inputs.recDatetime = new Date().format("yyyy-MM-dd hh:mm:ss"); |