manage-client 3.1.47 → 3.1.50

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.
Files changed (104) hide show
  1. package/.gradle/6.1.1/fileContent/fileContent.lock +0 -0
  2. package/.gradle/7.1/dependencies-accessors/dependencies-accessors.lock +0 -0
  3. package/.gradle/7.1/dependencies-accessors/gc.properties +0 -0
  4. package/.gradle/7.1/executionHistory/executionHistory.bin +0 -0
  5. package/.gradle/7.1/executionHistory/executionHistory.lock +0 -0
  6. package/.gradle/7.1/fileChanges/last-build.bin +0 -0
  7. package/.gradle/7.1/fileHashes/fileHashes.bin +0 -0
  8. package/.gradle/7.1/fileHashes/fileHashes.lock +0 -0
  9. package/.gradle/7.1/gc.properties +0 -0
  10. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  11. package/build/dev-server.js +20 -28
  12. package/build/libs/ManageClient-3.1.0-17.jar +0 -0
  13. package/build/tmp/jar/MANIFEST.MF +2 -0
  14. package/package.json +1 -1
  15. package/src/App.vue +28 -29
  16. package/src/components/BasisEcharts/BarChart.vue +247 -247
  17. package/src/components/BasisEcharts/RingChart.vue +196 -196
  18. package/src/components/SellReport/AmountDay.vue +257 -0
  19. package/src/components/SellReport/BusinessClassify.vue +317 -317
  20. package/src/components/SellReport/ChargePrick.vue +284 -284
  21. package/src/components/SellReport/DepartmentPrick.vue +288 -288
  22. package/src/components/SellReport/FinanceSellType.vue +254 -254
  23. package/src/components/SellReport/GasBaozhuangFee.vue +237 -237
  24. package/src/components/SellReport/GasMoneyReport.vue +254 -254
  25. package/src/components/SellReport/GasPrice.vue +244 -244
  26. package/src/components/SellReport/ManageBusSummary.vue +242 -242
  27. package/src/components/SellReport/ManageHandInputtor.vue +281 -281
  28. package/src/components/SellReport/ManageOtherCharge.vue +250 -250
  29. package/src/components/SellReport/ManageSellType.vue +284 -284
  30. package/src/components/SellReport/ManageUserCount.vue +347 -347
  31. package/src/components/SellReport/MarketMonth.vue +297 -297
  32. package/src/components/SellReport/OperatorCheckoutReport.vue +250 -0
  33. package/src/components/SellReport/OperatorCheckoutTwo.vue +250 -0
  34. package/src/components/SellReport/ReportComponrnt/TieAnAccount.vue +381 -66
  35. package/src/components/SellReport/SaleMonthReport.vue +227 -227
  36. package/src/components/SellReport/SellDepReport.vue +266 -251
  37. package/src/components/SellReport/SellingTable.vue +220 -220
  38. package/src/components/SellReport/UserClassify.vue +271 -271
  39. package/src/components/SellReport/UserSellingGas.vue +251 -251
  40. package/src/components/daping/CallCenter.vue +366 -366
  41. package/src/components/daping/DataManagement.vue +537 -537
  42. package/src/components/daping/GMap.vue +636 -636
  43. package/src/components/daping/ManageMain.vue +270 -270
  44. package/src/components/daping/NetWork.vue +238 -238
  45. package/src/components/daping/RedactDaPing.vue +486 -468
  46. package/src/components/daping/Ring.vue +212 -212
  47. package/src/components/daping/SafeCheck.vue +446 -446
  48. package/src/components/daping/SafeCheckRing.vue +166 -166
  49. package/src/components/daping/SafecheckBarChart.vue +233 -233
  50. package/src/components/daping/WuHaiMap.vue +420 -418
  51. package/src/components/qinhua/BarChart.vue +258 -256
  52. package/src/components/qinhua/Pie.vue +139 -132
  53. package/src/components/qinhua/SellEcharts.vue +115 -115
  54. package/src/components/qinhua/qinHuaMap.vue +414 -414
  55. package/src/components/sale/businessquery/AccountQuery/ExpectGasList.vue +500 -500
  56. package/src/components/sale/businessquery/AccountQuery/PreGasList.vue +13 -6
  57. package/src/components/sale/businessquery/AccountQuery/SellingGasList.vue +12 -5
  58. package/src/components/sale/businessquery/BusinessManage.vue +3 -0
  59. package/src/components/sale/businessquery/CardHandplanQuery.vue +1 -1
  60. package/src/components/sale/businessquery/CollectManage.vue +135 -135
  61. package/src/components/sale/businessquery/FMYGasQuery.vue +713 -713
  62. package/src/components/sale/businessquery/MonthGasQuery.vue +467 -467
  63. package/src/components/sale/businessquery/OtherChargeQuery.vue +619 -619
  64. package/src/components/sale/businessquery/PrickBillQuery.vue +332 -0
  65. package/src/components/sale/businessquery/ProceedsOper.vue +377 -377
  66. package/src/components/sale/businessquery/YingShouMingXi.vue +525 -525
  67. package/src/components/sale/config/exportConfig.js +5 -0
  68. package/src/components/statistical/StatisticalAnalysis.vue +247 -247
  69. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +633 -633
  70. package/src/components/webmeter/DrillData/LostContactEcharts.vue +177 -177
  71. package/src/components/webmeter/DrillData/UserGasAll.vue +597 -597
  72. package/src/components/webmeter/DrillData/UserGasEcharts.vue +220 -220
  73. package/src/components/webmeter/DrillData/UserGasEform.vue +227 -227
  74. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +585 -585
  75. package/src/components/webmeter/newwebmeter/NewException/NewContactEcharts.vue +171 -171
  76. package/src/components/webmeter/newwebmeter/NewException/NewEchartsAll.vue +111 -111
  77. package/src/components/webmeter/newwebmeter/NewException/NewExceptionEcharsTotal.vue +288 -288
  78. package/src/components/webmeter/newwebmeter/NewException/NewGasEcharts.vue +209 -209
  79. package/src/components/webmeter/newwebmeter/NewException/NewHandplanEcharts.vue +213 -213
  80. package/src/components/webmeter/newwebmeter/NewException/NewInstructEcharts.vue +240 -240
  81. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +607 -607
  82. package/src/components/webmeter/newwebmeter/UserGasEchartsList.vue +283 -283
  83. package/src/components/webmeter/newwebmeter/UserGasList.vue +438 -438
  84. package/src/components/webmeter/newwebmeter/UserInstructEchartsList.vue +242 -242
  85. package/src/components/webmeter/newwebmeter/UserInstructList.vue +332 -332
  86. package/src/components/webmeter/newwebmeter/signAnalysisEcharts.vue +266 -266
  87. package/src/components/webmeter/newwebmeter/signAnalysisEform.vue +175 -175
  88. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +387 -387
  89. package/src/filiale/alashan/SellingTable.vue +234 -234
  90. package/src/filiale/alashan/reportManage.js +10 -10
  91. package/src/filiale/jingzhou/ChargeQuery.vue +1243 -1243
  92. package/src/filiale/jingzhou/config/exportConfig.js +861 -861
  93. package/src/filiale/meihekou/UserGasEform.vue +267 -267
  94. package/src/filiale/meihekou/sale.js +26 -26
  95. package/src/filiale/rongcheng/exportConfig.js +257 -257
  96. package/src/filiale/rongchuang/SellingTable.vue +250 -250
  97. package/src/filiale/rongchuang/reportManage.js +11 -11
  98. package/src/filiale/shaoguan/config/exportConfig.js +433 -433
  99. package/src/filiale/tongchuan/ManageBusSummary.vue +302 -302
  100. package/src/main.js +66 -66
  101. package/src/newmanage.js +525 -525
  102. package/src/reportManage.js +12 -0
  103. package/src/saleManage.js +3 -0
  104. package/static/wuhai.json +1610 -1610
@@ -1,418 +1,420 @@
1
- <template>
2
- <div style="height: 100%">
3
- <div :id="idname"></div>
4
- </div>
5
- </template>
6
-
7
- <script>
8
- import {HttpResetClass} from "vue-client";
9
- import whmap from "../../../static/wuhai.json";
10
-
11
- export default {
12
- name: 'echart-map',
13
- props: {
14
- mode: String,
15
- idname: String
16
- },
17
- data () {
18
- return {
19
- mapdata: [
20
- {name: 'wuhai', value: whmap}
21
- ],
22
- list: [],
23
- xc: '',
24
- timer: '',
25
- datas: [],
26
- maps:[]
27
- }
28
- },
29
-
30
- mounted () {
31
- this.drawChinaMap()
32
- },
33
- methods: {
34
- drawChinaMap (mapjson) {
35
- var chart = this.$echarts.init(document.getElementById(this.idname))
36
- this.xc = chart
37
- var scale = this.$parent.$parent.$parent.scale
38
- var geoCoordMap = {}
39
- this.$echarts.registerMap(mapjson.name, mapjson.value)
40
- chart.showLoading()
41
- var mapFeatures = this.$echarts.getMap(mapjson.name).geoJson.features
42
- chart.hideLoading()
43
- mapFeatures.forEach(function (v) {
44
- // 地区名称
45
- var name = v.properties.name
46
- // 地区经纬度
47
- geoCoordMap[name] = v.properties.cp
48
-
49
- })
50
- var convertData = function (data) {
51
- var res = []
52
- for (var i = 0; i < data.length; i++) {
53
- var geoCoord = geoCoordMap[data[i].name]
54
- if (geoCoord) {
55
- res.push({
56
- name: data[i].name,
57
- value: geoCoord.concat(data[i].value)
58
- })
59
- }
60
- }
61
- return res
62
- }
63
- var colormode = ''
64
- if (this.mode == '0') {
65
- colormode = '#e7c83c'
66
- }
67
- if (this.mode == '1') {
68
- colormode = '#66f2de'
69
- }
70
- let data = this.datas
71
-
72
- // [
73
- //
74
- // {
75
- // name: '海南区',
76
- // value: datas2.value,
77
- // minyong: datas2.minyong,
78
- // feiminyong: datas2.feiminyong
79
- // },
80
- // {
81
- // name: '海勃湾区',
82
- // value: datas1.value,
83
- // minyong: datas1.minyong,
84
- // feiminyong: datas1.feiminyong
85
- // },
86
- // {
87
- // name: '乌达区',
88
- // value: datas3.value,
89
- // minyong: datas3.minyong,
90
- // feiminyong: datas3.feiminyong
91
- // }
92
- // ]
93
- let col = ['#2a4096', '#1285de', '#27459b', '#284ba5', '#225bb2', '#2353a8', '#244ca3', '#1775cd', '#1e64bc', '#05a0fc', '#108de7', '#1b6dc3']
94
- let colors = []
95
- for (let i = 0; i < data.length; i++) {
96
- let jo = {
97
- name: data[i].name,
98
- itemStyle: {
99
- areaColor: col[i],
100
- // color: '#02363f'
101
- color: col[i]
102
- }
103
- }
104
- colors.push(jo)
105
- }
106
- let option = {
107
- title: {
108
- text: '',
109
- subtext: '',
110
- x: 'center'
111
- },
112
- tooltip: {
113
- show: true,
114
- alwaysShowContent: false,
115
- backgroundColor: 'rgba(2, 59, 63, 0.7)',
116
- borderColor: 'rgba(98, 194, 186, 0.45)',
117
- borderWidth: 1,
118
- padding: 10 * scale,
119
- textStyle: {
120
- fontSize: 18 * scale
121
- },
122
- hideDelay: 100 * scale,
123
- triggerOn: 'click',
124
- enterable: true,
125
- position: function (point, params, dom, rect, size) {
126
- //其中point为当前鼠标的位置,size中有两个属性:viewSize和contentSize,分别为外层div和tooltip提示框的大小
127
- let x = point[0] //
128
- let y = point[1]
129
- let viewWidth = size.viewSize[0]
130
- let viewHeight = size.viewSize[1]
131
- let boxWidth = size.contentSize[0]
132
- let boxHeight = size.contentSize[1]
133
- let posX = 0 //x坐标位置
134
- let posY = 0 //y坐标位置
135
-
136
- if (x < boxWidth) { //左边放不开
137
- posX = 5
138
- } else { //左边放的下
139
- posX = x - boxWidth
140
- }
141
-
142
- if (y < boxHeight) { //上边放不开
143
- posY = 5
144
- } else { //上边放得下
145
- posY = y - boxHeight
146
- }
147
-
148
- return [posX - 10, posY - 10]
149
-
150
- },
151
- extraCssText: 'width: auto;height:auto;',
152
- formatter: function (params, ticket, callback) {
153
- return '<div style=\'text-align: center;height: 1px;margin-bottom: 5px;color:#14ffff;font-weight: normal\'>' + data[params.dataIndex].name + '</div><br/><span>'
154
- + '<span style="font-weight: normal">总用户 &nbsp;&nbsp;</span><span style="color:#e1e52a;font-weight: bolder">' + data[params.dataIndex].value + '</span><br/>'
155
- + '<span style="font-weight: normal">民用 &nbsp;&nbsp;</span><span style="color:#e1e52a;font-weight: bolder">' + data[params.dataIndex].minyong + '</span><br/>'
156
- + '<span style="font-weight: normal">非民用&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;</span><span style="color:#e1e52a; font-weight: bolder">' + data[params.dataIndex].feiminyong + '</span>'
157
- }
158
- },
159
- dataRange: {
160
- min: 0,
161
- max: 2500,
162
- left: 'left',
163
- top: 'bottom',
164
- text: ['高', '低'],
165
- calculable: true,
166
- show: false
167
- // inRange: {
168
- // color: [
169
- // // "#1DE9B6", "#F46E36", "#04B9FF", "#5DBD32", "#FFC809", "#FB95D5", "#BDA29A", "#6E7074", "#546570", "#C4CCD3"
170
- // // "#ff002d"
171
- // // "#ffc188",
172
- // // "#479fd2",
173
- // // "#fba853",
174
- // // "#48c7c0",
175
- // // "#fa8737",
176
- // // "#4bbdd6",
177
- // // "#ff6f5b",
178
- // // "#F4D5B1",
179
- // // "#ADE1E3",
180
- // // "#F4B387",
181
- // // "#F0F3F4"
182
- // ]
183
- // }
184
- },
185
-
186
- series: [
187
- {
188
- type: 'effectScatter',
189
- coordinateSystem: 'geo',
190
- data: this.maps,
191
- // [
192
- // {"name": "海勃湾区","value": [106.817762, 39.673527]},
193
- // {"name": "海南区","value": [106.884789, 39.44153]},
194
- // {"name": "乌达区","value": [106.722711, 39.502288]}
195
- // ],
196
- rippleEffect: {
197
- period: 10, // 动画时间,值越小速度越快
198
- color: "#fff",
199
- brushType: 'stroke', // 波纹绘制方式 stroke, fill
200
- scale: 3 // 波纹圆环最大限制,值越大波纹越大
201
- },
202
- hoverAnimation: true,
203
- itemStyle: {
204
- color: '#e5925e',// 中心点颜色
205
- shadowBlur: 10,
206
- shadowColor: '#e5925e'// 波纹颜色
207
- }
208
- }
209
- ]
210
- }
211
- if (this.mode == '0') {
212
- option.geo = { //地图设置
213
- show: true,
214
- map: mapjson.name,
215
- label: {
216
- normal: {
217
- show: true,
218
- textStyle: {
219
- color: '#fff'
220
- }
221
- },
222
- emphasis: {
223
- textStyle: {
224
- color: '#fff'
225
- }
226
- }
227
- },
228
- selectedMode: 'single',
229
- roam: false,
230
-
231
- emphasis: { //高亮区域样式
232
- label: {
233
- normal: {
234
- show: true,
235
- textStyle: {
236
- color: '#fff'
237
- }
238
- },
239
- emphasis: {
240
- textStyle: {
241
- color: '#fff'
242
- }
243
- }
244
- },
245
- itemStyle: {
246
- areaColor: '#ffff2c'
247
- }
248
- },
249
- itemStyle: {
250
- normal: {
251
- borderColor: '#666666',
252
- borderWidth: 1,
253
- areaColor: {
254
- type: 'radial',
255
- x: 0.5,
256
- y: 0.5,
257
- r: 0.8,
258
- colorStops: [{
259
- offset: 0,
260
- color: '#02363f' // 0% 处的颜色
261
- }, {
262
- offset: 1,
263
- color: '#02363f'
264
- }],
265
- globalCoord: false // 缺省为 false
266
- },
267
- shadowBlur: 0
268
- }
269
- },
270
- regions: colors
271
- }
272
- }
273
- if (this.mode == '1') {
274
- option.geo = { //地图设置
275
- show: true,
276
- map: mapjson.name,
277
- label: {
278
- normal: {
279
- show: true,
280
- textStyle: {
281
- color: '#fff'
282
- }
283
- },
284
- emphasis: {
285
- textStyle: {
286
- color: '#fff'
287
- }
288
- }
289
- },
290
- selectedMode: 'single',
291
- roam: false,
292
-
293
- emphasis: { //高亮区域样式
294
- label: {
295
- show: false
296
- },
297
- itemStyle: {
298
- areaColor: '#62fff7'
299
- }
300
- },
301
- // itemStyle: {
302
- // normal: {
303
- // borderWidth:0
304
- // }
305
- // },
306
- itemStyle: {
307
- normal: {
308
- borderColor: '#21e3dc',
309
- borderWidth: 1,
310
- areaColor: {
311
- type: 'radial',
312
- x: 0.5,
313
- y: 0.5,
314
- r: 0.8,
315
- colorStops: [{
316
- offset: 0,
317
- color: '#02363f' // 0% 处的颜色
318
- }, {
319
- offset: 1,
320
- color: '#02363f'
321
- }],
322
- globalCoord: false // 缺省为 false
323
- },
324
- // shadowColor: '#21e3dc',
325
- // // shadowColor: 'rgba(255, 255, 255, 1)',
326
- // shadowOffsetX: -1,
327
- // shadowOffsetY: 1,
328
- shadowBlur: 0
329
- }
330
- // emphasis: {
331
- // areaColor: '#389BB7',
332
- // borderWidth: 0
333
- // }
334
- }
335
- // regions: colors
336
- }
337
- }
338
- chart.setOption(option)
339
- let index = -1
340
- // var timer = setInterval(function () {
341
- // // 隐藏提示框
342
- // chart.dispatchAction({
343
- // type: 'hideTip',
344
- // seriesIndex: 0,
345
- // dataIndex: index
346
- // })
347
- // // 显示提示框
348
- // chart.dispatchAction({
349
- // type: 'showTip',
350
- // seriesIndex: 0,
351
- // dataIndex: index + 1
352
- // })
353
- // // 取消高亮指定的数据图形
354
- // chart.dispatchAction({
355
- // type: 'downplay',
356
- // seriesIndex: 0,
357
- // dataIndex: index
358
- // })
359
- // // 高亮指定的数据图形
360
- // chart.dispatchAction({
361
- // type: 'highlight',
362
- // seriesIndex: 0,
363
- // dataIndex: index + 1
364
- // })
365
- // index++
366
- // if (index > data.length) {
367
- // index = -1
368
- // }
369
- // }, 2000)
370
- }
371
- },
372
- beforeDestroy () {
373
- //清除定时器
374
- // clearInterval(this.timer)
375
- },
376
- ready () {
377
- this.maps = whmap.features.map(item => {
378
- return {
379
- name: item.properties.name,
380
- value: item.properties.center
381
- }
382
- })
383
- let http = new HttpResetClass()
384
- http.load('post', '/rs/sql/getUserSumByDep',
385
- {data:{}},
386
- {rejectMsg: null, resolveMsg: null}
387
- ).then((res)=>{
388
-
389
-
390
- let data1 = res.data.filter(item => item.name == this.maps[0].name)
391
- let data2 = res.data.filter(item => item.name == this.maps[1].name)
392
- let data3 = res.data.filter(item => item.name == this.maps[2].name)
393
- this.datas = []
394
- this.datas.push(data1.length > 0 ? data1 : {
395
- name: this.maps[0].name,
396
- value: 0,
397
- minyong: 0,
398
- feiminyong: 0
399
- })
400
- this.datas.push(data2.length > 0 ? data2 : {
401
- name: this.maps[1].name,
402
- value: 0,
403
- minyong: 0,
404
- feiminyong: 0
405
- })
406
- this.datas.push(data3.length > 0 ? data3 : {
407
- name: this.maps[2].name,
408
- value: 0,
409
- minyong: 0,
410
- feiminyong: 0
411
- })
412
- this.list.push(this.mapdata[0].name)
413
- this.drawChinaMap(this.mapdata[0])
414
- })
415
-
416
- }
417
- }
418
- </script>
1
+ <template>
2
+ <div style="height: 100%">
3
+ <div :id="idname"></div>
4
+ </div>
5
+ </template>
6
+
7
+ <script>
8
+ import {HttpResetClass} from "vue-client";
9
+ import whmap from "../../../static/wuhai.json";
10
+
11
+ export default {
12
+ name: 'echart-map',
13
+ props: {
14
+ mode: String,
15
+ idname: String
16
+ },
17
+ data () {
18
+ return {
19
+ mapdata: [
20
+ {name: 'wuhai', value: whmap}
21
+ ],
22
+ list: [],
23
+ xc: '',
24
+ timer: '',
25
+ datas: [],
26
+ maps:[]
27
+ }
28
+ },
29
+
30
+ mounted () {
31
+ this.drawChinaMap()
32
+ },
33
+ methods: {
34
+ drawChinaMap (mapjson) {
35
+ var chart = this.$echarts.init(document.getElementById(this.idname))
36
+ this.xc = chart
37
+ var scale = this.$parent.$parent.$parent.scale
38
+ var geoCoordMap = {}
39
+ this.$echarts.registerMap(mapjson.name, mapjson.value)
40
+ chart.showLoading()
41
+ var mapFeatures = this.$echarts.getMap(mapjson.name).geoJson.features
42
+ chart.hideLoading()
43
+ mapFeatures.forEach(function (v) {
44
+ // 地区名称
45
+ var name = v.properties.name
46
+ // 地区经纬度
47
+ geoCoordMap[name] = v.properties.cp
48
+
49
+ })
50
+ var convertData = function (data) {
51
+ var res = []
52
+ for (var i = 0; i < data.length; i++) {
53
+ var geoCoord = geoCoordMap[data[i].name]
54
+ if (geoCoord) {
55
+ res.push({
56
+ name: data[i].name,
57
+ value: geoCoord.concat(data[i].value)
58
+ })
59
+ }
60
+ }
61
+ return res
62
+ }
63
+ var colormode = ''
64
+ if (this.mode == '0') {
65
+ colormode = '#e7c83c'
66
+ }
67
+ if (this.mode == '1') {
68
+ colormode = '#66f2de'
69
+ }
70
+ let data = this.datas
71
+
72
+ // [
73
+ //
74
+ // {
75
+ // name: '海南区',
76
+ // value: datas2.value,
77
+ // minyong: datas2.minyong,
78
+ // feiminyong: datas2.feiminyong
79
+ // },
80
+ // {
81
+ // name: '海勃湾区',
82
+ // value: datas1.value,
83
+ // minyong: datas1.minyong,
84
+ // feiminyong: datas1.feiminyong
85
+ // },
86
+ // {
87
+ // name: '乌达区',
88
+ // value: datas3.value,
89
+ // minyong: datas3.minyong,
90
+ // feiminyong: datas3.feiminyong
91
+ // }
92
+ // ]
93
+ let col = ['#2a4096', '#1285de', '#27459b', '#284ba5', '#225bb2', '#2353a8', '#244ca3', '#1775cd', '#1e64bc', '#05a0fc', '#108de7', '#1b6dc3']
94
+ let colors = []
95
+ for (let i = 0; i < data.length; i++) {
96
+ let jo = {
97
+ name: data[i].name,
98
+ itemStyle: {
99
+ areaColor: col[i],
100
+ // color: '#02363f'
101
+ color: col[i]
102
+ }
103
+ }
104
+ colors.push(jo)
105
+ }
106
+ let option = {
107
+ title: {
108
+ text: '',
109
+ subtext: '',
110
+ x: 'center'
111
+ },
112
+ tooltip: {
113
+ show: true,
114
+ alwaysShowContent: false,
115
+ backgroundColor: 'rgba(2, 59, 63, 0.7)',
116
+ borderColor: 'rgba(98, 194, 186, 0.45)',
117
+ borderWidth: 1,
118
+ padding: 10 * scale,
119
+ textStyle: {
120
+ fontSize: 18 * scale
121
+ },
122
+ hideDelay: 100 * scale,
123
+ triggerOn: 'click',
124
+ enterable: true,
125
+ position: function (point, params, dom, rect, size) {
126
+ //其中point为当前鼠标的位置,size中有两个属性:viewSize和contentSize,分别为外层div和tooltip提示框的大小
127
+ let x = point[0] //
128
+ let y = point[1]
129
+ let viewWidth = size.viewSize[0]
130
+ let viewHeight = size.viewSize[1]
131
+ let boxWidth = size.contentSize[0]
132
+ let boxHeight = size.contentSize[1]
133
+ let posX = 0 //x坐标位置
134
+ let posY = 0 //y坐标位置
135
+
136
+ if (x < boxWidth) { //左边放不开
137
+ posX = 5
138
+ } else { //左边放的下
139
+ posX = x - boxWidth
140
+ }
141
+
142
+ if (y < boxHeight) { //上边放不开
143
+ posY = 5
144
+ } else { //上边放得下
145
+ posY = y - boxHeight
146
+ }
147
+
148
+ return [posX - 10, posY - 10]
149
+
150
+ },
151
+ extraCssText: 'width: auto;height:auto;',
152
+ formatter: function (params, ticket, callback) {
153
+ return '<div style=\'text-align: center;height: 1px;margin-bottom: 5px;color:#14ffff;font-weight: normal\'>' + data[params.dataIndex].name + '</div><br/><span>'
154
+ + '<span style="font-weight: normal">总用户 &nbsp;&nbsp;</span><span style="color:#e1e52a;font-weight: bolder">' + data[params.dataIndex].value + '</span><br/>'
155
+ + '<span style="font-weight: normal">民用 &nbsp;&nbsp;</span><span style="color:#e1e52a;font-weight: bolder">' + data[params.dataIndex].minyong + '</span><br/>'
156
+ + '<span style="font-weight: normal">非民用&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;</span><span style="color:#e1e52a; font-weight: bolder">' + data[params.dataIndex].feiminyong + '</span>'
157
+ }
158
+ },
159
+ dataRange: {
160
+ min: 0,
161
+ max: 2500,
162
+ left: 'left',
163
+ top: 'bottom',
164
+ text: ['高', '低'],
165
+ calculable: true,
166
+ show: false
167
+ // inRange: {
168
+ // color: [
169
+ // // "#1DE9B6", "#F46E36", "#04B9FF", "#5DBD32", "#FFC809", "#FB95D5", "#BDA29A", "#6E7074", "#546570", "#C4CCD3"
170
+ // // "#ff002d"
171
+ // // "#ffc188",
172
+ // // "#479fd2",
173
+ // // "#fba853",
174
+ // // "#48c7c0",
175
+ // // "#fa8737",
176
+ // // "#4bbdd6",
177
+ // // "#ff6f5b",
178
+ // // "#F4D5B1",
179
+ // // "#ADE1E3",
180
+ // // "#F4B387",
181
+ // // "#F0F3F4"
182
+ // ]
183
+ // }
184
+ },
185
+
186
+ series: [
187
+ {
188
+ type: 'effectScatter',
189
+ coordinateSystem: 'geo',
190
+ data: this.maps,
191
+ // [
192
+ // {"name": "海勃湾区","value": [106.817762, 39.673527]},
193
+ // {"name": "海南区","value": [106.884789, 39.44153]},
194
+ // {"name": "乌达区","value": [106.722711, 39.502288]}
195
+ // ],
196
+ rippleEffect: {
197
+ period: 10, // 动画时间,值越小速度越快
198
+ color: "#fff",
199
+ brushType: 'stroke', // 波纹绘制方式 stroke, fill
200
+ scale: 3 // 波纹圆环最大限制,值越大波纹越大
201
+ },
202
+ hoverAnimation: true,
203
+ itemStyle: {
204
+ color: '#e5925e',// 中心点颜色
205
+ shadowBlur: 10,
206
+ shadowColor: '#e5925e'// 波纹颜色
207
+ }
208
+ }
209
+ ]
210
+ }
211
+ if (this.mode == '0') {
212
+ option.geo = { //地图设置
213
+ show: true,
214
+ map: mapjson.name,
215
+ zoom: 3.2,
216
+ label: {
217
+ normal: {
218
+ show: true,
219
+ textStyle: {
220
+ color: '#fff'
221
+ }
222
+ },
223
+ emphasis: {
224
+ textStyle: {
225
+ color: '#fff'
226
+ }
227
+ }
228
+ },
229
+ selectedMode: 'single',
230
+ roam: false,
231
+
232
+ emphasis: { //高亮区域样式
233
+ label: {
234
+ normal: {
235
+ show: true,
236
+ textStyle: {
237
+ color: '#fff'
238
+ }
239
+ },
240
+ emphasis: {
241
+ textStyle: {
242
+ color: '#fff'
243
+ }
244
+ }
245
+ },
246
+ itemStyle: {
247
+ areaColor: '#ffff2c'
248
+ }
249
+ },
250
+ itemStyle: {
251
+ normal: {
252
+ borderColor: '#666666',
253
+ borderWidth: 1,
254
+ areaColor: {
255
+ type: 'radial',
256
+ x: 0.5,
257
+ y: 0.5,
258
+ r: 0.8,
259
+ colorStops: [{
260
+ offset: 0,
261
+ color: '#02363f' // 0% 处的颜色
262
+ }, {
263
+ offset: 1,
264
+ color: '#02363f'
265
+ }],
266
+ globalCoord: false // 缺省为 false
267
+ },
268
+ shadowBlur: 0
269
+ }
270
+ },
271
+ regions: colors
272
+ }
273
+ }
274
+ if (this.mode == '1') {
275
+ option.geo = { //地图设置
276
+ show: true,
277
+ zoom: 1.2,
278
+ map: mapjson.name,
279
+ label: {
280
+ normal: {
281
+ show: true,
282
+ textStyle: {
283
+ color: '#fff'
284
+ }
285
+ },
286
+ emphasis: {
287
+ textStyle: {
288
+ color: '#fff'
289
+ }
290
+ }
291
+ },
292
+ selectedMode: 'single',
293
+ roam: false,
294
+
295
+ emphasis: { //高亮区域样式
296
+ label: {
297
+ show: false
298
+ },
299
+ itemStyle: {
300
+ areaColor: '#62fff7'
301
+ }
302
+ },
303
+ // itemStyle: {
304
+ // normal: {
305
+ // borderWidth:0
306
+ // }
307
+ // },
308
+ itemStyle: {
309
+ normal: {
310
+ borderColor: '#21e3dc',
311
+ borderWidth: 1,
312
+ areaColor: {
313
+ type: 'radial',
314
+ x: 0.5,
315
+ y: 0.5,
316
+ r: 0.8,
317
+ colorStops: [{
318
+ offset: 0,
319
+ color: '#02363f' // 0% 处的颜色
320
+ }, {
321
+ offset: 1,
322
+ color: '#02363f'
323
+ }],
324
+ globalCoord: false // 缺省为 false
325
+ },
326
+ // shadowColor: '#21e3dc',
327
+ // // shadowColor: 'rgba(255, 255, 255, 1)',
328
+ // shadowOffsetX: -1,
329
+ // shadowOffsetY: 1,
330
+ shadowBlur: 0
331
+ }
332
+ // emphasis: {
333
+ // areaColor: '#389BB7',
334
+ // borderWidth: 0
335
+ // }
336
+ }
337
+ // regions: colors
338
+ }
339
+ }
340
+ chart.setOption(option)
341
+ let index = -1
342
+ // var timer = setInterval(function () {
343
+ // // 隐藏提示框
344
+ // chart.dispatchAction({
345
+ // type: 'hideTip',
346
+ // seriesIndex: 0,
347
+ // dataIndex: index
348
+ // })
349
+ // // 显示提示框
350
+ // chart.dispatchAction({
351
+ // type: 'showTip',
352
+ // seriesIndex: 0,
353
+ // dataIndex: index + 1
354
+ // })
355
+ // // 取消高亮指定的数据图形
356
+ // chart.dispatchAction({
357
+ // type: 'downplay',
358
+ // seriesIndex: 0,
359
+ // dataIndex: index
360
+ // })
361
+ // // 高亮指定的数据图形
362
+ // chart.dispatchAction({
363
+ // type: 'highlight',
364
+ // seriesIndex: 0,
365
+ // dataIndex: index + 1
366
+ // })
367
+ // index++
368
+ // if (index > data.length) {
369
+ // index = -1
370
+ // }
371
+ // }, 2000)
372
+ }
373
+ },
374
+ beforeDestroy () {
375
+ //清除定时器
376
+ // clearInterval(this.timer)
377
+ },
378
+ ready () {
379
+ this.maps = whmap.features.map(item => {
380
+ return {
381
+ name: item.properties.name,
382
+ value: item.properties.center
383
+ }
384
+ })
385
+ let http = new HttpResetClass()
386
+ http.load('post', '/rs/sql/getUserSumByDep',
387
+ {data:{}},
388
+ {rejectMsg: null, resolveMsg: null}
389
+ ).then((res)=>{
390
+
391
+
392
+ let data1 = res.data.filter(item => item.name == this.maps[0].name)
393
+ let data2 = res.data.filter(item => item.name == this.maps[1].name)
394
+ let data3 = res.data.filter(item => item.name == this.maps[2].name)
395
+ this.datas = []
396
+ this.datas.push(data1.length > 0 ? data1 : {
397
+ name: this.maps[0].name,
398
+ value: 0,
399
+ minyong: 0,
400
+ feiminyong: 0
401
+ })
402
+ this.datas.push(data2.length > 0 ? data2 : {
403
+ name: this.maps[1].name,
404
+ value: 0,
405
+ minyong: 0,
406
+ feiminyong: 0
407
+ })
408
+ this.datas.push(data3.length > 0 ? data3 : {
409
+ name: this.maps[2].name,
410
+ value: 0,
411
+ minyong: 0,
412
+ feiminyong: 0
413
+ })
414
+ this.list.push(this.mapdata[0].name)
415
+ this.drawChinaMap(this.mapdata[0])
416
+ })
417
+
418
+ }
419
+ }
420
+ </script>