feat:修改设备编号
This commit is contained in:
parent
da53ce0411
commit
421ae76ac6
|
@ -206,7 +206,7 @@
|
||||||
<div class="flexItem">
|
<div class="flexItem">
|
||||||
<div class="itemTitle">
|
<div class="itemTitle">
|
||||||
<div class="itemTitleIcon"></div>
|
<div class="itemTitleIcon"></div>
|
||||||
<div>本日能源数据</div>
|
<div>本月能源数据</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="itemBody" style="padding: 5%">
|
<div class="itemBody" style="padding: 5%">
|
||||||
<div class="elecItem">
|
<div class="elecItem">
|
||||||
|
@ -428,21 +428,21 @@ export default {
|
||||||
new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
||||||
{
|
{
|
||||||
offset: 0,
|
offset: 0,
|
||||||
color: "rgb(60, 238, 16)",
|
color: "rgb(243, 84, 9)",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
offset: 1,
|
offset: 1,
|
||||||
color: "rgb(89, 206, 59)",
|
color: "rgb(191, 69, 12)",
|
||||||
},
|
},
|
||||||
]),
|
]),
|
||||||
new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
||||||
{
|
{
|
||||||
offset: 0,
|
offset: 0,
|
||||||
color: "rgb(208, 32, 67)",
|
color: "rgb(213, 9, 241)",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
offset: 1,
|
offset: 1,
|
||||||
color: "rgb(199, 74, 99)",
|
color: "rgb(138, 34, 153)",
|
||||||
},
|
},
|
||||||
]),
|
]),
|
||||||
],
|
],
|
||||||
|
@ -641,18 +641,18 @@ export default {
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
offset: 0,
|
offset: 0,
|
||||||
color: "rgb(128, 255, 165)",
|
color: "rgb(223, 65, 19)",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
offset: 1,
|
offset: 1,
|
||||||
color: "rgb(1, 191, 236)",
|
color: "rgb(223, 20, 20)",
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
label: {
|
label: {
|
||||||
show: true,
|
show: true,
|
||||||
color: "#02f5f2",
|
color: "#df6d14",
|
||||||
formatter: function (params) {
|
formatter: function (params) {
|
||||||
return params.value;
|
return params.value;
|
||||||
},
|
},
|
||||||
|
@ -1141,7 +1141,6 @@ export default {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//&环保数据
|
|
||||||
generation() {
|
generation() {
|
||||||
let that = this;
|
let that = this;
|
||||||
this.$API.mtm.mgroup.list
|
this.$API.mtm.mgroup.list
|
||||||
|
@ -1295,7 +1294,7 @@ export default {
|
||||||
},
|
},
|
||||||
borderRadius: 2,
|
borderRadius: 2,
|
||||||
itemStyle: {
|
itemStyle: {
|
||||||
color: "#cd1e4b",
|
color: "#c30add ",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -1305,7 +1304,7 @@ export default {
|
||||||
},
|
},
|
||||||
borderRadius: 2,
|
borderRadius: 2,
|
||||||
itemStyle: {
|
itemStyle: {
|
||||||
color: "#3cee10",
|
color: "#df5413",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>设备名称</th>
|
<th>设备名称</th>
|
||||||
<th>设备编号</th>
|
<th>设备位号</th>
|
||||||
<th>单位</th>
|
<th>单位</th>
|
||||||
<th>上个小时</th>
|
<th>上个小时</th>
|
||||||
<th>昨日</th>
|
<th>昨日</th>
|
||||||
|
|
|
@ -98,7 +98,7 @@
|
||||||
end_time:'',
|
end_time:'',
|
||||||
},
|
},
|
||||||
headers: ['生料立磨','循环风机','高温风机','尾排风机','回转窑','水泥磨','水泥循环风机','水泥系统风机','电石渣','原料磨','煤磨','水泥粉磨','水泥包装'],
|
headers: ['生料立磨','循环风机','高温风机','尾排风机','回转窑','水泥磨','水泥循环风机','水泥系统风机','电石渣','原料磨','煤磨','水泥粉磨','水泥包装'],
|
||||||
mpoint_name: ['立磨主电机','循环风机-原料磨','高温风机','尾排风机','回转窑合计','水泥高压进线','循环风机-水泥磨','系统风机','电石渣合计','原料磨合计','煤磨合计','水泥磨主电机','包装进线'],
|
mpoint_name: ['原料立磨主电机','循环风机-原料磨','高温风机','尾排风机','回转窑合计','水泥高压进线','循环风机-水泥磨','系统风机','电石渣合计','原料磨合计','煤磨合计','水泥磨主电机','包装进线'],
|
||||||
tableData: [
|
tableData: [
|
||||||
['用电峰','用电尖峰','','','','','','','','','','','','',''],
|
['用电峰','用电尖峰','','','','','','','','','','','','',''],
|
||||||
['用电峰','用电高峰','','','','','','','','','','','','',''],
|
['用电峰','用电高峰','','','','','','','','','','','','',''],
|
||||||
|
|
|
@ -108,7 +108,7 @@
|
||||||
{index:2,name:'熟料单位产品综合能耗(kgce/t)',value:0,note:''},
|
{index:2,name:'熟料单位产品综合能耗(kgce/t)',value:0,note:''},
|
||||||
{index:3,name:'熟料单位产品综合电耗(kw.h/t)',value:0,note:''},
|
{index:3,name:'熟料单位产品综合电耗(kw.h/t)',value:0,note:''},
|
||||||
{index:4,name:'熟料单位产品综合煤耗(kgce/t)',value:0,note:''},
|
{index:4,name:'熟料单位产品综合煤耗(kgce/t)',value:0,note:''},
|
||||||
{index:5,name:'水泥单位产品综合能耗(kgce/t)',value:0,note:''},
|
{index:5,name:'水泥单位产品分布能耗(kgce/t)',value:0,note:''},
|
||||||
],
|
],
|
||||||
|
|
||||||
};
|
};
|
||||||
|
@ -157,7 +157,7 @@
|
||||||
that.$API.enm.enstat.req(params1).then((res) => {
|
that.$API.enm.enstat.req(params1).then((res) => {
|
||||||
console.log(res[0]);
|
console.log(res[0]);
|
||||||
that.tableDatas[0].value = res[0].cen_consume_unit;
|
that.tableDatas[0].value = res[0].cen_consume_unit;
|
||||||
that.tableDatas[4].value = res[0].cen_consume_unit;
|
that.tableDatas[4].value = res[0].elec_consume_unit;
|
||||||
});
|
});
|
||||||
let params2 = {
|
let params2 = {
|
||||||
page:0,
|
page:0,
|
||||||
|
|
|
@ -4,6 +4,9 @@
|
||||||
<div class="pictureContainer">
|
<div class="pictureContainer">
|
||||||
<img src="/media/elec_flow.png" class="flowImg" >
|
<img src="/media/elec_flow.png" class="flowImg" >
|
||||||
<!-- <img src="/img/energy.png" class="flowImg" /> -->
|
<!-- <img src="/img/energy.png" class="flowImg" /> -->
|
||||||
|
<div class="pictureHeader" style="top: 35px;">
|
||||||
|
本日数据 时间段 00:00--24:00
|
||||||
|
</div>
|
||||||
<div class="energyNumber energyNumberLeft" style="top: 187px;">
|
<div class="energyNumber energyNumberLeft" style="top: 187px;">
|
||||||
<img v-if="dataObj.全厂电量_电" class="iconImg" src="img/elec.png">{{ dataObj.全厂电量_电 }} kWh
|
<img v-if="dataObj.全厂电量_电" class="iconImg" src="img/elec.png">{{ dataObj.全厂电量_电 }} kWh
|
||||||
</div>
|
</div>
|
||||||
|
@ -133,7 +136,7 @@
|
||||||
.energyNumber{
|
.energyNumber{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 10px;
|
right: 10px;
|
||||||
color: rgb(223, 213, 22);
|
color: rgb(20, 244, 23);
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
@ -153,5 +156,17 @@
|
||||||
.energyNumberRight{
|
.energyNumberRight{
|
||||||
right: 328px;
|
right: 328px;
|
||||||
}
|
}
|
||||||
|
.pictureHeader {
|
||||||
|
position: absolute;
|
||||||
|
top: -30px; /* 调整表头距离图片的高度 */
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
background-color: #f8f9fa; /* 表头背景颜色 */
|
||||||
|
padding: 5px 10px;
|
||||||
|
border: 1px solid #ddd;
|
||||||
|
border-radius: 4px;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
|
@ -31,7 +31,7 @@
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>设备名称</th>
|
<th>设备名称</th>
|
||||||
<th>设备编号</th>
|
<th>设备位号</th>
|
||||||
<th>单位</th>
|
<th>单位</th>
|
||||||
<th>上个小时</th>
|
<th>上个小时</th>
|
||||||
<th>昨日</th>
|
<th>昨日</th>
|
||||||
|
|
|
@ -64,6 +64,9 @@
|
||||||
<td class="numCell" v-else-if="index == 10">
|
<td class="numCell" v-else-if="index == 10">
|
||||||
{{ item[0] }}
|
{{ item[0] }}
|
||||||
</td>
|
</td>
|
||||||
|
<td class="numCell" v-else-if="index == 11">
|
||||||
|
{{ item[0] }}
|
||||||
|
</td>
|
||||||
<td class="numCell">{{ item[1] }}</td>
|
<td class="numCell">{{ item[1] }}</td>
|
||||||
<td
|
<td
|
||||||
class="numCell hoursItem"
|
class="numCell hoursItem"
|
||||||
|
@ -444,6 +447,7 @@ export default {
|
||||||
["能耗", "总电耗(KW·h)", 0, 0, 0, 0, 0, 0, 0, 0],
|
["能耗", "总电耗(KW·h)", 0, 0, 0, 0, 0, 0, 0, 0],
|
||||||
["成本", "单位产品成本(元/吨)", 0, 0, 0, 0, 0, 0, 0, 0],
|
["成本", "单位产品成本(元/吨)", 0, 0, 0, 0, 0, 0, 0, 0],
|
||||||
["氨水", "氨水消耗量(t)", 0, 0, 0, 0, 0, 0, 0, 0],
|
["氨水", "氨水消耗量(t)", 0, 0, 0, 0, 0, 0, 0, 0],
|
||||||
|
["氨水", "单位氨水消耗量(kg/t)", 0, 0, 0, 0, 0, 0, 0, 0],
|
||||||
],
|
],
|
||||||
tableName: "生产报告",
|
tableName: "生产报告",
|
||||||
modelValue: true,
|
modelValue: true,
|
||||||
|
@ -696,6 +700,7 @@ export default {
|
||||||
that.tableDatas[8][3] = data3.elec_consume;
|
that.tableDatas[8][3] = data3.elec_consume;
|
||||||
that.tableDatas[9][3] = data3.production_cost_unit;
|
that.tableDatas[9][3] = data3.production_cost_unit;
|
||||||
that.tableDatas[10][3] = data3.ammonia_consume;
|
that.tableDatas[10][3] = data3.ammonia_consume;
|
||||||
|
that.tableDatas[11][3] = (data3.ammonia_consume*1000/data3.total_production).toFixed(2);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
//上小时
|
//上小时
|
||||||
|
@ -718,6 +723,7 @@ export default {
|
||||||
that.tableDatas[8][2] = data4.elec_consume;
|
that.tableDatas[8][2] = data4.elec_consume;
|
||||||
that.tableDatas[9][2] = data4.production_cost_unit;
|
that.tableDatas[9][2] = data4.production_cost_unit;
|
||||||
that.tableDatas[10][2] = data4.ammonia_consume;
|
that.tableDatas[10][2] = data4.ammonia_consume;
|
||||||
|
that.tableDatas[11][2] = (data4.ammonia_consume*1000/data4.total_production).toFixed(2);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
let params5 = {};
|
let params5 = {};
|
||||||
|
@ -841,6 +847,7 @@ export default {
|
||||||
that.tableDatas[9][9]
|
that.tableDatas[9][9]
|
||||||
);
|
);
|
||||||
that.tableDatas[10][5] = data1.ammonia_consume;
|
that.tableDatas[10][5] = data1.ammonia_consume;
|
||||||
|
that.tableDatas[11][5] = (data1.ammonia_consume*1000/data1.total_production).toFixed(2);
|
||||||
} else {
|
} else {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -903,6 +910,7 @@ export default {
|
||||||
that.tableDatas[9][6]
|
that.tableDatas[9][6]
|
||||||
);
|
);
|
||||||
that.tableDatas[10][4] = data2.ammonia_consume;
|
that.tableDatas[10][4] = data2.ammonia_consume;
|
||||||
|
that.tableDatas[11][4] = (data2.ammonia_consume*1000/data2.total_production).toFixed(2);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>设备名称</th>
|
<th>设备名称</th>
|
||||||
<th>设备编号</th>
|
<th>设备位号</th>
|
||||||
<th>单位</th>
|
<th>单位</th>
|
||||||
<th>上个小时</th>
|
<th>上个小时</th>
|
||||||
<th>昨日</th>
|
<th>昨日</th>
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>设备名称</th>
|
<th>设备名称</th>
|
||||||
<th>设备编号</th>
|
<th>设备位号</th>
|
||||||
<th>单位</th>
|
<th>单位</th>
|
||||||
<th>上个小时</th>
|
<th>上个小时</th>
|
||||||
<th>昨日</th>
|
<th>昨日</th>
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>设备名称</th>
|
<th>设备名称</th>
|
||||||
<th>设备编号</th>
|
<th>设备位号</th>
|
||||||
<th>单位</th>
|
<th>单位</th>
|
||||||
<th>昨日</th>
|
<th>昨日</th>
|
||||||
<th>本月</th>
|
<th>本月</th>
|
||||||
|
|
Loading…
Reference in New Issue