manage-client 3.2.263 → 3.2.265
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/dev-server.js +180 -180
- package/package.json +111 -111
- package/src/filiale/kelai/ChargeQuery.vue +1341 -0
- package/src/filiale/kelai/sale.js +2 -1
- package/src/filiale/ningjin/CallReport/CallReportMainPage.vue +146 -0
- package/src/filiale/ningjin/CallReport/DropDownBox.vue +64 -0
- package/src/filiale/ningjin/CallReport/IncomingTelegram.vue +187 -0
- package/src/filiale/ningjin/CallReport/PercentageComplete.vue +413 -0
- package/src/filiale/ningjin/CallReport/PercentageCompleteEchart.vue +150 -0
- package/src/filiale/ningjin/CallReport/RateBottom.vue +143 -0
- package/src/filiale/ningjin/CallReport/RateTop.vue +144 -0
- package/src/filiale/ningjin/CallReport/ScrollContent.vue +143 -0
- package/src/filiale/ningjin/CallReport/ServiceStatus.vue +371 -0
- package/src/filiale/ningjin/CallReport/SwiperTools.vue +145 -0
- package/src/filiale/ningjin/CallReport/SwiperTools2.vue +176 -0
- package/src/filiale/ningjin/CallReport/Time.vue +100 -0
- package/src/filiale/ningjin/CallReport/Userinfo.vue +69 -0
- package/src/filiale/ningjin/CallReport/WeatherData.vue +108 -0
- package/src/filiale/ningjin/CallReport/WorkOrderPage.vue +260 -0
- package/src/filiale/ningjin/FillCardQuery.vue +581 -0
- package/src/filiale/ningjin/GasStatistics.vue +39 -20
- package/src/filiale/ningjin/LostContactAnalysisList.vue +676 -0
- package/src/filiale/ningjin/ManageBusSummaryPeng.vue +241 -0
- package/src/filiale/ningjin/ManageHandSellMoney.vue +247 -0
- package/src/filiale/ningjin/ManageSellType.vue +284 -0
- package/src/filiale/ningjin/MeterExceptionList.vue +54 -9
- package/src/filiale/ningjin/UserLostContactAnalysis.vue +592 -0
- package/src/filiale/ningjin/config/exportConfig.js +35 -34
- package/src/filiale/ningjin/reportManage.js +6 -1
- package/src/filiale/ningjin/sale.js +26 -0
- package/src/filiale/ningjin/webmeterManage.js +5 -1
- package/src/filiale/wenxi/GasDeviceQuery.vue +975 -0
- package/src/filiale/wenxi/sale.js +2 -0
|
@@ -0,0 +1,413 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<!-- 完成率组件 -->
|
|
3
|
+
<div class="percentageComplete">
|
|
4
|
+
<div class="view">
|
|
5
|
+
<div class="pending"><i></i><span>待处理</span><span class="pendingNum">{{ data.pendingNum ?data.pendingNum:'0' }}</span></div>
|
|
6
|
+
<div class="beingProcessed"><i></i><span>处理中</span><span class="beingProcessedNum">{{ data.beingProcessedNum?data.beingProcessedNum:'0' }}</span></div>
|
|
7
|
+
<div class="completed"><i></i><span>已完成</span><span class="completedNum">{{ data.completedNum?data.completedNum:'0' }}</span></div>
|
|
8
|
+
<div class="completedEcharts"></div>
|
|
9
|
+
<div class="percentText">完成率</div>
|
|
10
|
+
</div>
|
|
11
|
+
<div class="data">
|
|
12
|
+
<ul>
|
|
13
|
+
<li><span>昨日工单</span><span class="day">{{ data.day }}</span><span>日环比</span>
|
|
14
|
+
<div v-show="data.daysFrom != '0%'" :class="data.daysFrom.startsWith('-') ?'yellowArrows':'blueArrows'"></div>
|
|
15
|
+
<span :class="data.daysFrom.startsWith('-') ?'lower':'increase'">{{ data.daysFrom.startsWith('-') ? data.daysFrom.substring(1) : data.daysFrom }}</span>
|
|
16
|
+
</li>
|
|
17
|
+
<li><span>月度工单量</span><span class="month">{{ data.month }}</span><span>月环比</span>
|
|
18
|
+
<div v-show="data.onAMonthlyBasis != '0%'":class="data.onAMonthlyBasis.startsWith('-') ?'yellowArrows':'blueArrows'"></div>
|
|
19
|
+
<span :class="data.onAMonthlyBasis.startsWith('-') ?'lower':'increase'">{{ data.onAMonthlyBasis.startsWith('-') ?data.onAMonthlyBasis.substring(1) : data.onAMonthlyBasis }}</span>
|
|
20
|
+
</li>
|
|
21
|
+
<li><span>年度工单量</span><span class="year">{{ data.year }}</span><span>同比</span>
|
|
22
|
+
<div v-show="data.yoy != '0%'" :class="data.yoy.startsWith('-') ?'yellowArrows':'blueArrows'"></div>
|
|
23
|
+
<span :class="data.yoy.startsWith('-') ?'lower':'increase'">{{ data.yoy.startsWith('-') ? data.yoy.substring(1) : data.yoy}}</span>
|
|
24
|
+
</li>
|
|
25
|
+
</ul>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
</template>
|
|
29
|
+
|
|
30
|
+
<script>
|
|
31
|
+
import {HttpResetClass} from "vue-client";
|
|
32
|
+
import * as Util from '../../../util'
|
|
33
|
+
|
|
34
|
+
export default {
|
|
35
|
+
name: "PercentageComplete",
|
|
36
|
+
data(){
|
|
37
|
+
return{
|
|
38
|
+
f_orgid: '',
|
|
39
|
+
data:{
|
|
40
|
+
//待处理
|
|
41
|
+
pendingNum:'',
|
|
42
|
+
// 处理中
|
|
43
|
+
beingProcessedNum:'',
|
|
44
|
+
//已完成
|
|
45
|
+
completedNum:'',
|
|
46
|
+
//昨日工单
|
|
47
|
+
day:'',
|
|
48
|
+
//月度工单量
|
|
49
|
+
month:'',
|
|
50
|
+
//年度工单量
|
|
51
|
+
year:'',
|
|
52
|
+
//日环比、月环比、同比第一个参数,0为降,1为增长
|
|
53
|
+
//日环比
|
|
54
|
+
daysFrom:'',
|
|
55
|
+
//月环比
|
|
56
|
+
onAMonthlyBasis:'',
|
|
57
|
+
//同比
|
|
58
|
+
yoy:''
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
props:['filialeId'],
|
|
63
|
+
methods:{
|
|
64
|
+
//获取完成
|
|
65
|
+
getWorkorder(){
|
|
66
|
+
let http = new HttpResetClass()
|
|
67
|
+
http.load('post','rs/logic/WorkorderCompletionInformation',{
|
|
68
|
+
data: {
|
|
69
|
+
f_orgid: this.filialeId?this.filialeId:23145 // 分公司id
|
|
70
|
+
}
|
|
71
|
+
},{rejectMsg:null,resolveMsg:null}).then((ress)=>{
|
|
72
|
+
console.log("完成"+JSON.stringify(ress.data))
|
|
73
|
+
this.data.completedNum = ress.data.data.yiwancheng||0
|
|
74
|
+
this.data.pendingNum = ress.data.data.daichuli||0
|
|
75
|
+
this.data.beingProcessedNum = ress.data.data.chulizhong||0
|
|
76
|
+
console.log(" this.data"+JSON.stringify(this.data))
|
|
77
|
+
this.$emit('wanchenglv',ress.data.data.wanchenglv)
|
|
78
|
+
})
|
|
79
|
+
},
|
|
80
|
+
//获取环比
|
|
81
|
+
gettongyu(){
|
|
82
|
+
let http = new HttpResetClass()
|
|
83
|
+
http.load('post','rs/logic/AnnulusStatistics',{
|
|
84
|
+
data: {
|
|
85
|
+
f_orgid: this.filialeId?this.filialeId:23145 // 分公司id
|
|
86
|
+
}
|
|
87
|
+
},{rejectMsg:null,resolveMsg:null}).then((res)=>{
|
|
88
|
+
console.log("gettongyu"+JSON.stringify(res.data))
|
|
89
|
+
this.data.daysFrom = res.data.data[0].rihuanbi||0
|
|
90
|
+
this.data.onAMonthlyBasis = res.data.data[0].yuehuanbi||0
|
|
91
|
+
this.data.yoy = res.data.data[0].nianhuanbi||0
|
|
92
|
+
})
|
|
93
|
+
},
|
|
94
|
+
//获取月工单数量环
|
|
95
|
+
getmonthworkoreder(){
|
|
96
|
+
let http = new HttpResetClass()
|
|
97
|
+
http.load('post','rs/logic/Monthlyworkorderstatistics',{
|
|
98
|
+
data: {
|
|
99
|
+
f_orgid: this.filialeId?this.filialeId:23145 // 分公司id
|
|
100
|
+
}
|
|
101
|
+
},{rejectMsg:null,resolveMsg:null}).then((res)=>{
|
|
102
|
+
console.log("getmonthworkoreder"+JSON.stringify(res.data))
|
|
103
|
+
this.data.month = res.data.data[0].monthsum||0
|
|
104
|
+
})
|
|
105
|
+
},
|
|
106
|
+
//获取天工单数量环
|
|
107
|
+
getdayworkoreder(){
|
|
108
|
+
let http = new HttpResetClass()
|
|
109
|
+
http.load('post','rs/logic/Dayworkorderstatistics',{
|
|
110
|
+
data: {
|
|
111
|
+
f_orgid: this.filialeId?this.filialeId:23145 // 分公司id
|
|
112
|
+
}
|
|
113
|
+
},{rejectMsg:null,resolveMsg:null}).then((res)=>{
|
|
114
|
+
console.log("getdayworkoreder"+JSON.stringify(res.data))
|
|
115
|
+
this.data.day = res.data.data[0].daysum||0
|
|
116
|
+
})
|
|
117
|
+
},
|
|
118
|
+
//获取年度工单数量环
|
|
119
|
+
getyearworkoreder(){
|
|
120
|
+
let http = new HttpResetClass()
|
|
121
|
+
http.load('post','rs/logic/Yearworkorderstatistics',{
|
|
122
|
+
data: {
|
|
123
|
+
f_orgid: this.filialeId?this.filialeId:23145 // 分公司id
|
|
124
|
+
}
|
|
125
|
+
},{rejectMsg:null,resolveMsg:null}).then((res)=>{
|
|
126
|
+
console.log("year"+JSON.stringify(res.data))
|
|
127
|
+
this.data.year = res.data.data[0].yearsum||0
|
|
128
|
+
})
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
ready(){
|
|
132
|
+
this.getWorkorder()
|
|
133
|
+
this.gettongyu()
|
|
134
|
+
this.getmonthworkoreder()
|
|
135
|
+
this.getdayworkoreder()
|
|
136
|
+
this.getyearworkoreder()
|
|
137
|
+
setInterval(() => {
|
|
138
|
+
this.getWorkorder()
|
|
139
|
+
this.gettongyu()
|
|
140
|
+
this.getmonthworkoreder()
|
|
141
|
+
this.getdayworkoreder()
|
|
142
|
+
this.getyearworkoreder()
|
|
143
|
+
}, 300000)
|
|
144
|
+
},
|
|
145
|
+
watch: {
|
|
146
|
+
'filialeId'(val){
|
|
147
|
+
console.log("filialeId>>>=====",val)
|
|
148
|
+
this.getWorkorder()
|
|
149
|
+
this.gettongyu()
|
|
150
|
+
this.getmonthworkoreder()
|
|
151
|
+
this.getdayworkoreder()
|
|
152
|
+
this.getyearworkoreder()
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
</script>
|
|
157
|
+
|
|
158
|
+
<style scoped>
|
|
159
|
+
/* 完成率组件样式 */
|
|
160
|
+
.percentageComplete {
|
|
161
|
+
width: 24.198vw;
|
|
162
|
+
height: 42.852vh;
|
|
163
|
+
position: absolute;
|
|
164
|
+
top: 53.241vh;
|
|
165
|
+
left: 1.146vw;
|
|
166
|
+
background: #0f136c;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.pending {
|
|
170
|
+
width: 4.948vw;
|
|
171
|
+
height: 13.981vh;
|
|
172
|
+
position: absolute;
|
|
173
|
+
top: 4.63vh;
|
|
174
|
+
left: 0.573vw;
|
|
175
|
+
border: 0.093vh dashed #fff;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.pending i {
|
|
179
|
+
width: 93%;
|
|
180
|
+
height: 100%;
|
|
181
|
+
background-repeat: no-repeat;
|
|
182
|
+
background-position: 0 -0.365vw;
|
|
183
|
+
background-size: cover;
|
|
184
|
+
position: absolute;
|
|
185
|
+
background-image: url("../../../../static/images/zhongyi/exclamationPoint.png");
|
|
186
|
+
margin-left: 0.15625vw;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.pending span:nth-of-type(1) {
|
|
190
|
+
font-size: 2.037vh;
|
|
191
|
+
color: #FFFFFF;
|
|
192
|
+
position: absolute;
|
|
193
|
+
bottom: 9.259vh;
|
|
194
|
+
left: 0.885vw;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.pending span:nth-of-type(2) {
|
|
198
|
+
font-size: 2.963vh;
|
|
199
|
+
font-weight: bold;
|
|
200
|
+
color: #FF7E00;
|
|
201
|
+
position: absolute;
|
|
202
|
+
bottom: 12.222vh;
|
|
203
|
+
left: 1.5625vw;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.beingProcessed {
|
|
207
|
+
width: 4.948vw;
|
|
208
|
+
height: 13.981vh;
|
|
209
|
+
position: absolute;
|
|
210
|
+
top: 4.63vh;
|
|
211
|
+
left: 5.417vw;
|
|
212
|
+
border: 0.093vh dashed #fff;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.beingProcessed i {
|
|
216
|
+
width: 93%;
|
|
217
|
+
height: 100%;
|
|
218
|
+
background-repeat: no-repeat;
|
|
219
|
+
background-position: 0 -0.365vw;
|
|
220
|
+
background-size: cover;
|
|
221
|
+
position: absolute;
|
|
222
|
+
background-image: url("../../../../static/images/zhongyi/refresh.png");
|
|
223
|
+
margin-left: 0.15625vw;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.beingProcessed span:nth-of-type(1) {
|
|
227
|
+
font-size: 2.037vh;
|
|
228
|
+
color: #FFFFFF;
|
|
229
|
+
position: absolute;
|
|
230
|
+
bottom: 9.259vh;
|
|
231
|
+
left: 0.885vw;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.beingProcessed span:nth-of-type(2) {
|
|
235
|
+
font-size: 2.963vh;
|
|
236
|
+
font-weight: bold;
|
|
237
|
+
color: #FFCC0F;
|
|
238
|
+
position: absolute;
|
|
239
|
+
bottom: 12.222vh;
|
|
240
|
+
left: 1.5625vw;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.completed {
|
|
244
|
+
width: 4.948vw;
|
|
245
|
+
height: 13.981vh;
|
|
246
|
+
position: absolute;
|
|
247
|
+
top: 4.63vh;
|
|
248
|
+
left: 10.208vw;
|
|
249
|
+
border: 0.093vh dashed #fff;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.completed i {
|
|
253
|
+
width: 93%;
|
|
254
|
+
height: 100%;
|
|
255
|
+
background-repeat: no-repeat;
|
|
256
|
+
background-position: 0 -0.365vw;
|
|
257
|
+
background-size: cover;
|
|
258
|
+
position: absolute;
|
|
259
|
+
background-image: url("../../../../static/images/zhongyi/Pigeon.png");
|
|
260
|
+
margin-left: 0.15625vw;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.completed span:nth-of-type(1) {
|
|
264
|
+
font-size: 2.037vh;
|
|
265
|
+
color: #FFFFFF;
|
|
266
|
+
position: absolute;
|
|
267
|
+
bottom: 9.259vh;
|
|
268
|
+
left: 0.885vw;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.completed span:nth-of-type(2) {
|
|
272
|
+
font-size: 2.963vh;
|
|
273
|
+
font-weight: bold;
|
|
274
|
+
color: #01F7E6;
|
|
275
|
+
position: absolute;
|
|
276
|
+
bottom: 12.222vh;
|
|
277
|
+
left: 1.5625vw;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.completedEcharts {
|
|
281
|
+
width: 7.24vw;
|
|
282
|
+
height: 12.87vh;
|
|
283
|
+
opacity: 0.08;
|
|
284
|
+
border-radius: 50%;
|
|
285
|
+
position: absolute;
|
|
286
|
+
top: 4.352vh;
|
|
287
|
+
right: 1.146vw;
|
|
288
|
+
/*background-color: #00F6FF;*/
|
|
289
|
+
}
|
|
290
|
+
.data{
|
|
291
|
+
height: 1vh;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.data li {
|
|
295
|
+
width: 22.8125vw;
|
|
296
|
+
height: 4.537vh;
|
|
297
|
+
position: absolute;
|
|
298
|
+
/* position: relative; */
|
|
299
|
+
left: 1.09375vw;
|
|
300
|
+
list-style: none;
|
|
301
|
+
display: inline-block;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.data li:nth-of-type(1) {
|
|
305
|
+
width: 22.8125vw;
|
|
306
|
+
height: 4.537vh;
|
|
307
|
+
background-image: url('../../../../static/images/zhongyi/bluebg.png');
|
|
308
|
+
background-repeat: no-repeat;
|
|
309
|
+
background-size: cover;
|
|
310
|
+
bottom: 16.389vh;
|
|
311
|
+
border: 0.093vh dashed #fff;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.data li:nth-of-type(2) {
|
|
315
|
+
width: 22.8125vw;
|
|
316
|
+
height: 4.537vh;
|
|
317
|
+
background-image: url('../../../../static/images/zhongyi/yellowbg.png');
|
|
318
|
+
background-repeat: no-repeat;
|
|
319
|
+
background-size: cover;
|
|
320
|
+
bottom: 9.259vh;
|
|
321
|
+
border: 0.093vh dashed #fff;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.data li:nth-of-type(3) {
|
|
325
|
+
width: 22.8125vw;
|
|
326
|
+
height: 4.537vh;
|
|
327
|
+
background-image: url('../../../../static/images/zhongyi/bulebg2.png');
|
|
328
|
+
background-repeat: no-repeat;
|
|
329
|
+
background-size: cover;
|
|
330
|
+
bottom: 2.037vh;
|
|
331
|
+
border: 0.093vh dashed #fff;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.data li span:nth-of-type(1) {
|
|
335
|
+
font-size: 2.037vh;
|
|
336
|
+
color: #FFFFFF;
|
|
337
|
+
position: relative;
|
|
338
|
+
top: 0.833vh;
|
|
339
|
+
left: 0.625vw;
|
|
340
|
+
}
|
|
341
|
+
.data li span:nth-of-type(2) {
|
|
342
|
+
font-size: 2.5vh;
|
|
343
|
+
position: absolute;
|
|
344
|
+
font-weight: bold;
|
|
345
|
+
top: 0.556vh;
|
|
346
|
+
left: 6.823vw;
|
|
347
|
+
}
|
|
348
|
+
.day{
|
|
349
|
+
color: #00D2FF;
|
|
350
|
+
}
|
|
351
|
+
.month{
|
|
352
|
+
color: #FFCD00;
|
|
353
|
+
}
|
|
354
|
+
.year{
|
|
355
|
+
color: #01F7E6;
|
|
356
|
+
}
|
|
357
|
+
/*.data li{*/
|
|
358
|
+
/* position: relative;*/
|
|
359
|
+
/*}*/
|
|
360
|
+
.data li span:nth-of-type(3) {
|
|
361
|
+
font-size: 2.037vh;
|
|
362
|
+
color: #FFFFFF;
|
|
363
|
+
position: absolute;
|
|
364
|
+
top: 0.833vh;
|
|
365
|
+
right: 7.292vw;
|
|
366
|
+
}
|
|
367
|
+
.data li span:nth-of-type(4) {
|
|
368
|
+
font-size: 2.037vh;
|
|
369
|
+
position: absolute;
|
|
370
|
+
font-weight: bold;
|
|
371
|
+
top: 0.833vh;
|
|
372
|
+
right: 0.833vw;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
.increase{
|
|
376
|
+
color: #01F7E6;
|
|
377
|
+
}
|
|
378
|
+
.lower{
|
|
379
|
+
color: #FF7E00;
|
|
380
|
+
}
|
|
381
|
+
.view{
|
|
382
|
+
position: relative;
|
|
383
|
+
}
|
|
384
|
+
.percentText{
|
|
385
|
+
width: 3.4375vw;
|
|
386
|
+
height: 2.037vh;
|
|
387
|
+
font-size: 2.037vh;
|
|
388
|
+
font-weight: bold;
|
|
389
|
+
color: #FFFFFF;
|
|
390
|
+
position: absolute;
|
|
391
|
+
top: 12vh;
|
|
392
|
+
right: 2.917vw;
|
|
393
|
+
}
|
|
394
|
+
.blueArrows{
|
|
395
|
+
width: 1.146vw;
|
|
396
|
+
height: 2.037vh;
|
|
397
|
+
background: url('../../../../static/images/zhongyi/blueArrows.png') no-repeat;
|
|
398
|
+
background-size: cover;
|
|
399
|
+
position: absolute;
|
|
400
|
+
right: 5.365vw;
|
|
401
|
+
top: 1.389vh;
|
|
402
|
+
}
|
|
403
|
+
.yellowArrows{
|
|
404
|
+
width: 1.146vw;
|
|
405
|
+
height: 2.037vh;
|
|
406
|
+
background: url('../../../../static/images/zhongyi/yellowArrows.png') no-repeat;
|
|
407
|
+
background-size: cover;
|
|
408
|
+
position: absolute;
|
|
409
|
+
right: 5.365vw;
|
|
410
|
+
top: 1.389vh;
|
|
411
|
+
}
|
|
412
|
+
/* 完成率组件样式结束 */
|
|
413
|
+
</style>
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div id="echart"></div>
|
|
3
|
+
</template>
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
<!--PercentageCompleteEchart-->
|
|
7
|
+
<script>
|
|
8
|
+
import echarts from "echarts";
|
|
9
|
+
export default {
|
|
10
|
+
name: "PercentageCompleteEchart",
|
|
11
|
+
// components: {},
|
|
12
|
+
props:['wanchengLv'],
|
|
13
|
+
data(){
|
|
14
|
+
return {
|
|
15
|
+
percentageComplete:this.wanchengLv?this.wanchengLv:'0%',
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
ready(){
|
|
19
|
+
this.percentageCompleteEchart()
|
|
20
|
+
|
|
21
|
+
},
|
|
22
|
+
mounted(){
|
|
23
|
+
this.percentageCompletel()
|
|
24
|
+
},
|
|
25
|
+
methods:{
|
|
26
|
+
percentageCompletel(){
|
|
27
|
+
this.percentageComplete=this.wanchengLv?this.wanchengLv:'0%'
|
|
28
|
+
},
|
|
29
|
+
percentageCompleteEchart(){
|
|
30
|
+
let myChart = echarts.init(document.getElementById("echart"));
|
|
31
|
+
let value = parseInt(this.percentageComplete.substring(0, this.percentageComplete.length - 1));
|
|
32
|
+
console.log("value"+value)
|
|
33
|
+
let option = {
|
|
34
|
+
// backgroundColor:"#061740",
|
|
35
|
+
title: {
|
|
36
|
+
text: `${value}%`,
|
|
37
|
+
x: 'center',
|
|
38
|
+
y: '38%',
|
|
39
|
+
textStyle: {
|
|
40
|
+
color: '#00F6FF',
|
|
41
|
+
fontSize:36
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
series: [ {
|
|
45
|
+
type: 'pie',
|
|
46
|
+
radius: ['58%', '45%'],
|
|
47
|
+
silent: true,
|
|
48
|
+
clockwise: false,
|
|
49
|
+
startAngle: 90,
|
|
50
|
+
z: 0,
|
|
51
|
+
zlevel: 0,
|
|
52
|
+
label: {
|
|
53
|
+
normal: {
|
|
54
|
+
position: "center",
|
|
55
|
+
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
data: [{
|
|
59
|
+
value: value,
|
|
60
|
+
name: "",
|
|
61
|
+
itemStyle: {
|
|
62
|
+
normal: {
|
|
63
|
+
color:"#00F6FF",
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
value: 100-value,
|
|
69
|
+
name: "",
|
|
70
|
+
label: {
|
|
71
|
+
normal: {
|
|
72
|
+
show: false
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
itemStyle: {
|
|
76
|
+
normal: {
|
|
77
|
+
color: "transparent"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
|
|
84
|
+
{
|
|
85
|
+
name: "",
|
|
86
|
+
type: "gauge",
|
|
87
|
+
radius: "58%",
|
|
88
|
+
center: ['50%', '50%'],
|
|
89
|
+
startAngle: 0,
|
|
90
|
+
endAngle: 359.9,
|
|
91
|
+
splitNumber: 15,
|
|
92
|
+
hoverAnimation: true,
|
|
93
|
+
axisTick: {
|
|
94
|
+
show: false
|
|
95
|
+
},
|
|
96
|
+
splitLine: {
|
|
97
|
+
length: 17,
|
|
98
|
+
lineStyle: {
|
|
99
|
+
width: 5,
|
|
100
|
+
color: "#061740"
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
axisLabel: {
|
|
104
|
+
show: false
|
|
105
|
+
},
|
|
106
|
+
pointer: {
|
|
107
|
+
show: false
|
|
108
|
+
},
|
|
109
|
+
axisLine: {
|
|
110
|
+
lineStyle: {
|
|
111
|
+
opacity: 0
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
detail: {
|
|
115
|
+
show: false
|
|
116
|
+
},
|
|
117
|
+
data: [{
|
|
118
|
+
value: 0,
|
|
119
|
+
name: ""
|
|
120
|
+
}]
|
|
121
|
+
},
|
|
122
|
+
|
|
123
|
+
]
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
myChart.setOption(option);
|
|
127
|
+
|
|
128
|
+
},
|
|
129
|
+
|
|
130
|
+
},
|
|
131
|
+
watch: {
|
|
132
|
+
'wanchengLv'(val){
|
|
133
|
+
this.percentageCompletel();
|
|
134
|
+
this.percentageCompleteEchart();
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
}
|
|
139
|
+
</script>
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
<style scoped>
|
|
143
|
+
#echart{
|
|
144
|
+
margin-left: 14.0625vw;
|
|
145
|
+
margin-top: 12.963vh;
|
|
146
|
+
width: 13.021vw;
|
|
147
|
+
height: 23.148vh;
|
|
148
|
+
}
|
|
149
|
+
canvas{}
|
|
150
|
+
</style>
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div id="echart2"></div>
|
|
3
|
+
|
|
4
|
+
</template>
|
|
5
|
+
|
|
6
|
+
<script>
|
|
7
|
+
import echarts from "echarts";
|
|
8
|
+
export default {
|
|
9
|
+
name: "RateBottom",
|
|
10
|
+
// components: {},
|
|
11
|
+
// props:['row','dat1'],
|
|
12
|
+
data(){
|
|
13
|
+
return {
|
|
14
|
+
hotLineData:67, //热线服务占比
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
ready(){
|
|
18
|
+
// console.log(this.row)
|
|
19
|
+
this.RateEchart2()
|
|
20
|
+
},
|
|
21
|
+
mounted(){
|
|
22
|
+
},
|
|
23
|
+
methods:{
|
|
24
|
+
|
|
25
|
+
RateEchart2(){
|
|
26
|
+
let myChart = echarts.init(document.getElementById("echart2"));
|
|
27
|
+
let data = {
|
|
28
|
+
value: this.hotLineData,
|
|
29
|
+
name: ''
|
|
30
|
+
};
|
|
31
|
+
let option = {
|
|
32
|
+
// backgroundColor: '#0B2C6F',
|
|
33
|
+
title: {
|
|
34
|
+
text: '{num|' + data.value + '%}',
|
|
35
|
+
subtext: '\n' + data.name,
|
|
36
|
+
x: '49%',
|
|
37
|
+
y: '40%',
|
|
38
|
+
textAlign: 'center',
|
|
39
|
+
textStyle: {
|
|
40
|
+
rich: {
|
|
41
|
+
num: {
|
|
42
|
+
fontWeight: '500',
|
|
43
|
+
color: '#fff',
|
|
44
|
+
fontFamily: '微软雅黑',
|
|
45
|
+
fontSize: 40,
|
|
46
|
+
},
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
},
|
|
50
|
+
subtextStyle: {
|
|
51
|
+
lineHeight: 0,
|
|
52
|
+
fontSize: 22,
|
|
53
|
+
color: '#fff',
|
|
54
|
+
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
data: [{
|
|
58
|
+
name: data.name,
|
|
59
|
+
}],
|
|
60
|
+
series: [{ // 主圆环
|
|
61
|
+
name: data.name,
|
|
62
|
+
type: 'pie',
|
|
63
|
+
radius: ['70%', '80%'],
|
|
64
|
+
center:['50%','60%'],
|
|
65
|
+
startAngle: 180,
|
|
66
|
+
endAngle: 0,
|
|
67
|
+
|
|
68
|
+
color: [{
|
|
69
|
+
type: 'linear',
|
|
70
|
+
x: 1,
|
|
71
|
+
y: 0,
|
|
72
|
+
x2: 0,
|
|
73
|
+
y2: 0,
|
|
74
|
+
colorStops: [{
|
|
75
|
+
offset: 0,
|
|
76
|
+
color: 'rgba(54, 255, 239, 1)' // 0% 处的颜色
|
|
77
|
+
}, {
|
|
78
|
+
offset: 1,
|
|
79
|
+
color: 'rgba(54, 255, 239, .1)' // 100% 处的颜色
|
|
80
|
+
}]
|
|
81
|
+
}, 'transparent'],
|
|
82
|
+
hoverAnimation: true,
|
|
83
|
+
legendHoverLink: false,
|
|
84
|
+
z: 10,
|
|
85
|
+
labelLine: {
|
|
86
|
+
normal: {
|
|
87
|
+
show: false
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
data: [{
|
|
91
|
+
value: 50 * data.value / 100
|
|
92
|
+
}, {
|
|
93
|
+
value: 100 - (50 * data.value / 100)
|
|
94
|
+
}]
|
|
95
|
+
}, { // 中间圈
|
|
96
|
+
name: '',
|
|
97
|
+
z: 5,
|
|
98
|
+
type: 'pie',
|
|
99
|
+
cursor: 'default',
|
|
100
|
+
radius: ['95%', '95%'],
|
|
101
|
+
center:['50%','60%'],
|
|
102
|
+
startAngle: 180,
|
|
103
|
+
hoverAnimation: false,
|
|
104
|
+
legendHoverLink: false,
|
|
105
|
+
labelLine: {
|
|
106
|
+
normal: {
|
|
107
|
+
show: false
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
//上层虚线
|
|
111
|
+
// data: [{
|
|
112
|
+
// value: 50,
|
|
113
|
+
// itemStyle: {
|
|
114
|
+
// // borderColor: '#2DF6F3',
|
|
115
|
+
// borderType: 'dashed',
|
|
116
|
+
// borderWidth: 2,
|
|
117
|
+
// }
|
|
118
|
+
// }, {
|
|
119
|
+
// value: 50,
|
|
120
|
+
// itemStyle: {
|
|
121
|
+
// color: 'transparent'
|
|
122
|
+
// }
|
|
123
|
+
// }]
|
|
124
|
+
}]
|
|
125
|
+
};
|
|
126
|
+
myChart.setOption(option);
|
|
127
|
+
|
|
128
|
+
},
|
|
129
|
+
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
}
|
|
133
|
+
</script>
|
|
134
|
+
|
|
135
|
+
<style scoped>
|
|
136
|
+
#echart2{
|
|
137
|
+
width: 10.417vw;
|
|
138
|
+
height: 18.519vh;
|
|
139
|
+
position: absolute;
|
|
140
|
+
top: 42.13vh;
|
|
141
|
+
right: 1.40625vw;
|
|
142
|
+
}
|
|
143
|
+
</style>
|