investHome2.js 42 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363
  1. let app = new Vue({
  2. el: '#app',
  3. data () {
  4. return {
  5. year: '2022',
  6. time: '',
  7. timer: '',
  8. mapName: 'shanxi',
  9. geoCoordMap: {},
  10. config1: {
  11. number: [100],
  12. content: '{nt}个',
  13. },
  14. storageRecordConfig: {
  15. header: [],
  16. headerBGC: '#05507b33',
  17. oddRowBGC: '#05507b33',
  18. evenRowBGC: '',
  19. headerHeight: '40',
  20. rowNum: 4,
  21. align: ['center'],
  22. data: [
  23. ['工程建设项目'],
  24. ['施工图设计'],
  25. ['工程建设项目'],
  26. ['施工图设计'],
  27. ['工程建设项目'],
  28. ],
  29. },
  30. companyList: [
  31. { name: '山西焦煤' },
  32. { name: '晋能控股' },
  33. { name: '华新燃气' },
  34. { name: '山西建投' },
  35. { name: '潞安化工' },
  36. { name: '华远陆港' },
  37. { name: '航产集团' },
  38. { name: '大地控股' },
  39. { name: '国新能源' },
  40. { name: '汾酒集团' },
  41. { name: '云时代' },
  42. { name: '神农科技' },
  43. { name: '华阳新材' },
  44. { name: '华舰体育' },
  45. { name: '交控集团' },
  46. { name: '文旅集团' },
  47. { name: '水控集团' },
  48. { name: '太重集团' },
  49. ],
  50. }
  51. },
  52. created () {
  53. this.time = formatDate()
  54. this.timer = setInterval(() => {
  55. this.time = formatDate()
  56. }, 1000)
  57. },
  58. beforeDestroy () {
  59. if (this.timer) {
  60. clearInterval(this.timer);
  61. }
  62. },
  63. mounted () {
  64. // 左侧图表
  65. setTimeout(() => {
  66. this.initChartL1()
  67. this.initChartL2()
  68. this.initChartL3()
  69. this.initChartL4()
  70. this.initChartL5()
  71. this.initChartL6()
  72. this.initChartL7()
  73. this.initChartR1()
  74. this.initChartR2()
  75. this.initChartR3()
  76. },)
  77. },
  78. methods: {
  79. convertData (data) {
  80. var res = []
  81. for (var i = 0; i < data.length; i++) {
  82. var geoCoord = this.geoCoordMap[data[i].name]
  83. if (geoCoord) {
  84. res.push({
  85. name: data[i].name,
  86. value: geoCoord.concat(data[i].value),
  87. })
  88. }
  89. }
  90. return res
  91. },
  92. initChinaChart () {
  93. var data = [
  94. { name: '吕梁市', value: 150 },
  95. { name: '大同市', value: 190 },
  96. { name: '忻州市', value: 140 },
  97. { name: '朔州市', value: 160 },
  98. { name: '晋中市', value: 100 },
  99. { name: '太原市', value: 300 },
  100. { name: '临汾市', value: 190 },
  101. { name: '长治市', value: 100 },
  102. { name: '晋城市', value: 280 },
  103. { name: '运城市', value: 180 },
  104. { name: '阳泉市', value: 110 },
  105. ]
  106. var moveLine = {
  107. normal: [
  108. {
  109. fromName: '太原市',
  110. toName: '吕梁市',
  111. coords: [
  112. [112.3352, 37.9413],
  113. [111.3574, 37.7325],
  114. ],
  115. },
  116. {
  117. fromName: '太原市',
  118. toName: '忻州市',
  119. coords: [
  120. [112.3352, 37.9413],
  121. [112.4561, 38.8971],
  122. ],
  123. },
  124. {
  125. fromName: '太原市',
  126. toName: '临汾市',
  127. coords: [
  128. [112.3352, 37.9413],
  129. [111.4783, 36.1615],
  130. ],
  131. },
  132. {
  133. fromName: '太原市',
  134. toName: '阳泉市',
  135. coords: [
  136. [112.3352, 37.9413],
  137. [113.4778, 38.0951],
  138. ],
  139. },
  140. {
  141. fromName: '太原市',
  142. toName: '晋中市',
  143. coords: [
  144. [112.3352, 37.9413],
  145. [112.7747, 37.37],
  146. ],
  147. },
  148. {
  149. fromName: '太原市',
  150. toName: '运城市',
  151. coords: [
  152. [112.3352, 37.9413],
  153. [111.1487, 35.2002],
  154. ],
  155. },
  156. {
  157. fromName: '太原市',
  158. toName: '大同市',
  159. coords: [
  160. [112.3352, 37.9413],
  161. [113.7854, 39.8035],
  162. ],
  163. },
  164. {
  165. fromName: '太原市',
  166. toName: '晋城市',
  167. coords: [
  168. [112.3352, 37.9413],
  169. [112.7856, 35.6342],
  170. ],
  171. },
  172. {
  173. fromName: '太原市',
  174. toName: '长治市',
  175. coords: [
  176. [112.3352, 37.9413],
  177. [112.8625, 36.4746],
  178. ],
  179. },
  180. {
  181. fromName: '太原市',
  182. toName: '朔州市',
  183. coords: [
  184. [112.3352, 37.9413],
  185. [113.0713, 39.6991],
  186. ],
  187. },
  188. ],
  189. }
  190. /*获取地图数据*/
  191. let myChart = echarts.init(this.$refs['echarts-map'])
  192. echarts.registerMap('shanxi', {
  193. type: 'FeatureCollection',
  194. features: [
  195. {
  196. type: 'Feature',
  197. id: '1409',
  198. properties: { name: '忻州市', cp: [112.4561, 38.8971], childNum: 14 },
  199. geometry: {
  200. type: 'Polygon',
  201. coordinates: [
  202. '@@Vx@lnbn¦WlnnUšmš°š²VšV‚VVVnUn„ºlz@l„„@Jƒ@kXWVXl@Lƒa@„ƒKUL„ŽlbnKlLnK‚LnKÆXn°šbVV@bUVl°Un@LnaVJUbW@UX²l‚@ČwlVVIšWnkÆa°„„anV‚Kn°™UW¯@™aVUVk@Un@„aV@ValwUanmWU„k@WVUUanaVwnLVl°@nk@mVU@UVK@w„LVKVU@ƒ„K@UUKVUV@@bnL„a‚V„aôšlIXmlKX_°KVV@bVV„@šzV`kblI„V„Ul‚šL@bnV@V„Ċll„„VlIXW@k„a‚U²blKšVnIlJ„albXXlWVn°JnšnL@l@XlJlaX@„X˜W²@l_VmnKšU„blU@mnkVK„¯@U@ƒma@kX¥VƒmakkƒLƒa@aƒ@WIUUVXWWnk@a°a@kkm@kUUmJm@WUUUIk`m@V—kaWWkX™KmƒXk¯ƒ@WKƒLkak@±bƒw@ƒaƒa@akaƒ@ma¯@ƒL—KÇÅkKWbkmġ™±ÅUƒLUK™VVkƒm¯LUVVbƒ„UwUW¯bm„ƒULƒxWJ—@ƒklmkUm@@KnwVkVK@akwƒ@@a¯bƒKkn›VUI™b¯mmbk@UbmKUL@xUUƒ@klmLUŽlVXI‚VVVUVUœU`mLXVWbXnW`Ų°xmŽxU@mĉƒƒwU@mbU@UƒmbkVW¦kJ™@ƒX@`¯Im@UlUVVnb@bWJXnmbƒJUU™UUaƒ@UamIkaƒxƒ@@x@b',
  203. ],
  204. encodeOffsets: [[113614, 39657]],
  205. },
  206. },
  207. {
  208. type: 'Feature',
  209. id: '1411',
  210. properties: { name: '吕梁市', cp: [111.3574, 37.7325], childNum: 13 },
  211. geometry: {
  212. type: 'Polygon',
  213. coordinates: [
  214. '@@@a@w„@„wlbnJVb„@VbšVVV„InaWmXI@a‚aUmVUVkn@°J@_„Wš@lIX¥lUnaV„V@naV@„xĊ„n‚V@‚wn¯wƱX_WmXaWUnKV_V›VUUUUWJkUVnKlk¯™@@kmKUaŁ±KkU@WmI@WUIlUUmVwXƒ‚w@ƒUlUVwœV‚@„Lnb‚W@anU@UšaVkô@l»n@na˜JnUÈLVaƃUUVm„VKVƒ²L@mU_lK@UVWkU‚a@a@U¯aUaƒÑóÑUb™„ƒKk@@aƒk¯mVaUwVƒÑkWUmK@UUKmXUWÝwUa™LUU@aWJUUU@Ua݄U@WL@VKVaVI@WnU@alIVKƒƒ@kIƒmIkJ@™m@ƒ™@@_™K@xƒ@kaW@U„@Vmn@ŽUK@mIƒJUXV¤XXWlkKƒkkK@XmJVakImJU@ó™¯LWKUV@nUVƒLkxmKkLma@kXKmmƒLƒab™LmK@V@mXVÆUxƒX@`nL„aV@@VmLUVnLlLš˜„b@„šŽ°²nx@b‚VUxlb@V¯bUV@zV‚XVĊXVx@lVn@VnnmŽUš@LlJXVƒz¯VWVXbšV@bmn™VUVk„Çþń@XVxmbUlV„Uln„W„@„Xl‚@VLXÒ@bÞJ°¦„L˜ò„@nU‚b@°„X@ŽXbmVU„V„nb@x‚x',
  215. ],
  216. encodeOffsets: [[113614, 39657]],
  217. },
  218. },
  219. {
  220. type: 'Feature',
  221. id: '1410',
  222. properties: { name: '临汾市', cp: [111.4783, 36.1615], childNum: 17 },
  223. geometry: {
  224. type: 'Polygon',
  225. coordinates: [
  226. '@@nW‚@@UnLšK‚a„b„KnnWL@lnblKnLlw„KVU@mVUXL°KôšV@nIlJUbnI@WlL„llLXkWWU£VW„InJ‚@VL@nm@UVƒX@lb„@@wšL@`‚@„šn@V@lw„@n„VmVX„WmwnUlƒœa@_lK„wVlUn°xVKVXXWlUšVVI@K@K„n°KœwlVlU@kna@V_„Wn‚m„UVm@kXml_@m„LlKXw°m@_ôJVUV@X™l@UaV@Va°I„lk»VwUkVmwUmmVn@V¯@KƒU—wmK@U¯wUVÝ@mJƒU—nWK™@@UnKVa„_lykUmKÛnm@™x@ƒUUlwVk™ƒXW@ƒa@Uƒ@@K@ƒkIV™nammVakUlƒ@wX@@kƒ™¯@ƒVVbml@„„°UbULmlVbnbÅK±VƒKVXUJWa@ULWaUU@@U@aWK@UkxUKƒLUUUJ±UkL@V±kk@kam@UV@l@LWl@n@VVUx„LlUUx@VUV™U@aƒIUl™L@°mLU‚ƒbkUUaWUUaUU@aWK—LWJ@bUL@VUVVbU@m@a@kmKmnĉlUK™XƒWUblb—xmIkƒƒU@xWb@lkšVx™LXŽmzVV@bklVVUzm˜@bk„@Vx@xlŽU„@lUbVnl@„Wxnl@n@ŽUbV„mL‚mƒb@`X@lUX@@xlnkLWaUJnnWV™Vn@l„@bULVV@l™V@XnJVX',
  227. ],
  228. encodeOffsets: [[113063, 37784]],
  229. },
  230. },
  231. {
  232. type: 'Feature',
  233. id: '1407',
  234. properties: { name: '晋中市', cp: [112.7747, 37.37], childNum: 11 },
  235. geometry: {
  236. type: 'Polygon',
  237. coordinates: [
  238. '@@@šlInJ„lJ„@‚„ULkJ@bmV@XUJUb‚L@UXKV@ރVbV@VVXI@bVVšKVbÞxVXnWVL@VnLV‚lX„ÒUŽVxUb°n„l@bl@„LšƒVaô҄ÒVb°b@VnLnnV@lmn@lb„U„V@„‚JœUVV‚Xkl@lUzmJ@xšXkl‚bUn„JVšUb„nU‚lb„V@nlLX@lakšV`Ub°š@XVJnU‚L²KlxnI@KV@lbUbVV„KnVl@„zlm@Uš@nŽšI@WUaVl@@mVU„@XkW@ƒnkVKVƒ„_Vw„y@knwVa‚@XalU„@šVnml@„X@V„L‚KVaÞbnnlJšI„mVKn„VVVInVlU„@„m@™mXK@UmyUI@mWUUakamw@wUwmLkakwVƒmK™w@wUam£y@am_ƒW@™UU@knmm„amU@WUa@knw@ƒUUUUV@nƒJm@mVUkKVUUUkKmwƒKULƒKUImV@lUn™nŽm@mbUK@°™bUnmbUmkkƒWUb@am@UXkK@a±@™V™@ĉř„V‚UXVxUVkLWl¯@@bULUlm@@nm`—XƒlWakIkm›VUbUL@Vm@kIƒ@@Kšm@—VaX‚I@W@aU@kUƒVU_™KƒbƒJkkǎ™b@nkKmL™wÅW@kVUUƒVU@WUIƒJmIXmma@_kyVaUUlkUm@ƒkU›x¯Lƒm@L@LUJ™UkVWXUWUL¯wVmUkƒxkL@`›bk„mVnxƒXUWUnmƒƒ@kxU@',
  239. ],
  240. encodeOffsets: [[114087, 37682]],
  241. },
  242. },
  243. {
  244. type: 'Feature',
  245. id: '1408',
  246. properties: { name: '运城市', cp: [111.1487, 35.2002], childNum: 13 },
  247. geometry: {
  248. type: 'Polygon',
  249. coordinates: [
  250. '@@„Vl„nJ˜wkaVa„XšWVLĊknmnL‚l@@bn‚V@UaVU@UVK@aXI˜KXL@bVVVbXVVblV„aVnK@¯šKVk„J@bšVVU@UVwkVƒKVwUUm@@Xk@K@kVUn@lbl@²l@UlK²VVIVV„KVLlw@VXL@b@VV@VŽXbVK‚@XbVIUW„L‚U²ÆLmaUankVKVaƒ¯@ƒnkUa„U°@„š‚n@@kWa„UVaXUW@IXKVw@U™ƒ„™WU@W@@UUƒU@mn@ƒ`m@UUULkUmJ™IUƒ@@UƒK@U@›anƒ™ak_@wmKUwmakV™kmK™V™k¯b™wƒ`kwUIÇx¯»ÇaŃmn@@™mƒmUkV@wkKW@kxmL™UkĉLÝk™xÝw¯lóVU„mV@ĀVVX¦W¤kz@`Vx°„²ĸ‚š@„Ul@x„êĸNJ°¤V„VlXLWnXxmV@nUl@„',
  251. ],
  252. encodeOffsets: [[113232, 36597]],
  253. },
  254. },
  255. {
  256. type: 'Feature',
  257. id: '1402',
  258. properties: { name: '大同市', cp: [113.7854, 39.8035], childNum: 8 },
  259. geometry: {
  260. type: 'Polygon',
  261. coordinates: [
  262. '@@²£šyl@Ȑ˜Ė@bĸŽĢbĸ„˜X„a‚KŤnn@ŎôllÈx„nVnÞDŽV@b‚nXllL°KšbVb@J@b—„‚„@ŽU„„xlKXLlKlXk„@Ulk„JlkUƒVKXUƒÇVIVm@_nǚLšašl‚w„VnU@UUwma@aƒaÝaLmUk@@Wƒ@U@@X™wVWÝUUUk@@VmLƒKV»nwUw™aUL@`mzƒJUIVƒUaUw™KUaVIlJôanÑlLVUn@ša„@VV„@@UUwVK°Vn_lJÆLœéW@UUUÅ@»lm@aÞIVwXW˜UUkkm@U@aƒU@mwU£VWU_kWmƒXwW_°yUkkK@UÇK@kkUVymóK—U@KWIƒbUak@mJ@bkbmLkŽ™UmƒkVU„W¦@lnb@„@Vƒ°ULml@nkVƒa™VmLUnk`±@—XƒWW@kbǦXŽ¯„WxI@xmbmxXlWV„„@bŎUz@J‚b@bÞb™ŽU@Wbk@ƒxk@WX¯VۙƒWÝbÝUkVUU@alI@a@akLWa™m@U¯UUmÇL@K@aU@¯VUkƒKmX@`@œkJ@nV‚Ub@lbVÆXVW„ULU`VbkLUV@XWl@bXJ˜@VbV@Vl',
  263. ],
  264. encodeOffsets: [[115335, 41209]],
  265. },
  266. },
  267. {
  268. type: 'Feature',
  269. id: '1404',
  270. properties: { name: '长治市', cp: [112.8625, 36.4746], childNum: 12 },
  271. geometry: {
  272. type: 'Polygon',
  273. coordinates: [
  274. '@@Uk™Lky@I‚JVa@mÞaWšy@_W@_WƒXVlUVwš@nw°K@m„UƒVaƒmVkU@mmmnLVUmKXa™U@IlKVUnK@UmWkX@WV_Vƒ@akU@a„KWIXyƒIUVmUn™Ua@WaXUVKVmkUWVkUƒLU@@VƒbƒKbƒIUmƒ@mbVL—x›WUUkn±V¯wƒbÅJUbmLkbmKÅKƒbVnUbƒV™KUb™KUbmLKmƒb™aƒKkUm@UŽnn‚VnxUVlUxl¼ƒk¯JUbU@Vbk@WšU@UVóI@`¯nWxkLƒK@nk`Wn@lUnƒVnm‚ƒXU`@mb@lkV@„VnklVVUblz@`nbWnnJ„IVJ@XUVV„UV@lÆXšxnKlL@mšaȍll„I„ašLV`„UlVV@@b@XJWUb@˜™n@L„@lJn@@UVKVaœUlnlJXb„k˜Wn_@mn@VkVK@a°@XklKVUUwVWUšƒĊƚ@šU²@@blLVWn@@bVa„XllVnnaVmša@¯VLnan@‚šmVm@knUVJ',
  275. ],
  276. encodeOffsets: [[116269, 37637]],
  277. },
  278. },
  279. {
  280. type: 'Feature',
  281. id: '1406',
  282. properties: { name: '朔州市', cp: [113.0713, 39.6991], childNum: 5 },
  283. geometry: {
  284. type: 'Polygon',
  285. coordinates: [
  286. '@@XXWVXVWnnlnn@èƼ@„„xlš„ŽV„nblšššVŽÈUVl‚š@„blnœL܃ĊmUkU@Ua‚—@WI@aXk@WVUlKUaV_VKXƒWUUÅka@VaU@mlI@›@_nW„LVl°UV@@b@LÈKVn°V@VšnXblK@b@bkJ@bVVlUÞVÞa„Xܚ°UXWl@„wl@XaV@šÝa@aa@IVyƍ@aƒƒXUWknwna@w‚JXw°ƒWÈ¥kI@W@kmKm™¯IUmkXWWkaƒbkImJ™UkL±aVƒb@lWXkJƒUkƒĉkƒ@UmU@a™KkƒVƒUkJlaU_™yƒ@UU@aUU¯LW`kLWnkJó™ƒbUƒbmK@aU@UVVL@VƒL@„UVULƒK@xUL@VUV@nml¯@UkmKUxmbVbUV@XƒlXVmnVbkxUbU@ƒbm@@VUlUVšb°@VX¯šm‚',
  287. ],
  288. encodeOffsets: [[114615, 40562]],
  289. },
  290. },
  291. {
  292. type: 'Feature',
  293. id: '1405',
  294. properties: { name: '晋城市', cp: [112.7856, 35.6342], childNum: 6 },
  295. geometry: {
  296. type: 'Polygon',
  297. coordinates: [
  298. '@@lV„Lšb„an‚LnKVašLVašL„UVaUm„aÆLnLlanKVaÆI„a°x²UlmVVœX˜wUKna„@Vn„J‚a„L„a@UV@@alUkKVKnkmmVwUk„w@ƒ™@kxWUXƒW@@mƒk@aUa@a¯aƒLkKmwkUm@kL@K@aWIXmƒVƒXƒWkUVakL@UVKƒw@aUK@UUKmLU@¯n™KUwVƒUIWJUWmka™@UXƒJƒk@UkmW@kLWKVƒx@bmI@VUaVU@a¯@UUmVKmX@±`kÝKVxUL±akL@V™bƒLkKmVƒ@XWVUbƒVXb@lm@@lW@@xk„lVUbnnmbUšlJ@„@L„@@V„b@‚WXš„UlkxVV@„šwn@ÜmnLlVkzƒ`UbmL@Vš@XL˜m„VnIÞ@VU°x@VnL˜x„V@LU°',
  299. ],
  300. encodeOffsets: [[115223, 36895]],
  301. },
  302. },
  303. {
  304. type: 'Feature',
  305. id: '1401',
  306. properties: { name: '太原市', cp: [112.3352, 37.9413], childNum: 5 },
  307. geometry: {
  308. type: 'Polygon',
  309. coordinates: [
  310. '@@„@VV@wVKnLVal@na°nšaVJœUlm„L°a@b„@lx@bULUlmx@Ln@lVkn„l˜@XI„w‚K„Vnƒ°aVXVx„ƒUaVU°K„nUlšUVL„KÆVš²Ģ‚lnXalLÈƘL„KUaVkUanmWU™a@WwkUWU¯y¯Ñ@anIl@@aVU„m„I„ymUƒLUUVakaU@@LmJkw±LKmVUI@W¯™VaU_l™kbW@kK@mƒUkaVƒmVaU™ƒIVmalk™W@wnIVy@klkWUU›VI@ƒƒUƒVkam@knU@mmmK@bblVUX@VkLV`@n±KU„ULƒ‚UnVVńUbÇKmV—Imbm@k¼ó@Ul™b@VmV@bXmaƒK@›UUxkV‚V@„xW„UxVnkVVJ@XnJ@XlV²LƂVbnL@lš@°',
  311. ],
  312. encodeOffsets: [[114503, 39134]],
  313. },
  314. },
  315. {
  316. type: 'Feature',
  317. id: '1403',
  318. properties: { name: '阳泉市', cp: [113.4778, 38.0951], childNum: 3 },
  319. geometry: {
  320. type: 'Polygon',
  321. coordinates: [
  322. '@@°@nb„@lb@b„b„b‚@„x²al@lb„KXU@m‚kUWkkmUUƒVwV@XUW@™naVklKXblKnL‚ƒnLVanImaXKlL„ašV@U@KUKW„alƒXK@£WKXUV@VU„ƒUUVW„_V™@W@@K„@šƒUƒƒIWmXUmƒULƒn™JkImmÝaUbLƒK@UƒWk@mn™Uƒ@kVWb@Ubmx@lƒzUxƒ`U„ULml@„XWlƒ@UV@nk@U‚Vb@X™Jm™@@Vknƒyk@ƒzƒJƒnUV@bk@mJ@b°Ò°zXVlVXx‚@šbXVmnVbUlVb',
  323. ],
  324. encodeOffsets: [[115864, 39336]],
  325. },
  326. },
  327. ],
  328. UTF8Encoding: true,
  329. })
  330. var mapFeatures = echarts.getMap(this.mapName).geoJson.features
  331. mapFeatures.forEach(v => {
  332. // 地区名称
  333. var name = v.properties.name
  334. // 地区经纬度
  335. this.geoCoordMap[name] = v.properties.cp
  336. })
  337. myChart.setOption({
  338. tooltip: {
  339. padding: 15,
  340. enterable: true,
  341. transitionDuration: 1,
  342. formatter: (params, ticket, callback) => {
  343. let tipHtml = `
  344. <div class="tooltip-cont">
  345. <p>新开工:<span>工程建设项目</span></p>
  346. <p>总投资额:<span>${params.data.value}亿</span></p>
  347. <p>当前阶段:<span>可论证阶段</span></p>
  348. <p>时间节点:<span>2021.10-2022.10</span></p>
  349. </div>`
  350. return tipHtml
  351. },
  352. },
  353. visualMap: {
  354. min: 0,
  355. max: 300,
  356. right: 0,
  357. bottom: 0,
  358. text: ['高', '低'],
  359. textStyle: {
  360. color: '#f1f1f1'
  361. },
  362. realtime: false,
  363. calculable: true,
  364. inRange: {
  365. color: ['lightskyblue', '#2754b7']
  366. }
  367. },
  368. geo: {
  369. show: true,
  370. map: 'shanxi',
  371. layoutCenter: ['50%', '50%'], //地图位置
  372. layoutSize: '100%',
  373. label: {
  374. normal: {
  375. show: false,
  376. },
  377. emphasis: {
  378. show: false,
  379. },
  380. },
  381. roam: false,
  382. itemStyle: {
  383. normal: {
  384. areaColor: '#1946a8',
  385. shadowColor: '#1946a8',
  386. borderWidth: 1, //设置外层边框
  387. borderColor: '#1946a8',
  388. shadowOffsetX: 10,
  389. shadowOffsetY: 5,
  390. shadowBlur: 2,
  391. },
  392. emphasis: {
  393. areaColor: '#1946a8',
  394. borderColor: '#d4bc1d',
  395. borderWidth: 2, //设置外层边框
  396. },
  397. },
  398. },
  399. series: [
  400. {
  401. name: '散点',
  402. type: 'scatter',
  403. coordinateSystem: 'geo',
  404. data: this.convertData(data),
  405. symbolSize: function (val) {
  406. return 10
  407. },
  408. label: {
  409. normal: {
  410. formatter: '{b}',
  411. position: [10, 10],
  412. fontSize: 15,
  413. fontWeight: 600,
  414. fontStyle: 'italic',
  415. color: '#fff',
  416. show: true,
  417. },
  418. emphasis: {
  419. show: true,
  420. },
  421. },
  422. itemStyle: {
  423. normal: {
  424. color: '#000',
  425. borderWidth: 2,
  426. borderColor: '#fff',
  427. },
  428. },
  429. },
  430. {
  431. type: 'map',
  432. map: this.mapName,
  433. geoIndex: 0,
  434. aspectScale: 0.75, //长宽比
  435. showLegendSymbol: true, // 存在legend时显示
  436. label: {
  437. normal: {
  438. show: true,
  439. },
  440. emphasis: {
  441. show: false,
  442. textStyle: {
  443. color: '#fff',
  444. },
  445. },
  446. },
  447. roam: true,
  448. itemStyle: {
  449. normal: {
  450. areaColor: '#031525',
  451. borderColor: '#3B5077',
  452. },
  453. emphasis: {
  454. areaColor: '#2B91B7',
  455. },
  456. },
  457. animation: false,
  458. data: data,
  459. },
  460. {
  461. name: '点',
  462. type: 'scatter',
  463. coordinateSystem: 'geo',
  464. zlevel: 6,
  465. },
  466. {
  467. name: 'Top 5',
  468. type: 'effectScatter',
  469. coordinateSystem: 'geo',
  470. data: this.convertData(
  471. data
  472. .sort(function (a, b) {
  473. return b.value - a.value
  474. })
  475. .slice(0, 5)
  476. ),
  477. symbolSize: function (val) {
  478. return 15
  479. },
  480. showEffectOn: 'render',
  481. rippleEffect: {
  482. brushType: 'stroke',
  483. },
  484. hoverAnimation: true,
  485. label: {
  486. normal: {
  487. formatter: '{b}',
  488. position: 'left',
  489. show: false,
  490. },
  491. },
  492. itemStyle: {
  493. normal: {
  494. color: 'yellow',
  495. shadowBlur: 10,
  496. shadowColor: 'yellow',
  497. },
  498. },
  499. zlevel: 1000,
  500. },
  501. {
  502. name: '线路',
  503. type: 'lines',
  504. zlevel: 2,
  505. effect: {
  506. show: true,
  507. period: 4, //箭头指向速度,值越小速度越快
  508. trailLength: 0.02, //特效尾迹长度[0,1]值越大,尾迹越长重
  509. symbol: 'arrow', //箭头图标
  510. symbolSize: 5, //图标大小
  511. },
  512. lineStyle: {
  513. normal: {
  514. color: '#00FFFF',
  515. width: 1,
  516. type: 'dashed',
  517. opacity: 0.5, //尾迹线条透明度
  518. curveness: -0.3, //尾迹线条曲直度
  519. },
  520. },
  521. data: moveLine.normal,
  522. },
  523. ],
  524. })
  525. },
  526. initChartL1 () {
  527. let myChart = echarts.init(document.getElementById("echartL1"));
  528. let option = {
  529. grid: {
  530. top: 35,
  531. right: 40,
  532. left: 60,
  533. bottom: 40,
  534. },
  535. tooltip: {
  536. show: true,
  537. trigger: "axis",
  538. axisPointer: {
  539. // 坐标轴指示器,坐标轴触发有效
  540. type: "shadow", // 默认为直线,可选为:'line' | 'shadow'
  541. },
  542. },
  543. xAxis: {
  544. data: ["山西焦煤", "晋能控股", "华阳新材", "潞安化工", "华新燃气", "太重集团", "国际能源", "华远陆港", "水控集团", "文旅集团", "交控集团", '航产集团', '山西建设', '汾酒集团', '大地控股'],
  545. axisTick: {
  546. show: false,
  547. },
  548. // x轴的字体颜色
  549. axisLabel: {
  550. rotate: 40,
  551. textStyle: {
  552. color: "white",
  553. },
  554. },
  555. //y轴线的颜色以及宽度
  556. axisLine: {
  557. show: true,
  558. lineStyle: {
  559. color: "#1E5389",
  560. width: 1,
  561. type: "solid",
  562. },
  563. },
  564. },
  565. yAxis: {
  566. // name: '亿元',
  567. nameTextStyle: {//y轴上方单位的颜色
  568. color: '#fff',
  569. },
  570. axisTick: {
  571. lineStyle: {
  572. color: "#18416F",
  573. },
  574. },
  575. // y轴的字体颜色
  576. axisLabel: {
  577. textStyle: {
  578. color: "white",
  579. },
  580. },
  581. splitLine: {
  582. show: false,
  583. lineStyle: {
  584. color: "#204561",
  585. width: 1,
  586. type: "dotted",
  587. },
  588. },
  589. //y轴线的颜色以及宽度
  590. axisLine: {
  591. show: true,
  592. lineStyle: {
  593. color: "#1E5389",
  594. width: 1,
  595. type: "solid",
  596. },
  597. },
  598. },
  599. series: [
  600. {
  601. name: "2022年额度",
  602. type: "bar",
  603. data: [1200, 680, 562, 268, 717, 843, 987, 126, 723, 569, 534, 753, 864, , 834, 764, 978],
  604. showBackground: false,
  605. backgroundStyle: {
  606. color: "#18416F",
  607. },
  608. barWidth: "10%",
  609. itemStyle: {
  610. barBorderRadius: [10, 10, 0, 0],
  611. color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [
  612. {
  613. offset: 0,
  614. color: "#132543",
  615. }, //柱图渐变色
  616. {
  617. offset: 1,
  618. color: "#897DFF",
  619. },
  620. ]),
  621. },
  622. },
  623. {
  624. name: "2023年额度",
  625. type: "bar",
  626. data: [658, 1125, 658, 999, 643, 675, 743, 724, 733, 725, 652, 865, 749, 359, 241],
  627. showBackground: false,
  628. backgroundStyle: {
  629. color: "#18416F",
  630. },
  631. barWidth: "10%",
  632. itemStyle: {
  633. barBorderRadius: [10, 10, 0, 0],
  634. color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [
  635. {
  636. offset: 0,
  637. color: "#132543",
  638. }, //柱图渐变色
  639. {
  640. offset: 1,
  641. color: "#FED95B",
  642. },
  643. ]),
  644. },
  645. },
  646. ],
  647. legend: {
  648. data: ["2022年额度", "2023年额度"],
  649. textStyle: {
  650. // 图列内容样式
  651. color: "#fff", // 字体颜色
  652. // fontSize: "10",
  653. },
  654. right: 'center',
  655. icon: "roundRect",
  656. // 小图标的宽高
  657. itemHeight: 5,
  658. },
  659. };
  660. tools.loopShowTooltip(myChart, option, {
  661. nterval: 2000,
  662. loopSeries: true,
  663. })
  664. myChart.setOption(option);
  665. },
  666. initChartL2 () {
  667. let myChart = echarts.init(this.$refs['echartL2'])
  668. var value = 0.45;
  669. var data = [value];
  670. let option = {
  671. backgroundColor: 'transparent',
  672. title: [
  673. {
  674. text: '450.12亿',
  675. x: '38%',
  676. y: '80%',
  677. textStyle: {
  678. fontSize: 24,
  679. fontWeight: 'bold',
  680. color: '#2CB7E0',
  681. lineHeight: 16,
  682. textAlign: 'center',
  683. },
  684. }
  685. ],
  686. series: [
  687. {
  688. type: 'liquidFill',
  689. radius: '70%',
  690. center: ['50%', '40%'],
  691. color: [
  692. {
  693. type: 'linear',
  694. x: 0,
  695. y: 0,
  696. x2: 0,
  697. y2: 1,
  698. colorStops: [
  699. {
  700. offset: 0,
  701. color: '#446bf5',
  702. },
  703. {
  704. offset: 1,
  705. color: '#2ca3e2',
  706. },
  707. ],
  708. globalCoord: false,
  709. },
  710. ],
  711. data: [value, value], // data个数代表波浪数
  712. backgroundStyle: {
  713. borderWidth: 1,
  714. color: 'RGBA(51, 66, 127, 0.7)',
  715. },
  716. label: {
  717. normal: {
  718. textStyle: {
  719. fontSize: 30,
  720. color: '#fff',
  721. },
  722. },
  723. },
  724. outline: {
  725. // show: false
  726. borderDistance: 0,
  727. itemStyle: {
  728. borderWidth: 2,
  729. borderColor: 'transparent',
  730. },
  731. },
  732. },
  733. ],
  734. }
  735. myChart.setOption(option)
  736. },
  737. initChartL3 () {
  738. let myChart = echarts.init(this.$refs['echartL3'])
  739. let option = {
  740. tooltip: {
  741. trigger: 'axis',
  742. axisPointer: {
  743. type: 'shadow',
  744. },
  745. },
  746. grid: {
  747. top: '22%',
  748. right: '5%',
  749. left: '10%',
  750. bottom: '25%',
  751. },
  752. xAxis: {
  753. data: ['总投资收益率', '销售利润率', '成本费用利润率', '总资产周转率', '财务内部收益率'],
  754. axisLine: {
  755. show: true, //隐藏X轴轴线
  756. lineStyle: {
  757. color: '#005094',
  758. width: 1,
  759. },
  760. },
  761. axisTick: {
  762. show: true, //隐藏X轴刻度
  763. },
  764. axisLabel: {
  765. show: true,
  766. rotate: 15,
  767. textStyle: {
  768. color: 'rgba(255,255,255,0.6)', //X轴文字颜色
  769. fontSize: 12,
  770. },
  771. },
  772. },
  773. yAxis: [
  774. {
  775. type: 'value',
  776. splitLine: {
  777. show: true,
  778. lineStyle: {
  779. color: '#68b4dd66',
  780. type: 'dashed',
  781. },
  782. },
  783. axisLine: {
  784. show: false
  785. },
  786. axisLabel: {
  787. show: true,
  788. formatter: '{value}',
  789. textStyle: {
  790. color: 'rgba(250,250,250,0.6)',
  791. },
  792. },
  793. nameTextStyle: {
  794. color: '#ebf8ac',
  795. fontSize: 16,
  796. },
  797. },
  798. ],
  799. series: [
  800. {
  801. name: '',
  802. type: 'bar',
  803. barWidth: 15,
  804. itemStyle: {
  805. normal: {
  806. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  807. {
  808. offset: 0,
  809. color: '#69c0ff',
  810. },
  811. {
  812. offset: 1,
  813. color: '#082550',
  814. },
  815. ]),
  816. },
  817. },
  818. data: [10, 20, 30, 40, 50],
  819. markLine: {
  820. symbol: ['none', 'none'],
  821. data: [
  822. {
  823. name: '生存线',
  824. yAxis: 10,
  825. lineStyle: {
  826. color: '#FF8F0A',
  827. },
  828. label: {
  829. formatter: '{b}',
  830. position: 'middle',
  831. color: '#FF8F0A',
  832. fontSize: 12,
  833. },
  834. },
  835. {
  836. name: '发展线',
  837. yAxis: 15,
  838. lineStyle: {
  839. color: '#00EEA2',
  840. },
  841. label: {
  842. formatter: '{b}',
  843. position: 'middle',
  844. color: '#00EEA2',
  845. fontSize: 12,
  846. },
  847. },
  848. ],
  849. label: {
  850. distance: [50, 0],
  851. },
  852. },
  853. },
  854. ],
  855. }
  856. myChart.setOption(option)
  857. tools.loopShowTooltip(myChart, option, {
  858. nterval: 2000,
  859. loopSeries: true,
  860. })
  861. },
  862. initChartL4 () {
  863. let myChart = echarts.init(this.$refs['echartL4'])
  864. let option = {
  865. title: {
  866. text: '产业类型分析',
  867. x: 'center',
  868. y: '0%',
  869. textStyle: {
  870. color: 'rgba(255,255,255,0.6)',
  871. fontSize: 12,
  872. },
  873. },
  874. tooltip: {
  875. trigger: 'item',
  876. },
  877. color: ['#6682f5', '#8ba2ff', '#69c0ff', '#43ede3'],
  878. legend: {
  879. show: false,
  880. icon: 'circle',
  881. top: 'bottom',
  882. orient: 'vertical',
  883. right: '1%',
  884. textStyle: {
  885. color: '#9DB9EB',
  886. },
  887. },
  888. series: [
  889. {
  890. name: '',
  891. type: 'pie',
  892. radius: ['0%', '70%'],
  893. center: ['50%', '60%'],
  894. itemStyle: {
  895. normal: {
  896. label: {
  897. show: false,
  898. },
  899. },
  900. },
  901. labelLine: {
  902. show: false,
  903. },
  904. data: [
  905. { value: 1048, name: '煤炭' },
  906. { value: 735, name: '火电' },
  907. { value: 580, name: '焦化' },
  908. { value: 484, name: '风电' },
  909. ],
  910. },
  911. ],
  912. }
  913. myChart.setOption(option)
  914. tools.loopShowTooltip(myChart, option, {
  915. nterval: 2000,
  916. loopSeries: true,
  917. })
  918. },
  919. initChartL5 () {
  920. let myChart = echarts.init(this.$refs['echartL5'])
  921. let option = {
  922. title: {
  923. text: '传统产业',
  924. x: 'center',
  925. y: '0%',
  926. textStyle: {
  927. color: 'rgba(255,255,255,0.6)',
  928. fontSize: 12,
  929. },
  930. },
  931. tooltip: {
  932. trigger: 'item',
  933. },
  934. color: ['#6682f5', '#8ba2ff', '#69c0ff', '#43ede3'],
  935. legend: {
  936. show: false,
  937. icon: 'circle',
  938. top: 'bottom',
  939. orient: 'vertical',
  940. right: '1%',
  941. textStyle: {
  942. color: '#9DB9EB',
  943. },
  944. },
  945. series: [
  946. {
  947. name: '',
  948. type: 'pie',
  949. radius: ['0%', '70%'],
  950. center: ['50%', '60%'],
  951. itemStyle: {
  952. normal: {
  953. label: {
  954. show: false,
  955. },
  956. },
  957. },
  958. labelLine: {
  959. show: false,
  960. },
  961. data: [
  962. { value: 1048, name: '煤炭' },
  963. { value: 735, name: '火电' },
  964. { value: 580, name: '焦化' },
  965. { value: 484, name: '风电' },
  966. ],
  967. },
  968. ],
  969. }
  970. myChart.setOption(option)
  971. tools.loopShowTooltip(myChart, option, {
  972. nterval: 2000,
  973. loopSeries: true,
  974. })
  975. }, initChartL6 () {
  976. let myChart = echarts.init(this.$refs['echartL6'])
  977. let option = {
  978. title: {
  979. text: '战略性新兴产业',
  980. x: 'center',
  981. y: '0%',
  982. textStyle: {
  983. color: 'rgba(255,255,255,0.6)',
  984. fontSize: 12,
  985. },
  986. },
  987. tooltip: {
  988. trigger: 'item',
  989. },
  990. color: ['#6682f5', '#8ba2ff', '#69c0ff', '#43ede3'],
  991. legend: {
  992. show: false,
  993. icon: 'circle',
  994. top: 'bottom',
  995. orient: 'vertical',
  996. right: '1%',
  997. textStyle: {
  998. color: '#9DB9EB',
  999. },
  1000. },
  1001. series: [
  1002. {
  1003. name: '',
  1004. type: 'pie',
  1005. radius: ['0%', '70%'],
  1006. center: ['50%', '60%'],
  1007. itemStyle: {
  1008. normal: {
  1009. label: {
  1010. show: false,
  1011. },
  1012. },
  1013. },
  1014. labelLine: {
  1015. show: false,
  1016. },
  1017. data: [
  1018. { value: 1048, name: '煤炭' },
  1019. { value: 735, name: '火电' },
  1020. { value: 580, name: '焦化' },
  1021. { value: 484, name: '风电' },
  1022. ],
  1023. },
  1024. ],
  1025. }
  1026. myChart.setOption(option)
  1027. tools.loopShowTooltip(myChart, option, {
  1028. nterval: 2000,
  1029. loopSeries: true,
  1030. })
  1031. }, initChartL7 () {
  1032. let myChart = echarts.init(this.$refs['echartL7'])
  1033. let option = {
  1034. title: {
  1035. text: '基础产业',
  1036. x: 'center',
  1037. y: '0%',
  1038. textStyle: {
  1039. color: 'rgba(255,255,255,0.6)',
  1040. fontSize: 12,
  1041. },
  1042. },
  1043. tooltip: {
  1044. trigger: 'item',
  1045. },
  1046. color: ['#6682f5', '#8ba2ff', '#69c0ff', '#43ede3'],
  1047. legend: {
  1048. show: false,
  1049. icon: 'circle',
  1050. top: 'bottom',
  1051. orient: 'vertical',
  1052. right: '1%',
  1053. textStyle: {
  1054. color: '#9DB9EB',
  1055. },
  1056. },
  1057. series: [
  1058. {
  1059. name: '',
  1060. type: 'pie',
  1061. radius: ['0%', '70%'],
  1062. center: ['50%', '60%'],
  1063. itemStyle: {
  1064. normal: {
  1065. label: {
  1066. show: false,
  1067. },
  1068. },
  1069. },
  1070. labelLine: {
  1071. show: false,
  1072. },
  1073. data: [
  1074. { value: 1048, name: '煤炭' },
  1075. { value: 735, name: '火电' },
  1076. { value: 580, name: '焦化' },
  1077. { value: 484, name: '风电' },
  1078. ],
  1079. },
  1080. ],
  1081. }
  1082. myChart.setOption(option)
  1083. tools.loopShowTooltip(myChart, option, {
  1084. nterval: 2000,
  1085. loopSeries: true,
  1086. })
  1087. },
  1088. initChartR1 () {
  1089. let myChart = echarts.init(this.$refs['echartR1'])
  1090. let option = {
  1091. title: {
  1092. text: '储备项目产业分布',
  1093. x: 'center',
  1094. y: '87%',
  1095. textStyle: {
  1096. color: 'rgba(255,255,255,0.6)',
  1097. fontSize: 12,
  1098. },
  1099. },
  1100. tooltip: {
  1101. trigger: 'item',
  1102. },
  1103. color: ['#6682f5', '#8ba2ff', '#69c0ff', '#43ede3'],
  1104. legend: {
  1105. show: false,
  1106. icon: 'circle',
  1107. top: 'bottom',
  1108. orient: 'vertical',
  1109. right: '1%',
  1110. textStyle: {
  1111. color: '#9DB9EB',
  1112. },
  1113. },
  1114. series: [
  1115. {
  1116. name: '',
  1117. type: 'pie',
  1118. radius: ['40%', '60%'],
  1119. center: ['50%', '45%'],
  1120. itemStyle: {
  1121. normal: {
  1122. label: {
  1123. show: false,
  1124. },
  1125. },
  1126. },
  1127. labelLine: {
  1128. show: false,
  1129. },
  1130. data: [
  1131. { value: 1048, name: '煤炭' },
  1132. { value: 735, name: '火电' },
  1133. { value: 580, name: '焦化' },
  1134. { value: 484, name: '风电' },
  1135. ],
  1136. },
  1137. ],
  1138. }
  1139. myChart.setOption(option)
  1140. tools.loopShowTooltip(myChart, option, {
  1141. nterval: 2000,
  1142. loopSeries: true,
  1143. })
  1144. },
  1145. initChartR2 () {
  1146. let myChart = echarts.init(this.$refs['echartR2'])
  1147. let option = {
  1148. title: {
  1149. text: '储备项目产业分布',
  1150. x: 'center',
  1151. y: '87%',
  1152. textStyle: {
  1153. color: 'rgba(255,255,255,0.6)',
  1154. fontSize: 12,
  1155. },
  1156. },
  1157. tooltip: {
  1158. trigger: 'item',
  1159. },
  1160. color: ['#6682f5', '#8ba2ff', '#69c0ff', '#43ede3'],
  1161. legend: {
  1162. show: false,
  1163. icon: 'circle',
  1164. top: 'bottom',
  1165. orient: 'vertical',
  1166. right: '1%',
  1167. textStyle: {
  1168. color: '#9DB9EB',
  1169. },
  1170. },
  1171. series: [
  1172. {
  1173. name: '',
  1174. type: 'pie',
  1175. radius: ['40%', '60%'],
  1176. center: ['50%', '45%'],
  1177. itemStyle: {
  1178. normal: {
  1179. label: {
  1180. show: false,
  1181. },
  1182. },
  1183. },
  1184. labelLine: {
  1185. show: false,
  1186. },
  1187. data: [
  1188. { value: 1048, name: '煤炭' },
  1189. { value: 735, name: '火电' },
  1190. { value: 580, name: '焦化' },
  1191. { value: 484, name: '风电' },
  1192. ],
  1193. },
  1194. ],
  1195. }
  1196. myChart.setOption(option)
  1197. tools.loopShowTooltip(myChart, option, {
  1198. nterval: 2000,
  1199. loopSeries: true,
  1200. })
  1201. },
  1202. initChartR3 () {
  1203. let myChart = echarts.init(this.$refs['echartR3'])
  1204. let option = {
  1205. title: {
  1206. text: '固定资产项目',
  1207. textStyle: {
  1208. color: '#69C0FF',
  1209. },
  1210. top: '10',
  1211. left: '10'
  1212. },
  1213. textStyle: {
  1214. color: '#fff',
  1215. },
  1216. tooltip: {
  1217. trigger: "axis",
  1218. axisPointer: {
  1219. lineStyle: {
  1220. type: 'dashed',
  1221. width: 2,
  1222. color: 'rgba(255,255,255,0.6)'
  1223. },
  1224. animation: true
  1225. }
  1226. },
  1227. grid: {
  1228. top: '25%',
  1229. right: '5%',
  1230. left: '10%',
  1231. bottom: '0',
  1232. },
  1233. visualMap: {
  1234. type: 'piecewise',
  1235. top: 'top',
  1236. min: 0,
  1237. right: 100,
  1238. textStyle: {
  1239. color: 'white',
  1240. },
  1241. // pieces: ['固定投资累类', '股权及其他类']
  1242. pieces: [{
  1243. label: '固定资产类',
  1244. color: 'orange'
  1245. }, {
  1246. label: '股权及其他类',
  1247. color: '#6b61a8'
  1248. }]
  1249. },
  1250. yAxis: {
  1251. data: ['批量备案', '特别监管'],
  1252. splitLine: {
  1253. show: true,
  1254. lineStyle: {
  1255. color: '#68b4dd66',
  1256. type: 'dashed',
  1257. },
  1258. },
  1259. axisLine: {
  1260. show: false
  1261. },
  1262. axisLabel: {
  1263. show: true,
  1264. formatter: '{value}',
  1265. textStyle: {
  1266. color: 'rgba(250,250,250,0.6)',
  1267. },
  1268. },
  1269. nameTextStyle: {
  1270. color: '#ebf8ac',
  1271. fontSize: 16,
  1272. },
  1273. },
  1274. xAxis: {
  1275. data: ['项目储备', '项目立项', '项目可研', '可研论证', '投资决策'],
  1276. axisLine: {
  1277. show: true, //隐藏X轴轴线
  1278. lineStyle: {
  1279. color: '#005094',
  1280. width: 1,
  1281. },
  1282. },
  1283. axisTick: {
  1284. show: false, //隐藏X轴刻度
  1285. },
  1286. axisLabel: {
  1287. show: true,
  1288. textStyle: {
  1289. color: 'rgba(255,255,255,0.6)', //X轴文字颜色
  1290. fontSize: 12,
  1291. },
  1292. },
  1293. },
  1294. series: [
  1295. {
  1296. name: '批量备案',
  1297. type: 'scatter',
  1298. symbol: 'circle',//'circle', 'rect', 'roundRect', 'triangle', 'diamond', 'pin', 'arrow'
  1299. symbolSize: function (data) {
  1300. return Math.sqrt(data[2]) * 0.5;
  1301. },
  1302. label: {
  1303. emphasis: {
  1304. show: true,
  1305. formatter: function (param) {
  1306. return param.data[2];
  1307. },
  1308. position: 'top'
  1309. }
  1310. },
  1311. itemStyle: {
  1312. normal: {
  1313. color: '#45DAD1'
  1314. }
  1315. },
  1316. data: [
  1317. ['项目储备', '批量备案', 200],
  1318. ['项目立项', '批量备案', 1500],
  1319. ['项目可研', '批量备案', 2000],
  1320. ['可研论证', '批量备案', 2500],
  1321. ['投资决策', '批量备案', 3000],
  1322. ]
  1323. },
  1324. {
  1325. name: '特别监管',
  1326. type: 'scatter',
  1327. symbol: 'circle',//'circle', 'rect', 'roundRect', 'triangle', 'diamond', 'pin', 'arrow'
  1328. symbolSize: function (data) {
  1329. return Math.sqrt(data[2]) * 0.5;
  1330. },
  1331. label: {
  1332. emphasis: {
  1333. show: true,
  1334. formatter: function (param) {
  1335. return param.data[2];
  1336. },
  1337. position: 'top'
  1338. }
  1339. },
  1340. itemStyle: {
  1341. normal: {
  1342. color: '#40A9FF'
  1343. }
  1344. },
  1345. data: [
  1346. ['项目储备', '特别监管', 1400],
  1347. ['项目立项', '特别监管', 1500],
  1348. ['项目可研', '特别监管', 5500],
  1349. ['可研论证', '特别监管', 500],
  1350. ]
  1351. }
  1352. ]
  1353. }
  1354. myChart.setOption(option)
  1355. tools.loopShowTooltip(myChart, option, {
  1356. nterval: 2000,
  1357. loopSeries: true,
  1358. })
  1359. }
  1360. },
  1361. })