|
@@ -16,32 +16,52 @@
|
|
|
<li :class="{current: num==3}" @click="change(3)">执行率</li>
|
|
|
</div>
|
|
|
<div class="count-top-right">
|
|
|
- <el-date-picker v-model="value1" type="date"></el-date-picker>
|
|
|
+ <span class="arrow-left"></span>
|
|
|
+ <span class="arrow-line arrow-line1"></span>
|
|
|
+ <el-date-picker v-model="value1" placeholder="2020-02-19" type="date"></el-date-picker>
|
|
|
+ <span class="arrow-line"></span>
|
|
|
+ <span class="arrow-right"></span>
|
|
|
</div>
|
|
|
</ul>
|
|
|
|
|
|
<div class="count-bottom">
|
|
|
<div v-show="num == 1">
|
|
|
<div class="count-bottom-title">
|
|
|
- <span class="span1"></span>
|
|
|
- <span class="span2">室内温度满足率</span>
|
|
|
- <span class="span3">90.2%</span>
|
|
|
+ <span class="count-bottom-text">
|
|
|
+ <span class="span1"></span>
|
|
|
+ <span class="span2">室内温度满足率</span>
|
|
|
+ <span class="span3">90.2%</span>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ <div class="count-bottom-switch">
|
|
|
+ <span class="switchSpan">只显示不满足的点位</span>
|
|
|
+ <el-switch v-model="value2"></el-switch>
|
|
|
+ </div>
|
|
|
+ <div class="count-bottom-content">
|
|
|
+ <ev-two-table :switch="value2"></ev-two-table>
|
|
|
+ </div>
|
|
|
+ <div class="count-bottom-foot">
|
|
|
+ <ev-stacked-line></ev-stacked-line>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div v-show="num == 2">
|
|
|
<div class="count-bottom-title">
|
|
|
- <span class="span1"></span>
|
|
|
- <span class="span2">节能率</span>
|
|
|
- <span class="span4">22.6%</span>
|
|
|
- <span class="span5">准确率</span>
|
|
|
- <span class="span6">90%</span>
|
|
|
+ <span class="count-bottom-text">
|
|
|
+ <span class="span1"></span>
|
|
|
+ <span class="span2">节能率</span>
|
|
|
+ <span class="span4">22.6%</span>
|
|
|
+ <span class="span5">准确率</span>
|
|
|
+ <span class="span6">90%</span>
|
|
|
+ </span>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div v-show="num == 3">
|
|
|
<div class="count-bottom-title">
|
|
|
- <span class="span1"></span>
|
|
|
- <span class="span2">执行率</span>
|
|
|
- <img class="span7" src="../../assets/finish.png" alt />
|
|
|
+ <span class="count-bottom-text">
|
|
|
+ <span class="span1"></span>
|
|
|
+ <span class="span2">执行率</span>
|
|
|
+ <img class="span7" src="../../assets/finish.png" alt />
|
|
|
+ </span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -51,42 +71,59 @@
|
|
|
</template>
|
|
|
<script>
|
|
|
import Head from "../main/index";
|
|
|
+import EvTwoTable from "./evTwoTable";
|
|
|
+import EvStackedLine from "./evStackedLine";
|
|
|
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
headText: "运行评价",
|
|
|
num: 1,
|
|
|
- value1: ""
|
|
|
+ value1: "",
|
|
|
+ value2: true
|
|
|
};
|
|
|
},
|
|
|
components: {
|
|
|
- Head
|
|
|
+ Head,
|
|
|
+ EvTwoTable,
|
|
|
+ EvStackedLine
|
|
|
+ },
|
|
|
+ mounted(){
|
|
|
+this.dateNow()
|
|
|
},
|
|
|
methods: {
|
|
|
change: function(index) {
|
|
|
this.num = index;
|
|
|
- }
|
|
|
+ },
|
|
|
+ dateNow() {
|
|
|
+ var day = new Date()
|
|
|
+ day.setTime(day.getTime() - 24 * 60 * 60 * 1000)
|
|
|
+ let years = day.getFullYear()
|
|
|
+ let months = day.getMonth() + 1
|
|
|
+ let days = day.getDate()
|
|
|
+ if (months < 10) {
|
|
|
+ months = '0' + months
|
|
|
+ } else if (days < 10) {
|
|
|
+ days = '0' + days
|
|
|
+ }
|
|
|
+ this.dateValue = `${years}${months}${days}`
|
|
|
+ }
|
|
|
}
|
|
|
};
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
|
.evTwoContainer {
|
|
|
background: #fff;
|
|
|
- // padding: 0 24px;
|
|
|
.count-top {
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
- background: rgba(247, 249, 250, 1);
|
|
|
-
|
|
|
ul {
|
|
|
display: flex;
|
|
|
padding: 0 24px;
|
|
|
justify-content: space-between;
|
|
|
align-items: center;
|
|
|
- // padding: 0;
|
|
|
margin: 0;
|
|
|
-
|
|
|
+ background: #f7f9fa;
|
|
|
text-align: center;
|
|
|
.count-top-left {
|
|
|
display: flex;
|
|
@@ -127,6 +164,36 @@ export default {
|
|
|
border-radius: 6px;
|
|
|
margin: 10px 0;
|
|
|
border: 1px solid rgba(195, 198, 203, 1);
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ .arrow-left {
|
|
|
+ width: 0;
|
|
|
+ height: 0;
|
|
|
+ border-top: 7px solid transparent;
|
|
|
+ border-bottom: 7px solid transparent;
|
|
|
+ border-right: 7px solid #9ca2a9;
|
|
|
+ margin-right: 6px;
|
|
|
+ margin-left: 8px;
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
+ .arrow-right {
|
|
|
+ width: 0;
|
|
|
+ height: 0;
|
|
|
+ border-top: 7px solid transparent;
|
|
|
+ border-bottom: 7px solid transparent;
|
|
|
+ border-left: 7px solid #9ca2a9;
|
|
|
+ margin-right: 8px;
|
|
|
+ margin-left: 6px;
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
+ .arrow-line {
|
|
|
+ width: 1px;
|
|
|
+ height: 22px;
|
|
|
+ background: rgba(228, 229, 231, 1);
|
|
|
+ }
|
|
|
+ .arrow-line1 {
|
|
|
+ margin-right: 6.5px;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -143,20 +210,88 @@ export default {
|
|
|
margin-right: 22px;
|
|
|
}
|
|
|
.count-bottom {
|
|
|
- height: 100%;
|
|
|
padding: 0 24px;
|
|
|
+ height: auto;
|
|
|
background: #fff;
|
|
|
+ margin-top: 22px;
|
|
|
.count-bottom-title {
|
|
|
- display: inline-block;
|
|
|
- // display: flex;
|
|
|
- height: 90px;
|
|
|
- background: rgba(248, 249, 250, 1);
|
|
|
- border-radius: 6px;
|
|
|
- border: 1px solid rgba(238, 238, 238, 1);
|
|
|
- span{
|
|
|
- display: inline-block;
|
|
|
+ display: flex;
|
|
|
+ .count-bottom-text {
|
|
|
+ height: 90px;
|
|
|
+ background: rgba(248, 249, 250, 1);
|
|
|
+ border-radius: 6px;
|
|
|
+ border: 1px solid rgba(238, 238, 238, 1);
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ padding-right: 34px;
|
|
|
+ .span1 {
|
|
|
+ width: 6px;
|
|
|
+ height: 90px;
|
|
|
+ background: rgba(0, 145, 255, 1);
|
|
|
+ border-radius: 6px 0 0 6px;
|
|
|
+ margin-right: 28px;
|
|
|
+ }
|
|
|
+ .span2 {
|
|
|
+ font-size: 28px;
|
|
|
+ font-family: MicrosoftYaHeiSemibold;
|
|
|
+ color: rgba(31, 36, 41, 1);
|
|
|
+ margin-right: 16px;
|
|
|
+ }
|
|
|
+ .span3 {
|
|
|
+ font-size: 34px;
|
|
|
+ font-family: Persagy-Bold, Persagy;
|
|
|
+ font-weight: bold;
|
|
|
+ color: rgba(31, 36, 41, 1);
|
|
|
+ }
|
|
|
+ .span4 {
|
|
|
+ font-size: 34px;
|
|
|
+ font-family: Persagy-Bold, Persagy;
|
|
|
+ font-weight: bold;
|
|
|
+ color: rgba(31, 36, 41, 1);
|
|
|
+ margin-right: 44px;
|
|
|
+ }
|
|
|
+ .span5 {
|
|
|
+ font-size: 22px;
|
|
|
+ font-family: PingFangSC-Regular, PingFang SC;
|
|
|
+ font-weight: 400;
|
|
|
+ color: rgba(100, 108, 115, 1);
|
|
|
+ margin-right: 12px;
|
|
|
+ }
|
|
|
+ .span6 {
|
|
|
+ font-size: 22px;
|
|
|
+ font-family: Persagy;
|
|
|
+ color: rgba(100, 108, 115, 1);
|
|
|
+ }
|
|
|
+ .span7 {
|
|
|
+ width: 28px;
|
|
|
+ height: 28px;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
+ .count-bottom-switch {
|
|
|
+ display: flex;
|
|
|
+ justify-content: flex-end;
|
|
|
+ align-items: center;
|
|
|
+ margin-top: -15px;
|
|
|
+ .switchSpan {
|
|
|
+ height: 31px;
|
|
|
+ font-size: 20px;
|
|
|
+ font-family: PingFangSC-Regular, PingFang SC;
|
|
|
+ font-weight: 400;
|
|
|
+ color: rgba(31, 36, 41, 1);
|
|
|
+ line-height: 28px;
|
|
|
+ margin-right: 22px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .count-bottom-content {
|
|
|
+ margin-top: 12px;
|
|
|
+ }
|
|
|
+ .count-bottom-foot {
|
|
|
+ margin-top: 46px;
|
|
|
+ height: 480px;
|
|
|
+ background: rgba(255, 255, 255, 1);
|
|
|
+ border: 1px solid rgba(228, 230, 231, 1);
|
|
|
+ }
|
|
|
}
|
|
|
.current {
|
|
|
font-size: 16px;
|
|
@@ -170,6 +305,7 @@ export default {
|
|
|
</style>
|
|
|
<style lang="scss">
|
|
|
.count-top-right {
|
|
|
+ text-align: center;
|
|
|
.el-input__inner {
|
|
|
width: 132px;
|
|
|
margin: 7px 10px;
|
|
@@ -179,5 +315,33 @@ export default {
|
|
|
.el-input__icon {
|
|
|
display: none;
|
|
|
}
|
|
|
+ .el-input--prefix .el-input__inner {
|
|
|
+ padding-left: 20px;
|
|
|
+ }
|
|
|
+ .el-input--suffix .el-input__inner {
|
|
|
+ padding-right: 20px;
|
|
|
+ }
|
|
|
+}
|
|
|
+.count-bottom-switch {
|
|
|
+ .el-switch__core {
|
|
|
+ width: 56px !important;
|
|
|
+ height: 30px;
|
|
|
+ border-radius: 17px;
|
|
|
+ }
|
|
|
+ .el-switch.is-checked .el-switch__core::after {
|
|
|
+ left: 100%;
|
|
|
+ margin-left: -27px;
|
|
|
+ }
|
|
|
+ .el-switch__core:after {
|
|
|
+ content: "";
|
|
|
+ position: absolute;
|
|
|
+ border-radius: 100%;
|
|
|
+ -webkit-transition: all 0.3s;
|
|
|
+ transition: all 0.3s;
|
|
|
+ width: 28px;
|
|
|
+ height: 28px;
|
|
|
+ background-color: #fff;
|
|
|
+ top: 0;
|
|
|
+ }
|
|
|
}
|
|
|
</style>
|