|
|
|
|
@ -435,7 +435,7 @@
|
|
|
|
|
>
|
|
|
|
|
<dv-loading v-show="loading6">Loading...</dv-loading>
|
|
|
|
|
<div v-show="!loading6" class="ls_area">
|
|
|
|
|
<div class="alltitle" style="font-size: 16px; top: 0px; left: 0px">拉丝车间</div>
|
|
|
|
|
<div class="alltitle" style="font-size: 16px; top: 0px; left: 0px">{{location.location1}}</div>
|
|
|
|
|
<div class="ls_content">
|
|
|
|
|
<div class="left-side"></div>
|
|
|
|
|
<div class="right-side">
|
|
|
|
|
@ -456,7 +456,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div v-show="!loading6" class="qb_area">
|
|
|
|
|
<div class="alltitle" style="font-size: 14px; top: 0px; left: 0px">漆包车间</div>
|
|
|
|
|
<div class="alltitle" style="font-size: 14px; top: 0px; left: 0px">{{location.location2}}</div>
|
|
|
|
|
<div class="ls_content">
|
|
|
|
|
<div class="left-side"></div>
|
|
|
|
|
<div class="right-side">
|
|
|
|
|
@ -574,6 +574,10 @@ export default defineComponent({
|
|
|
|
|
seriesData: []
|
|
|
|
|
},
|
|
|
|
|
detectionDayNum: 0,
|
|
|
|
|
location:{
|
|
|
|
|
location1: '',
|
|
|
|
|
location2: '',
|
|
|
|
|
},
|
|
|
|
|
debouncedHandleResize: null,
|
|
|
|
|
energyData: {
|
|
|
|
|
LSMonth: 0,
|
|
|
|
|
@ -681,12 +685,14 @@ export default defineComponent({
|
|
|
|
|
this.loading6 = true;
|
|
|
|
|
getEcmElectricityConsumption().then(res => {
|
|
|
|
|
if (res.code === 200) {
|
|
|
|
|
this.location.location1 = res.data.yearElectricQuantity.find(item => item.workshopType.indexOf("一楼") > -1).workshopType
|
|
|
|
|
this.location.location2 = res.data.yearElectricQuantity.find(item => item.workshopType.indexOf("二楼") > -1).workshopType
|
|
|
|
|
this.loading6 = false;
|
|
|
|
|
this.energyData.LSYear = Number(res.data.yearElectricQuantity.find(item => item.workshopType.indexOf("一楼") > -1).electricQuantity / 1000)?.toFixed(0);
|
|
|
|
|
this.energyData.QBYear = Number(res.data.yearElectricQuantity.find(item => item.workshopType.indexOf("二楼") > -1).electricQuantity / 1000)?.toFixed(0);
|
|
|
|
|
|
|
|
|
|
this.energyData.LSMonth = Number(res.data.monthElectricQuantity[0].electricQuantity / 1000)?.toFixed(0);
|
|
|
|
|
this.energyData.QBMoth = Number(res.data.monthElectricQuantity[1].electricQuantity / 1000)?.toFixed(0);
|
|
|
|
|
this.energyData.LSYear = Number(res.data.yearElectricQuantity[0].electricQuantity / 1000)?.toFixed(0);
|
|
|
|
|
this.energyData.QBYear = Number(res.data.yearElectricQuantity[1].electricQuantity / 1000)?.toFixed(0);
|
|
|
|
|
|
|
|
|
|
const lsData = res.data.weeksElectricQuantity.filter(item => item.workshopType === '拉丝车间');
|
|
|
|
|
const qbData = res.data.weeksElectricQuantity.filter(item => item.workshopType === '漆包车间');
|
|
|
|
|
lsData.forEach(item => {
|
|
|
|
|
|