investHome2.js 46 KB

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