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