|
|
@@ -4,12 +4,10 @@
|
|
|
<!-- <div class="title">设备信息情况</div> -->
|
|
|
<div class="bar">
|
|
|
<div v-for="(item, index) in topBarData" :key="index" class="item">
|
|
|
- <!-- <div class="title">{{ item.title }}</div> -->
|
|
|
- <div v-for="(v, i) in item.children" :key="i" class="box1">
|
|
|
- <div class="label">{{ v.label }}</div>
|
|
|
- <div class="count">
|
|
|
- <dv-digital-flop :config="v.data" class="flop" v-if="v.unit !='元'" />
|
|
|
- <dv-digital-flop :config="v.data" class="flops" v-else />
|
|
|
+ <div v-for="(v, i) in item.children" :key="i" class="box1" style="">
|
|
|
+ <div class="label" style="text-align: center; ">{{ v.label }}</div>
|
|
|
+ <div class="count" style="display: flex;justify-content: center;">
|
|
|
+ <div :style="{'color':1}">{{v.value}}{{ v.style.fill }}</div>
|
|
|
<div class="unit">{{ v.unit }}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -20,6 +18,8 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
+import color from '@/store/modules/ibps/modules/color';
|
|
|
+
|
|
|
export default {
|
|
|
name: "topBar",
|
|
|
props: {
|
|
|
@@ -76,7 +76,7 @@ export default {
|
|
|
textAlign: "center",
|
|
|
style: {
|
|
|
fill: this.fontColor[this.getRandom(0, 11)],
|
|
|
- fontWeight: "bold",
|
|
|
+ // formatter
|
|
|
},
|
|
|
};
|
|
|
i.unit = i.danwei;
|
|
|
@@ -88,67 +88,41 @@ export default {
|
|
|
},
|
|
|
};
|
|
|
</script>
|
|
|
+
|
|
|
<style lang="scss" scoped>
|
|
|
-.content {
|
|
|
- height: 96%;
|
|
|
- width: 96%;
|
|
|
- margin-left: 30px;
|
|
|
- padding: 10px;
|
|
|
- min-height: 0px;
|
|
|
- overflow: hidden;
|
|
|
+.content{
|
|
|
+ height: 82%;
|
|
|
+ width: 100%;
|
|
|
+ // background-color: rgba(6, 30, 93, 0.5);
|
|
|
+ // .title{
|
|
|
+ // // width: 100%;
|
|
|
+ // margin: 20px 2%;
|
|
|
+
|
|
|
+ // }
|
|
|
}
|
|
|
.bar {
|
|
|
- width: 100%;
|
|
|
position: relative;
|
|
|
- margin: 0 5px 11px;
|
|
|
+ margin: 20px 2%;
|
|
|
+ width: 96%;
|
|
|
height: 150px;
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
align-items: center;
|
|
|
- border: none;
|
|
|
background-color: rgba(6, 30, 93, 0.5);
|
|
|
- .box1{
|
|
|
- text-align: center;
|
|
|
- font-size: 12px;
|
|
|
- display: inline-block;
|
|
|
- width: 33%;
|
|
|
- .label {
|
|
|
- text-align: center;
|
|
|
- font-size: 14px;
|
|
|
- }
|
|
|
- .count{
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
- .flop {
|
|
|
- width: 80px;
|
|
|
- height: 40px;
|
|
|
- font-size: 10px;
|
|
|
- }
|
|
|
- .flops {
|
|
|
- width: 160px;
|
|
|
- height: 40px;
|
|
|
- font-size: 10px;
|
|
|
- }
|
|
|
- .unit {
|
|
|
- margin-left: 10px;
|
|
|
- box-sizing: border-box;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
.item {
|
|
|
width: 20%;
|
|
|
- // height: 60%;
|
|
|
- padding: 1px 15px;
|
|
|
+ // width: calc(100% / 13);
|
|
|
+ height: 60%;
|
|
|
+ padding: 6px 6px;
|
|
|
border-left: 5px solid rgb(6, 30, 93);
|
|
|
&:first-child {
|
|
|
- width: 28%;
|
|
|
+ width: 34%;
|
|
|
display: flex;
|
|
|
justify-content: space-around;
|
|
|
align-items: center;
|
|
|
+ box-sizing: border-box;
|
|
|
.box1 {
|
|
|
- width: 19%;
|
|
|
+ width: 20%;
|
|
|
}
|
|
|
}
|
|
|
&:nth-child(2) {
|
|
|
@@ -156,8 +130,9 @@ export default {
|
|
|
display: flex;
|
|
|
justify-content: space-around;
|
|
|
align-items: center;
|
|
|
+ box-sizing: border-box;
|
|
|
.box1 {
|
|
|
- width: 48%;
|
|
|
+ width: 50%;
|
|
|
}
|
|
|
}
|
|
|
&:nth-child(3) {
|
|
|
@@ -165,8 +140,9 @@ export default {
|
|
|
display: flex;
|
|
|
justify-content: space-around;
|
|
|
align-items: center;
|
|
|
+ box-sizing: border-box;
|
|
|
.box1 {
|
|
|
- width: 48%;
|
|
|
+ width: 50%;
|
|
|
}
|
|
|
}
|
|
|
&:nth-child(4) {
|
|
|
@@ -174,15 +150,17 @@ export default {
|
|
|
display: flex;
|
|
|
justify-content: space-around;
|
|
|
align-items: center;
|
|
|
+ box-sizing: border-box;
|
|
|
.box1 {
|
|
|
- width: 48%;
|
|
|
+ width: 50%;
|
|
|
}
|
|
|
}
|
|
|
&:last-child {
|
|
|
- width: 26%;
|
|
|
+ width: 25%;
|
|
|
display: flex;
|
|
|
justify-content: space-around;
|
|
|
align-items: center;
|
|
|
+ box-sizing: border-box;
|
|
|
.box1 {
|
|
|
width: 33%;
|
|
|
}
|
|
|
@@ -193,42 +171,43 @@ export default {
|
|
|
font-weight: bold;
|
|
|
margin-bottom: 20px;
|
|
|
}
|
|
|
- // .box {
|
|
|
- // display: inline-block;
|
|
|
- // width: 33%;
|
|
|
- // .label {
|
|
|
- // text-align: center;
|
|
|
- // font-size: 14px;
|
|
|
- // }
|
|
|
- // .count {
|
|
|
- // display: flex;
|
|
|
- // align-items: center;
|
|
|
- // justify-content: center;
|
|
|
- // .flop {
|
|
|
- // width: 80px;
|
|
|
- // height: 40px;
|
|
|
- // font-size: 10px;
|
|
|
- // }
|
|
|
- // .flops {
|
|
|
- // width: 160px;
|
|
|
- // height: 40px;
|
|
|
- // font-size: 10px;
|
|
|
- // }
|
|
|
- // .unit {
|
|
|
- // margin-left: 10px;
|
|
|
- // box-sizing: border-box;
|
|
|
- // }
|
|
|
- // }
|
|
|
- // }
|
|
|
+ .box {
|
|
|
+ display: inline-block;
|
|
|
+ width: 33%;
|
|
|
+ .label {
|
|
|
+ text-align: center;
|
|
|
+ font-size: 14px;
|
|
|
+ }
|
|
|
+ .count {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ .flop {
|
|
|
+ width: 60px;
|
|
|
+ height: 40px;
|
|
|
+ font-size: 18px;
|
|
|
+ }
|
|
|
+ .flops{
|
|
|
+ width: 180px;
|
|
|
+ height: 40px;
|
|
|
+ font-size: 10px;
|
|
|
+ }
|
|
|
+ .unit {
|
|
|
+ margin-left: 10px;
|
|
|
+ box-sizing: border-box;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
|
#top-bar {
|
|
|
- height: 180px;
|
|
|
+ height: 90%;
|
|
|
+ width: 100%;
|
|
|
}
|
|
|
.dv-decoration-10 {
|
|
|
width: 96%;
|
|
|
- margin: -20px 40px 0;
|
|
|
- height: 5px;
|
|
|
+ margin: 7px 2% 0;
|
|
|
+ height: 10%;
|
|
|
}
|
|
|
</style>
|