单体电池点位接口参数更新
This commit is contained in:
@ -53,7 +53,8 @@
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" @click="onSearch" native-type="button"
|
||||
>搜索</el-button
|
||||
>搜索
|
||||
</el-button
|
||||
>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
@ -73,12 +74,14 @@
|
||||
<el-button
|
||||
:class="{ activeBtn: activeBtn === 'table' }"
|
||||
@click="changeMenu('table')"
|
||||
>图表</el-button
|
||||
>图表
|
||||
</el-button
|
||||
>
|
||||
<el-button
|
||||
:class="{ activeBtn: activeBtn === 'list' }"
|
||||
@click="changeMenu('list')"
|
||||
>图形</el-button
|
||||
>图形
|
||||
</el-button
|
||||
>
|
||||
</el-button-group>
|
||||
</div>
|
||||
@ -111,17 +114,14 @@
|
||||
|
||||
<script>
|
||||
import BarChart from "./BarChart";
|
||||
import {
|
||||
getStackNameList,
|
||||
getClusterNameList,
|
||||
getClusterDataInfoList,
|
||||
} from "@/api/ems/dzjk";
|
||||
import {getClusterDataInfoList, getClusterNameList, getStackNameList,} from "@/api/ems/dzjk";
|
||||
import getQuerySiteId from "@/mixins/ems/getQuerySiteId";
|
||||
import ChartDetail from "./ChartDetail.vue";
|
||||
import Table from "./Table.vue";
|
||||
import List from "./List.vue";
|
||||
import pointChart from "./../PointChart.vue";
|
||||
import PointTable from "@/views/ems/site/sblb/PointTable.vue";
|
||||
|
||||
export default {
|
||||
name: "DzjkSbjkDtdc",
|
||||
mixins: [getQuerySiteId],
|
||||
@ -172,7 +172,12 @@ export default {
|
||||
// 查看设备电位表格
|
||||
pointDetail(row, dataType) {
|
||||
const {deviceId, clusterDeviceId} = row
|
||||
this.$refs.pointTable.showTable({siteId:this.siteId,deviceId,deviceCategory:'BATTERY',parentId:clusterDeviceId},dataType)
|
||||
this.$refs.pointTable.showTable({
|
||||
siteId: this.siteId,
|
||||
deviceId: deviceId + clusterDeviceId,
|
||||
deviceCategory: 'BATTERY',
|
||||
parentId: clusterDeviceId
|
||||
}, dataType)
|
||||
},
|
||||
changeMenu(menu) {
|
||||
const {activeBtn} = this;
|
||||
@ -282,13 +287,13 @@ export default {
|
||||
this.getTableData();
|
||||
},
|
||||
},
|
||||
mounted() {},
|
||||
};
|
||||
</script>
|
||||
<style scoped lang="scss">
|
||||
.tip-container {
|
||||
text-align: right;
|
||||
position: relative;
|
||||
|
||||
.color-tip {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
@ -297,9 +302,11 @@ export default {
|
||||
font-size: 11px;
|
||||
line-height: 12px;
|
||||
color: #333;
|
||||
|
||||
.tip {
|
||||
padding-left: 30px;
|
||||
position: relative;
|
||||
|
||||
&::before {
|
||||
display: block;
|
||||
content: "";
|
||||
@ -311,32 +318,41 @@ export default {
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
&.minwd {
|
||||
color: #3794ff;
|
||||
|
||||
&::before {
|
||||
background: #3794ff;
|
||||
}
|
||||
}
|
||||
|
||||
&.maxwd {
|
||||
color: #ff3a3b;
|
||||
|
||||
&::before {
|
||||
background: #ff3a3b;
|
||||
}
|
||||
}
|
||||
|
||||
&.mindy {
|
||||
color: #de6902;
|
||||
|
||||
&::before {
|
||||
background: #de6902;
|
||||
}
|
||||
}
|
||||
|
||||
&.maxdy {
|
||||
color: #ffb521;
|
||||
|
||||
&::before {
|
||||
background: #ffb521;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
::v-deep {
|
||||
.el-button-group.ems-btns-group {
|
||||
& > .el-button {
|
||||
|
||||
Reference in New Issue
Block a user