manage-client 3.1.46 → 3.1.47

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 (107) hide show
  1. package/.gradle/{7.1 → 4.4}/fileChanges/last-build.bin +0 -0
  2. package/.gradle/{buildOutputCleanup/outputFiles.bin → 4.4/fileHashes/fileHashes.bin} +0 -0
  3. package/.gradle/4.4/fileHashes/fileHashes.lock +0 -0
  4. package/.gradle/{7.1 → 6.1}/executionHistory/executionHistory.bin +0 -0
  5. package/.gradle/6.1/executionHistory/executionHistory.lock +0 -0
  6. package/.gradle/6.1/fileChanges/last-build.bin +0 -0
  7. package/.gradle/{7.1 → 6.1}/fileHashes/fileHashes.bin +0 -0
  8. package/.gradle/6.1/fileHashes/fileHashes.lock +0 -0
  9. package/.gradle/{7.1/dependencies-accessors → 6.1}/gc.properties +0 -0
  10. package/build/dev-server.js +33 -25
  11. package/package.json +1 -1
  12. package/src/App.vue +29 -28
  13. package/src/components/BasisEcharts/BarChart.vue +247 -247
  14. package/src/components/BasisEcharts/RingChart.vue +196 -196
  15. package/src/components/SellReport/BusinessClassify.vue +317 -317
  16. package/src/components/SellReport/ChargePrick.vue +284 -284
  17. package/src/components/SellReport/DepartmentPrick.vue +288 -288
  18. package/src/components/SellReport/FinanceSellType.vue +254 -254
  19. package/src/components/SellReport/GasBaozhuangFee.vue +237 -237
  20. package/src/components/SellReport/GasMoneyReport.vue +254 -254
  21. package/src/components/SellReport/GasPrice.vue +244 -244
  22. package/src/components/SellReport/ManageBusSummary.vue +242 -242
  23. package/src/components/SellReport/ManageHandInputtor.vue +281 -281
  24. package/src/components/SellReport/ManageOtherCharge.vue +250 -250
  25. package/src/components/SellReport/ManageSellType.vue +284 -284
  26. package/src/components/SellReport/ManageUserCount.vue +347 -347
  27. package/src/components/SellReport/MarketMonth.vue +297 -297
  28. package/src/components/SellReport/ReportItems.vue +241 -241
  29. package/src/components/SellReport/SaleMonthReport.vue +227 -227
  30. package/src/components/SellReport/SellDepReport.vue +251 -251
  31. package/src/components/SellReport/SellingTable.vue +220 -220
  32. package/src/components/SellReport/UserClassify.vue +271 -271
  33. package/src/components/SellReport/UserSellingGas.vue +251 -251
  34. package/src/components/daping/CallCenter.vue +366 -366
  35. package/src/components/daping/DataManagement.vue +537 -537
  36. package/src/components/daping/GMap.vue +636 -636
  37. package/src/components/daping/ManageMain.vue +270 -270
  38. package/src/components/daping/NetWork.vue +238 -238
  39. package/src/components/daping/RedactDaPing.vue +468 -468
  40. package/src/components/daping/Ring.vue +212 -212
  41. package/src/components/daping/SafeCheck.vue +446 -446
  42. package/src/components/daping/SafeCheckRing.vue +166 -166
  43. package/src/components/daping/SafecheckBarChart.vue +233 -233
  44. package/src/components/daping/WuHaiMap.vue +418 -418
  45. package/src/components/qinhua/BarChart.vue +256 -256
  46. package/src/components/qinhua/Pie.vue +132 -132
  47. package/src/components/qinhua/SellEcharts.vue +115 -115
  48. package/src/components/qinhua/qinHuaMap.vue +414 -414
  49. package/src/components/sale/businessquery/AccountQuery/ExpectGasList.vue +500 -500
  50. package/src/components/sale/businessquery/CollectManage.vue +135 -135
  51. package/src/components/sale/businessquery/FMYGasQuery.vue +713 -713
  52. package/src/components/sale/businessquery/FillGasQuery.vue +491 -491
  53. package/src/components/sale/businessquery/MonthGasQuery.vue +467 -467
  54. package/src/components/sale/businessquery/OtherChargeQuery.vue +619 -619
  55. package/src/components/sale/businessquery/ProceedsOper.vue +377 -377
  56. package/src/components/sale/businessquery/YingShouMingXi.vue +525 -525
  57. package/src/components/sale/config/exportConfig.js +879 -879
  58. package/src/components/sale/filesquery/DeviceQuery.vue +524 -524
  59. package/src/components/statistical/StatisticalAnalysis.vue +247 -247
  60. package/src/components/webmeter/DrillData/LostContactAnalysisList.vue +633 -633
  61. package/src/components/webmeter/DrillData/LostContactEcharts.vue +177 -177
  62. package/src/components/webmeter/DrillData/UserGasAll.vue +597 -597
  63. package/src/components/webmeter/DrillData/UserGasEcharts.vue +220 -210
  64. package/src/components/webmeter/DrillData/UserGasEform.vue +227 -227
  65. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +585 -585
  66. package/src/components/webmeter/newwebmeter/NewException/NewContactEcharts.vue +171 -171
  67. package/src/components/webmeter/newwebmeter/NewException/NewEchartsAll.vue +111 -111
  68. package/src/components/webmeter/newwebmeter/NewException/NewExceptionEcharsTotal.vue +288 -275
  69. package/src/components/webmeter/newwebmeter/NewException/NewGasEcharts.vue +209 -209
  70. package/src/components/webmeter/newwebmeter/NewException/NewHandplanEcharts.vue +213 -213
  71. package/src/components/webmeter/newwebmeter/NewException/NewInstructEcharts.vue +240 -240
  72. package/src/components/webmeter/newwebmeter/NewException/TotalExceptionByMeter.vue +607 -607
  73. package/src/components/webmeter/newwebmeter/UserGasEchartsList.vue +283 -218
  74. package/src/components/webmeter/newwebmeter/UserGasList.vue +438 -438
  75. package/src/components/webmeter/newwebmeter/UserInstructEchartsList.vue +242 -242
  76. package/src/components/webmeter/newwebmeter/UserInstructList.vue +332 -332
  77. package/src/components/webmeter/newwebmeter/signAnalysisEcharts.vue +266 -266
  78. package/src/components/webmeter/newwebmeter/signAnalysisEform.vue +175 -175
  79. package/src/components/webmeter/newwebmeter/signAnalysisListMain.vue +387 -387
  80. package/src/filiale/alashan/SellingTable.vue +234 -234
  81. package/src/filiale/alashan/reportManage.js +10 -10
  82. package/src/filiale/jingwei/ChargeQuery.vue +1241 -1241
  83. package/src/filiale/jingzhou/ChargeQuery.vue +1243 -1243
  84. package/src/filiale/jingzhou/config/exportConfig.js +861 -861
  85. package/src/filiale/liaoyuan/ChargeQuery.vue +1284 -1284
  86. package/src/filiale/liaoyuan/exportConfig.js +718 -718
  87. package/src/filiale/meihekou/UserGasEform.vue +267 -267
  88. package/src/filiale/meihekou/sale.js +26 -26
  89. package/src/filiale/rongcheng/exportConfig.js +257 -257
  90. package/src/filiale/rongchuang/SellingTable.vue +250 -250
  91. package/src/filiale/rongchuang/reportManage.js +11 -11
  92. package/src/filiale/shaoguan/ChargeQuery.vue +1034 -1034
  93. package/src/filiale/shaoguan/OtherChargeQuery.vue +596 -596
  94. package/src/filiale/shaoguan/config/exportConfig.js +433 -433
  95. package/src/filiale/shaoguan/sale/businessquery/oldList.vue +41 -41
  96. package/src/filiale/shaoguan/sale/businessquery/oldMeterList.vue +290 -290
  97. package/src/filiale/shaoguan/sale.js +35 -35
  98. package/src/filiale/tongchuan/ManageBusSummary.vue +302 -302
  99. package/src/main.js +1 -1
  100. package/src/newmanage.js +525 -525
  101. package/src/reportManage.js +470 -470
  102. package/static/wuhai.json +1610 -1610
  103. package/.gradle/7.1/dependencies-accessors/dependencies-accessors.lock +0 -0
  104. package/.gradle/7.1/executionHistory/executionHistory.lock +0 -0
  105. package/.gradle/7.1/fileHashes/fileHashes.lock +0 -0
  106. package/.gradle/7.1/gc.properties +0 -0
  107. package/.gradle/configuration-cache/gc.properties +0 -0
@@ -1,418 +1,418 @@
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: 'mousemove',
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
+ 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>