investHome2compound.js 40 KB

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