Compare commits

..

No commits in common. "6661eb29616237258d3a07e39a2d83e829b79b66" and "4f4f1fe42285d7964658681004ca5ebe0efecfb2" have entirely different histories.

3 changed files with 15 additions and 2083 deletions

View File

@ -1,11 +1,11 @@
<template> <template>
<div id="app"> <div id="app">
<div class="top"> <div class="top">
<div class="left" text="盐都电力可视化系统"> <div class="left">
盐都电力可视化系统 盐都电力可视化系统
</div> </div>
<div class="middle"> <div class="middle">
<div class="router" :class="{'active':routerActive==index}" v-for="(item,index) in routerTitle" @click="handleChange(index)" :key="index" :text="item">{{item}}</div> <div class="router" :class="{'active':routerActive==index}" v-for="(item,index) in routerTitle" @click="handleChange(index)" :key="index">{{item}}</div>
</div> </div>
<div class="right"> <div class="right">
<div class="time"> <div class="time">
@ -52,9 +52,7 @@ export default {
let that = this; let that = this;
this.routerActive = index this.routerActive = index
if (this.routerActive == 0) { if (this.routerActive == 0) {
if (this.$route.name != 'index') { that.$router.push({name:'home'})
that.$router.push({name:'index'})
}
}else if (this.routerActive == 3) { }else if (this.routerActive == 3) {
that.$router.push({name:'stationBuilding'}) that.$router.push({name:'stationBuilding'})
} }
@ -100,13 +98,6 @@ export default {
text-align: left; text-align: left;
box-sizing: border-box; box-sizing: border-box;
} }
.left:before{
content: attr(text);
position: absolute;
z-index: 10;
color:rgb(86, 254, 246);
-webkit-mask:linear-gradient(to top, rgb(86,244,254), transparent );
}
.middle{ .middle{
width: auto; width: auto;
height: 78px; height: 78px;
@ -124,13 +115,7 @@ export default {
color: #ffffff; color: #ffffff;
background: url('./assets/images/routerActive.png') no-repeat; background: url('./assets/images/routerActive.png') no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
}
.active:before{
content: attr(text);
position: absolute;
z-index: 10;
color:rgb(86, 254, 246);
-webkit-mask:linear-gradient(to top, rgb(86,244,254), transparent );
} }
} }
.right{ .right{

File diff suppressed because it is too large Load Diff

View File

@ -178,9 +178,13 @@
</el-option> </el-option>
</el-select> </el-select>
</div> </div>
<div class="screen">
<div class="btn"></div>
<div class="btn"></div>
</div>
</div> </div>
<div class="detailed"> <div class="detailed">
<div class="two" style="height: 350px; width: 780px;display: flex;flex-direction: column;align-items: center;"> <div class="two" style="height: 350px; width: 780px">
<div class="cartitle"> <div class="cartitle">
<div class="titleFont"> <div class="titleFont">
本周路线故障跳闸明细 本周路线故障跳闸明细
@ -456,16 +460,6 @@ export default {
let dataPbty = []; let dataPbty = [];
dataPbty = res.data.data dataPbty = res.data.data
this.detailedFive(dataPbty); this.detailedFive(dataPbty);
console.log(dataPbty,'配变停运');
let dataPb = [];
let dataCf = [];
for (let i = 0; i < dataPbty.length; i++) {
dataPb.push(dataPbty[i].pbsl);
dataCf.push(dataPbty[i].cftytc);
}
this.topContent[0].count = dataPb.reduce((x, y) => x + y)
this.topContent[1].count = dataCf.reduce((x, y) => x + y)
console.log(dataCf.reduce((x, y) => x + y),'总数');
}) })
this.handleDate(0); this.handleDate(0);
let that = this; let that = this;
@ -626,6 +620,7 @@ export default {
myChart.setOption(option); myChart.setOption(option);
}, },
detailedTwo(dataGdzl){ detailedTwo(dataGdzl){
console.log(dataGdzl,'供电质量');
let gdsList = []; let gdsList = [];
let xlcczList = []; let xlcczList = [];
let pbcczList = []; let pbcczList = [];
@ -1238,6 +1233,7 @@ export default {
}, },
detailedFive(dataPbty){ detailedFive(dataPbty){
console.log(dataPbty,'dataPbty');
let dataListx = []; let dataListx = [];
let dataPb = []; let dataPb = [];
let dataGz = []; let dataGz = [];
@ -1461,14 +1457,6 @@ export default {
let dataPbty = []; let dataPbty = [];
dataPbty = res.data.data dataPbty = res.data.data
this.detailedFive(dataPbty); this.detailedFive(dataPbty);
let dataPb = [];
let dataCf = [];
for (let i = 0; i < dataPbty.length; i++) {
dataPb.push(dataPbty[i].pbsl);
dataCf.push(dataPbty[i].cftytc);
}
this.topContent[0].count = dataPb.reduce((x, y) => x + y)
this.topContent[1].count = dataCf.reduce((x, y) => x + y)
}) })
}else if (index == 1) { }else if (index == 1) {
// //
@ -1478,14 +1466,6 @@ export default {
let dataPbty = []; let dataPbty = [];
dataPbty = res.data.data dataPbty = res.data.data
this.detailedFive(dataPbty); this.detailedFive(dataPbty);
let dataPb = [];
let dataCf = [];
for (let i = 0; i < dataPbty.length; i++) {
dataPb.push(dataPbty[i].pbsl);
dataCf.push(dataPbty[i].cftytc);
}
this.topContent[0].count = dataPb.reduce((x, y) => x + y)
this.topContent[1].count = dataCf.reduce((x, y) => x + y)
}) })
} }
}, },
@ -1725,23 +1705,19 @@ export default {
background-size: 100% 100%; background-size: 100% 100%;
} }
}; };
} }
.two{ .two{
.detailedOneList{ .detailedOneList{
display: flex; display: flex;
flex-direction: row; flex-direction: row;
justify-content: space-evenly; justify-content: space-evenly;
height: 10%; height: 10%;
align-items: center; align-items: center;
color:#ffffff; color:#ffffff;
background: url("../assets/images/tableBg.png") no-repeat; background: rgb(18,54,87);
background-size: 100% 100%;
width:96%;
} }
} }
.detailed { .detailed {
display: flex; display: flex;
flex-flow: row nowrap; flex-flow: row nowrap;