Browse Source

可视化

buzhi 2 years ago
parent
commit
ad16cea4b5

+ 30 - 17
src/views/DataVisualization/detailPage/components/wzcb.vue

@@ -2,7 +2,7 @@
2 2
 <template>
3 3
   <div class="box">
4 4
     <div class="list" v-for="(item, index) in tableData" :key="index">
5
-      <div class="card_img"></div>
5
+      <div :class="'card_img card_img_' + index"></div>
6 6
       <div class="card_content">
7 7
         <span class="card_name">{{ item.name }}</span>
8 8
         <span class="card_value">{{ item.value }}</span>
@@ -51,40 +51,53 @@ onMounted(() => {});
51 51
 }
52 52
 .list {
53 53
   width: 49%;
54
-  height: 46%;
54
+  height: 45%;
55 55
   box-sizing: border-box;
56 56
   background: url("@/assets/emergencyImg/center_new/bj.png") no-repeat;
57
-  background-size: 100% auto;
57
+  background-size: 100% 100%;
58 58
   display: flex;
59 59
   color: #ffffff;
60 60
   display: flex;
61 61
   align-items: center;
62 62
 }
63
-.list .card_img{
64
-  flex: 10%;
65
-  /* background: aqua; */
63
+.list .card_img {
64
+  flex: 35%;
66 65
   height: 100%;
67 66
 }
68
-.list .card_content{
69
-  flex: 90%;
67
+.list .card_content {
68
+  flex: 65%;
70 69
   /* background: pink; */
70
+  display: flex;
71
+  align-items: center;
71 72
 }
72
-.card_content .card_name{
73
-  margin-right: 20px;
73
+.card_content .card_name {
74
+  flex: 30%;
74 75
 }
75
-.card_content .card_value{
76
+.card_content .card_value {
77
+  flex: 60%;
76 78
   font-size: 18px;
77 79
   font-weight: 700;
80
+  box-sizing: border-box;
81
+  padding-right: 10px;
78 82
   background: linear-gradient(to bottom, rgb(202, 226, 254), rgb(242, 248, 255));
79 83
   -webkit-background-clip: text;
80 84
   -webkit-text-fill-color: transparent;
81
-  /* box-shadow: #ffffff 0 0 2px 5px; */
82
-
83 85
 }
84 86
 
85
-.list_left_3 .icon {
86
-  background: url("@/assets/emergencyImg/center_4.png") no-repeat;
87
-  /* background-size: 100% 100%; */
88
-  background-position: 65px 62px;
87
+.list .card_img_0 {
88
+  background: url("@/assets/emergencyImg/center_new/c.png") no-repeat 50% 50%;
89
+  background-size: auto 75%;
90
+}
91
+.list .card_img_1 {
92
+  background: url("@/assets/emergencyImg/center_new/d.png") no-repeat 50% 50%;
93
+  background-size: auto 75%;
94
+}
95
+.list .card_img_2 {
96
+  background: url("@/assets/emergencyImg/center_new/f.png") no-repeat 50% 50%;
97
+  background-size: auto 75%;
98
+}
99
+.list .card_img_3 {
100
+  background: url("@/assets/emergencyImg/center_new/l.png") no-repeat 50% 50%;
101
+  background-size: auto 75%;
89 102
 }
90 103
 </style>

+ 4 - 4
src/views/DataVisualization/detailPage/index.vue

@@ -122,13 +122,13 @@ const selectHandle = (val: any) => {
122 122
 }
123 123
 .container .content .center .center_title {
124 124
   width: 100%;
125
-  height: 34%;
125
+  height: 25%;
126 126
   /* background: #0d4aabcb; */
127 127
 }
128 128
 .container .content .center .center_content {
129
-  width: 95%;
130
-  margin-left: 5%;
131
-  height: 46%;
129
+  width: 96%;
130
+  margin-left: 4%;
131
+  height: 55%;
132 132
   /* background: rgba(255, 192, 203, 0.168); */
133 133
   background: url("@/assets/img/bg.jpg") no-repeat;
134 134
   background-size: 100% 100%;