manage-client 3.1.26 → 3.1.27

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