investHome.js 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862
  1. let app = new Vue({
  2. el: '#app',
  3. data () {
  4. return {
  5. year: '2022',
  6. time: '',
  7. timer: '',
  8. mapName: 'shanxi',
  9. geoCoordMap: {},
  10. config1: {
  11. number: [100],
  12. content: '{nt}个',
  13. },
  14. storageRecordConfig: {
  15. header: ['项目名称', '投资金额', '项目进度'],
  16. headerBGC: '#05507b33',
  17. oddRowBGC: '#05507b33',
  18. evenRowBGC: '',
  19. headerHeight: '40',
  20. rowNum: 4,
  21. align: ['center', 'center', 'center'],
  22. data: [
  23. ['山煤河曲2×350MW低热值煤发电项目', '35.00亿', '决策审批中'],
  24. ['泊里煤矿项目', '50.09亿', '决策完成'],
  25. ['七元煤矿项目', '50.77亿', '决策完成'],
  26. ['新源智慧建设运行总部', '9.83亿', '决策完成'],
  27. ['潇河国际会展中心', '43.59亿', '决策完成'],
  28. ['山西·潇河新城酒店', '40.30亿', '决策完成'],
  29. ['平舒铁路专用线项目', '18.62亿', '决策完成'],
  30. ],
  31. },
  32. companyList: [
  33. { name: '山西焦煤' },
  34. { name: '晋能控股' },
  35. { name: '华新燃气' },
  36. { name: '山西建投' },
  37. { name: '潞安化工' },
  38. { name: '华远陆港' },
  39. { name: '航产集团' },
  40. { name: '大地控股' },
  41. { name: '国新能源' },
  42. { name: '汾酒集团' },
  43. { name: '云时代' },
  44. { name: '神农科技' },
  45. { name: '华阳新材' },
  46. { name: '华舰体育' },
  47. { name: '交控集团' },
  48. { name: '文旅集团' },
  49. { name: '水控集团' },
  50. { name: '太重集团' },
  51. ],
  52. }
  53. },
  54. created () {
  55. this.time = formatDate()
  56. this.timer = setInterval(() => {
  57. this.time = formatDate()
  58. }, 1000)
  59. },
  60. beforeDestroy () {
  61. if (this.timer) {
  62. clearInterval(this.timer);
  63. }
  64. },
  65. mounted () {
  66. // 左侧图表
  67. this.initChartL1()
  68. this.initChartL2()
  69. this.initChartR1()
  70. this.initChinaChart()
  71. },
  72. methods: {
  73. convertData (data) {
  74. var res = []
  75. for (var i = 0; i < data.length; i++) {
  76. var geoCoord = this.geoCoordMap[data[i].name]
  77. if (geoCoord) {
  78. res.push({
  79. name: data[i].name,
  80. value: geoCoord.concat(data[i].value),
  81. })
  82. }
  83. }
  84. return res
  85. },
  86. initChinaChart () {
  87. var data = [
  88. { name: '吕梁市', value: 150 },
  89. { name: '大同市', value: 190 },
  90. { name: '忻州市', value: 140 },
  91. { name: '朔州市', value: 160 },
  92. { name: '晋中市', value: 100 },
  93. { name: '太原市', value: 300 },
  94. { name: '临汾市', value: 190 },
  95. { name: '长治市', value: 100 },
  96. { name: '晋城市', value: 280 },
  97. { name: '运城市', value: 180 },
  98. { name: '阳泉市', value: 110 },
  99. ]
  100. var moveLine = {
  101. normal: [
  102. {
  103. fromName: '太原市',
  104. toName: '吕梁市',
  105. coords: [
  106. [112.3352, 37.9413],
  107. [111.3574, 37.7325],
  108. ],
  109. },
  110. {
  111. fromName: '太原市',
  112. toName: '忻州市',
  113. coords: [
  114. [112.3352, 37.9413],
  115. [112.4561, 38.8971],
  116. ],
  117. },
  118. {
  119. fromName: '太原市',
  120. toName: '临汾市',
  121. coords: [
  122. [112.3352, 37.9413],
  123. [111.4783, 36.1615],
  124. ],
  125. },
  126. {
  127. fromName: '太原市',
  128. toName: '阳泉市',
  129. coords: [
  130. [112.3352, 37.9413],
  131. [113.4778, 38.0951],
  132. ],
  133. },
  134. {
  135. fromName: '太原市',
  136. toName: '晋中市',
  137. coords: [
  138. [112.3352, 37.9413],
  139. [112.7747, 37.37],
  140. ],
  141. },
  142. {
  143. fromName: '太原市',
  144. toName: '运城市',
  145. coords: [
  146. [112.3352, 37.9413],
  147. [111.1487, 35.2002],
  148. ],
  149. },
  150. {
  151. fromName: '太原市',
  152. toName: '大同市',
  153. coords: [
  154. [112.3352, 37.9413],
  155. [113.7854, 39.8035],
  156. ],
  157. },
  158. {
  159. fromName: '太原市',
  160. toName: '晋城市',
  161. coords: [
  162. [112.3352, 37.9413],
  163. [112.7856, 35.6342],
  164. ],
  165. },
  166. {
  167. fromName: '太原市',
  168. toName: '长治市',
  169. coords: [
  170. [112.3352, 37.9413],
  171. [112.8625, 36.4746],
  172. ],
  173. },
  174. {
  175. fromName: '太原市',
  176. toName: '朔州市',
  177. coords: [
  178. [112.3352, 37.9413],
  179. [113.0713, 39.6991],
  180. ],
  181. },
  182. ],
  183. }
  184. /*获取地图数据*/
  185. let myChart = echarts.init(this.$refs['echarts-map'])
  186. echarts.registerMap('shanxi', {
  187. type: 'FeatureCollection',
  188. features: [
  189. {
  190. type: 'Feature',
  191. id: '1409',
  192. properties: { name: '忻州市', cp: [112.4561, 38.8971], childNum: 14 },
  193. geometry: {
  194. type: 'Polygon',
  195. coordinates: [
  196. '@@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',
  197. ],
  198. encodeOffsets: [[113614, 39657]],
  199. },
  200. },
  201. {
  202. type: 'Feature',
  203. id: '1411',
  204. properties: { name: '吕梁市', cp: [111.3574, 37.7325], childNum: 13 },
  205. geometry: {
  206. type: 'Polygon',
  207. coordinates: [
  208. '@@@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',
  209. ],
  210. encodeOffsets: [[113614, 39657]],
  211. },
  212. },
  213. {
  214. type: 'Feature',
  215. id: '1410',
  216. properties: { name: '临汾市', cp: [111.4783, 36.1615], childNum: 17 },
  217. geometry: {
  218. type: 'Polygon',
  219. coordinates: [
  220. '@@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',
  221. ],
  222. encodeOffsets: [[113063, 37784]],
  223. },
  224. },
  225. {
  226. type: 'Feature',
  227. id: '1407',
  228. properties: { name: '晋中市', cp: [112.7747, 37.37], childNum: 11 },
  229. geometry: {
  230. type: 'Polygon',
  231. coordinates: [
  232. '@@@š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@',
  233. ],
  234. encodeOffsets: [[114087, 37682]],
  235. },
  236. },
  237. {
  238. type: 'Feature',
  239. id: '1408',
  240. properties: { name: '运城市', cp: [111.1487, 35.2002], childNum: 13 },
  241. geometry: {
  242. type: 'Polygon',
  243. coordinates: [
  244. '@@„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@„',
  245. ],
  246. encodeOffsets: [[113232, 36597]],
  247. },
  248. },
  249. {
  250. type: 'Feature',
  251. id: '1402',
  252. properties: { name: '大同市', cp: [113.7854, 39.8035], childNum: 8 },
  253. geometry: {
  254. type: 'Polygon',
  255. coordinates: [
  256. '@@²£š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',
  257. ],
  258. encodeOffsets: [[115335, 41209]],
  259. },
  260. },
  261. {
  262. type: 'Feature',
  263. id: '1404',
  264. properties: { name: '长治市', cp: [112.8625, 36.4746], childNum: 12 },
  265. geometry: {
  266. type: 'Polygon',
  267. coordinates: [
  268. '@@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',
  269. ],
  270. encodeOffsets: [[116269, 37637]],
  271. },
  272. },
  273. {
  274. type: 'Feature',
  275. id: '1406',
  276. properties: { name: '朔州市', cp: [113.0713, 39.6991], childNum: 5 },
  277. geometry: {
  278. type: 'Polygon',
  279. coordinates: [
  280. '@@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‚',
  281. ],
  282. encodeOffsets: [[114615, 40562]],
  283. },
  284. },
  285. {
  286. type: 'Feature',
  287. id: '1405',
  288. properties: { name: '晋城市', cp: [112.7856, 35.6342], childNum: 6 },
  289. geometry: {
  290. type: 'Polygon',
  291. coordinates: [
  292. '@@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°',
  293. ],
  294. encodeOffsets: [[115223, 36895]],
  295. },
  296. },
  297. {
  298. type: 'Feature',
  299. id: '1401',
  300. properties: { name: '太原市', cp: [112.3352, 37.9413], childNum: 5 },
  301. geometry: {
  302. type: 'Polygon',
  303. coordinates: [
  304. '@@„@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š@°',
  305. ],
  306. encodeOffsets: [[114503, 39134]],
  307. },
  308. },
  309. {
  310. type: 'Feature',
  311. id: '1403',
  312. properties: { name: '阳泉市', cp: [113.4778, 38.0951], childNum: 3 },
  313. geometry: {
  314. type: 'Polygon',
  315. coordinates: [
  316. '@@°@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',
  317. ],
  318. encodeOffsets: [[115864, 39336]],
  319. },
  320. },
  321. ],
  322. UTF8Encoding: true,
  323. })
  324. var mapFeatures = echarts.getMap(this.mapName).geoJson.features
  325. mapFeatures.forEach(v => {
  326. // 地区名称
  327. var name = v.properties.name
  328. // 地区经纬度
  329. this.geoCoordMap[name] = v.properties.cp
  330. })
  331. // <p>当前阶段:<span>可论证阶段</span></p>
  332. // <p>时间节点:<span>2021.10-2022.10</span></p>
  333. myChart.setOption({
  334. tooltip: {
  335. padding: 15,
  336. enterable: true,
  337. transitionDuration: 1,
  338. formatter: (params, ticket, callback) => {
  339. let tipHtml = `
  340. <div class="tooltip-cont">
  341. <p>新开工:<span>工程建设项目</span></p>
  342. <p>总投资额:<span>${params.data.value}亿</span></p>
  343. </div>`
  344. callback(ticket, tipHtml)
  345. return tipHtml
  346. },
  347. },
  348. visualMap: {
  349. show: false,
  350. min: 0,
  351. max: 300,
  352. right: 0,
  353. bottom: 0,
  354. text: ['高', '低'],
  355. textStyle: {
  356. color: '#f1f1f1'
  357. },
  358. realtime: false,
  359. calculable: false,
  360. inRange: {
  361. color: ['lightskyblue', '#2754b7']
  362. }
  363. },
  364. geo: {
  365. show: true,
  366. map: 'shanxi',
  367. layoutCenter: ['50%', '50%'], //地图位置
  368. layoutSize: '100%',
  369. label: {
  370. normal: {
  371. show: false,
  372. },
  373. emphasis: {
  374. show: false,
  375. },
  376. },
  377. roam: false,
  378. itemStyle: {
  379. normal: {
  380. areaColor: '#1946a8',
  381. shadowColor: '#1946a8',
  382. borderWidth: 1, //设置外层边框
  383. borderColor: '#1946a8',
  384. shadowOffsetX: 10,
  385. shadowOffsetY: 5,
  386. shadowBlur: 2,
  387. },
  388. emphasis: {
  389. areaColor: '#1946a8',
  390. borderColor: '#d4bc1d',
  391. borderWidth: 2, //设置外层边框
  392. },
  393. },
  394. },
  395. series: [
  396. {
  397. name: '散点',
  398. type: 'scatter',
  399. coordinateSystem: 'geo',
  400. data: this.convertData(data),
  401. symbolSize: function (val) {
  402. return 10
  403. },
  404. label: {
  405. normal: {
  406. formatter: '{b}',
  407. position: [10, 10],
  408. fontSize: 15,
  409. fontWeight: 600,
  410. fontStyle: 'italic',
  411. color: '#fff',
  412. show: true,
  413. },
  414. emphasis: {
  415. show: true,
  416. },
  417. },
  418. itemStyle: {
  419. normal: {
  420. color: '#000',
  421. borderWidth: 2,
  422. borderColor: '#fff',
  423. },
  424. },
  425. },
  426. {
  427. type: 'map',
  428. map: this.mapName,
  429. geoIndex: 0,
  430. aspectScale: 0.75, //长宽比
  431. showLegendSymbol: true, // 存在legend时显示
  432. label: {
  433. normal: {
  434. show: true,
  435. },
  436. emphasis: {
  437. show: false,
  438. textStyle: {
  439. color: '#fff',
  440. },
  441. },
  442. },
  443. roam: true,
  444. itemStyle: {
  445. normal: {
  446. areaColor: '#031525',
  447. borderColor: '#3B5077',
  448. },
  449. emphasis: {
  450. areaColor: '#2B91B7',
  451. },
  452. },
  453. animation: false,
  454. data: data,
  455. },
  456. {
  457. name: '点',
  458. type: 'scatter',
  459. coordinateSystem: 'geo',
  460. zlevel: 6,
  461. },
  462. {
  463. name: 'Top 5',
  464. type: 'effectScatter',
  465. coordinateSystem: 'geo',
  466. data: this.convertData(
  467. data
  468. .sort(function (a, b) {
  469. return b.value - a.value
  470. })
  471. .slice(0, 5)
  472. ),
  473. symbolSize: function (val) {
  474. return 15
  475. },
  476. showEffectOn: 'render',
  477. rippleEffect: {
  478. brushType: 'stroke',
  479. },
  480. hoverAnimation: true,
  481. label: {
  482. normal: {
  483. formatter: '{b}',
  484. position: 'left',
  485. show: false,
  486. },
  487. },
  488. itemStyle: {
  489. normal: {
  490. color: 'yellow',
  491. shadowBlur: 10,
  492. shadowColor: 'yellow',
  493. },
  494. },
  495. zlevel: 1000,
  496. },
  497. {
  498. name: '线路',
  499. type: 'lines',
  500. zlevel: 2,
  501. effect: {
  502. show: true,
  503. period: 4, //箭头指向速度,值越小速度越快
  504. trailLength: 0.02, //特效尾迹长度[0,1]值越大,尾迹越长重
  505. symbol: 'arrow', //箭头图标
  506. symbolSize: 5, //图标大小
  507. },
  508. lineStyle: {
  509. normal: {
  510. color: '#00FFFF',
  511. width: 1,
  512. type: 'dashed',
  513. opacity: 0.5, //尾迹线条透明度
  514. curveness: -0.3, //尾迹线条曲直度
  515. },
  516. },
  517. data: moveLine.normal,
  518. },
  519. ],
  520. })
  521. },
  522. initChartL1 () {
  523. let myChart = echarts.init(this.$refs['echartL1'])
  524. let option = {
  525. tooltip: {
  526. trigger: 'item',
  527. },
  528. color: ['#6682f5', '#8ba2ff', '#69c0ff', '#43ede3'],
  529. legend: {
  530. top: 'center',
  531. orient: 'vertical',
  532. right: '2%',
  533. textStyle: {
  534. color: '#9DB9EB',
  535. },
  536. },
  537. series: [
  538. {
  539. name: '',
  540. type: 'pie',
  541. radius: ['55%', '80%'],
  542. labelLine: {
  543. normal: {
  544. lineStyle: {
  545. width: 1,
  546. },
  547. },
  548. },
  549. data: [
  550. { value: 1048, name: '煤炭' },
  551. { value: 735, name: '火电' },
  552. { value: 580, name: '焦化' },
  553. { value: 484, name: '风电' },
  554. ],
  555. },
  556. ],
  557. }
  558. myChart.setOption(option)
  559. },
  560. initChartL2 () {
  561. let myChart = echarts.init(this.$refs['echartL2'])
  562. let option = {
  563. tooltip: {
  564. trigger: 'axis',
  565. axisPointer: {
  566. type: 'cross',
  567. },
  568. },
  569. grid: {
  570. top: '16%',
  571. right: '3%',
  572. left: '10%',
  573. bottom: '22%',
  574. },
  575. legend: {
  576. top: '1',
  577. right: '10',
  578. textStyle: {
  579. color: 'rgba(250,250,250,0.6)',
  580. },
  581. },
  582. xAxis: {
  583. data: [
  584. '家寨水控',
  585. '山西建设',
  586. '华新燃气',
  587. '国际能源',
  588. '汾酒集团',
  589. '大地控股',
  590. '晋能控股',
  591. '华远陆港',
  592. '山西焦煤',
  593. '潞安化工',
  594. '华阳新材',
  595. '太重集团',
  596. '文旅集团',
  597. '航产集团',
  598. '华舰体育',
  599. '神农科技',
  600. '云时代',
  601. '山西交控'
  602. ],
  603. axisLine: {
  604. show: true, //隐藏X轴轴线
  605. lineStyle: {
  606. color: '#005094',
  607. width: 1,
  608. },
  609. },
  610. axisTick: {
  611. show: false, //隐藏X轴刻度
  612. },
  613. axisLabel: {
  614. show: true,
  615. rotate: 50,
  616. textStyle: {
  617. color: 'rgba(255,255,255,0.6)', //X轴文字颜色
  618. },
  619. },
  620. },
  621. yAxis: [
  622. {
  623. type: 'value',
  624. nameTextStyle: {
  625. color: '#ebf8ac',
  626. },
  627. splitLine: {
  628. show: true,
  629. lineStyle: {
  630. color: '#68b4dd66',
  631. type: 'dashed',
  632. },
  633. },
  634. axisLine: {
  635. show: true,
  636. lineStyle: {
  637. color: '#3D7495',
  638. },
  639. },
  640. axisLabel: {
  641. show: true,
  642. textStyle: {
  643. color: 'rgba(250,250,250,0.6)',
  644. },
  645. },
  646. },
  647. ],
  648. series: [
  649. {
  650. name: '计划投资',
  651. type: 'bar',
  652. barWidth: 10,
  653. itemStyle: {
  654. normal: {
  655. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  656. {
  657. offset: 0,
  658. color: '#69c0ff',
  659. },
  660. {
  661. offset: 1,
  662. color: '#082550',
  663. },
  664. ]),
  665. },
  666. },
  667. data: [
  668. 46.99,
  669. 218.3,
  670. 31.83,
  671. 64.20,
  672. 14.03,
  673. 47.05,
  674. 385.2,
  675. 97.57,
  676. 189.0,
  677. 106.8,
  678. 82.95,
  679. 80.01,
  680. 26.79,
  681. 41.09,
  682. 5.33,
  683. 14.76,
  684. 63.45,
  685. 346.36
  686. ],
  687. },
  688. {
  689. name: '实际投资',
  690. type: 'bar',
  691. barWidth: 10,
  692. itemStyle: {
  693. normal: {
  694. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  695. {
  696. offset: 0,
  697. color: '#957DFF',
  698. },
  699. {
  700. offset: 1,
  701. color: '#082550',
  702. },
  703. ]),
  704. },
  705. },
  706. data: [
  707. 50.89,
  708. 143.84,
  709. 25.20,
  710. 12.19,
  711. 7.69,
  712. 23.93,
  713. 224.89,
  714. 112.67,
  715. 121.59,
  716. 59.93,
  717. 71.34,
  718. 42.46,
  719. 9.64,
  720. 42.67,
  721. 0.80,
  722. 5.84,
  723. 32.60,
  724. 335.91
  725. ],
  726. },
  727. ],
  728. }
  729. myChart.setOption(option)
  730. },
  731. initChartR1 () {
  732. let myChart = echarts.init(this.$refs['echartR1'])
  733. let option = {
  734. tooltip: {
  735. trigger: 'axis',
  736. formatter: '{a0}:{c0}' + '<br/>' + '{a1}:{c1}' + '%',
  737. axisPointer: {
  738. type: 'cross',
  739. },
  740. },
  741. grid: {
  742. top: '16%',
  743. right: '10%',
  744. left: '10%',
  745. bottom: '15%',
  746. },
  747. legend: {
  748. top: '1',
  749. textStyle: {
  750. color: 'rgba(250,250,250,0.6)',
  751. },
  752. },
  753. xAxis: {
  754. data: ['煤炭', '火电', '焦化', '物流贸易', '文旅康养', '水务', '生物', '冶金', '建材'],
  755. axisLine: {
  756. show: true, //隐藏X轴轴线
  757. lineStyle: {
  758. color: '#005094',
  759. width: 1,
  760. },
  761. },
  762. axisTick: {
  763. show: false, //隐藏X轴刻度
  764. },
  765. axisLabel: {
  766. show: true,
  767. rotate: 20,
  768. textStyle: {
  769. color: 'rgba(255,255,255,0.6)', //X轴文字颜色
  770. },
  771. },
  772. },
  773. yAxis: [
  774. {
  775. type: 'value',
  776. name: '亿元',
  777. nameTextStyle: {
  778. color: 'rgba(255,255,255,0.6)',
  779. },
  780. splitLine: {
  781. show: true,
  782. lineStyle: {
  783. color: '#68b4dd66',
  784. type: 'dashed',
  785. },
  786. },
  787. axisLine: {
  788. show: true,
  789. lineStyle: {
  790. color: '#3D7495',
  791. },
  792. },
  793. axisLabel: {
  794. show: true,
  795. textStyle: {
  796. color: 'rgba(250,250,250,0.6)',
  797. },
  798. },
  799. },
  800. {
  801. type: 'value',
  802. name: '',
  803. nameTextStyle: {
  804. color: 'rgba(255,255,255,0.6)',
  805. },
  806. axisLine: {
  807. show: false,
  808. lineStyle: {
  809. color: '#3D7495',
  810. },
  811. },
  812. axisLabel: {
  813. show: true,
  814. formatter: '{value} %',
  815. textStyle: {
  816. color: 'rgba(250,250,250,0.6)',
  817. },
  818. },
  819. },
  820. ],
  821. series: [
  822. {
  823. type: 'bar',
  824. name: '柱形数据',
  825. barWidth: 15,
  826. itemStyle: {
  827. normal: {
  828. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  829. {
  830. offset: 0,
  831. color: '#69c0ff',
  832. },
  833. {
  834. offset: 1,
  835. color: '#082550',
  836. },
  837. ]),
  838. },
  839. },
  840. data: [900, 600, 500, 450, 500, 900, 600, 500, 450],
  841. },
  842. {
  843. type: 'line',
  844. name: '折线数据',
  845. barWidth: 15,
  846. yAxisIndex: 1,
  847. itemStyle: {
  848. normal: {
  849. color: '#FBE139',
  850. },
  851. },
  852. data: [60, 50, 45, 50, 100, 45, 60, 45, 20],
  853. },
  854. ],
  855. }
  856. myChart.setOption(option)
  857. },
  858. },
  859. })