Commit 5097b8b1 authored by lei's avatar lei

add:电力能耗查询页面

parent 2b308da1
......@@ -85,12 +85,13 @@
<div class="arrow-psition" style="top: 132px; left: 300px">
<div class="fengji-arrow"></div>
</div>
<div class="arrow-psition" style="top: 132px; left: 998px">
<div class="fengji-arrow"></div>
</div>
<div class="arrow-psition" style="top: 132px; left: 1398px">
<div class="fengji-arrow"></div>
</div>
<div class="fengmen" style="top: 109px; left: 998px">
<div class="fengmen-icon"></div>
<span>开合度80%</span>
</div>
<!--一中副扇风机dom-->
<div
class="fengji"
......@@ -335,15 +336,22 @@
<div class="arrow-psition" style="top: 472px; left: 288px">
<div class="fengji-arrow"></div>
</div>
<div class="arrow-psition" style="top: 472px; left: 888px">
<!-- <div class="arrow-psition" style="top: 472px; left: 888px">
<div class="fengji-arrow"></div>
</div>
</div> -->
<div class="arrow-psition" style="top: 472px; left: 1088px">
<div class="fengji-arrow"></div>
</div>
<div class="arrow-psition bevel" style="top: 472px; left: 1268px">
<div class="fengji-arrow"></div>
</div>
<div class="arrow-psition bevel" style="top: 282px; left: 1490px">
<div class="fengji-arrow"></div>
</div>
<div class="fengmen" style="top: 280px; left: 1468px">
<div class="fengmen-icon"></div>
<span>开合度80%</span>
</div>
<!--三中副扇风机dom-->
<div
class="fengji"
......@@ -391,13 +399,17 @@
<p>设定频率:{{ item.setFrequency | decimalFilter }}HZ</p>
</div>
</div>
<div class="fengmen" style="top: 451px; left: 918px">
<div class="fengmen-icon"></div>
<span>开合度80%</span>
</div>
<!--四中副扇风机dom-->
<div
class="fengji"
v-for="(item, index) in fengjiList"
:key="index + 'sizhong' + item.deviceId"
v-show="item.deviceName == '四中副扇风机'"
style="left: 1260px; top: 583px"
style="left: 1090px; top: 583px"
>
<div class="fengji-title" style="margin-left: 50px">四中副扇风机</div>
<div class="fengji-content">
......@@ -462,13 +474,17 @@
<div class="arrow-psition bevel" style="top: 642px; left: 1068px">
<div class="fengji-arrow"></div>
</div>
<div class="fengmen" style="top: 619px; left: 1498px">
<div class="fengmen-icon"></div>
<span>开合度80%</span>
</div>
<!--五中副扇风机dom-->
<div
class="fengji"
v-for="(item, index) in fengjiList"
:key="index + 'wuzhong' + item.deviceId"
v-show="item.deviceName == '五中副扇风机'"
style="left: 600px; top: 750px"
style="left: 400px; top: 750px"
>
<div class="fengji-title">五中副扇风机</div>
<div class="fengji-content">
......@@ -509,12 +525,13 @@
<p>设定频率:{{ item.setFrequency | decimalFilter }}HZ</p>
</div>
</div>
<div class="arrow-psition" style="top: 812px; left: 188px">
<div class="fengji-arrow"></div>
</div>
<div class="arrow-psition bevel" style="top: 812px; left: 868px">
<div class="fengji-arrow"></div>
</div>
<div class="fengmen" style="top: 788px; left: 668px">
<div class="fengmen-icon"></div>
<span>开合度80%</span>
</div>
</div>
<div class="up-window" v-show="upWindowShow">
<div class="up-window-box" ref="upWindowBox">
......@@ -856,6 +873,24 @@ export default {
transform: rotate(-45deg);
}
}
.fengmen {
width: 87px;
height: 87px;
position: absolute;
.fengmen-icon {
width: 67px;
height: 61px;
background: url("~@/assets/images/screen/tfxt/fengmen.png") no-repeat
center;
background-size: 100%;
margin: 0 auto 10px;
}
span {
font-size: 18px;
color: #11ffeb;
line-height: 20px;
}
}
}
.up-window {
width: 100%;
......
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true">
<el-form-item label="月份查询" prop="month">
<el-date-picker
v-model="queryParams.month"
type="month"
placeholder="选择月份"
value-format="yyyy-MM"
@change="handleQuery"
/>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" @click="handleQuery"
>搜索</el-button
>
<el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>
</el-form-item>
</el-form>
<el-table :data="tableData" border style="width: 100%">
<el-table-column type="index" label="序号" width="60" align="center" />
<el-table-column prop="month" label="月份" width="120" align="center" />
<el-table-column prop="name" label="名称" width="150" align="center" />
<el-table-column
prop="monthlyConsumption"
label="月能耗(KWh)"
width="150"
align="center"
/>
<el-table-column
prop="totalConsumption"
label="累计能耗(KWh)"
width="150"
align="center"
/>
</el-table>
<pagination
v-show="total > 0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
</div>
</template>
<script>
export default {
name: "PowerConsumptionAnalysis",
data() {
return {
// 查询参数
queryParams: {
month: "",
pageNum: 1,
pageSize: 10,
},
// 表格数据
tableData: [],
// 总条数
total: 0,
};
},
created() {
this.getList();
},
methods: {
// 获取列表数据
getList() {
// 这里替换为实际API调用
// getPowerConsumptionList(this.queryParams).then(response => {
// this.tableData = response.rows;
// this.total = response.total;
// });
// 模拟数据
this.tableData = [
{
month: "2023-01",
name: "采区能耗",
monthlyConsumption: 12500,
totalConsumption: 12500,
},
{
month: "2023-01",
name: "选厂能耗",
monthlyConsumption: 8500,
totalConsumption: 8500,
},
{
month: "2023-02",
name: "冶炼能耗",
monthlyConsumption: 11800,
totalConsumption: 24300,
},
{
month: "2023-02",
name: "尾矿库能耗",
monthlyConsumption: 7900,
totalConsumption: 16400,
},
];
this.total = this.tableData.length;
},
// 搜索按钮操作
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
},
// 重置按钮操作
resetQuery() {
this.queryParams.month = "";
this.handleQuery();
},
},
};
</script>
<style scoped lang="scss">
.app-container {
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment