Bläddra i källkod

执勤战备力数据调整

ming 1 år sedan
förälder
incheckning
d05fbc3655
1 ändrade filer med 28 tillägg och 5 borttagningar
  1. 28 5
      src/views/security-plan.vue

+ 28 - 5
src/views/security-plan.vue

@@ -108,7 +108,7 @@
 
                         <el-row>
                             <el-col :span="5"  style="border: 1px solid rgba(48, 207, 255, 0.6); margin: .25rem .08rem .125rem .16rem; box-shadow: inset 0 0 0.07rem 0.04rem rgb(115 251 253 / 40%); box-sizing: border-box"
-                              v-for="(item,index) in staticData.array" :key="index">
+                              v-for="(item,index) in staticData.array1" :key="index">
                                 <div style="padding: 0.2rem 0; text-align: center">
                                     <span style="display: block">
                                         <Strong :style="{ color: item.color, fontSize: '0.3rem'}" >
@@ -116,7 +116,7 @@
                                         </Strong>
                                     </span>
-                                    <span>{{item.streetTown}}</span>
+                                    <span style="font-size:.1375rem">{{item.streetTown}}</span>
                                 </div>
                             </el-col>
 
@@ -885,7 +885,29 @@ export default {
         arrayData:[],
         staticData:{
             array:[],
-            total:0
+            total:0,
+            array1:[
+                {
+                    "streetTown": "消防站",
+                    "count": 21,
+                    "color": "#FF0709"
+                },
+                {
+                    "streetTown": "流动消防站(一级)",
+                    "count": 27,
+                    "color": "#F48354"
+                },
+                {
+                    "streetTown": "流动消防站(二级",
+                    "count": 26,
+                    "color": "#73FBFD"
+                },
+                {
+                    "streetTown": "微型消防站",
+                    "count": 11,
+                    "color": "#4FE261"
+                }
+            ]
 
         },
         zfjly1:undefined,
@@ -1270,6 +1292,7 @@ export default {
                     this.staticData.array.forEach((item, index) => {
                         item.color = colorArr[index]
                     })
+                    console.log(this.staticData.array)
 
                     var totalCount=0
                     res.data.forEach(function(item){
@@ -2301,8 +2324,8 @@ export default {
 .contentBox {
     .leftBox {
         .leftTop {
-            height: 40%;
-            max-height: 40%;
+            height: 43%;
+            max-height: 43%;
             justify-content: center;
             align-items: center;
             box-sizing: border-box;