investHome2.js 61 KB

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