| | |
| | | <div class="card"> |
| | | <div class="commonTitle cardTitle">数据表格</div> |
| | | <div class="listCon"> |
| | | <el-table stripe size="small" :data="table.datas" height="100%" :row-class-name="setTableRowClass"> |
| | | <el-table-column v-for="header in dataHeaders" :key="header.prop" :prop="header.prop" :label="header.label" :width="header.width" align="center" :fixed="header.fixed"></el-table-column> |
| | | <el-table stripe size="small" :data="table.datas" height="100%" :row-class-name="setTableRowClass" v-if="table.show"> |
| | | <el-table-column v-for="header in dataHeaders" :key="header.prop" :prop="header.prop" :label="header.label" :width="header.width" :fixed="header.fixed" align="center"></el-table-column> |
| | | </el-table> |
| | | </div> |
| | | |
| | |
| | | label: "单体编号", |
| | | width: "", |
| | | key1: "", |
| | | fixed: 'left', |
| | | fixed: true |
| | | }, |
| | | { |
| | | prop: "vol1", |
| | |
| | | leakVol1: 0, |
| | | }, |
| | | ], |
| | | show: false |
| | | }, |
| | | pageConfig: pageConfig, |
| | | diagram: { |
| | |
| | | this.batt = data; |
| | | this.realTimeAlarmss(); |
| | | this.table.headers = getTblHeader(data.FBSDeviceId); |
| | | this.table.show = false; |
| | | // 开启循环请求 |
| | | this.startTimer(); |
| | | }, |
| | |
| | | /* echars图表 */ |
| | | realTimeSearch() { |
| | | var batt = this.batt; |
| | | |
| | | realTimeSearch({ |
| | | BattGroupId: batt.BattGroupId |
| | | }).then(res => { |
| | |
| | | } |
| | | // 更新表格 |
| | | this.table.datas = data; |
| | | this.table.show = true; |
| | | // 电压值 |
| | | let volTempVol = []; |
| | | if (rs.code == 1) { |