investHome2.js 65 KB

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