manage-client 3.2.102 → 3.2.103-test

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 (35) hide show
  1. package/build/dev-server.js +176 -177
  2. package/build/webpack.base.conf.js +83 -82
  3. package/package.json +2 -2
  4. package/src/components/ManageHomeCS/Home/ShanxiMap.vue +432 -432
  5. package/src/components/daping/DataManagement.vue +536 -537
  6. package/src/components/sale/businessquery/BusinessManage.vue +191 -179
  7. package/src/components/sale/businessquery/FillCardQuery.vue +39 -2
  8. package/src/components/sale/config/exportConfig.js +1008 -988
  9. package/src/components/sale/config/tableConfig.js +48 -48
  10. package/src/components/valueaddinfo/ValueAddinfoQuery.vue +408 -0
  11. package/src/components/valueaddinfo/renewalvalueAddUserQuery.vue +371 -0
  12. package/src/components/valueaddinfo/valueAddCountQuery.vue +315 -0
  13. package/src/components/valueaddinfo/valueAddUserQuery.vue +392 -0
  14. package/src/components/webmeter/DrillData/UserGasAll.vue +1 -1
  15. package/src/components/webmeter/WebmeterQuery.vue +3 -0
  16. package/src/components/webmeter/gasAnalysis/WebmeterSettlementAnalysis.vue +432 -0
  17. package/src/components/webmeter/handplan/NewWebMeterHandPlan.vue +8 -1
  18. package/src/components/webmeter/newwebmeter/NewException/MeterExceptionList.vue +566 -506
  19. package/src/components/webmeter/report/ReportList.vue +4 -4
  20. package/src/components/webmeter/reportdata/ReportDataQuery.vue +279 -279
  21. package/src/filiale/qianneng/BusinessManage.vue +179 -0
  22. package/src/filiale/qianneng/ChargeQuery.vue +191 -184
  23. package/src/filiale/qianneng/HandplanQuery.vue +130 -117
  24. package/src/filiale/qianneng/OtherChargeQuery.vue +33 -31
  25. package/src/filiale/qianneng/SellDepReport.vue +27 -7
  26. package/src/filiale/qianneng/UserQuery.vue +938 -0
  27. package/src/filiale/qianneng/sale.js +5 -1
  28. package/src/filiale/shaoguan/TransferQuery.vue +8 -3
  29. package/src/newmanage.js +535 -525
  30. package/src/saleManage.js +572 -558
  31. package/src/webmeterManage.js +2 -0
  32. package/.gradle/3.5.1/file-changes/last-build.bin +0 -0
  33. package/.gradle/3.5.1/taskHistory/taskHistory.lock +0 -0
  34. package/.gradle/buildOutputCleanup/built.bin +0 -0
  35. package/.gradle/buildOutputCleanup/cache.properties.lock +0 -1
@@ -1,432 +1,432 @@
1
-
2
- <template>
3
-
4
- <div>
5
- <div style="width: 100%;height: 120%">
6
- <!--<div style="height: 40px;"><span v-for="i in list" @click="selmap(i)">{{i}}———></span></div>-->
7
- <div :id="idname" style="text-align: left"></div>
8
- </div>
9
- </div>
10
- </template>
11
-
12
- <script>
13
-
14
- import '../../../stores/shanxi1.js';
15
-
16
-
17
- export default {
18
- name: 'echart-map',
19
- props: {
20
- mode: String,
21
- idname: String,
22
- },
23
- data() {
24
- return {
25
- mapdata:[
26
- {name:'陕西',value:require('../../../../static/shanxi1.json')}
27
- // {name:'咸阳市',value:require('../../../static/xianyangshi.json')},
28
- // {name:'西安市',value:require('../../../static/xianshi.json')}
29
- ],
30
- list:[],
31
- xc:'',
32
- timer:'',
33
- }
34
- },
35
-
36
- mounted() {
37
- this.drawChinaMap();
38
- },
39
- methods: {
40
- drawChinaMap(mapjson) {
41
- var oroptionmapjsonr_charts =this.$echarts.init(document.getElementById(this.idname));
42
- this.xc=oroptionmapjsonr_charts
43
- var scale=this.$parent.$parent.$parent.scale
44
- var geoCoordMap = {};
45
- this.$echarts.registerMap(mapjson.name, mapjson.value);
46
- oroptionmapjsonr_charts.showLoading();
47
- var mapFeatures = this.$echarts.getMap(mapjson.name).geoJson.features;
48
- oroptionmapjsonr_charts.hideLoading();
49
- mapFeatures.forEach(function(v) {
50
- // 地区名称
51
- var name = v.properties.name;
52
- // 地区经纬度
53
- geoCoordMap[name] = v.properties.cp;
54
-
55
- });
56
- var convertData = function(data) {
57
- var res = [];
58
- for (var i = 0; i < data.length; i++) {
59
- var geoCoord = geoCoordMap[data[i].name];
60
- if (geoCoord) {
61
- res.push({
62
- name: data[i].name,
63
- value: geoCoord.concat(data[i].value),
64
- });
65
- }
66
- }
67
- return res;
68
- };
69
- var colormode=''
70
- if(this.mode=='0'){colormode="#e7c83c"}
71
- if(this.mode=='1'){colormode="#66f2de"}
72
- var data = [
73
- {name:"西安市",value:80,sellgas:'600'},
74
- {name:"安康市",value:80,sellgas:'600'},
75
- {name:"榆林市",value:80,sellgas:'80'},
76
- {name:"铜川市",value:80,sellgas:'600'},
77
- {name:"延安市",value:80,sellgas:'600'},
78
- {name:"宝鸡市",value:80,sellgas:'600'},
79
- {name:"渭南市",value:80,sellgas:'600'},
80
- {name:"商洛市",value:80,sellgas:'600'},
81
- {name:"汉中市",value:80,sellgas:'600'},
82
- {name:"咸阳市",value:80,sellgas:'600'}
83
- ];
84
- var col=['#2a4096','#1285de','#27459b','#284ba5','#225bb2','#2353a8','#244ca3','#1775cd','#1e64bc','#05a0fc','#108de7','#1b6dc3']
85
- let colors=[]
86
- for(var i =0;i<data.length;i++){
87
- var jo={
88
- name: data[i].name,
89
- itemStyle: {
90
- areaColor: col[i] ,
91
- // color: '#02363f'
92
- color: col[i]
93
- }
94
- }
95
- colors.push(jo)
96
- }
97
- var option= {
98
- title : {
99
- text: '',
100
- subtext: '',
101
- x:'center'
102
- },
103
- tooltip: {
104
- show: true,
105
- alwaysShowContent:false,
106
- backgroundColor:'rgba(2, 59, 63, 0.7)',
107
- borderColor :'rgba(98, 194, 186, 0.45)',
108
- borderWidth:1,
109
- padding:10*scale,
110
- textStyle:{
111
- fontSize:18*scale
112
- },
113
- hideDelay:100*scale,
114
- triggerOn:'mousemove',
115
- enterable:true,
116
- position: function(point, params, dom, rect, size) {
117
- //其中point为当前鼠标的位置,size中有两个属性:viewSize和contentSize,分别为外层div和tooltip提示框的大小
118
- var x = point[0]; //
119
- var y = point[1];
120
- var viewWidth = size.viewSize[0];
121
- var viewHeight = size.viewSize[1];
122
- var boxWidth = size.contentSize[0];
123
- var boxHeight = size.contentSize[1];
124
- var posX = 0; //x坐标位置
125
- var posY = 0; //y坐标位置
126
-
127
- if (x < boxWidth) { //左边放不开
128
- posX = 5;
129
- } else { //左边放的下
130
- posX = x - boxWidth;
131
- }
132
-
133
- if (y < boxHeight) { //上边放不开
134
- posY = 5;
135
- } else { //上边放得下
136
- posY = y - boxHeight;
137
- }
138
-
139
- return [posX-10, posY-10];
140
-
141
- },
142
- extraCssText:'width: auto;height:auto;',
143
- formatter:function(params, ticket, callback){
144
- return '<div style=\'text-align: center;height: 1px;margin-bottom: 5px;font-weight: normal\'>'+data[params.dataIndex].name+'</div><br/><span>'
145
- +'<span style="font-weight: normal">年售气量 &nbsp;&nbsp;</span><span style="color:#e1e52a;font-weight: bolder">'+data[params.dataIndex].sellgas+'w</span><br/>'+'<span style="font-weight: normal">购&nbsp;气&nbsp;&nbsp;量 &nbsp;&nbsp;</span><span style="color:#e1e52a; font-weight: bolder">100w</span>'+'</span>';
146
- }
147
- },
148
- dataRange:{
149
- min: 0,
150
- max: 2500,
151
- left: 'left',
152
- top: 'bottom',
153
- text: ['高', '低'],
154
- calculable: true,
155
- show:false,
156
- inRange: {
157
- color: [
158
- // "#1DE9B6", "#F46E36", "#04B9FF", "#5DBD32", "#FFC809", "#FB95D5", "#BDA29A", "#6E7074", "#546570", "#C4CCD3"
159
- // "#ff002d"
160
- // "#ffc188",
161
- // "#479fd2",
162
- // "#fba853",
163
- // "#48c7c0",
164
- // "#fa8737",
165
- // "#4bbdd6",
166
- // "#ff6f5b",
167
- // "#F4D5B1",
168
- // "#ADE1E3",
169
- // "#F4B387",
170
- // "#F0F3F4"
171
- ]
172
- },
173
- },
174
-
175
- series : [
176
- {
177
- type: 'map',
178
- map: '陕西',
179
- geoIndex: 0,
180
- aspectScale: 0.75, //长宽比
181
- showLegendSymbol: false, // 存在legend时显示
182
- roam: true,
183
- animation: false,
184
- data: data
185
- },
186
- { //涟漪点设置
187
- //文字和标志
188
- // name: 'light',
189
- type: 'effectScatter',
190
- coordinateSystem: 'geo',
191
- data: convertData(data.sort(function(a, b) {
192
- return b.value - a.value;
193
- }).slice(0, 10)),
194
- symbolSize: function(val) {
195
- return val[2]/8 ;
196
- },
197
- emphasis: { //高亮区域样式
198
- label: {
199
- show: true
200
- },
201
- itemStyle: {
202
- color:'#e8f218',
203
- shadowBlur: 10*scale,
204
- shadowColor: '#4b5cf2'
205
- },
206
- },
207
- showEffectOn: 'render',
208
- rippleEffect: {
209
- brushType: 'stroke'
210
- },
211
- hoverAnimation: true,
212
- label: {
213
- normal: {
214
- formatter: '{b}',
215
- position: 'top',
216
- fontSize:10*scale,
217
- color:'#ffffff',
218
- show: true
219
- },
220
- },
221
- itemStyle: {
222
- normal: {
223
- show:true,
224
- color:'#66f2de',
225
- shadowBlur: 10*scale,
226
- shadowColor: '#66f2de'
227
- }
228
- },
229
-
230
- zlevel: 1
231
- },
232
- ]
233
- }
234
- if(this.mode=='0'){option.geo={ //地图设置
235
- show: true,
236
- map: mapjson.name,
237
- label: {
238
- show: false
239
- },
240
- selectedMode: 'single',
241
- roam: false,
242
-
243
- emphasis: { //高亮区域样式
244
- label: {
245
- show: false
246
- },
247
- itemStyle: {
248
- areaColor: '#ffff2c'
249
- },
250
- },
251
- itemStyle: {
252
- normal: {
253
- borderColor: '#666666',
254
- borderWidth: 1,
255
- areaColor: {
256
- type: 'radial',
257
- x: 0.5,
258
- y: 0.5,
259
- r: 0.8,
260
- colorStops: [{
261
- offset: 0,
262
- offset: 0,
263
- color: '#02363f' // 0% 处的颜色
264
- }, {
265
- offset: 1,
266
- color: '#02363f'
267
- }],
268
- globalCoord: false // 缺省为 false
269
- },
270
- shadowBlur: 0
271
- },
272
- },
273
- regions: colors
274
- } }
275
- if(this.mode=='1'){option.geo={ //地图设置
276
- show: true,
277
- map: mapjson.name,
278
- label: {
279
- show: false
280
- },
281
- selectedMode: 'single',
282
- roam: false,
283
-
284
- emphasis: { //高亮区域样式
285
- label: {
286
- show: false
287
- },
288
- itemStyle: {
289
- areaColor: '#62fff7'
290
- },
291
- },
292
- // itemStyle: {
293
- // normal: {
294
- // borderWidth:0
295
- // }
296
- // },
297
- itemStyle: {
298
- normal: {
299
- borderColor: '#21e3dc',
300
- borderWidth: 1,
301
- areaColor: {
302
- type: 'radial',
303
- x: 0.5,
304
- y: 0.5,
305
- r: 0.8,
306
- colorStops: [{
307
- offset: 0,
308
- offset: 0,
309
- color: '#02363f' // 0% 处的颜色
310
- }, {
311
- offset: 1,
312
- color: '#02363f'
313
- }],
314
- globalCoord: false // 缺省为 false
315
- },
316
- // shadowColor: '#21e3dc',
317
- // // shadowColor: 'rgba(255, 255, 255, 1)',
318
- // shadowOffsetX: -1,
319
- // shadowOffsetY: 1,
320
- shadowBlur: 0
321
- },
322
- // emphasis: {
323
- // areaColor: '#389BB7',
324
- // borderWidth: 0
325
- // }
326
- },
327
- // regions: colors
328
- }}
329
-
330
- // console.log(this.$shanxi,'测试')
331
- oroptionmapjsonr_charts.setOption(option)
332
- oroptionmapjsonr_charts.on("click", this.eConsole)
333
- var app = {
334
- currentIndex: 0,
335
- };
336
- // oroptionmapjsonr_charts.dispatchAction({
337
- // type: 'highlight',
338
- // seriesIndex: 0,
339
- // dataIndex: app.currentIndex,
340
- // });
341
- var self=this
342
- this.timer= setInterval(function () {
343
- var dataLen = option.series[0].data.length;
344
- // 取消之前高亮的图形
345
- oroptionmapjsonr_charts.dispatchAction({
346
- type: 'downplay',
347
- seriesIndex: 1,
348
- dataIndex: app.currentIndex
349
- });
350
-
351
- self.$parent.indexflag=false
352
- self.$parent.index0=app.currentIndex
353
- app.currentIndex = (app.currentIndex + 1) % dataLen;
354
- self.$parent.index=app.currentIndex
355
- //console.log(app.currentIndex);
356
- // 高亮当前图形
357
- oroptionmapjsonr_charts.dispatchAction({
358
- type: 'highlight',
359
- seriesIndex: 1,
360
- dataIndex: app.currentIndex,
361
- });
362
- // 显示 tooltip
363
- oroptionmapjsonr_charts.dispatchAction({
364
- type: 'showTip',
365
- seriesIndex: 1,
366
- dataIndex: app.currentIndex
367
- });
368
- }, 3000);
369
- // var highindex=0
370
- // oroptionmapjsonr_charts.on("mouseover", function (param) {
371
- // self.$parent.indexflag=true
372
- // oroptionmapjsonr_charts.dispatchAction({
373
- // type: 'downplay',
374
- // seriesIndex: 0,
375
- // dataIndex: app.currentIndex
376
- // });
377
- // self.$parent.index=param.dataIndex
378
- // // 高亮当前图形
379
- if(this.$parent.$parent.dataindex>=0){
380
- oroptionmapjsonr_charts.dispatchAction({
381
- type: 'highlight',
382
- seriesIndex: 0,
383
- dataIndex: this.$parent.$parent.dataindex,
384
- });
385
- }
386
-
387
- // // 显示 tooltip
388
- // oroptionmapjsonr_charts.dispatchAction({
389
- // type: 'showTip',
390
- // seriesIndex: 1,
391
- // dataIndex:param.dataIndex
392
- // });
393
- // highindex=param.dataIndex
394
- // })
395
-
396
-
397
- },
398
- eConsole(data){
399
- this.$parent.$parent.f_filiale=data.name
400
- this.$parent.$parent.dataindex=data.dataIndex
401
- },
402
- selmapdata(name){
403
- for(var i=0;i<this.mapdata.length;i++){
404
- if(name==this.mapdata[i].name){
405
- this.drawChinaMap(this.mapdata[i])
406
- this.list.push(this.mapdata[i].name)
407
- break
408
- }
409
- }
410
- },
411
- selmap(name){
412
- for(var i=0;i<this.list.length;i++){
413
- if(i==this.list.length-1){
414
- break
415
- }
416
- if(name==this.list[i]){
417
- this.list.splice(0,i)
418
- this.selmapdata(name)
419
- }
420
- }
421
- }
422
- },
423
- beforeDestroy() {
424
- //清除定时器
425
- clearInterval(this.timer);
426
- },
427
- ready(){
428
- this.list.push(this.mapdata[0].name)
429
- this.drawChinaMap(this.mapdata[0]);
430
- }
431
- };
432
- </script>
1
+
2
+ <template>
3
+
4
+ <div>
5
+ <div style="width: 100%;height: 120%">
6
+ <!--<div style="height: 40px;"><span v-for="i in list" @click="selmap(i)">{{i}}———></span></div>-->
7
+ <div :id="idname" style="text-align: left"></div>
8
+ </div>
9
+ </div>
10
+ </template>
11
+
12
+ <script>
13
+
14
+ import '../../../stores/shanxi1.js';
15
+
16
+
17
+ export default {
18
+ name: 'echart-map',
19
+ props: {
20
+ mode: String,
21
+ idname: String,
22
+ },
23
+ data() {
24
+ return {
25
+ mapdata:[
26
+ {name:'陕西',value:require('../../../../static/shanxi1.json')}
27
+ // {name:'咸阳市',value:require('../../../static/xianyangshi.json')},
28
+ // {name:'西安市',value:require('../../../static/xianshi.json')}
29
+ ],
30
+ list:[],
31
+ xc:'',
32
+ timer:'',
33
+ }
34
+ },
35
+
36
+ mounted() {
37
+ this.drawChinaMap();
38
+ },
39
+ methods: {
40
+ drawChinaMap(mapjson) {
41
+ var oroptionmapjsonr_charts =this.$echarts.init(document.getElementById(this.idname));
42
+ this.xc=oroptionmapjsonr_charts
43
+ var scale=this.$parent.$parent.$parent.scale
44
+ var geoCoordMap = {};
45
+ this.$echarts.registerMap(mapjson.name, mapjson.value);
46
+ oroptionmapjsonr_charts.showLoading();
47
+ var mapFeatures = this.$echarts.getMap(mapjson.name).geoJson.features;
48
+ oroptionmapjsonr_charts.hideLoading();
49
+ mapFeatures.forEach(function(v) {
50
+ // 地区名称
51
+ var name = v.properties.name;
52
+ // 地区经纬度
53
+ geoCoordMap[name] = v.properties.cp;
54
+
55
+ });
56
+ var convertData = function(data) {
57
+ var res = [];
58
+ for (var i = 0; i < data.length; i++) {
59
+ var geoCoord = geoCoordMap[data[i].name];
60
+ if (geoCoord) {
61
+ res.push({
62
+ name: data[i].name,
63
+ value: geoCoord.concat(data[i].value),
64
+ });
65
+ }
66
+ }
67
+ return res;
68
+ };
69
+ var colormode=''
70
+ if(this.mode=='0'){colormode="#e7c83c"}
71
+ if(this.mode=='1'){colormode="#66f2de"}
72
+ var data = [
73
+ {name:"西安市",value:80,sellgas:'600'},
74
+ {name:"安康市",value:80,sellgas:'600'},
75
+ {name:"榆林市",value:80,sellgas:'80'},
76
+ {name:"铜川市",value:80,sellgas:'600'},
77
+ {name:"延安市",value:80,sellgas:'600'},
78
+ {name:"宝鸡市",value:80,sellgas:'600'},
79
+ {name:"渭南市",value:80,sellgas:'600'},
80
+ {name:"商洛市",value:80,sellgas:'600'},
81
+ {name:"汉中市",value:80,sellgas:'600'},
82
+ {name:"咸阳市",value:80,sellgas:'600'}
83
+ ];
84
+ var col=['#2a4096','#1285de','#27459b','#284ba5','#225bb2','#2353a8','#244ca3','#1775cd','#1e64bc','#05a0fc','#108de7','#1b6dc3']
85
+ let colors=[]
86
+ for(var i =0;i<data.length;i++){
87
+ var jo={
88
+ name: data[i].name,
89
+ itemStyle: {
90
+ areaColor: col[i] ,
91
+ // color: '#02363f'
92
+ color: col[i]
93
+ }
94
+ }
95
+ colors.push(jo)
96
+ }
97
+ var option= {
98
+ title : {
99
+ text: '',
100
+ subtext: '',
101
+ x:'center'
102
+ },
103
+ tooltip: {
104
+ show: true,
105
+ alwaysShowContent:false,
106
+ backgroundColor:'rgba(2, 59, 63, 0.7)',
107
+ borderColor :'rgba(98, 194, 186, 0.45)',
108
+ borderWidth:1,
109
+ padding:10*scale,
110
+ textStyle:{
111
+ fontSize:18*scale
112
+ },
113
+ hideDelay:100*scale,
114
+ triggerOn:'mousemove',
115
+ enterable:true,
116
+ position: function(point, params, dom, rect, size) {
117
+ //其中point为当前鼠标的位置,size中有两个属性:viewSize和contentSize,分别为外层div和tooltip提示框的大小
118
+ var x = point[0]; //
119
+ var y = point[1];
120
+ var viewWidth = size.viewSize[0];
121
+ var viewHeight = size.viewSize[1];
122
+ var boxWidth = size.contentSize[0];
123
+ var boxHeight = size.contentSize[1];
124
+ var posX = 0; //x坐标位置
125
+ var posY = 0; //y坐标位置
126
+
127
+ if (x < boxWidth) { //左边放不开
128
+ posX = 5;
129
+ } else { //左边放的下
130
+ posX = x - boxWidth;
131
+ }
132
+
133
+ if (y < boxHeight) { //上边放不开
134
+ posY = 5;
135
+ } else { //上边放得下
136
+ posY = y - boxHeight;
137
+ }
138
+
139
+ return [posX-10, posY-10];
140
+
141
+ },
142
+ extraCssText:'width: auto;height:auto;',
143
+ formatter:function(params, ticket, callback){
144
+ return '<div style=\'text-align: center;height: 1px;margin-bottom: 5px;font-weight: normal\'>'+data[params.dataIndex].name+'</div><br/><span>'
145
+ +'<span style="font-weight: normal">年售气量 &nbsp;&nbsp;</span><span style="color:#e1e52a;font-weight: bolder">'+data[params.dataIndex].sellgas+'w</span><br/>'+'<span style="font-weight: normal">购&nbsp;气&nbsp;&nbsp;量 &nbsp;&nbsp;</span><span style="color:#e1e52a; font-weight: bolder">100w</span>'+'</span>';
146
+ }
147
+ },
148
+ dataRange:{
149
+ min: 0,
150
+ max: 2500,
151
+ left: 'left',
152
+ top: 'bottom',
153
+ text: ['高', '低'],
154
+ calculable: true,
155
+ show:false,
156
+ inRange: {
157
+ color: [
158
+ // "#1DE9B6", "#F46E36", "#04B9FF", "#5DBD32", "#FFC809", "#FB95D5", "#BDA29A", "#6E7074", "#546570", "#C4CCD3"
159
+ // "#ff002d"
160
+ // "#ffc188",
161
+ // "#479fd2",
162
+ // "#fba853",
163
+ // "#48c7c0",
164
+ // "#fa8737",
165
+ // "#4bbdd6",
166
+ // "#ff6f5b",
167
+ // "#F4D5B1",
168
+ // "#ADE1E3",
169
+ // "#F4B387",
170
+ // "#F0F3F4"
171
+ ]
172
+ },
173
+ },
174
+
175
+ series : [
176
+ {
177
+ type: 'map',
178
+ map: '陕西',
179
+ geoIndex: 0,
180
+ aspectScale: 0.75, //长宽比
181
+ showLegendSymbol: false, // 存在legend时显示
182
+ roam: true,
183
+ animation: false,
184
+ data: data
185
+ },
186
+ { //涟漪点设置
187
+ //文字和标志
188
+ // name: 'light',
189
+ type: 'effectScatter',
190
+ coordinateSystem: 'geo',
191
+ data: convertData(data.sort(function(a, b) {
192
+ return b.value - a.value;
193
+ }).slice(0, 10)),
194
+ symbolSize: function(val) {
195
+ return val[2]/8 ;
196
+ },
197
+ emphasis: { //高亮区域样式
198
+ label: {
199
+ show: true
200
+ },
201
+ itemStyle: {
202
+ color:'#e8f218',
203
+ shadowBlur: 10*scale,
204
+ shadowColor: '#4b5cf2'
205
+ },
206
+ },
207
+ showEffectOn: 'render',
208
+ rippleEffect: {
209
+ brushType: 'stroke'
210
+ },
211
+ hoverAnimation: true,
212
+ label: {
213
+ normal: {
214
+ formatter: '{b}',
215
+ position: 'top',
216
+ fontSize:10*scale,
217
+ color:'#ffffff',
218
+ show: true
219
+ },
220
+ },
221
+ itemStyle: {
222
+ normal: {
223
+ show:true,
224
+ color:'#66f2de',
225
+ shadowBlur: 10*scale,
226
+ shadowColor: '#66f2de'
227
+ }
228
+ },
229
+
230
+ zlevel: 1
231
+ },
232
+ ]
233
+ }
234
+ if(this.mode=='0'){option.geo={ //地图设置
235
+ show: true,
236
+ map: mapjson.name,
237
+ label: {
238
+ show: false
239
+ },
240
+ selectedMode: 'single',
241
+ roam: false,
242
+
243
+ emphasis: { //高亮区域样式
244
+ label: {
245
+ show: false
246
+ },
247
+ itemStyle: {
248
+ areaColor: '#ffff2c'
249
+ },
250
+ },
251
+ itemStyle: {
252
+ normal: {
253
+ borderColor: '#666666',
254
+ borderWidth: 1,
255
+ areaColor: {
256
+ type: 'radial',
257
+ x: 0.5,
258
+ y: 0.5,
259
+ r: 0.8,
260
+ colorStops: [{
261
+ offset: 0,
262
+ offset: 0,
263
+ color: '#02363f' // 0% 处的颜色
264
+ }, {
265
+ offset: 1,
266
+ color: '#02363f'
267
+ }],
268
+ globalCoord: false // 缺省为 false
269
+ },
270
+ shadowBlur: 0
271
+ },
272
+ },
273
+ regions: colors
274
+ } }
275
+ if(this.mode=='1'){option.geo={ //地图设置
276
+ show: true,
277
+ map: mapjson.name,
278
+ label: {
279
+ show: false
280
+ },
281
+ selectedMode: 'single',
282
+ roam: false,
283
+
284
+ emphasis: { //高亮区域样式
285
+ label: {
286
+ show: false
287
+ },
288
+ itemStyle: {
289
+ areaColor: '#62fff7'
290
+ },
291
+ },
292
+ // itemStyle: {
293
+ // normal: {
294
+ // borderWidth:0
295
+ // }
296
+ // },
297
+ itemStyle: {
298
+ normal: {
299
+ borderColor: '#21e3dc',
300
+ borderWidth: 1,
301
+ areaColor: {
302
+ type: 'radial',
303
+ x: 0.5,
304
+ y: 0.5,
305
+ r: 0.8,
306
+ colorStops: [{
307
+ offset: 0,
308
+ offset: 0,
309
+ color: '#02363f' // 0% 处的颜色
310
+ }, {
311
+ offset: 1,
312
+ color: '#02363f'
313
+ }],
314
+ globalCoord: false // 缺省为 false
315
+ },
316
+ // shadowColor: '#21e3dc',
317
+ // // shadowColor: 'rgba(255, 255, 255, 1)',
318
+ // shadowOffsetX: -1,
319
+ // shadowOffsetY: 1,
320
+ shadowBlur: 0
321
+ },
322
+ // emphasis: {
323
+ // areaColor: '#389BB7',
324
+ // borderWidth: 0
325
+ // }
326
+ },
327
+ // regions: colors
328
+ }}
329
+
330
+ // console.log(this.$shanxi,'测试')
331
+ oroptionmapjsonr_charts.setOption(option)
332
+ oroptionmapjsonr_charts.on("click", this.eConsole)
333
+ var app = {
334
+ currentIndex: 0,
335
+ };
336
+ // oroptionmapjsonr_charts.dispatchAction({
337
+ // type: 'highlight',
338
+ // seriesIndex: 0,
339
+ // dataIndex: app.currentIndex,
340
+ // });
341
+ var self=this
342
+ this.timer= setInterval(function () {
343
+ var dataLen = option.series[0].data.length;
344
+ // 取消之前高亮的图形
345
+ oroptionmapjsonr_charts.dispatchAction({
346
+ type: 'downplay',
347
+ seriesIndex: 1,
348
+ dataIndex: app.currentIndex
349
+ });
350
+
351
+ self.$parent.indexflag=false
352
+ self.$parent.index0=app.currentIndex
353
+ app.currentIndex = (app.currentIndex + 1) % dataLen;
354
+ self.$parent.index=app.currentIndex
355
+ //console.log(app.currentIndex);
356
+ // 高亮当前图形
357
+ oroptionmapjsonr_charts.dispatchAction({
358
+ type: 'highlight',
359
+ seriesIndex: 1,
360
+ dataIndex: app.currentIndex,
361
+ });
362
+ // 显示 tooltip
363
+ oroptionmapjsonr_charts.dispatchAction({
364
+ type: 'showTip',
365
+ seriesIndex: 1,
366
+ dataIndex: app.currentIndex
367
+ });
368
+ }, 3000);
369
+ // var highindex=0
370
+ // oroptionmapjsonr_charts.on("mouseover", function (param) {
371
+ // self.$parent.indexflag=true
372
+ // oroptionmapjsonr_charts.dispatchAction({
373
+ // type: 'downplay',
374
+ // seriesIndex: 0,
375
+ // dataIndex: app.currentIndex
376
+ // });
377
+ // self.$parent.index=param.dataIndex
378
+ // // 高亮当前图形
379
+ if(this.$parent.$parent.dataindex>=0){
380
+ oroptionmapjsonr_charts.dispatchAction({
381
+ type: 'highlight',
382
+ seriesIndex: 0,
383
+ dataIndex: this.$parent.$parent.dataindex,
384
+ });
385
+ }
386
+
387
+ // // 显示 tooltip
388
+ // oroptionmapjsonr_charts.dispatchAction({
389
+ // type: 'showTip',
390
+ // seriesIndex: 1,
391
+ // dataIndex:param.dataIndex
392
+ // });
393
+ // highindex=param.dataIndex
394
+ // })
395
+
396
+
397
+ },
398
+ eConsole(data){
399
+ this.$parent.$parent.f_filiale=data.name
400
+ this.$parent.$parent.dataindex=data.dataIndex
401
+ },
402
+ selmapdata(name){
403
+ for(var i=0;i<this.mapdata.length;i++){
404
+ if(name==this.mapdata[i].name){
405
+ this.drawChinaMap(this.mapdata[i])
406
+ this.list.push(this.mapdata[i].name)
407
+ break
408
+ }
409
+ }
410
+ },
411
+ selmap(name){
412
+ for(var i=0;i<this.list.length;i++){
413
+ if(i==this.list.length-1){
414
+ break
415
+ }
416
+ if(name==this.list[i]){
417
+ this.list.splice(0,i)
418
+ this.selmapdata(name)
419
+ }
420
+ }
421
+ }
422
+ },
423
+ beforeDestroy() {
424
+ //清除定时器
425
+ clearInterval(this.timer);
426
+ },
427
+ ready(){
428
+ this.list.push(this.mapdata[0].name)
429
+ this.drawChinaMap(this.mapdata[0]);
430
+ }
431
+ };
432
+ </script>