investHome2.js 54 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766
  1. let app = new Vue({
  2. el: '#app',
  3. data () {
  4. return {
  5. showTip2: false,
  6. year: '2022',
  7. time: '',
  8. timer: '',
  9. mapName: 'shanxi',
  10. geoCoordMap: {},
  11. config1: {
  12. number: [100],
  13. content: '{nt}个',
  14. },
  15. storageRecordConfig: {
  16. // waitTime: '2000000',
  17. header: ['企业集团', '项目名称 ', '投资总额'],
  18. // headerBGC: '#05507b33',
  19. // oddRowBGC: '#05507b33',
  20. // evenRowBGC: '#05507b33',
  21. headerBGC: '#05183c',
  22. headerBGC: '#05507b33',
  23. oddRowBGC: '#05183c',
  24. evenRowBGC: '#05183c',
  25. rowNum: 4,
  26. align: ['center'],
  27. data: [
  28. ['建设工程项目', '山西建投', "60.32亿"],
  29. ['建设工程项目', '山西建投', "60.32亿"],
  30. ['建设工程项目', '山西建投', "60.32亿"],
  31. ['建设工程项目', '山西建投', "60.32亿"],
  32. ['建设工程项目', '山西建投', "60.32亿"],
  33. ['建设工程项目', '山西建投', "60.32亿"],
  34. ['建设工程项目', '山西建投', "60.32亿"],
  35. ['建设工程项目', '山西建投', "60.32亿"],
  36. ['建设工程项目', '山西建投', "60.32亿"]
  37. ],
  38. },
  39. companyList: [
  40. { name: '山西焦煤' },
  41. { name: '晋能控股' },
  42. { name: '华新燃气' },
  43. { name: '山西建投' },
  44. { name: '潞安化工' },
  45. { name: '华远陆港' },
  46. { name: '航产集团' },
  47. { name: '大地控股' },
  48. { name: '国新能源' },
  49. { name: '汾酒集团' },
  50. { name: '云时代' },
  51. { name: '神农科技' },
  52. { name: '华阳新材' },
  53. { name: '华舰体育' },
  54. { name: '交控集团' },
  55. { name: '文旅集团' },
  56. { name: '水控集团' },
  57. { name: '太重集团' },
  58. ],
  59. }
  60. },
  61. created () {
  62. this.time = formatDate()
  63. this.timer = setInterval(() => {
  64. this.time = formatDate()
  65. }, 1000)
  66. },
  67. beforeDestroy () {
  68. if (this.timer) {
  69. clearInterval(this.timer);
  70. }
  71. },
  72. mounted () {
  73. // 左侧图表
  74. setTimeout(() => {
  75. this.initChartL1()
  76. this.initChartL2()
  77. this.initChartL3()
  78. this.initChartL4()
  79. this.initChartL5()
  80. this.initChartL6()
  81. this.initChartL7()
  82. this.initChartR1()
  83. this.initChartR2()
  84. this.initChartR3()
  85. this.initChartR6()
  86. },)
  87. setTimeout(() => {
  88. var swiper = new Swiper(".mySwiper", {
  89. pagination: {
  90. el: ".swiper-pagination",
  91. type: "progressbar",
  92. },
  93. navigation: {
  94. nextEl: ".swiper-button-next",
  95. prevEl: ".swiper-button-prev",
  96. },
  97. });
  98. swiper.el.onmouseout = function () {
  99. swiper.autoplay.start();
  100. }
  101. })
  102. },
  103. methods: {
  104. convertData (data) {
  105. var res = []
  106. for (var i = 0; i < data.length; i++) {
  107. var geoCoord = this.geoCoordMap[data[i].name]
  108. if (geoCoord) {
  109. res.push({
  110. name: data[i].name,
  111. value: geoCoord.concat(data[i].value),
  112. })
  113. }
  114. }
  115. return res
  116. },
  117. initChinaChart () {
  118. var data = [
  119. { name: '吕梁市', value: 150 },
  120. { name: '大同市', value: 190 },
  121. { name: '忻州市', value: 140 },
  122. { name: '朔州市', value: 160 },
  123. { name: '晋中市', value: 100 },
  124. { name: '太原市', value: 300 },
  125. { name: '临汾市', value: 190 },
  126. { name: '长治市', value: 100 },
  127. { name: '晋城市', value: 280 },
  128. { name: '运城市', value: 180 },
  129. { name: '阳泉市', value: 110 },
  130. ]
  131. var moveLine = {
  132. normal: [
  133. {
  134. fromName: '太原市',
  135. toName: '吕梁市',
  136. coords: [
  137. [112.3352, 37.9413],
  138. [111.3574, 37.7325],
  139. ],
  140. },
  141. {
  142. fromName: '太原市',
  143. toName: '忻州市',
  144. coords: [
  145. [112.3352, 37.9413],
  146. [112.4561, 38.8971],
  147. ],
  148. },
  149. {
  150. fromName: '太原市',
  151. toName: '临汾市',
  152. coords: [
  153. [112.3352, 37.9413],
  154. [111.4783, 36.1615],
  155. ],
  156. },
  157. {
  158. fromName: '太原市',
  159. toName: '阳泉市',
  160. coords: [
  161. [112.3352, 37.9413],
  162. [113.4778, 38.0951],
  163. ],
  164. },
  165. {
  166. fromName: '太原市',
  167. toName: '晋中市',
  168. coords: [
  169. [112.3352, 37.9413],
  170. [112.7747, 37.37],
  171. ],
  172. },
  173. {
  174. fromName: '太原市',
  175. toName: '运城市',
  176. coords: [
  177. [112.3352, 37.9413],
  178. [111.1487, 35.2002],
  179. ],
  180. },
  181. {
  182. fromName: '太原市',
  183. toName: '大同市',
  184. coords: [
  185. [112.3352, 37.9413],
  186. [113.7854, 39.8035],
  187. ],
  188. },
  189. {
  190. fromName: '太原市',
  191. toName: '晋城市',
  192. coords: [
  193. [112.3352, 37.9413],
  194. [112.7856, 35.6342],
  195. ],
  196. },
  197. {
  198. fromName: '太原市',
  199. toName: '长治市',
  200. coords: [
  201. [112.3352, 37.9413],
  202. [112.8625, 36.4746],
  203. ],
  204. },
  205. {
  206. fromName: '太原市',
  207. toName: '朔州市',
  208. coords: [
  209. [112.3352, 37.9413],
  210. [113.0713, 39.6991],
  211. ],
  212. },
  213. ],
  214. }
  215. /*获取地图数据*/
  216. let myChart = echarts.init(this.$refs['echarts-map'])
  217. echarts.registerMap('shanxi', {
  218. type: 'FeatureCollection',
  219. features: [
  220. {
  221. type: 'Feature',
  222. id: '1409',
  223. properties: { name: '忻州市', cp: [112.4561, 38.8971], childNum: 14 },
  224. geometry: {
  225. type: 'Polygon',
  226. coordinates: [
  227. '@@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',
  228. ],
  229. encodeOffsets: [[113614, 39657]],
  230. },
  231. },
  232. {
  233. type: 'Feature',
  234. id: '1411',
  235. properties: { name: '吕梁市', cp: [111.3574, 37.7325], childNum: 13 },
  236. geometry: {
  237. type: 'Polygon',
  238. coordinates: [
  239. '@@@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',
  240. ],
  241. encodeOffsets: [[113614, 39657]],
  242. },
  243. },
  244. {
  245. type: 'Feature',
  246. id: '1410',
  247. properties: { name: '临汾市', cp: [111.4783, 36.1615], childNum: 17 },
  248. geometry: {
  249. type: 'Polygon',
  250. coordinates: [
  251. '@@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',
  252. ],
  253. encodeOffsets: [[113063, 37784]],
  254. },
  255. },
  256. {
  257. type: 'Feature',
  258. id: '1407',
  259. properties: { name: '晋中市', cp: [112.7747, 37.37], childNum: 11 },
  260. geometry: {
  261. type: 'Polygon',
  262. coordinates: [
  263. '@@@š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@',
  264. ],
  265. encodeOffsets: [[114087, 37682]],
  266. },
  267. },
  268. {
  269. type: 'Feature',
  270. id: '1408',
  271. properties: { name: '运城市', cp: [111.1487, 35.2002], childNum: 13 },
  272. geometry: {
  273. type: 'Polygon',
  274. coordinates: [
  275. '@@„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@„',
  276. ],
  277. encodeOffsets: [[113232, 36597]],
  278. },
  279. },
  280. {
  281. type: 'Feature',
  282. id: '1402',
  283. properties: { name: '大同市', cp: [113.7854, 39.8035], childNum: 8 },
  284. geometry: {
  285. type: 'Polygon',
  286. coordinates: [
  287. '@@²£š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',
  288. ],
  289. encodeOffsets: [[115335, 41209]],
  290. },
  291. },
  292. {
  293. type: 'Feature',
  294. id: '1404',
  295. properties: { name: '长治市', cp: [112.8625, 36.4746], childNum: 12 },
  296. geometry: {
  297. type: 'Polygon',
  298. coordinates: [
  299. '@@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',
  300. ],
  301. encodeOffsets: [[116269, 37637]],
  302. },
  303. },
  304. {
  305. type: 'Feature',
  306. id: '1406',
  307. properties: { name: '朔州市', cp: [113.0713, 39.6991], childNum: 5 },
  308. geometry: {
  309. type: 'Polygon',
  310. coordinates: [
  311. '@@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‚',
  312. ],
  313. encodeOffsets: [[114615, 40562]],
  314. },
  315. },
  316. {
  317. type: 'Feature',
  318. id: '1405',
  319. properties: { name: '晋城市', cp: [112.7856, 35.6342], childNum: 6 },
  320. geometry: {
  321. type: 'Polygon',
  322. coordinates: [
  323. '@@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°',
  324. ],
  325. encodeOffsets: [[115223, 36895]],
  326. },
  327. },
  328. {
  329. type: 'Feature',
  330. id: '1401',
  331. properties: { name: '太原市', cp: [112.3352, 37.9413], childNum: 5 },
  332. geometry: {
  333. type: 'Polygon',
  334. coordinates: [
  335. '@@„@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š@°',
  336. ],
  337. encodeOffsets: [[114503, 39134]],
  338. },
  339. },
  340. {
  341. type: 'Feature',
  342. id: '1403',
  343. properties: { name: '阳泉市', cp: [113.4778, 38.0951], childNum: 3 },
  344. geometry: {
  345. type: 'Polygon',
  346. coordinates: [
  347. '@@°@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',
  348. ],
  349. encodeOffsets: [[115864, 39336]],
  350. },
  351. },
  352. ],
  353. UTF8Encoding: true,
  354. })
  355. var mapFeatures = echarts.getMap(this.mapName).geoJson.features
  356. mapFeatures.forEach(v => {
  357. // 地区名称
  358. var name = v.properties.name
  359. // 地区经纬度
  360. this.geoCoordMap[name] = v.properties.cp
  361. })
  362. myChart.setOption({
  363. tooltip: {
  364. padding: 15,
  365. enterable: true,
  366. transitionDuration: 1,
  367. formatter: (params, ticket, callback) => {
  368. let tipHtml = `
  369. <div class="tooltip-cont">
  370. <p>新开工:<span>工程建设项目</span></p>
  371. <p>总投资额:<span>${params.data.value}亿</span></p>
  372. <p>当前阶段:<span>可论证阶段</span></p>
  373. <p>时间节点:<span>2021.10-2022.10</span></p>
  374. </div>`
  375. return tipHtml
  376. },
  377. },
  378. visualMap: {
  379. min: 0,
  380. max: 300,
  381. right: 0,
  382. bottom: 0,
  383. text: ['高', '低'],
  384. textStyle: {
  385. color: '#f1f1f1'
  386. },
  387. realtime: false,
  388. calculable: true,
  389. inRange: {
  390. color: ['lightskyblue', '#2754b7']
  391. }
  392. },
  393. geo: {
  394. show: true,
  395. map: 'shanxi',
  396. layoutCenter: ['50%', '50%'], //地图位置
  397. layoutSize: '100%',
  398. label: {
  399. normal: {
  400. show: false,
  401. },
  402. emphasis: {
  403. show: false,
  404. },
  405. },
  406. roam: false,
  407. itemStyle: {
  408. normal: {
  409. areaColor: '#1946a8',
  410. shadowColor: '#1946a8',
  411. borderWidth: 1, //设置外层边框
  412. borderColor: '#1946a8',
  413. shadowOffsetX: 10,
  414. shadowOffsetY: 5,
  415. shadowBlur: 2,
  416. },
  417. emphasis: {
  418. areaColor: '#1946a8',
  419. borderColor: '#d4bc1d',
  420. borderWidth: 2, //设置外层边框
  421. },
  422. },
  423. },
  424. series: [
  425. {
  426. name: '散点',
  427. type: 'scatter',
  428. coordinateSystem: 'geo',
  429. data: this.convertData(data),
  430. symbolSize: function (val) {
  431. return 10
  432. },
  433. label: {
  434. normal: {
  435. formatter: '{b}',
  436. position: [10, 10],
  437. fontSize: 15,
  438. fontWeight: 600,
  439. fontStyle: 'italic',
  440. color: '#fff',
  441. show: true,
  442. },
  443. emphasis: {
  444. show: true,
  445. },
  446. },
  447. itemStyle: {
  448. normal: {
  449. color: '#000',
  450. borderWidth: 2,
  451. borderColor: '#fff',
  452. },
  453. },
  454. },
  455. {
  456. type: 'map',
  457. map: this.mapName,
  458. geoIndex: 0,
  459. aspectScale: 0.75, //长宽比
  460. showLegendSymbol: true, // 存在legend时显示
  461. label: {
  462. normal: {
  463. show: true,
  464. },
  465. emphasis: {
  466. show: false,
  467. textStyle: {
  468. color: '#fff',
  469. },
  470. },
  471. },
  472. roam: true,
  473. itemStyle: {
  474. normal: {
  475. areaColor: '#031525',
  476. borderColor: '#3B5077',
  477. },
  478. emphasis: {
  479. areaColor: '#2B91B7',
  480. },
  481. },
  482. animation: false,
  483. data: data,
  484. },
  485. {
  486. name: '点',
  487. type: 'scatter',
  488. coordinateSystem: 'geo',
  489. zlevel: 6,
  490. },
  491. {
  492. name: 'Top 5',
  493. type: 'effectScatter',
  494. coordinateSystem: 'geo',
  495. data: this.convertData(
  496. data
  497. .sort(function (a, b) {
  498. return b.value - a.value
  499. })
  500. .slice(0, 5)
  501. ),
  502. symbolSize: function (val) {
  503. return 15
  504. },
  505. showEffectOn: 'render',
  506. rippleEffect: {
  507. brushType: 'stroke',
  508. },
  509. hoverAnimation: true,
  510. label: {
  511. normal: {
  512. formatter: '{b}',
  513. position: 'left',
  514. show: false,
  515. },
  516. },
  517. itemStyle: {
  518. normal: {
  519. color: 'yellow',
  520. shadowBlur: 10,
  521. shadowColor: 'yellow',
  522. },
  523. },
  524. zlevel: 1000,
  525. },
  526. {
  527. name: '线路',
  528. type: 'lines',
  529. zlevel: 2,
  530. effect: {
  531. show: true,
  532. period: 4, //箭头指向速度,值越小速度越快
  533. trailLength: 0.02, //特效尾迹长度[0,1]值越大,尾迹越长重
  534. symbol: 'arrow', //箭头图标
  535. symbolSize: 5, //图标大小
  536. },
  537. lineStyle: {
  538. normal: {
  539. color: '#00FFFF',
  540. width: 1,
  541. type: 'dashed',
  542. opacity: 0.5, //尾迹线条透明度
  543. curveness: -0.3, //尾迹线条曲直度
  544. },
  545. },
  546. data: moveLine.normal,
  547. },
  548. ],
  549. })
  550. },
  551. initChartL1 () {
  552. let myChart = echarts.init(document.getElementById("echartL1"));
  553. let option = {
  554. grid: {
  555. top: 35,
  556. right: 40,
  557. left: 60,
  558. bottom: 40,
  559. },
  560. tooltip: {
  561. show: true,
  562. trigger: "axis",
  563. axisPointer: {
  564. // 坐标轴指示器,坐标轴触发有效
  565. type: "shadow", // 默认为直线,可选为:'line' | 'shadow'
  566. },
  567. },
  568. xAxis: {
  569. data: ["山西焦煤", "晋能控股", "华阳新材", "潞安化工", "华新燃气", "太重集团", "国际能源", "华远陆港", "水控集团", "文旅集团", "交控集团", '航产集团', '山西建设', '汾酒集团', '大地控股'],
  570. axisTick: {
  571. show: false,
  572. },
  573. // x轴的字体颜色
  574. axisLabel: {
  575. rotate: 40,
  576. textStyle: {
  577. color: "white",
  578. },
  579. },
  580. //y轴线的颜色以及宽度
  581. axisLine: {
  582. show: true,
  583. lineStyle: {
  584. color: "#1E5389",
  585. width: 1,
  586. type: "solid",
  587. },
  588. },
  589. },
  590. yAxis: {
  591. name: '亿元',
  592. nameTextStyle: {//y轴上方单位的颜色
  593. color: '#fff',
  594. },
  595. axisTick: {
  596. lineStyle: {
  597. color: "#18416F",
  598. },
  599. },
  600. // y轴的字体颜色
  601. axisLabel: {
  602. textStyle: {
  603. color: "white",
  604. },
  605. },
  606. splitLine: {
  607. show: false,
  608. lineStyle: {
  609. color: "#204561",
  610. width: 1,
  611. type: "dotted",
  612. },
  613. },
  614. //y轴线的颜色以及宽度
  615. axisLine: {
  616. show: true,
  617. lineStyle: {
  618. color: "#1E5389",
  619. width: 1,
  620. type: "solid",
  621. },
  622. },
  623. },
  624. series: [
  625. {
  626. name: "2022年额度",
  627. type: "bar",
  628. data: [1200, 680, 562, 268, 717, 843, 987, 126, 723, 569, 534, 753, 864, , 834, 764, 978],
  629. showBackground: false,
  630. backgroundStyle: {
  631. color: "#18416F",
  632. },
  633. barWidth: "10%",
  634. itemStyle: {
  635. barBorderRadius: [10, 10, 0, 0],
  636. color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [
  637. {
  638. offset: 0,
  639. color: "#132543",
  640. }, //柱图渐变色
  641. {
  642. offset: 1,
  643. color: "#897DFF",
  644. },
  645. ]),
  646. },
  647. },
  648. {
  649. name: "2023年额度",
  650. type: "bar",
  651. data: [658, 1125, 658, 999, 643, 675, 743, 724, 733, 725, 652, 865, 749, 359, 241],
  652. showBackground: false,
  653. backgroundStyle: {
  654. color: "#18416F",
  655. },
  656. barWidth: "10%",
  657. itemStyle: {
  658. barBorderRadius: [10, 10, 0, 0],
  659. color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [
  660. {
  661. offset: 0,
  662. color: "#132543",
  663. }, //柱图渐变色
  664. {
  665. offset: 1,
  666. color: "#FED95B",
  667. },
  668. ]),
  669. },
  670. },
  671. ],
  672. legend: {
  673. data: ["2022年额度", "2023年额度"],
  674. textStyle: {
  675. // 图列内容样式
  676. color: "#fff", // 字体颜色
  677. // fontSize: "10",
  678. },
  679. right: 'center',
  680. icon: "roundRect",
  681. // 小图标的宽高
  682. itemHeight: 5,
  683. },
  684. };
  685. tools.loopShowTooltip(myChart, option, {
  686. nterval: 2000,
  687. loopSeries: true,
  688. })
  689. let that = this
  690. myChart.on('click', function (param) {
  691. console.log(param)
  692. if (param.name == '晋能控股') {
  693. that.showTip2 = true
  694. setTimeout(() => {
  695. that.initChartR4()
  696. that.initChartR5()
  697. })
  698. }
  699. })
  700. myChart.setOption(option);
  701. },
  702. initChartL2 () {
  703. let myChart = echarts.init(this.$refs['echartL2'])
  704. var value = 0.45;
  705. var data = [value];
  706. let option = {
  707. backgroundColor: 'transparent',
  708. title: [
  709. {
  710. text: '450.12亿',
  711. x: '33%',
  712. y: '80%',
  713. textStyle: {
  714. fontSize: 24,
  715. fontWeight: 'bold',
  716. color: '#2CB7E0',
  717. lineHeight: 16,
  718. textAlign: 'center',
  719. },
  720. }
  721. ],
  722. series: [
  723. {
  724. type: 'liquidFill',
  725. radius: '70%',
  726. center: ['50%', '40%'],
  727. color: [
  728. {
  729. type: 'linear',
  730. x: 0,
  731. y: 0,
  732. x2: 0,
  733. y2: 1,
  734. colorStops: [
  735. {
  736. offset: 0,
  737. color: '#446bf5',
  738. },
  739. {
  740. offset: 1,
  741. color: '#2ca3e2',
  742. },
  743. ],
  744. globalCoord: false,
  745. },
  746. ],
  747. data: [value, value], // data个数代表波浪数
  748. backgroundStyle: {
  749. borderWidth: 1,
  750. color: 'RGBA(51, 66, 127, 0.7)',
  751. },
  752. label: {
  753. normal: {
  754. textStyle: {
  755. fontSize: 30,
  756. color: '#fff',
  757. },
  758. },
  759. },
  760. outline: {
  761. // show: false
  762. borderDistance: 0,
  763. itemStyle: {
  764. borderWidth: 2,
  765. borderColor: 'transparent',
  766. },
  767. },
  768. },
  769. ],
  770. }
  771. myChart.setOption(option)
  772. },
  773. initChartL3 () {
  774. let myChart = echarts.init(this.$refs['echartL3'])
  775. let option = {
  776. tooltip: {
  777. trigger: 'axis',
  778. formatter: '指标:' + '{c0}' + '<br/>' + '发展线:' + '{c1}' + '<br/>' + '生存线:' + '{c2}', //+ '<br/>'+ '{a1}:{c1}' + '%',
  779. axisPointer: {
  780. type: 'shadow',
  781. },
  782. },
  783. grid: {
  784. top: '10%',
  785. right: '5%',
  786. left: '10%',
  787. bottom: '15%',
  788. },
  789. xAxis: {
  790. data: ['总投资收益率', '销售利润率', '成本费用利润率', '总资产周转率', '财务内部收益率'],
  791. axisLine: {
  792. show: true, //隐藏X轴轴线
  793. lineStyle: {
  794. color: '#005094',
  795. width: 1,
  796. },
  797. },
  798. axisTick: {
  799. show: true, //隐藏X轴刻度
  800. },
  801. axisLabel: {
  802. show: true,
  803. rotate: 15,
  804. textStyle: {
  805. color: 'rgba(255,255,255,0.6)', //X轴文字颜色
  806. fontSize: 12,
  807. },
  808. },
  809. },
  810. yAxis: [
  811. {
  812. type: 'value',
  813. splitLine: {
  814. show: true,
  815. lineStyle: {
  816. color: '#68b4dd66',
  817. type: 'dashed',
  818. },
  819. },
  820. axisLine: {
  821. show: false
  822. },
  823. axisLabel: {
  824. show: true,
  825. formatter: '{value}',
  826. textStyle: {
  827. color: 'rgba(250,250,250,0.6)',
  828. },
  829. },
  830. nameTextStyle: {
  831. color: '#ebf8ac',
  832. fontSize: 16,
  833. },
  834. },
  835. ],
  836. series: [
  837. {
  838. name: '',
  839. type: 'bar',
  840. barWidth: 15,
  841. itemStyle: {
  842. normal: {
  843. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  844. {
  845. offset: 0,
  846. color: '#69c0ff',
  847. },
  848. {
  849. offset: 1,
  850. color: '#082550',
  851. },
  852. ]),
  853. },
  854. },
  855. data: [10, 20, 30, 40, 50],
  856. // markLine: {
  857. // symbol: ['none', 'none'],
  858. // data: [
  859. // {
  860. // name: '生存线',
  861. // yAxis: 10,
  862. // lineStyle: {
  863. // color: '#FF8F0A',
  864. // },
  865. // label: {
  866. // formatter: '{b}',
  867. // position: 'middle',
  868. // color: '#FF8F0A',
  869. // fontSize: 12,
  870. // },
  871. // },
  872. // {
  873. // name: '发展线',
  874. // yAxis: 15,
  875. // lineStyle: {
  876. // color: '#00EEA2',
  877. // },
  878. // label: {
  879. // formatter: '{b}',
  880. // position: 'middle',
  881. // color: '#00EEA2',
  882. // fontSize: 12,
  883. // },
  884. // },
  885. // ],
  886. // label: {
  887. // distance: [50, 0],
  888. // },
  889. // },
  890. },
  891. {
  892. name: '',
  893. type: 'line',
  894. barWidth: 15,
  895. itemStyle: {
  896. normal: {
  897. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  898. {
  899. offset: 0,
  900. color: '#69c0ff',
  901. },
  902. {
  903. offset: 1,
  904. color: 'green',
  905. },
  906. ]),
  907. },
  908. },
  909. data: [20, 30, 15, 28, 36],
  910. },
  911. {
  912. name: '',
  913. type: 'line',
  914. barWidth: 15,
  915. itemStyle: {
  916. normal: {
  917. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  918. {
  919. offset: 0,
  920. color: '#69c0ff',
  921. },
  922. {
  923. offset: 1,
  924. color: 'yellow',
  925. },
  926. ]),
  927. },
  928. },
  929. data: [15, 22, 17, 33, 14],
  930. },
  931. ],
  932. }
  933. myChart.setOption(option)
  934. // tools.loopShowTooltip(myChart, option, {
  935. // nterval: 2000,
  936. // loopSeries: true,
  937. // })
  938. },
  939. initChartL4 () {
  940. let myChart = echarts.init(this.$refs['echartL4'])
  941. let option = {
  942. title: {
  943. text: '产业类型分析',
  944. x: 'center',
  945. y: '0%',
  946. textStyle: {
  947. color: 'rgba(255,255,255,0.6)',
  948. fontSize: 12,
  949. },
  950. },
  951. tooltip: {
  952. trigger: 'item',
  953. formatter: '{b}' + ':' + '{c}' + '<br/>' + '占比:' + '{d}%',
  954. // position: ['30%', '87%'],
  955. },
  956. color: ['#6682f5', '#8ba2ff', '#69c0ff', '#43ede3'],
  957. legend: {
  958. orient: 'horizontal',
  959. show: true,
  960. icon: 'circle',
  961. top: 'bottom',
  962. orient: 'vertical',
  963. right: '-3%',
  964. textStyle: {
  965. color: '#9DB9EB',
  966. fontSize: '10px'
  967. },
  968. },
  969. series: [
  970. {
  971. name: '',
  972. type: 'pie',
  973. // radius: ['0%', '70%'],
  974. radius: ['40%', '55%'],
  975. center: ['45%', '55%'],
  976. itemStyle: {
  977. normal: {
  978. borderColor: 'rgba(1,31,64,0.7)',
  979. borderWidth: 6,
  980. label: {
  981. show: false,
  982. },
  983. },
  984. },
  985. labelLine: {
  986. show: false,
  987. },
  988. data: [
  989. { value: 1048, name: '煤炭' },
  990. { value: 735, name: '火电' },
  991. { value: 580, name: '焦化' },
  992. { value: 484, name: '风电' },
  993. ],
  994. },
  995. ],
  996. }
  997. myChart.setOption(option)
  998. tools.loopShowTooltip(myChart, option, {
  999. nterval: 2000,
  1000. loopSeries: true,
  1001. })
  1002. },
  1003. initChartL5 () {
  1004. let myChart = echarts.init(this.$refs['echartL5'])
  1005. let option = {
  1006. title: {
  1007. text: '传统产业',
  1008. x: 'center',
  1009. y: '0%',
  1010. textStyle: {
  1011. color: 'rgba(255,255,255,0.6)',
  1012. fontSize: 12,
  1013. },
  1014. },
  1015. tooltip: {
  1016. trigger: 'item',
  1017. formatter: '{b}' + ':' + '{c}' + '<br/>' + '占比:' + '{d}%',
  1018. // position: ['30%', '87%'],
  1019. },
  1020. color: ['#6682f5', '#8ba2ff', '#69c0ff', '#43ede3'],
  1021. legend: {
  1022. show: true,
  1023. icon: 'circle',
  1024. top: 'bottom',
  1025. orient: 'vertical',
  1026. right: '-3%',
  1027. textStyle: {
  1028. color: '#9DB9EB',
  1029. fontSize: '10px'
  1030. },
  1031. },
  1032. series: [
  1033. {
  1034. name: '',
  1035. type: 'pie',
  1036. // radius: ['0%', '70%'],
  1037. radius: ['40%', '55%'],
  1038. center: ['45%', '55%'],
  1039. itemStyle: {
  1040. normal: {
  1041. borderColor: 'rgba(1,31,64,0.7)',
  1042. borderWidth: 6,
  1043. label: {
  1044. show: false,
  1045. },
  1046. },
  1047. },
  1048. labelLine: {
  1049. show: false,
  1050. },
  1051. data: [
  1052. { value: 1048, name: '煤炭' },
  1053. { value: 735, name: '火电' },
  1054. { value: 580, name: '焦化' },
  1055. { value: 484, name: '风电' },
  1056. ],
  1057. },
  1058. ],
  1059. }
  1060. myChart.setOption(option)
  1061. tools.loopShowTooltip(myChart, option, {
  1062. nterval: 2000,
  1063. loopSeries: true,
  1064. })
  1065. }, initChartL6 () {
  1066. let myChart = echarts.init(this.$refs['echartL6'])
  1067. let option = {
  1068. title: {
  1069. text: '战略性新兴产业',
  1070. x: 'center',
  1071. y: '0%',
  1072. textStyle: {
  1073. color: 'rgba(255,255,255,0.6)',
  1074. fontSize: 12,
  1075. },
  1076. },
  1077. tooltip: {
  1078. trigger: 'item',
  1079. formatter: '{b}' + ':' + '{c}' + '<br/>' + '占比:' + '{d}%',
  1080. // position: ['30%', '87%'],
  1081. },
  1082. color: ['#6682f5', '#8ba2ff', '#69c0ff', '#43ede3'],
  1083. legend: {
  1084. show: true,
  1085. icon: 'circle',
  1086. top: 'bottom',
  1087. orient: 'vertical',
  1088. right: '-3%',
  1089. textStyle: {
  1090. color: '#9DB9EB',
  1091. fontSize: '10px'
  1092. },
  1093. },
  1094. series: [
  1095. {
  1096. name: '',
  1097. type: 'pie',
  1098. // radius: ['0%', '70%'],
  1099. radius: ['40%', '55%'],
  1100. center: ['45%', '55%'],
  1101. itemStyle: {
  1102. normal: {
  1103. borderColor: 'rgba(1,31,64,0.7)',
  1104. borderWidth: 6,
  1105. label: {
  1106. show: false,
  1107. },
  1108. },
  1109. },
  1110. labelLine: {
  1111. show: false,
  1112. },
  1113. data: [
  1114. { value: 1048, name: '煤炭' },
  1115. { value: 735, name: '火电' },
  1116. { value: 580, name: '焦化' },
  1117. { value: 484, name: '风电' },
  1118. ],
  1119. },
  1120. ],
  1121. }
  1122. myChart.setOption(option)
  1123. tools.loopShowTooltip(myChart, option, {
  1124. nterval: 2000,
  1125. loopSeries: true,
  1126. })
  1127. }, initChartL7 () {
  1128. let myChart = echarts.init(this.$refs['echartL7'])
  1129. let option = {
  1130. title: {
  1131. text: '基础产业',
  1132. x: 'center',
  1133. y: '0%',
  1134. textStyle: {
  1135. color: 'rgba(255,255,255,0.6)',
  1136. fontSize: 12,
  1137. },
  1138. },
  1139. tooltip: {
  1140. trigger: 'item',
  1141. formatter: '{b}' + ':' + '{c}' + '<br/>' + '占比:' + '{d}%',
  1142. // position: ['30%', '87%'],
  1143. },
  1144. color: ['#6682f5', '#8ba2ff', '#69c0ff', '#43ede3'],
  1145. legend: {
  1146. show: true,
  1147. icon: 'circle',
  1148. top: 'bottom',
  1149. orient: 'vertical',
  1150. right: '-3%',
  1151. textStyle: {
  1152. color: '#9DB9EB',
  1153. fontSize: '10px'
  1154. },
  1155. },
  1156. series: [
  1157. {
  1158. name: '',
  1159. type: 'pie',
  1160. // radius: ['0%', '70%'],
  1161. radius: ['40%', '55%'],
  1162. center: ['45%', '55%'],
  1163. itemStyle: {
  1164. normal: {
  1165. borderColor: 'rgba(1,31,64,0.7)',
  1166. borderWidth: 6,
  1167. label: {
  1168. show: false,
  1169. },
  1170. },
  1171. },
  1172. labelLine: {
  1173. show: false,
  1174. },
  1175. data: [
  1176. { value: 1048, name: '煤炭' },
  1177. { value: 735, name: '火电' },
  1178. { value: 580, name: '焦化' },
  1179. { value: 484, name: '风电' },
  1180. ],
  1181. },
  1182. ],
  1183. }
  1184. myChart.setOption(option)
  1185. tools.loopShowTooltip(myChart, option, {
  1186. nterval: 2000,
  1187. loopSeries: true,
  1188. })
  1189. },
  1190. initChartR4 () {
  1191. let myChart = echarts.init(this.$refs['echartR4'])
  1192. let option = {
  1193. title: {
  1194. text: '2022年的可投资总额',
  1195. x: 'center',
  1196. y: '87%',
  1197. textStyle: {
  1198. color: 'rgba(255,255,255,0.6)',
  1199. fontSize: 12,
  1200. },
  1201. },
  1202. tooltip: {
  1203. trigger: 'item',
  1204. },
  1205. color: ['#69C1FF', '#4B97CC',],
  1206. legend: {
  1207. icon: 'circle',
  1208. top: 'bottom',
  1209. orient: 'vertical',
  1210. right: '1%',
  1211. textStyle: {
  1212. color: '#9DB9EB',
  1213. },
  1214. },
  1215. series: [
  1216. {
  1217. name: '',
  1218. type: 'pie',
  1219. label: {
  1220. normal: {
  1221. show: true,
  1222. position: 'center',
  1223. color: '#4c4a4a',
  1224. formatter: '{total|' + '462.83' + '}' + '\n\r' + '{active|亿元}',
  1225. rich: {
  1226. total: {
  1227. fontSize: 20,
  1228. fontFamily: "微软雅黑",
  1229. color: '#fff'
  1230. },
  1231. active: {
  1232. fontFamily: "微软雅黑",
  1233. fontSize: 15,
  1234. color: '#fff'
  1235. },
  1236. }
  1237. },
  1238. emphasis: {//中间文字显示
  1239. show: true,
  1240. }
  1241. },
  1242. radius: ['40%', '60%'],
  1243. center: ['50%', '45%'],
  1244. itemStyle: {
  1245. normal: {
  1246. label: {
  1247. show: false,
  1248. },
  1249. },
  1250. },
  1251. labelLine: {
  1252. show: false,
  1253. },
  1254. data: [
  1255. { value: 1048, name: '已使用额度' },
  1256. { value: 735, name: '可使用额度' }
  1257. ],
  1258. },
  1259. ],
  1260. }
  1261. myChart.setOption(option)
  1262. tools.loopShowTooltip(myChart, option, {
  1263. nterval: 2000,
  1264. loopSeries: true,
  1265. })
  1266. },
  1267. initChartR5 () {
  1268. let myChart = echarts.init(this.$refs['echartR5'])
  1269. let option = {
  1270. title: {
  1271. text: '2023年的可投资总额',
  1272. x: 'center',
  1273. y: '87%',
  1274. textStyle: {
  1275. color: 'rgba(255,255,255,0.6)',
  1276. fontSize: 12,
  1277. },
  1278. },
  1279. tooltip: {
  1280. trigger: 'item',
  1281. },
  1282. color: ['#69C1FF', '#4B97CC',],
  1283. legend: {
  1284. icon: 'circle',
  1285. top: 'bottom',
  1286. orient: 'vertical',
  1287. right: '1%',
  1288. textStyle: {
  1289. color: '#9DB9EB',
  1290. },
  1291. },
  1292. series: [
  1293. {
  1294. name: '',
  1295. type: 'pie',
  1296. label: {
  1297. normal: {
  1298. show: true,
  1299. position: 'center',
  1300. top: '50',
  1301. color: '#4c4a4a',
  1302. formatter: '{total|' + '462.83' + '}' + '\n\r' + '{active|亿元}',
  1303. rich: {
  1304. total: {
  1305. fontSize: 20,
  1306. fontFamily: "微软雅黑",
  1307. color: '#fff'
  1308. },
  1309. active: {
  1310. fontFamily: "微软雅黑",
  1311. fontSize: 15,
  1312. color: '#fff'
  1313. },
  1314. }
  1315. },
  1316. emphasis: {//中间文字显示
  1317. show: true,
  1318. }
  1319. },
  1320. radius: ['40%', '60%'],
  1321. center: ['50%', '45%'],
  1322. itemStyle: {
  1323. normal: {
  1324. label: {
  1325. show: false,
  1326. },
  1327. },
  1328. },
  1329. labelLine: {
  1330. show: false,
  1331. },
  1332. data: [
  1333. { value: 1048, name: '已使用额度' },
  1334. { value: 735, name: '可使用额度' }
  1335. ],
  1336. },
  1337. ],
  1338. }
  1339. myChart.setOption(option)
  1340. tools.loopShowTooltip(myChart, option, {
  1341. nterval: 2000,
  1342. loopSeries: true,
  1343. })
  1344. },
  1345. initChartR1 () {
  1346. let myChart = echarts.init(this.$refs['echartR1'])
  1347. let option = {
  1348. title: {
  1349. text: '产业类别分析',
  1350. x: 'center',
  1351. y: '87%',
  1352. textStyle: {
  1353. color: 'rgba(255,255,255,0.6)',
  1354. fontSize: 12,
  1355. },
  1356. },
  1357. tooltip: {
  1358. trigger: 'item',
  1359. formatter: '{b}' + ':' + '{c}' + '<br/>' + '占比:' + '{d}%',
  1360. // position: ['-5%', '95%'],
  1361. },
  1362. color: ['#6682f5', '#8ba2ff', '#69c0ff', '#43ede3'],
  1363. legend: {
  1364. show: true,
  1365. icon: 'circle',
  1366. top: 'bottom',
  1367. orient: 'vertical',
  1368. right: '-3%',
  1369. textStyle: {
  1370. color: '#9DB9EB',
  1371. fontSize: '10px'
  1372. },
  1373. },
  1374. series: [
  1375. {
  1376. name: '',
  1377. type: 'pie',
  1378. radius: ['40%', '60%'],
  1379. center: ['50%', '45%'],
  1380. itemStyle: {
  1381. normal: {
  1382. borderColor: 'rgba(1,31,64,0.7)',
  1383. borderWidth: 6,
  1384. label: {
  1385. show: false,
  1386. },
  1387. },
  1388. },
  1389. labelLine: {
  1390. show: false,
  1391. },
  1392. data: [
  1393. { value: 1048, name: '煤炭' },
  1394. { value: 735, name: '火电' },
  1395. { value: 580, name: '焦化' },
  1396. { value: 484, name: '风电' },
  1397. ],
  1398. },
  1399. ],
  1400. }
  1401. myChart.setOption(option)
  1402. tools.loopShowTooltip(myChart, option, {
  1403. nterval: 2000,
  1404. loopSeries: true,
  1405. })
  1406. },
  1407. initChartR2 () {
  1408. let myChart = echarts.init(this.$refs['echartR2'])
  1409. let option = {
  1410. title: {
  1411. text: '项目阶段分析',
  1412. x: 'center',
  1413. y: '87%',
  1414. textStyle: {
  1415. color: 'rgba(255,255,255,0.6)',
  1416. fontSize: 12,
  1417. },
  1418. },
  1419. tooltip: {
  1420. trigger: 'item',
  1421. formatter: '{b}' + ':' + '{c}' + '<br/>' + '占比:' + '{d}%',
  1422. // position: ['-5%', '95%'],
  1423. },
  1424. color: ['#6682f5', '#8ba2ff', '#69c0ff', '#43ede3'],
  1425. legend: {
  1426. show: true,
  1427. icon: 'circle',
  1428. top: 'bottom',
  1429. orient: 'vertical',
  1430. right: '-3%',
  1431. textStyle: {
  1432. color: '#9DB9EB',
  1433. fontSize: '10px'
  1434. },
  1435. },
  1436. series: [
  1437. {
  1438. name: '',
  1439. type: 'pie',
  1440. radius: ['40%', '60%'],
  1441. center: ['50%', '45%'],
  1442. itemStyle: {
  1443. normal: {
  1444. borderColor: 'rgba(1,31,64,0.7)',
  1445. borderWidth: 6,
  1446. label: {
  1447. show: false,
  1448. },
  1449. },
  1450. },
  1451. labelLine: {
  1452. show: false,
  1453. },
  1454. data: [
  1455. { value: 1048, name: '煤炭' },
  1456. { value: 735, name: '火电' },
  1457. { value: 580, name: '焦化' },
  1458. { value: 484, name: '风电' },
  1459. ],
  1460. },
  1461. ],
  1462. }
  1463. myChart.setOption(option)
  1464. tools.loopShowTooltip(myChart, option, {
  1465. nterval: 2000,
  1466. loopSeries: true,
  1467. })
  1468. },
  1469. initChartR3 () {
  1470. let myChart = echarts.init(this.$refs['echartR3'])
  1471. let option = {
  1472. title: {
  1473. text: '股权类',
  1474. textStyle: {
  1475. color: '#69C0FF',
  1476. fontSize: 16,
  1477. fontWeight: 500
  1478. },
  1479. top: '10',
  1480. left: '10'
  1481. },
  1482. textStyle: {
  1483. color: '#fff',
  1484. },
  1485. tooltip: {
  1486. trigger: "axis",
  1487. formatter: function(params) {
  1488. var tip = params[0].axisValue + '<br/>' + params[0].marker + params[0].data[1]+ ':'+ params[0].data[2]+ '个,'+ params[0].data[3] + '亿元' + '<br/>'+ params[1].marker + params[1].data[1]+ ':'+ params[1].data[2]+ '个,'+ params[0].data[3] + '亿元';
  1489. return tip
  1490. },
  1491. axisPointer: {
  1492. lineStyle: {
  1493. type: 'dashed',
  1494. width: 2,
  1495. color: 'rgba(255,255,255,0.6)'
  1496. },
  1497. animation: true
  1498. }
  1499. },
  1500. grid: {
  1501. top: '22%',
  1502. right: '5%',
  1503. left: '10%',
  1504. bottom: '15%',
  1505. },
  1506. yAxis: {
  1507. data: ['备案', '特别监管'],
  1508. splitLine: {
  1509. show: true,
  1510. lineStyle: {
  1511. color: '#68b4dd66',
  1512. type: 'dashed',
  1513. },
  1514. },
  1515. axisLine: {
  1516. show: false
  1517. },
  1518. axisLabel: {
  1519. show: true,
  1520. formatter: '{value}',
  1521. textStyle: {
  1522. color: 'rgba(250,250,250,0.6)',
  1523. },
  1524. },
  1525. nameTextStyle: {
  1526. color: '#ebf8ac',
  1527. fontSize: 16,
  1528. },
  1529. },
  1530. xAxis: {
  1531. data: ['项目储备', '项目立项','可研论证', '投资决策'],
  1532. axisLine: {
  1533. show: true, //隐藏X轴轴线
  1534. lineStyle: {
  1535. color: '#005094',
  1536. width: 1,
  1537. },
  1538. },
  1539. axisTick: {
  1540. show: false, //隐藏X轴刻度
  1541. },
  1542. axisLabel: {
  1543. show: true,
  1544. textStyle: {
  1545. color: 'rgba(255,255,255,0.6)', //X轴文字颜色
  1546. fontSize: 12,
  1547. },
  1548. },
  1549. },
  1550. series: [
  1551. {
  1552. name: '',
  1553. type: 'scatter',
  1554. symbol: 'circle',
  1555. symbolSize: function (data) {
  1556. return Math.sqrt(data[2]) * 0.5;
  1557. },
  1558. label: {
  1559. emphasis: {
  1560. show: true,
  1561. formatter: function (param) {
  1562. return param.data[2];
  1563. },
  1564. position: 'top'
  1565. }
  1566. },
  1567. itemStyle: {
  1568. normal: {
  1569. color: '#40A9FF'
  1570. }
  1571. },
  1572. data: [
  1573. ['项目储备', '特别监管', 1400, 100],
  1574. ['项目立项', '特别监管', 1500, 90],
  1575. ['可研论证', '特别监管', 500, 80],
  1576. ['投资决策', '特别监管', 3000, 70],
  1577. ]
  1578. },
  1579. {
  1580. name: '',
  1581. type: 'scatter',
  1582. symbol: 'circle',
  1583. symbolSize: function (data) {
  1584. return Math.sqrt(data[2]) * 0.5;
  1585. },
  1586. label: {
  1587. emphasis: {
  1588. show: true,
  1589. formatter: function (param) {
  1590. return param.data[2];
  1591. },
  1592. position: 'top'
  1593. }
  1594. },
  1595. itemStyle: {
  1596. normal: {
  1597. color: '#45DAD1'
  1598. }
  1599. },
  1600. data: [
  1601. ['项目储备', '备案', 1400, 100],
  1602. ['项目立项', '备案', 1500, 90],
  1603. ['可研论证', '备案', 500, 80],
  1604. ['投资决策', '备案', 3000, 70],
  1605. ]
  1606. },
  1607. ]
  1608. }
  1609. myChart.setOption(option)
  1610. tools.loopShowTooltip(myChart, option, {
  1611. nterval: 2000,
  1612. loopSeries: true,
  1613. })
  1614. },
  1615. initChartR6 () {
  1616. let myChart = echarts.init(this.$refs['echartR6'])
  1617. let option = {
  1618. title: {
  1619. text: '固定资产',
  1620. textStyle: {
  1621. color: '#69C0FF',
  1622. fontSize: 16,
  1623. fontWeight: 500
  1624. },
  1625. top: '10',
  1626. left: '10'
  1627. },
  1628. textStyle: {
  1629. color: '#fff',
  1630. },
  1631. tooltip: {
  1632. trigger: "axis",
  1633. formatter: function(params) {
  1634. var tip = params[0].axisValue + '<br/>' + params[0].marker + params[0].data[1]+ ':'+ params[0].data[2]+ '个,'+ params[0].data[3] + '亿元' + '<br/>'+ params[1].marker + params[1].data[1]+ ':'+ params[1].data[2]+ '个,'+ params[0].data[3] + '亿元';
  1635. return tip
  1636. },
  1637. axisPointer: {
  1638. lineStyle: {
  1639. type: 'dashed',
  1640. width: 2,
  1641. color: 'rgba(255,255,255,0.6)'
  1642. },
  1643. animation: true
  1644. }
  1645. },
  1646. grid: {
  1647. top: '25%',
  1648. right: '5%',
  1649. left: '15%',
  1650. bottom: '15%',
  1651. },
  1652. yAxis: {
  1653. data: ['备案', '特别监管'],
  1654. splitLine: {
  1655. show: true,
  1656. lineStyle: {
  1657. color: '#68b4dd66',
  1658. type: 'dashed',
  1659. },
  1660. },
  1661. axisLine: {
  1662. show: false
  1663. },
  1664. axisLabel: {
  1665. show: true,
  1666. formatter: '{value}',
  1667. textStyle: {
  1668. color: 'rgba(250,250,250,0.6)',
  1669. },
  1670. },
  1671. nameTextStyle: {
  1672. color: '#ebf8ac',
  1673. fontSize: 16,
  1674. },
  1675. },
  1676. xAxis: {
  1677. data: ['项目储备', '项目立项', '可研论证', '投资决策'],
  1678. axisLine: {
  1679. show: true, //隐藏X轴轴线
  1680. lineStyle: {
  1681. color: '#005094',
  1682. width: 1,
  1683. },
  1684. },
  1685. axisTick: {
  1686. show: false, //隐藏X轴刻度
  1687. },
  1688. axisLabel: {
  1689. show: true,
  1690. textStyle: {
  1691. color: 'rgba(255,255,255,0.6)', //X轴文字颜色
  1692. fontSize: 12,
  1693. },
  1694. },
  1695. },
  1696. series: [
  1697. {
  1698. name: '特别监管',
  1699. type: 'scatter',
  1700. symbol: 'circle',//'circle', 'rect', 'roundRect', 'triangle', 'diamond', 'pin', 'arrow'
  1701. symbolSize: function (data) {
  1702. return Math.sqrt(data[2]) * 0.5;
  1703. },
  1704. label: {
  1705. emphasis: {
  1706. show: true,
  1707. formatter: function (param) {
  1708. return param.data[2];
  1709. },
  1710. position: 'top'
  1711. }
  1712. },
  1713. itemStyle: {
  1714. normal: {
  1715. color: '#40A9FF'
  1716. }
  1717. },
  1718. data: [
  1719. ['项目储备', '特别监管', 200, 100],
  1720. ['项目立项', '特别监管', 1500, 90],
  1721. ['可研论证', '特别监管', 2500, 80],
  1722. ['投资决策', '特别监管', 3000, 70],
  1723. ]
  1724. },
  1725. {
  1726. name: '备案',
  1727. type: 'scatter',
  1728. symbol: 'circle',//'circle', 'rect', 'roundRect', 'triangle', 'diamond', 'pin', 'arrow'
  1729. symbolSize: function (data) {
  1730. return Math.sqrt(data[2]) * 0.5;
  1731. },
  1732. label: {
  1733. emphasis: {
  1734. show: true,
  1735. formatter: function (param) {
  1736. return param.data[2];
  1737. },
  1738. position: 'top'
  1739. }
  1740. },
  1741. itemStyle: {
  1742. normal: {
  1743. color: '#45DAD1'
  1744. }
  1745. },
  1746. data: [
  1747. ['项目储备', '备案', 200, 100],
  1748. ['项目立项', '备案', 1500, 90],
  1749. ['可研论证', '备案', 2500, 80],
  1750. ['投资决策', '备案', 3000, 70],
  1751. ]
  1752. },
  1753. ]
  1754. }
  1755. myChart.setOption(option)
  1756. tools.loopShowTooltip(myChart, option, {
  1757. nterval: 2000,
  1758. loopSeries: true,
  1759. })
  1760. }
  1761. },
  1762. })