|
|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <div class="content">
|
|
|
+ <div class="content" >
|
|
|
<dv-full-screen-container>
|
|
|
<!-- 头部内容 -->
|
|
|
<div class="header">
|
|
|
@@ -15,57 +15,59 @@
|
|
|
<dv-border-box-8>返回</dv-border-box-8>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <dv-border-box-1>
|
|
|
+ <div style="height:80%"></div>
|
|
|
+ <dv-border-box-1 v-if="MiddleLeftPieViewList.data.length">
|
|
|
<!-- 顶部数据 -->
|
|
|
<div class="topCard">
|
|
|
<top-bar v-if="topBarData.length" :info="topBarData" />
|
|
|
</div>
|
|
|
<div class="middleCard" >
|
|
|
- <div style="width:100%">
|
|
|
- <div class="middleCardLeft" >
|
|
|
+ <div style="width:100%;height: 95%;">
|
|
|
+ <div class="middleCardLeft" >
|
|
|
<middleCard v-if="MiddleLeftPieViewList.data.length" :info="MiddleLeftPieViewList" ref="middleCardLeft"/>
|
|
|
</div>
|
|
|
- <dv-decoration-2 :reverse="true" style="width:5px;height:350px;margin:0 15px;" />
|
|
|
+ <dv-decoration-2 v-if="MiddleLeftPieViewList.data.length" :reverse="true" style="width:2%;height:350px;" />
|
|
|
<div class="middleCardCenter">
|
|
|
<middleCard v-if="eBgRateData.data.length" :info="eBgRateData" ref="middleCardCenter"/>
|
|
|
</div>
|
|
|
- <dv-decoration-2 :reverse="true" style="width:5px;height:350px;margin:0 15px;" />
|
|
|
- <div class="middleCardRight">
|
|
|
- <CarouselTabl v-if="config.data.length" :info="config"/>
|
|
|
+ <dv-decoration-2 v-if="eBgRateData.data.length" :reverse="true" style="width:2%;height:350px;" />
|
|
|
+ <div class="middleCardRight" v-if="eBgRateData.data.length" >
|
|
|
+ <CarouselTabl v-if="config.data.length" :info="config" title="设备报废记录"/>
|
|
|
</div>
|
|
|
- <dv-decoration-2 :reverse="true" style="width:5px;height:350px;margin:0 15px;" />
|
|
|
+ <dv-decoration-2 v-if="eBgRateData.data.length" :reverse="true" style="width:2%;height:350px;" />
|
|
|
<div class="middleCardRight1">
|
|
|
- <CarouselTabl v-if="shiyonglvConfig.data.length" :info="shiyonglvConfig"/>
|
|
|
+ <CarouselTabl v-if="MiddleLeftPieViewList.data.length" :info="shiyonglvConfig" title="设备使用记录"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <dv-decoration-10 v-if="MiddleLeftPieViewList.data.length" style="height: 5%;"/>
|
|
|
</div>
|
|
|
- <dv-decoration-10 />
|
|
|
+
|
|
|
<div class="bottomCard">
|
|
|
<div style="width:31%;display:flex;">
|
|
|
<div class="bottomCardLeft0">
|
|
|
<middleCard v-if="weiHuSheBeiData.data.length" :info="weiHuSheBeiData" ref="sheBeiWeiHuRef"/>
|
|
|
</div>
|
|
|
- <dv-decoration-2 :reverse="true" style="width:3%;height:330px;margin: 0 10px;" />
|
|
|
+ <dv-decoration-2 v-if="weiHuSheBeiData.data.length" :reverse="true" style="width:3%;height:330px;margin: 0 10px;" />
|
|
|
<div style="width:37%">
|
|
|
<zhuzhuangtu v-if="sheBeiweiHuData.data.length" :info="sheBeiweiHuData" ref="sheBeiWeiHuDataref"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <dv-decoration-2 :reverse="true" style="width:5px;height:330px;margin: 0 10px;" />
|
|
|
+ <dv-decoration-2 v-if="sheBeiweiHuData.data.length" :reverse="true" style="width:5px;height:330px;margin: 0 10px;" />
|
|
|
<div style="width:31%;display:flex;">
|
|
|
<div class="bottomCardLeft">
|
|
|
<middleCard v-if="sheBeiHeChaData.data.length" :info="sheBeiHeChaData" ref="sheBeiHeChaRef"/>
|
|
|
</div>
|
|
|
- <dv-decoration-2 :reverse="true" style="width:5px;height:330px;margin: 0 10px;" />
|
|
|
+ <dv-decoration-2 v-if="sheBeiHeChaData.data.length" :reverse="true" style="width:5px;height:330px;margin: 0 10px;" />
|
|
|
<div style="width:37%">
|
|
|
<zhuzhuangtu v-if="bottomData.data.length" :info="bottomData" ref="bottomCardLeft"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <dv-decoration-2 :reverse="true" style="width:5px;height:330px;margin: 0 10px;" />
|
|
|
+ <dv-decoration-2 v-if="bottomData.data.length" :reverse="true" style="width:5px;height:330px;margin: 0 10px;" />
|
|
|
<div style="width:31%;display:flex;">
|
|
|
<div class="bottomCardright">
|
|
|
<middleCard v-if="jianDingjiaoZhunSheBeiData.data.length" :info="jianDingjiaoZhunSheBeiData" ref="jiandingRef"/>
|
|
|
</div>
|
|
|
- <dv-decoration-2 :reverse="true" style="width:3%;height:330px;margin: 0 10px;" />
|
|
|
+ <dv-decoration-2 v-if="jianDingjiaoZhunSheBeiData.data.length" :reverse="true" style="width:3%;height:330px;margin: 0 10px;" />
|
|
|
<div style="width:40%">
|
|
|
<zhuzhuangtu v-if="zhuantaiEData.data.length" :info="zhuantaiEData" ref="zhuantaiEDataref"/>
|
|
|
</div>
|
|
|
@@ -123,9 +125,10 @@ export default {
|
|
|
bottomData:{xData:[],data:[],config:{idSelector:""}},
|
|
|
zhuantaiEData:{xData:[],data:[],config:{idSelector:""}},
|
|
|
sheBeiweiHuData:{xData:[],data:[],config:{idSelector:""}},
|
|
|
- config:{ header:['设备名称','设备编号','规格型号','设备状态'],data:[]},
|
|
|
- shiyonglvConfig:{ header:['设备名称','设备编号','设备状态','频率'],data:[]},
|
|
|
+ config:{ header:['设备名称','设备编号','规格型号','设备状态'],data:[],columnWidth:['100','110','85','85'],rowNum:4,},
|
|
|
+ shiyonglvConfig:{ header:['设备名称','设备状态','频率'],data:[],columnWidth:['120','120','50'],rowNum:4},
|
|
|
zichan:0,
|
|
|
+ loading:true
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
@@ -133,6 +136,7 @@ export default {
|
|
|
this.allView();
|
|
|
}
|
|
|
this.updateAll();
|
|
|
+
|
|
|
},
|
|
|
beforeDestroy() {
|
|
|
if (screenfull.isFullscreen) {
|
|
|
@@ -444,7 +448,7 @@ export default {
|
|
|
result.forEach((item) => {
|
|
|
data1 = [];
|
|
|
data1.push(item.she_bei_ming_chen);
|
|
|
- data1.push(item.she_bei_bian_hao_);
|
|
|
+ // data1.push(item.she_bei_bian_hao_);
|
|
|
data1.push(item.she_bei_zhuang_ku);
|
|
|
data1.push(item.pinlv);
|
|
|
this_.shiyonglvConfig.data.push(data1);
|
|
|
@@ -456,7 +460,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
getAllMonyInt (monyArr){
|
|
|
- debugger
|
|
|
+
|
|
|
let mony = 0;
|
|
|
let filterMony = 0
|
|
|
monyArr.forEach(item=>{
|
|
|
@@ -513,10 +517,12 @@ export default {
|
|
|
.header {
|
|
|
position: relative;
|
|
|
width: 100%;
|
|
|
- height: 100px;
|
|
|
+ height: 7%;
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
flex-shrink: 0;
|
|
|
+ box-sizing: border-box;
|
|
|
+ overflow: hidden;
|
|
|
.left,
|
|
|
.right {
|
|
|
width: 25%;
|
|
|
@@ -559,6 +565,19 @@ export default {
|
|
|
}
|
|
|
.topCard{
|
|
|
width: 100%;
|
|
|
+ height: 20%;
|
|
|
+ box-sizing: border-box;
|
|
|
+ overflow: hidden;
|
|
|
+ }
|
|
|
+ .bottomCard{
|
|
|
+ height: 37%;
|
|
|
+ overflow: hidden;
|
|
|
+ box-sizing: border-box;
|
|
|
+ }
|
|
|
+ .middleCard{
|
|
|
+ height: 39%;
|
|
|
+ overflow: hidden;
|
|
|
+ box-sizing: border-box;
|
|
|
}
|
|
|
.middleCard,.bottomCard{
|
|
|
width: 100%;
|
|
|
@@ -569,15 +588,17 @@ export default {
|
|
|
}
|
|
|
.middleCardLeft{
|
|
|
width: 19%;
|
|
|
+ height: 100%;
|
|
|
}
|
|
|
.middleCardCenter{
|
|
|
width: 19%;
|
|
|
+ height: 100%;
|
|
|
}
|
|
|
.middleCardRight{
|
|
|
width: 28%;
|
|
|
}
|
|
|
.middleCardRight1{
|
|
|
- width: 25%;
|
|
|
+ width: 24%;
|
|
|
}
|
|
|
padding: 10px;
|
|
|
}
|
|
|
@@ -611,7 +632,7 @@ export default {
|
|
|
}
|
|
|
.dv-decoration-10 {
|
|
|
width: 96%;
|
|
|
- margin: 7px 2% 0;
|
|
|
+ margin: 7px 0 0;
|
|
|
height: 5px;
|
|
|
}
|
|
|
</style>
|