| | |
| | | show: 1, |
| | | }, |
| | | { |
| | | key: "monConnRes", |
| | | type: 1, |
| | | label: "连接条阻抗", |
| | | show: 1, |
| | | }, |
| | | { |
| | | key: "curr", |
| | | type: 1, |
| | | label: "均衡电流", |
| | |
| | | width: "", |
| | | }, |
| | | { |
| | | prop: "monConnRes", |
| | | label: "连接条阻抗", |
| | | width: "" |
| | | }, |
| | | { |
| | | prop: "curr1", |
| | | label: "均衡电流(A)", |
| | | width: "", |
| | |
| | | ></bar-chart> |
| | | </el-tab-pane> |
| | | <el-tab-pane |
| | | key="monConnRes" |
| | | label="连接条阻抗" |
| | | name="monConnRes" |
| | | v-if="tabsConfig.monConnRes && pageConfig.monConnRes"> |
| | | <bar-chart |
| | | ref="monConnRes" |
| | | id="monConnRes" |
| | | :show-tools="true" |
| | | @right-click="chartRightCLick" |
| | | ></bar-chart> |
| | | </el-tab-pane> |
| | | <el-tab-pane |
| | | key="curr" |
| | | label="均衡电流" |
| | | name="curr" |
| | |
| | | @right-click="chartRightCLick" |
| | | ></bar-chart> |
| | | </el-tab-pane> |
| | | |
| | | <el-tab-pane |
| | | key="tblData" |
| | | label="数据表格" |
| | |
| | | import BmsInfo from "@/pages/dataTest/components/bmsInfo"; |
| | | |
| | | /* import moment from "moment"; */ |
| | | let vol, resChart, temp, conduct, currChart, leakVol; |
| | | let vol, resChart, temp, conduct, currChart, leakVol, monConnRes; |
| | | let tblData = []; |
| | | export default { |
| | | components: { |
| | |
| | | prop: "conduct1", |
| | | label: "电导", |
| | | width: "", |
| | | }, |
| | | { |
| | | prop: "monConnRes", |
| | | label: "连接条阻抗", |
| | | width: "" |
| | | }, |
| | | { |
| | | prop: "curr1", |
| | |
| | | }, |
| | | ], |
| | | }; |
| | | |
| | | // 连接条阻抗 |
| | | monConnRes = { |
| | | title: { |
| | | show: true, |
| | | text: "最大值=0;最小值=0;平均值=0", |
| | | x: "center", |
| | | textStyle: { |
| | | fontSize: "14", |
| | | }, |
| | | }, |
| | | series: [ |
| | | { |
| | | name: "连接条阻抗", |
| | | type: "bar", |
| | | data: [], |
| | | }, |
| | | ], |
| | | }; |
| | | // 设置配置项 |
| | | this.setChart(); |
| | | }, |
| | |
| | | break; |
| | | case "leakVol": |
| | | this.$refs.leakVol.setOption(leakVol); |
| | | break; |
| | | case "monConnRes": |
| | | this.$refs.monConnRes.setOption(monConnRes); |
| | | break; |
| | | } |
| | | }, |
| | |
| | | let rs = JSON.parse(res.data.result); |
| | | let data = []; |
| | | if (rs.code == 1 && diagramType != -1) { |
| | | console.log(rs.data); |
| | | data = rs.data.map((item) => { |
| | | return { |
| | | num1: "#" + item.mon_num, |
| | |
| | | : 0, |
| | | curr1: item.mon_JH_curr, |
| | | leakVol1: item.mon_LY_vol, |
| | | monConnRes: item.mon_conn_res, |
| | | }; |
| | | }); |
| | | } |
| | |
| | | leakVolNum.avg.toFixed(1) + |
| | | "V"; |
| | | leakVol.series[0].data = leakVolTemp; |
| | | |
| | | // 连接条阻抗 |
| | | let monConnResData = []; |
| | | if (rs.code == 1) { |
| | | monConnResData = rs.data.map((item) => { |
| | | let value = diagramType == -1?0:item.mon_conn_res; |
| | | return ["#" + item.mon_num, value]; |
| | | }); |
| | | } |
| | | let connResBarNum = getBarNum(monConnResData); |
| | | monConnRes.title.text = |
| | | "最大值=" + |
| | | connResBarNum.max.toFixed(1) + |
| | | ";最小值=" + |
| | | connResBarNum.min.toFixed(1) + |
| | | ";平均值=" + |
| | | connResBarNum.avg.toFixed(1) + |
| | | ""; |
| | | monConnRes.series[0].data = monConnResData; |
| | | // 更新电压图表 |
| | | this.setChart(); |
| | | }); |
| | |
| | | let curr = !isLithium; |
| | | let leakVol = !isLithium; |
| | | let dianchigaojing = !isLithium; |
| | | let monConnRes = !isLithium; |
| | | |
| | | return { |
| | | vol: vol, |
| | |
| | | curr: curr, |
| | | leakVol: leakVol, |
| | | dianchigaojing: dianchigaojing, |
| | | monConnRes: monConnRes, |
| | | }; |
| | | }, |
| | | isTestDev() { |