investHome2.js 62 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008
  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%储能', "6.78亿元 "],
  32. ['国际能源', '平朔矿区150MW农光储氢一体化项目', "7.84亿元"],
  33. ['汾酒集团', '汾酒2030技改原酒产储能扩建项目(一期)', "91.01亿元 "],
  34. ['大地控股', '山西大地控股忻州新店矿业有限公司投资建设年产800万吨精品砂石骨料项目', "8.66亿元 "],
  35. ['潞安化工', '分布式光伏发电项目', "2.01亿元 "],
  36. ['太重集团', '设立太重(大同)新能源产业投资公司', "0.3亿元 "],
  37. ['大地控股', '山西大地宏翔环保科技有限公司电厂固废资源化综合利用建设项目', "3.60亿元 "],
  38. ['大地控股', '山西大地海科环保科技有限公司电厂固废资源化综合利用建设项目', "3.11亿元 "],
  39. ['汾酒集团', '保健酒园区新增原酒产能项目', "4.98亿元 "],
  40. ['汾酒集团', '白玉酒厂改扩建项目', "4.96亿元 "],
  41. ['华阳新材', '5GW高效光伏组件制造项目', "4.82亿元 "],
  42. ['华新燃气', '吉县—延长输气管道项目(一期工程)', "3.54亿元 "],
  43. ['太重集团', '建设液压挖掘机配套油缸项目', "2.6亿元 "],
  44. ['华远陆港', '物产集团参股设立项目公司投资建设山西物产万科(太原)综合物流产业园项目', "6.60亿元 "]
  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.13;
  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.067;
  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', '#897DFF', '#b6a045', '#D87AFF'],
  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: [100.09, 79], name: '新能源' },
  1113. { value: [15.48, 32], name: '节能环保' },
  1114. { value: [3.00, 3], name: '相关服务业' },
  1115. ]
  1116. let count = 0
  1117. data.forEach(item => {
  1118. count += item.value[0]
  1119. })
  1120. let myChart = echarts.init(this.$refs['echartL5'])
  1121. let option = {
  1122. title: {
  1123. text: '战略性新兴产业',
  1124. x: 'center',
  1125. y: '0%',
  1126. textStyle: {
  1127. color: 'rgba(255,255,255,0.6)',
  1128. fontSize: 12,
  1129. },
  1130. },
  1131. tooltip: {
  1132. trigger: 'item',
  1133. formatter: function (params) {
  1134. return params.name + ',' + (params.value[0] / count * 100).toFixed(2) + '%' + '</br >' + params.value[1] + '个' + ',' + params.value[0] + '亿'
  1135. }
  1136. },
  1137. color: ['#6682f5', '#8ba2ff', '#69c0ff', '#43ede3', '#897DFF', '#b6a045', '#D87AFF'],
  1138. legend: {
  1139. show: false,
  1140. icon: 'circle',
  1141. top: 'bottom',
  1142. orient: 'vertical',
  1143. right: '-3%',
  1144. textStyle: {
  1145. color: '#9DB9EB',
  1146. fontSize: '10px'
  1147. },
  1148. itemWidth: 10,
  1149. itemHeight: 10
  1150. },
  1151. series: [
  1152. {
  1153. name: '',
  1154. type: 'pie',
  1155. // radius: ['0%', '70%'],
  1156. radius: ['50%', '65%'],
  1157. center: ['50%', '55%'],
  1158. itemStyle: {
  1159. normal: {
  1160. borderColor: 'rgba(1,31,64,0.7)',
  1161. borderWidth: 6,
  1162. label: {
  1163. show: false,
  1164. },
  1165. },
  1166. },
  1167. labelLine: {
  1168. show: false,
  1169. },
  1170. data
  1171. },
  1172. ],
  1173. }
  1174. myChart.setOption(option)
  1175. tools.loopShowTooltip(myChart, option, {
  1176. nterval: 2000,
  1177. loopSeries: true,
  1178. })
  1179. let that = this
  1180. myChart.on('click', function (param) {
  1181. console.log(param)
  1182. that.showTip3 = true
  1183. setTimeout(() => {
  1184. that.initChartT1(data, option)
  1185. })
  1186. })
  1187. },
  1188. initChartL6 () {
  1189. let data = [
  1190. { value: [25.82, 43], name: '化工' },
  1191. { value: [17.36, 21], name: '煤层气' },
  1192. { value: [0.04, 1], name: '文旅康养' },
  1193. { value: [1.51, 7], name: '体育' },
  1194. { value: [9.32, 5], name: '酿造' },
  1195. { value: [71.12, 129], name: '建筑房地产' },
  1196. { value: [9.11, 14], name: '农业' },
  1197. ]
  1198. let count = 0
  1199. data.forEach(item => {
  1200. count += item.value[0]
  1201. })
  1202. let myChart = echarts.init(this.$refs['echartL6'])
  1203. let option = {
  1204. title: {
  1205. text: '特色优势产业',
  1206. x: 'center',
  1207. y: '0%',
  1208. textStyle: {
  1209. color: 'rgba(255,255,255,0.6)',
  1210. fontSize: 12,
  1211. },
  1212. },
  1213. tooltip: {
  1214. trigger: 'item',
  1215. formatter: function (params) {
  1216. return params.name + ',' + (params.value[0] / count * 100).toFixed(2) + '%' + '</br >' + params.value[1] + '个' + ',' + params.value[0] + '亿'
  1217. }
  1218. // position: ['30%', '87%'],
  1219. },
  1220. color: ['#6682f5', '#8ba2ff', '#69c0ff', '#43ede3', '#897DFF', '#b6a045', '#D87AFF'],
  1221. legend: {
  1222. show: false,
  1223. icon: 'circle',
  1224. top: 'bottom',
  1225. orient: 'vertical',
  1226. right: '-3%',
  1227. textStyle: {
  1228. color: '#9DB9EB',
  1229. fontSize: '10px'
  1230. },
  1231. itemWidth: 10,
  1232. itemHeight: 10
  1233. },
  1234. series: [
  1235. {
  1236. name: '',
  1237. type: 'pie',
  1238. // radius: ['0%', '70%'],
  1239. radius: ['50%', '65%'],
  1240. center: ['50%', '55%'],
  1241. itemStyle: {
  1242. normal: {
  1243. borderColor: 'rgba(1,31,64,0.7)',
  1244. borderWidth: 6,
  1245. label: {
  1246. show: false,
  1247. },
  1248. },
  1249. },
  1250. labelLine: {
  1251. show: false,
  1252. },
  1253. data,
  1254. },
  1255. ],
  1256. }
  1257. myChart.setOption(option)
  1258. tools.loopShowTooltip(myChart, option, {
  1259. nterval: 2000,
  1260. loopSeries: true,
  1261. })
  1262. let that = this
  1263. myChart.on('click', function (param) {
  1264. console.log(param)
  1265. that.showTip3 = true
  1266. setTimeout(() => {
  1267. that.initChartT1(data, option)
  1268. })
  1269. })
  1270. },
  1271. initChartL7 () {
  1272. let data = [
  1273. { value: [155.82, 51], name: '交通运输业' },
  1274. { value: [8.47, 19], name: '煤气层管网' },
  1275. { value: [10.64, 24], name: '物流贸易' },
  1276. { value: [41.05, 46], name: '水务' },
  1277. { value: [2.14, 7], name: '其他' },
  1278. ]
  1279. let count = 0
  1280. data.forEach(item => {
  1281. count += item.value[0]
  1282. })
  1283. let myChart = echarts.init(this.$refs['echartL7'])
  1284. let option = {
  1285. title: {
  1286. text: '公共基础等产业',
  1287. x: 'center',
  1288. y: '0%',
  1289. textStyle: {
  1290. color: 'rgba(255,255,255,0.6)',
  1291. fontSize: 12,
  1292. },
  1293. },
  1294. tooltip: {
  1295. trigger: 'item',
  1296. formatter: function (params) {
  1297. return params.name + ',' + (params.value[0] / count * 100).toFixed(2) + '%' + '</br >' + params.value[1] + '个' + ',' + params.value[0] + '亿'
  1298. }
  1299. },
  1300. color: ['#6682f5', '#8ba2ff', '#69c0ff', '#43ede3', '#897DFF', '#b6a045', '#D87AFF'],
  1301. legend: {
  1302. show: false,
  1303. icon: 'circle',
  1304. top: 'bottom',
  1305. orient: 'vertical',
  1306. right: '-3%',
  1307. textStyle: {
  1308. color: '#9DB9EB',
  1309. fontSize: '10px'
  1310. },
  1311. itemWidth: 10,
  1312. itemHeight: 10
  1313. },
  1314. series: [
  1315. {
  1316. name: '',
  1317. type: 'pie',
  1318. // radius: ['0%', '70%'],
  1319. radius: ['50%', '65%'],
  1320. center: ['50%', '55%'],
  1321. itemStyle: {
  1322. normal: {
  1323. borderColor: 'rgba(1,31,64,0.7)',
  1324. borderWidth: 6,
  1325. label: {
  1326. show: false,
  1327. },
  1328. },
  1329. },
  1330. labelLine: {
  1331. show: false,
  1332. },
  1333. data
  1334. },
  1335. ],
  1336. }
  1337. myChart.setOption(option)
  1338. tools.loopShowTooltip(myChart, option, {
  1339. nterval: 2000,
  1340. loopSeries: true,
  1341. })
  1342. let that = this
  1343. myChart.on('click', function (param) {
  1344. console.log(param)
  1345. that.showTip3 = true
  1346. setTimeout(() => {
  1347. that.initChartT1(data, option)
  1348. })
  1349. })
  1350. },
  1351. initChartR4 () {
  1352. let myChart = echarts.init(this.$refs['echartR4'])
  1353. let option = {
  1354. title: {
  1355. text: '2022年的可投资总额',
  1356. x: 'center',
  1357. y: '87%',
  1358. textStyle: {
  1359. color: 'rgba(255,255,255,0.6)',
  1360. fontSize: 12,
  1361. },
  1362. },
  1363. tooltip: {
  1364. trigger: 'item',
  1365. },
  1366. color: ['#69C1FF', '#4B97CC',],
  1367. legend: {
  1368. icon: 'circle',
  1369. top: 'bottom',
  1370. orient: 'vertical',
  1371. right: '1%',
  1372. textStyle: {
  1373. color: '#9DB9EB',
  1374. },
  1375. },
  1376. series: [
  1377. {
  1378. name: '',
  1379. type: 'pie',
  1380. label: {
  1381. normal: {
  1382. show: true,
  1383. position: 'center',
  1384. color: '#4c4a4a',
  1385. formatter: '{total|' + '462.83' + '}' + '\n\r' + '{active|亿元}',
  1386. rich: {
  1387. total: {
  1388. fontSize: 20,
  1389. fontFamily: "微软雅黑",
  1390. color: '#fff'
  1391. },
  1392. active: {
  1393. fontFamily: "微软雅黑",
  1394. fontSize: 15,
  1395. color: '#fff'
  1396. },
  1397. }
  1398. },
  1399. emphasis: {//中间文字显示
  1400. show: true,
  1401. }
  1402. },
  1403. radius: ['40%', '60%'],
  1404. center: ['50%', '45%'],
  1405. itemStyle: {
  1406. normal: {
  1407. label: {
  1408. show: false,
  1409. },
  1410. },
  1411. },
  1412. labelLine: {
  1413. show: false,
  1414. },
  1415. data: [
  1416. { value: 1048, name: '已使用额度' },
  1417. { value: 735, name: '可使用额度' }
  1418. ],
  1419. },
  1420. ],
  1421. }
  1422. myChart.setOption(option)
  1423. tools.loopShowTooltip(myChart, option, {
  1424. nterval: 2000,
  1425. loopSeries: true,
  1426. })
  1427. },
  1428. initChartR5 () {
  1429. let myChart = echarts.init(this.$refs['echartR5'])
  1430. let option = {
  1431. title: {
  1432. text: '2023年的可投资总额',
  1433. x: 'center',
  1434. y: '87%',
  1435. textStyle: {
  1436. color: 'rgba(255,255,255,0.6)',
  1437. fontSize: 12,
  1438. },
  1439. },
  1440. tooltip: {
  1441. trigger: 'item',
  1442. },
  1443. color: ['#69C1FF', '#4B97CC',],
  1444. legend: {
  1445. icon: 'circle',
  1446. top: 'bottom',
  1447. orient: 'vertical',
  1448. right: '1%',
  1449. textStyle: {
  1450. color: '#9DB9EB',
  1451. },
  1452. },
  1453. series: [
  1454. {
  1455. name: '',
  1456. type: 'pie',
  1457. label: {
  1458. normal: {
  1459. show: true,
  1460. position: 'center',
  1461. top: '50',
  1462. color: '#4c4a4a',
  1463. formatter: '{total|' + '462.83' + '}' + '\n\r' + '{active|亿元}',
  1464. rich: {
  1465. total: {
  1466. fontSize: 20,
  1467. fontFamily: "微软雅黑",
  1468. color: '#fff'
  1469. },
  1470. active: {
  1471. fontFamily: "微软雅黑",
  1472. fontSize: 15,
  1473. color: '#fff'
  1474. },
  1475. }
  1476. },
  1477. emphasis: {//中间文字显示
  1478. show: true,
  1479. }
  1480. },
  1481. radius: ['40%', '60%'],
  1482. center: ['50%', '45%'],
  1483. itemStyle: {
  1484. normal: {
  1485. label: {
  1486. show: false,
  1487. },
  1488. },
  1489. },
  1490. labelLine: {
  1491. show: false,
  1492. },
  1493. data: [
  1494. { value: 1048, name: '已使用额度' },
  1495. { value: 735, name: '可使用额度' }
  1496. ],
  1497. },
  1498. ],
  1499. }
  1500. myChart.setOption(option)
  1501. tools.loopShowTooltip(myChart, option, {
  1502. nterval: 2000,
  1503. loopSeries: true,
  1504. })
  1505. },
  1506. initChartR1 () {
  1507. let data = [
  1508. { value: [665.81, 549], name: '主业' },
  1509. { value: [65.17, 84], name: '辅业' },
  1510. { value: [423.36, 164], name: '技改' }
  1511. ]
  1512. let count = 0
  1513. data.forEach(item => {
  1514. count += item.value[0]
  1515. })
  1516. let myChart = echarts.init(this.$refs['echartR1'])
  1517. let option = {
  1518. title: {
  1519. text: '主辅业计划占比',
  1520. x: 'center',
  1521. y: '87%',
  1522. textStyle: {
  1523. color: 'rgba(255,255,255,0.6)',
  1524. fontSize: 12,
  1525. },
  1526. },
  1527. tooltip: {
  1528. trigger: 'item',
  1529. // formatter: '{b}' + ':' + '{c}' + '<br/>' + '占比:' + '{d}%',
  1530. // position: ['-5%', '95%'],
  1531. formatter: function (params) {
  1532. return params.name + ',' + (params.value[0] / count * 100).toFixed(2) + '%' + '</br >' + params.value[1] + '个' + ',' + params.value[0] + '亿'
  1533. }
  1534. },
  1535. color: ['#6682f5', '#8ba2ff', '#69c0ff', '#43ede3', '#897DFF', '#b6a045', '#D87AFF'],
  1536. legend: {
  1537. show: false,
  1538. icon: 'circle',
  1539. top: 'bottom',
  1540. orient: 'vertical',
  1541. right: '-3%',
  1542. textStyle: {
  1543. color: '#9DB9EB',
  1544. fontSize: '10px'
  1545. },
  1546. itemWidth: 10,
  1547. itemHeight: 10
  1548. },
  1549. series: [
  1550. {
  1551. name: '',
  1552. type: 'pie',
  1553. radius: ['40%', '60%'],
  1554. center: ['50%', '45%'],
  1555. itemStyle: {
  1556. normal: {
  1557. borderColor: 'rgba(1,31,64,0.7)',
  1558. borderWidth: 6,
  1559. label: {
  1560. show: false,
  1561. },
  1562. },
  1563. },
  1564. labelLine: {
  1565. show: false,
  1566. },
  1567. data,
  1568. },
  1569. ],
  1570. }
  1571. myChart.setOption(option)
  1572. tools.loopShowTooltip(myChart, option, {
  1573. nterval: 2000,
  1574. loopSeries: true,
  1575. })
  1576. let that = this
  1577. myChart.on('click', function (param) {
  1578. console.log(param)
  1579. that.showTip3 = true
  1580. setTimeout(() => {
  1581. that.initChartT1(data, option)
  1582. })
  1583. })
  1584. },
  1585. initChartR2 () {
  1586. let data = [
  1587. { value: [340.77, 168], name: '特别监管类' },
  1588. { value: [390.22, 465], name: '备案类' }
  1589. ]
  1590. let count = 0
  1591. data.forEach(item => {
  1592. count += item.value[0]
  1593. })
  1594. let myChart = echarts.init(this.$refs['echartR2'])
  1595. let option = {
  1596. title: {
  1597. text: '项目管理类型',
  1598. x: 'center',
  1599. y: '87%',
  1600. textStyle: {
  1601. color: 'rgba(255,255,255,0.6)',
  1602. fontSize: 12,
  1603. },
  1604. },
  1605. tooltip: {
  1606. trigger: 'item',
  1607. formatter: function (params) {
  1608. return params.name + ',' + (params.value[0] / count * 100).toFixed(2) + '%' + '</br >' + params.value[1] + '个' + ',' + params.value[0] + '亿'
  1609. }
  1610. // position: ['-5%', '95%'],
  1611. },
  1612. color: ['#6682f5', '#8ba2ff', '#69c0ff', '#43ede3', '#897DFF', '#b6a045', '#D87AFF'],
  1613. legend: {
  1614. show: false,
  1615. icon: 'circle',
  1616. top: 'bottom',
  1617. orient: 'vertical',
  1618. right: '-3%',
  1619. textStyle: {
  1620. color: '#9DB9EB',
  1621. fontSize: '10px'
  1622. },
  1623. itemWidth: 10,
  1624. itemHeight: 10
  1625. },
  1626. series: [
  1627. {
  1628. name: '',
  1629. type: 'pie',
  1630. radius: ['40%', '60%'],
  1631. center: ['50%', '45%'],
  1632. itemStyle: {
  1633. normal: {
  1634. borderColor: 'rgba(1,31,64,0.7)',
  1635. borderWidth: 6,
  1636. label: {
  1637. show: false,
  1638. },
  1639. },
  1640. },
  1641. labelLine: {
  1642. show: false,
  1643. },
  1644. data,
  1645. },
  1646. ],
  1647. }
  1648. myChart.setOption(option)
  1649. tools.loopShowTooltip(myChart, option, {
  1650. nterval: 2000,
  1651. loopSeries: true,
  1652. })
  1653. let that = this
  1654. myChart.on('click', function (param) {
  1655. console.log(param)
  1656. that.showTip3 = true
  1657. setTimeout(() => {
  1658. that.initChartT1(data, option)
  1659. })
  1660. })
  1661. },
  1662. initChartR3 () {
  1663. let myChart = echarts.init(this.$refs['echartR3'])
  1664. let option = {
  1665. title: {
  1666. text: '股权类',
  1667. textStyle: {
  1668. color: '#69C0FF',
  1669. fontSize: 16,
  1670. fontWeight: 500
  1671. },
  1672. top: '10',
  1673. left: '10'
  1674. },
  1675. textStyle: {
  1676. color: '#fff',
  1677. },
  1678. tooltip: {
  1679. trigger: "axis",
  1680. formatter: function (params) {
  1681. 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] + '亿元';
  1682. return tip
  1683. },
  1684. axisPointer: {
  1685. lineStyle: {
  1686. type: 'dashed',
  1687. width: 2,
  1688. color: 'rgba(255,255,255,0.6)'
  1689. },
  1690. animation: true
  1691. }
  1692. },
  1693. grid: {
  1694. top: '22%',
  1695. right: '5%',
  1696. left: '15%',
  1697. bottom: '15%',
  1698. },
  1699. yAxis: {
  1700. data: ['备案', '特别监管'],
  1701. splitLine: {
  1702. show: true,
  1703. lineStyle: {
  1704. color: '#68b4dd66',
  1705. type: 'dashed',
  1706. },
  1707. },
  1708. axisLine: {
  1709. show: false
  1710. },
  1711. axisLabel: {
  1712. show: true,
  1713. formatter: '{value}',
  1714. textStyle: {
  1715. color: 'rgba(250,250,250,0.6)',
  1716. },
  1717. },
  1718. nameTextStyle: {
  1719. color: '#ebf8ac',
  1720. fontSize: 16,
  1721. },
  1722. },
  1723. xAxis: {
  1724. data: ['项目储备', '项目立项', '可研论证', '投资决策'],
  1725. axisLine: {
  1726. show: true, //隐藏X轴轴线
  1727. lineStyle: {
  1728. color: '#005094',
  1729. width: 1,
  1730. },
  1731. },
  1732. axisTick: {
  1733. show: false, //隐藏X轴刻度
  1734. },
  1735. axisLabel: {
  1736. show: true,
  1737. textStyle: {
  1738. color: 'rgba(255,255,255,0.6)', //X轴文字颜色
  1739. fontSize: 12,
  1740. },
  1741. },
  1742. },
  1743. series: [
  1744. {
  1745. name: '',
  1746. type: 'scatter',
  1747. symbol: 'circle',
  1748. symbolSize: function (data) {
  1749. return Math.sqrt(data[2]) * 3;
  1750. },
  1751. label: {
  1752. emphasis: {
  1753. show: true,
  1754. formatter: function (param) {
  1755. return param.data[2];
  1756. },
  1757. position: 'top'
  1758. }
  1759. },
  1760. itemStyle: {
  1761. normal: {
  1762. color: '#40A9FF'
  1763. }
  1764. },
  1765. data: [
  1766. ['项目储备', '特别监管', 9, 6.49],
  1767. ['项目立项', '特别监管', 0, 0.00],
  1768. ['可研论证', '特别监管', 2, 0.10],
  1769. ['投资决策', '特别监管', 27, 15.52],
  1770. ]
  1771. },
  1772. {
  1773. name: '',
  1774. type: 'scatter',
  1775. symbol: 'circle',
  1776. symbolSize: function (data) {
  1777. return Math.sqrt(data[2]) * 3;
  1778. },
  1779. label: {
  1780. emphasis: {
  1781. show: true,
  1782. formatter: function (param) {
  1783. return param.data[2];
  1784. },
  1785. position: 'top'
  1786. }
  1787. },
  1788. itemStyle: {
  1789. normal: {
  1790. color: '#45DAD1'
  1791. }
  1792. },
  1793. data: [
  1794. ['项目储备', '备案', 39, 8.08],
  1795. ['项目立项', '备案', 7, 1.83],
  1796. ['可研论证', '备案', 19, 1.01],
  1797. ['投资决策', '备案', 73, 17.65],
  1798. ]
  1799. },
  1800. ]
  1801. }
  1802. myChart.setOption(option)
  1803. tools.loopShowTooltip(myChart, option, {
  1804. nterval: 2000,
  1805. loopSeries: true,
  1806. })
  1807. },
  1808. initChartR6 () {
  1809. let myChart = echarts.init(this.$refs['echartR6'])
  1810. let option = {
  1811. title: {
  1812. text: '固定资产',
  1813. textStyle: {
  1814. color: '#69C0FF',
  1815. fontSize: 16,
  1816. fontWeight: 500
  1817. },
  1818. top: '10',
  1819. left: '10'
  1820. },
  1821. textStyle: {
  1822. color: '#fff',
  1823. },
  1824. tooltip: {
  1825. trigger: "axis",
  1826. formatter: function (params) {
  1827. 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] + '亿元';
  1828. return tip
  1829. },
  1830. axisPointer: {
  1831. lineStyle: {
  1832. type: 'dashed',
  1833. width: 2,
  1834. color: 'rgba(255,255,255,0.6)'
  1835. },
  1836. animation: true
  1837. }
  1838. },
  1839. grid: {
  1840. top: '25%',
  1841. right: '5%',
  1842. left: '15%',
  1843. bottom: '15%',
  1844. },
  1845. yAxis: {
  1846. data: ['备案', '特别监管'],
  1847. splitLine: {
  1848. show: true,
  1849. lineStyle: {
  1850. color: '#68b4dd66',
  1851. type: 'dashed',
  1852. },
  1853. },
  1854. axisLine: {
  1855. show: false
  1856. },
  1857. axisLabel: {
  1858. show: true,
  1859. formatter: '{value}',
  1860. textStyle: {
  1861. color: 'rgba(250,250,250,0.6)',
  1862. },
  1863. },
  1864. nameTextStyle: {
  1865. color: '#ebf8ac',
  1866. fontSize: 16,
  1867. },
  1868. },
  1869. xAxis: {
  1870. data: ['项目储备', '项目立项', '可研论证', '投资决策'],
  1871. axisLine: {
  1872. show: true, //隐藏X轴轴线
  1873. lineStyle: {
  1874. color: '#005094',
  1875. width: 1,
  1876. },
  1877. },
  1878. axisTick: {
  1879. show: false, //隐藏X轴刻度
  1880. },
  1881. axisLabel: {
  1882. show: true,
  1883. textStyle: {
  1884. color: 'rgba(255,255,255,0.6)', //X轴文字颜色
  1885. fontSize: 12,
  1886. },
  1887. },
  1888. },
  1889. series: [
  1890. {
  1891. name: '特别监管',
  1892. type: 'scatter',
  1893. symbol: 'circle',//'circle', 'rect', 'roundRect', 'triangle', 'diamond', 'pin', 'arrow'
  1894. symbolSize: function (data) {
  1895. return Math.sqrt(data[2]) * 3;
  1896. },
  1897. label: {
  1898. emphasis: {
  1899. show: true,
  1900. formatter: function (param) {
  1901. return param.data[2];
  1902. },
  1903. position: 'top'
  1904. }
  1905. },
  1906. itemStyle: {
  1907. normal: {
  1908. color: '#40A9FF'
  1909. }
  1910. },
  1911. data: [
  1912. ['项目储备', '特别监管', 14, 12.05],
  1913. ['项目立项', '特别监管', 2, 1.25],
  1914. ['可研论证', '特别监管', 10, 32.69],
  1915. ['投资决策', '特别监管', 15, 28.53],
  1916. ]
  1917. },
  1918. {
  1919. name: '备案',
  1920. type: 'scatter',
  1921. symbol: 'circle',//'circle', 'rect', 'roundRect', 'triangle', 'diamond', 'pin', 'arrow'
  1922. symbolSize: function (data) {
  1923. return Math.sqrt(data[2]) * 3;
  1924. },
  1925. label: {
  1926. emphasis: {
  1927. show: true,
  1928. formatter: function (param) {
  1929. return param.data[2];
  1930. },
  1931. position: 'top'
  1932. }
  1933. },
  1934. itemStyle: {
  1935. normal: {
  1936. color: '#45DAD1'
  1937. }
  1938. },
  1939. data: [
  1940. ['项目储备', '备案', 27, 23.86],
  1941. ['项目立项', '备案', 1, 1.05],
  1942. ['可研论证', '备案', 14, 18.46],
  1943. ['投资决策', '备案', 40, 38.86],
  1944. ]
  1945. },
  1946. ]
  1947. }
  1948. myChart.setOption(option)
  1949. tools.loopShowTooltip(myChart, option, {
  1950. nterval: 2000,
  1951. loopSeries: true,
  1952. })
  1953. },
  1954. initChartT1 (list, info) {
  1955. let count = 0
  1956. console.log(list, info)
  1957. this.echartTitle = info.title.text
  1958. let data = list
  1959. data.forEach(item => {
  1960. count += item.value[0]
  1961. })
  1962. let option = JSON.parse(JSON.stringify(info))
  1963. option.series[0].center = ['50%', '50%']
  1964. option.series[0].radius = ['60%', '75%']
  1965. option.legend = {
  1966. show: false,
  1967. icon: 'circle',
  1968. top: 'bottom',
  1969. orient: 'vertical',
  1970. right: '2%',
  1971. textStyle: {
  1972. color: '#9DB9EB',
  1973. fontSize: 16
  1974. },
  1975. itemWidth: 10,
  1976. itemHeight: 10
  1977. },
  1978. option.title.text = ''
  1979. option.tooltip = {
  1980. trigger: 'item',
  1981. formatter: function (params) {
  1982. return params.name + ',' + (params.value[0] / count * 100).toFixed(2) + '%' + '</br >' + params.value[1] + '个' + ',' + params.value[0] + '亿'
  1983. }
  1984. }
  1985. option.series[0].itemStyle.normal.label = {
  1986. show: true,
  1987. formatter: function (params) {
  1988. return params.name + ',' + (params.value[0] / count * 100).toFixed(2) + '%' + '\n' + params.value[1] + '个' + ',' + params.value[0] + '亿'
  1989. }
  1990. }
  1991. option.series[0].labelLine.show = true
  1992. let myChart = echarts.init(this.$refs['echartT1'])
  1993. myChart.setOption(option)
  1994. // tools.loopShowTooltip(myChart, option, {
  1995. // nterval: 2000,
  1996. // loopSeries: true,
  1997. // })
  1998. }
  1999. },
  2000. })