Commit 66faa378fcf9c54e6585a9447e1bcdbbacfc9fe2

Authored by liuqimichale
1 parent e00e4982

道闸 诱导屏

src/assets/img/bg-wrap.png 0 → 100644

2.76 KB

src/components/allPieChart.vue
@@ -21,7 +21,7 @@ export default { @@ -21,7 +21,7 @@ export default {
21 }, 21 },
22 height: { 22 height: {
23 type: String, 23 type: String,
24 - default: '350px' 24 + default: '205px'
25 }, 25 },
26 autoResize: { 26 autoResize: {
27 type: Boolean, 27 type: Boolean,
@@ -72,14 +72,16 @@ export default { @@ -72,14 +72,16 @@ export default {
72 trigger: 'item', 72 trigger: 'item',
73 formatter: "{b} : {c} ({d}%)" 73 formatter: "{b} : {c} ({d}%)"
74 }, 74 },
75 - series: [{ 75 + series: [
  76 +
  77 + {
76 name: '内环', 78 name: '内环',
77 type: 'pie', 79 type: 'pie',
78 silent: true, 80 silent: true,
79 clockWise: true, 81 clockWise: true,
80 hoverAnimation: false, 82 hoverAnimation: false,
81 animationType: 'scale', 83 animationType: 'scale',
82 - radius: '8%', 84 + radius: ['10%','16%'],
83 center: ['50%', '50%'], 85 center: ['50%', '50%'],
84 label: { 86 label: {
85 normal: { 87 normal: {
@@ -93,10 +95,10 @@ export default { @@ -93,10 +95,10 @@ export default {
93 color: { 95 color: {
94 colorStops: [{ 96 colorStops: [{
95 offset: 0, 97 offset: 0,
96 - color: '#fff' // 0% 处的颜色 98 + color: '#157ADB' // 0% 处的颜色
97 }, { 99 }, {
98 offset: 1, 100 offset: 1,
99 - color: '#cfcfcf' // 100% 处的颜色 101 + color: '#157ADB' // 100% 处的颜色
100 }] 102 }]
101 } 103 }
102 } 104 }
@@ -107,7 +109,7 @@ export default { @@ -107,7 +109,7 @@ export default {
107 { 109 {
108 name: '半径模式', 110 name: '半径模式',
109 type: 'pie', 111 type: 'pie',
110 - radius: ['10%', '40%'], 112 + radius: ['20%', '100%'],
111 center: ['50%', '50%'], 113 center: ['50%', '50%'],
112 roseType: 'radius', 114 roseType: 'radius',
113 label: { 115 label: {
@@ -116,57 +118,42 @@ export default { @@ -116,57 +118,42 @@ export default {
116 lableLine: { 118 lableLine: {
117 show: false 119 show: false
118 }, 120 },
119 - data: [{  
120 - value: 55,  
121 - name: '待维修',  
122 - itemStyle: {  
123 - normal: {  
124 - color: {  
125 - colorStops: [{  
126 - offset: 0,  
127 - color: '#FF7671' // 0% 处的颜色  
128 - }, {  
129 - offset: 1,  
130 - color: '#A14AFF' // 100% 处的颜色  
131 - }]  
132 - },  
133 - }  
134 - }  
135 - }, 121 + data: [
136 { 122 {
137 value: 35, 123 value: 35,
138 - name: '维修中', 124 + name: '诱导屏',
139 itemStyle: { 125 itemStyle: {
140 normal: { 126 normal: {
141 color: { 127 color: {
142 colorStops: [{ 128 colorStops: [{
143 offset: 0, 129 offset: 0,
144 - color: '#FFEA4F' // 0% 处的颜色 130 + color: '#FFBA00' // 0% 处的颜色
145 }, { 131 }, {
146 offset: 1, 132 offset: 1,
147 - color: '#F89212' // 100% 处的颜色 133 + color: '#FF8100' // 100% 处的颜色
148 }] 134 }]
149 }, 135 },
150 } 136 }
151 } 137 }
152 }, 138 },
153 { 139 {
154 - value: 200,  
155 - name: '运行中', 140 + value: 55,
  141 + name: '道闸',
156 itemStyle: { 142 itemStyle: {
157 normal: { 143 normal: {
158 color: { 144 color: {
159 colorStops: [{ 145 colorStops: [{
160 offset: 0, 146 offset: 0,
161 - color: '#57FFE0' // 0% 处的颜色 147 + color: '#00CAFE' // 0% 处的颜色
162 }, { 148 }, {
163 offset: 1, 149 offset: 1,
164 - color: '#3469E2' // 100% 处的颜色 150 + color: '#2772F4' // 100% 处的颜色
165 }] 151 }]
166 }, 152 },
167 } 153 }
168 } 154 }
169 - } 155 + },
  156 +
170 ], 157 ],
171 animationType: 'scale', 158 animationType: 'scale',
172 animationEasing: 'elasticOut', 159 animationEasing: 'elasticOut',
src/views/dicisection.vue
@@ -64,6 +64,7 @@ export default { @@ -64,6 +64,7 @@ export default {
64 @mixin textStyle($color){ 64 @mixin textStyle($color){
65 padding-right: 23px; 65 padding-right: 23px;
66 text-align: left; 66 text-align: left;
  67 + font-size: 12px;
67 color: $color; 68 color: $color;
68 } 69 }
69 @mixin borderStyle($color) { 70 @mixin borderStyle($color) {
@@ -83,6 +84,7 @@ export default { @@ -83,6 +84,7 @@ export default {
83 width: 80px; 84 width: 80px;
84 padding-left: 23px; 85 padding-left: 23px;
85 text-align: left; 86 text-align: left;
  87 + font-size: 14px;
86 color: $color; 88 color: $color;
87 } 89 }
88 .dici-wrap{ 90 .dici-wrap{
src/views/youdaopingsection.vue
@@ -5,18 +5,17 @@ @@ -5,18 +5,17 @@
5 <li> 5 <li>
6 <div> 6 <div>
7 <div class="bg-wrap"> 7 <div class="bg-wrap">
8 - <p>123</p>  
9 - <p>123</p> 8 + <p class="dznum-total">{{ dzNum|formatNum }}</p>
  9 + <p class="name">道闸</p>
10 </div> 10 </div>
11 </div> 11 </div>
12 <div> 12 <div>
13 <div class="bg-wrap"> 13 <div class="bg-wrap">
14 - <p>123</p>  
15 - <p>123</p> 14 + <p class="ydpnum-total">{{ ydpNum|formatNum }}</p>
  15 + <p class="name">诱导屏</p>
16 </div> 16 </div>
17 </div> 17 </div>
18 </li> 18 </li>
19 - <!--<allPieChart tag="li"></allPieChart>-->  
20 <li> 19 <li>
21 <allPieChart :chart-data="lineChartData"/> 20 <allPieChart :chart-data="lineChartData"/>
22 </li> 21 </li>
@@ -46,7 +45,9 @@ export default { @@ -46,7 +45,9 @@ export default {
46 }, 45 },
47 data() { 46 data() {
48 return { 47 return {
49 - lineChartData: lineChartData.newVisitis 48 + lineChartData: lineChartData.newVisitis,
  49 + dzNum: '23454',
  50 + ydpNum: '4454'
50 } 51 }
51 }, 52 },
52 created() { 53 created() {
@@ -66,19 +67,38 @@ export default { @@ -66,19 +67,38 @@ export default {
66 <style lang="scss" scoped> 67 <style lang="scss" scoped>
67 .ydp-dz-wrap{ 68 .ydp-dz-wrap{
68 display: flex; 69 display: flex;
  70 + text-align: center;
69 li{ 71 li{
70 height: 100%; 72 height: 100%;
71 flex: 1; 73 flex: 1;
72 &:nth-of-type(1)>div{ 74 &:nth-of-type(1)>div{
73 height: 50%; 75 height: 50%;
74 .bg-wrap{ 76 .bg-wrap{
75 - width: 111px;  
76 - height: 52px; 77 + width: 115px;
  78 + height: 59px;
  79 + padding: 13px 0 0 0;
77 position: relative; 80 position: relative;
78 top:50%; 81 top:50%;
79 left: 50%; 82 left: 50%;
80 transform: translate(-50%,-50%); 83 transform: translate(-50%,-50%);
81 - background-color: #f00; 84 + background:url("../assets/img/bg-wrap.png") no-repeat;
  85 + .dznum-total,.ydpnum-total{
  86 + font-size: 17px;
  87 + font-weight:bold;
  88 + -webkit-background-clip: text;
  89 + -webkit-text-fill-color: transparent;
  90 + }
  91 + .dznum-total{
  92 + background-image: -webkit-gradient(linear, 0 0, 0 bottom, from(rgba(0,202,254, 1)), to(rgba(39,114,244, 1)));
  93 + }
  94 + .ydpnum-total{
  95 + background-image: -webkit-gradient(linear, 0 0, 0 bottom, from(rgba(255,186,0, 1)), to(rgba(255,129,0, 1)));
  96 + }
  97 + .name{
  98 + padding-top: 5px;
  99 + font-size: 12px;
  100 + color: #fff;
  101 + }
82 } 102 }
83 } 103 }
84 } 104 }