fwyq.vue 97 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448
  1. <template>
  2. <div>
  3. <!-- 阴影背景
  4. <div class="bj_left"><img src="@/assets/images/sprhbj-left.png"/></div>
  5. <div class="bj_right"><img src="@/assets/images/sprhbj-right.png"/></div>-->
  6. <div class="bj_bottom"><img src="@/assets/images/sprhbj-bottom.png"/></div>
  7. <!--头部开始-->
  8. <div class="header">
  9. <h1>城市运行一网统管指挥中心</h1>
  10. </div>
  11. <!--头部结束-->
  12. <!-- 小头部 开始 -->
  13. <div class="nav_min">
  14. <div class="top_txt">
  15. <b>汽开区</b>
  16. <!-- <span>小雨</span>-->
  17. <!-- <span>9~16℃</span>-->
  18. </div>
  19. <div class="top_txt top_txt2">
  20. <span>{{ currentTime }}</span>
  21. <!-- <span>星期六</span>
  22. <b>11:16:58</b> -->
  23. </div>
  24. </div>
  25. <!-- 小头部 结束 -->
  26. <!-- 中间内容 开始 -->
  27. <div class="qkq_con qkq_con2">
  28. <!--左侧开始-->
  29. <div class="con_left_a">
  30. <div class="con_div">
  31. <div class="qkq_tit ">一汽红旗项目服务局</div>
  32. <div class="con_col">
  33. <div class="con_col_c">
  34. <span>招商计划</span>
  35. <b>89</b>
  36. </div>
  37. <div class="con_col_c">
  38. <span>实施计划</span>
  39. <b>76</b>
  40. </div>
  41. <div class="con_col_c">
  42. <span>占比</span>
  43. <b>85%</b>
  44. </div>
  45. </div>
  46. <div id="qkq_chart1" class="qkq_chart"></div>
  47. <div class="con_col_2 clearfix">
  48. <div class="con_col_c">
  49. <span>服务企业</span>
  50. <b>117</b>
  51. <span>次</span>
  52. </div>
  53. <div class="con_col_c">
  54. <span>服务企业</span>
  55. <b>92</b>
  56. <span>家</span>
  57. </div>
  58. <div class="con_col_c">
  59. <span>服务覆盖率</span>
  60. <b>97%</b>
  61. </div>
  62. <div class="con_col_c">
  63. <span>服务满意率</span>
  64. <b>100%</b>
  65. </div>
  66. </div>
  67. </div>
  68. <div class="con_div">
  69. <div class="qkq_tit ">一汽解放项目服务局</div>
  70. <div class="con_col">
  71. <div class="con_col_c">
  72. <span>招商计划</span>
  73. <b>96</b>
  74. </div>
  75. <div class="con_col_c">
  76. <span>实施计划</span>
  77. <b>78</b>
  78. </div>
  79. <div class="con_col_c">
  80. <span>占比</span>
  81. <b>81%</b>
  82. </div>
  83. </div>
  84. <div id="qkq_chart2" class="qkq_chart"></div>
  85. <div class="con_col_2 clearfix">
  86. <div class="con_col_c">
  87. <span>服务企业</span>
  88. <b>147</b>
  89. <span>次</span>
  90. </div>
  91. <div class="con_col_c">
  92. <span>服务企业</span>
  93. <b>118</b>
  94. <span>家</span>
  95. </div>
  96. <div class="con_col_c">
  97. <span>服务覆盖率</span>
  98. <b>93%</b>
  99. </div>
  100. <div class="con_col_c">
  101. <span>服务满意率</span>
  102. <b>96%</b>
  103. </div>
  104. </div>
  105. </div>
  106. <div class="con_div">
  107. <div class="qkq_tit ">一汽轿车项目服务局</div>
  108. <div class="con_col">
  109. <div class="con_col_c">
  110. <span>招商计划</span>
  111. <b>107</b>
  112. </div>
  113. <div class="con_col_c">
  114. <span>实施计划</span>
  115. <b>100</b>
  116. </div>
  117. <div class="con_col_c">
  118. <span>占比</span>
  119. <b>93%</b>
  120. </div>
  121. </div>
  122. <div id="qkq_chart3" class="qkq_chart"></div>
  123. <div class="con_col_2 clearfix">
  124. <div class="con_col_c">
  125. <span>服务企业</span>
  126. <b>128</b>
  127. <span>次</span>
  128. </div>
  129. <div class="con_col_c">
  130. <span>服务企业</span>
  131. <b>113</b>
  132. <span>家</span>
  133. </div>
  134. <div class="con_col_c">
  135. <span>服务覆盖率</span>
  136. <b>96%</b>
  137. </div>
  138. <div class="con_col_c">
  139. <span>服务满意率</span>
  140. <b>99%</b>
  141. </div>
  142. </div>
  143. </div>
  144. </div>
  145. <div class="con_left_b">
  146. <div class="con_div">
  147. <div class="qkq_tit txt_t">政策法规</div>
  148. <div class="qkq_zcfg">
  149. <p>严格防范外债风险和地方债务风险<span>2024-07-08</span></p>
  150. <p>进一步加强城市轨道交通规划建设<span>2024-07-06</span></p>
  151. <p>地方政府债券信息公开平台管理办法<span>2024-06-30</span></p>
  152. <p>加快地方政府专项债券发行使用有关<span>2024-06-24</span></p>
  153. <p>土地储备项目预算管理办法(试行)<span>2024-06-15</span></p>
  154. <p>地方政府债务信息公开办法(试行)<span>2024-06-01</span></p>
  155. <p>地方政府专项债券用途调整操作指引<span>2024-05-31</span></p>
  156. <p>地方政府专项债券项目资金绩效管理<span>2024-05-24</span></p>
  157. <p>增强企业债券服务实体经济能力<span>2024-05-13</span></p>
  158. <p>严格防范地方债务风险的通知<span>2024-05-06</span></p>
  159. </div>
  160. <div id="qkq_zxt"></div>
  161. </div>
  162. <div class="con_div" style="margin-top: 56px;">
  163. <div class="qkq_tit txt_t">万人助万企</div>
  164. <div class="qkq_wrzwq qkq_wr clearfix">
  165. <div class="qkq_si_div">
  166. <p><b>728</b><span>次</span></p>
  167. <p>深入企业</p>
  168. </div>
  169. <div class="qkq_si_div">
  170. <p><b>787</b><span>万元</span></p>
  171. <p>输送补贴</p>
  172. </div>
  173. <div class="qkq_si_div">
  174. <p><b>187</b><span>个</span></p>
  175. <p>输送岗位</p>
  176. </div>
  177. <div class="qkq_si_div">
  178. <p><b>92</b><span>项</span></p>
  179. <p>提供政策</p>
  180. </div>
  181. </div>
  182. </div>
  183. </div>
  184. <div class="con_left_c">
  185. <div class="con_div">
  186. <div class="qkq_tit txt_t">招商指标/实施数量</div>
  187. <div class="clearfix">
  188. <div id="qkq_zszb1"></div>
  189. <div id="qkq_zszb2"></div>
  190. <div class="qkq_zsss">
  191. <p>招商指标:50个</p>
  192. <p>实施数量:91个</p>
  193. </div>
  194. </div>
  195. </div>
  196. <div class="con_div">
  197. <div id="qkq_btzb"></div>
  198. </div>
  199. <div class="con_div">
  200. <div class="qkq_tit txt_t">服务企业台账</div>
  201. <div class="qkq_wrzwq qkq_tz clearfix">
  202. <div class="qkq_si_div">
  203. <p><b>177</b><span>次</span></p>
  204. <p>服务企业</p>
  205. </div>
  206. <div class="qkq_si_div">
  207. <p><b>92</b><span>家</span></p>
  208. <p>服务企业</p>
  209. </div>
  210. <div class="qkq_si_div">
  211. <p><b>97%</b></p>
  212. <p>服务覆盖率</p>
  213. </div>
  214. <div class="qkq_si_div">
  215. <p><b>100%</b></p>
  216. <p>服务满意率</p>
  217. </div>
  218. </div>
  219. </div>
  220. </div>
  221. <div class="con_left_d">
  222. <div class="con_div">
  223. <div class="qkq_tit ">汽车零部件产业局</div>
  224. <div class="con_col">
  225. <div class="con_col_c">
  226. <span>招商计划</span>
  227. <b>74</b>
  228. </div>
  229. <div class="con_col_c">
  230. <span>实施计划</span>
  231. <b>70</b>
  232. </div>
  233. <div class="con_col_c">
  234. <span>占比</span>
  235. <b>95%</b>
  236. </div>
  237. </div>
  238. <div id="qkq_chart4" class="qkq_chart"></div>
  239. <div class="con_col_2 clearfix">
  240. <div class="con_col_c">
  241. <span>服务企业</span>
  242. <b>86</b>
  243. <span>次</span>
  244. </div>
  245. <div class="con_col_c">
  246. <span>服务企业</span>
  247. <b>74</b>
  248. <span>家</span>
  249. </div>
  250. <div class="con_col_c">
  251. <span>服务覆盖率</span>
  252. <b>86%</b>
  253. </div>
  254. <div class="con_col_c">
  255. <span>服务满意率</span>
  256. <b>98%</b>
  257. </div>
  258. </div>
  259. </div>
  260. <div class="con_div">
  261. <div class="qkq_tit ">一汽大众项目服务局</div>
  262. <div class="con_col">
  263. <div class="con_col_c">
  264. <span>招商计划</span>
  265. <b>256</b>
  266. </div>
  267. <div class="con_col_c">
  268. <span>实施计划</span>
  269. <b>204</b>
  270. </div>
  271. <div class="con_col_c">
  272. <span>占比</span>
  273. <b>79%</b>
  274. </div>
  275. </div>
  276. <div id="qkq_chart5" class="qkq_chart"></div>
  277. <div class="con_col_2 clearfix">
  278. <div class="con_col_c">
  279. <span>服务企业</span>
  280. <b>147</b>
  281. <span>次</span>
  282. </div>
  283. <div class="con_col_c">
  284. <span>服务企业</span>
  285. <b>140</b>
  286. <span>家</span>
  287. </div>
  288. <div class="con_col_c">
  289. <span>服务覆盖率</span>
  290. <b>95%</b>
  291. </div>
  292. <div class="con_col_c">
  293. <span>服务满意率</span>
  294. <b>100%</b>
  295. </div>
  296. </div>
  297. </div>
  298. <div class="con_div">
  299. <div class="qkq_tit ">一汽丰田项目服务局</div>
  300. <div class="con_col">
  301. <div class="con_col_c">
  302. <span>招商计划</span>
  303. <b>141</b>
  304. </div>
  305. <div class="con_col_c">
  306. <span>实施计划</span>
  307. <b>134</b>
  308. </div>
  309. <div class="con_col_c">
  310. <span>占比</span>
  311. <b>95%</b>
  312. </div>
  313. </div>
  314. <div id="qkq_chart6" class="qkq_chart"></div>
  315. <div class="con_col_2 clearfix">
  316. <div class="con_col_c">
  317. <span>服务企业</span>
  318. <b>92</b>
  319. <span>次</span>
  320. </div>
  321. <div class="con_col_c">
  322. <span>服务企业</span>
  323. <b>90</b>
  324. <span>家</span>
  325. </div>
  326. <div class="con_col_c">
  327. <span>服务覆盖率</span>
  328. <b>98%</b>
  329. </div>
  330. <div class="con_col_c">
  331. <span>服务满意率</span>
  332. <b>100%</b>
  333. </div>
  334. </div>
  335. </div>
  336. </div>
  337. <!--左侧结束-->
  338. </div>
  339. <!-- 中间内容 结束 -->
  340. <!--底部开始-->
  341. <div class="footer">
  342. <div class="nav-bottom">
  343. <div class="nav-bottom-left">
  344. <div class="nav-li-left" @click="handleNavigation('jjyx')">
  345. <span>经济运行</span>
  346. </div>
  347. <div class="nav-li-left" @click="handleNavigation('csgl')">
  348. <span>城市管理</span>
  349. </div>
  350. <div class="nav-li-left" @click="handleNavigation('jtzl')">
  351. <span>交通治理</span>
  352. </div>
  353. <div class="nav-li-left" @click="handleNavigation('jczl')">
  354. <span>基层治理</span>
  355. </div>
  356. </div>
  357. <div class="nav-home-middle" @click="homePage('weather')">
  358. <img src="@/assets/images/home-btn.png"/>
  359. <a>返回首页</a>
  360. </div>
  361. <div class="nav-bottom-right">
  362. <div class="nav-li-right" @click="handleNavigation('yshj_new')">
  363. <span>营商环境</span>
  364. </div>
  365. <div class="nav-li-right" @click="handleNavigation('bjzshz')">
  366. <span>政务运行</span>
  367. </div>
  368. <div class="nav-li-right" @click="handleNavigation('aqyj')">
  369. <span>安全应急</span>
  370. </div>
  371. <div class="nav-li-right on" @click="handleNavigation('fwyq')">
  372. <span>服务一汽</span>
  373. </div>
  374. </div>
  375. </div>
  376. </div>
  377. <!--底部开始-->
  378. </div>
  379. </template>
  380. <script>
  381. import * as echarts from 'echarts'
  382. import $ from 'jquery'
  383. import jQuery from 'jquery'
  384. import "@/assets/images/qkq_body.css";
  385. import "@/assets/images/qkq_index.css";
  386. import "@/assets/images/qkq_sprh.css";
  387. import {getCameraList} from "@/api/system/camera";
  388. import supermap from "@/views/supermap/supermap";
  389. export default {
  390. name: "fwyq",
  391. components: {
  392. supermap
  393. },
  394. data() {
  395. return {
  396. dropdownVisible: false,
  397. cameras: [],
  398. sltProps: null,
  399. currentTime: '',
  400. btnOne: true,
  401. btnTwo: false
  402. };
  403. // 可根据实际情况添加更多设备列表
  404. },
  405. created() {
  406. },
  407. mounted() {
  408. this.qkq_chart1();
  409. this.qkq_chart2();
  410. this.qkq_chart3();
  411. this.qkq_chart4();
  412. this.qkq_chart5();
  413. this.qkq_chart6();
  414. this.getCurrentTime();
  415. this.qkq_zxt();
  416. this.qkq_zszb1();
  417. this.qkq_zszb2();
  418. this.qkq_btzb();
  419. // 每秒刷新时间
  420. setInterval(() => {
  421. this.getCurrentTime();
  422. }, 1000);
  423. },
  424. methods: {
  425. sltHandle() {
  426. this.btnOne = true
  427. this.btnTwo = false
  428. this.$refs.supermap.getSupermap(null, null, null, "slt", null, null)
  429. },
  430. yxtHandle() {
  431. this.btnTwo = true
  432. this.btnOne = false
  433. this.$refs.supermap.getSupermap(null, null, null, "yxt", null, null)
  434. },
  435. handleNavigation(route) {
  436. this.$router.push({path: route});
  437. },
  438. homePage(route) {
  439. this.$router.push({path: route});
  440. },
  441. cameraList() {
  442. getCameraList().then(response => {
  443. this.cameras = response.data;
  444. })
  445. },
  446. toggleDropdown(event) {
  447. this.dropdownVisible = !this.dropdownVisible;
  448. },
  449. qkq_chart1() {
  450. //一汽红旗项目服务局
  451. var myChart = echarts.init(document.getElementById('qkq_chart1'));
  452. var baifenbi = [0.44, 0.56];
  453. var zongjine = [324, 254];
  454. var xingm = ['工业类招商', '商业类招商'];
  455. var option = {
  456. color: ['#4171ab'], //进度条颜色
  457. grid: {
  458. left: '2%', //如果离左边太远就用这个......
  459. right: '2%',
  460. bottom: '-20',
  461. top: '5%',
  462. containLabel: true
  463. },
  464. xAxis: [{
  465. show: false,
  466. },
  467. //由于下边X轴已经是百分比刻度了,所以需要在顶部加一个X轴,刻度是金额,也隐藏掉
  468. {
  469. show: false,
  470. }
  471. ],
  472. yAxis: [{
  473. type: 'category',
  474. axisLabel: {
  475. show: false, //让Y轴数据不显示
  476. },
  477. itemStyle: {},
  478. axisTick: {
  479. show: false, //隐藏Y轴刻度
  480. },
  481. axisLine: {
  482. show: false, //隐藏Y轴线段
  483. },
  484. data: xingm,
  485. }, {
  486. show: true,
  487. inverse: true,
  488. data: zongjine,
  489. axisLabel: {
  490. textStyle: {
  491. fontSize: 14,
  492. color: '#02d9fc'
  493. },
  494. formatter: '{value} '
  495. },
  496. axisLine: {
  497. show: false
  498. },
  499. splitLine: {
  500. show: false
  501. },
  502. axisTick: {
  503. show: false
  504. },
  505. }],
  506. series: [
  507. //蓝条--------------------我是分割线君------------------------------//
  508. {
  509. show: true,
  510. type: 'bar',
  511. barGap: '-100%',
  512. barWidth: '35%', //统计条宽度
  513. itemStyle: {
  514. normal: {
  515. color: function (params) {
  516. return {
  517. type: 'linear',
  518. x: 0,
  519. y: 1,
  520. x2: 0,
  521. y2: 0,
  522. colorStops: [{
  523. offset: 0,
  524. color: '#0d3b91'
  525. }, {
  526. offset: 1,
  527. color: '#00abda'
  528. }],
  529. }
  530. },
  531. },
  532. },
  533. max: 1,
  534. labelLine: {
  535. show: false,
  536. },
  537. z: 2,
  538. data: baifenbi,
  539. },
  540. {
  541. type: 'lines',
  542. coordinateSystem: 'cartesian2d',
  543. data: baifenbi.map((item, index) => {
  544. return {
  545. coords: [
  546. [0, index],
  547. [item, index],
  548. ]
  549. };
  550. }),
  551. effect: {
  552. show: true,
  553. period: 5,
  554. trailLength: 0.5, //控制拖尾长度
  555. symbolSize: [15, 2],
  556. symbol: this.$store.state.common.echarts_baseStreamer,
  557. loop: true,
  558. color: '#fff' //流光颜色
  559. },
  560. lineStyle: {
  561. width: 0,
  562. opacity: 0.6,
  563. curveness: 0
  564. },
  565. z: 99
  566. },
  567. //数据条--------------------我是分割线君------------------------------//
  568. {
  569. show: true,
  570. type: 'bar',
  571. xAxisIndex: 1, //代表使用第二个X轴刻度!!!!!!!!!!!!!!!!!!!!!!!!
  572. barGap: '-100%',
  573. barWidth: '45%', //统计条宽度
  574. itemStyle: {
  575. normal: {
  576. barBorderRadius: 200,
  577. color: 'rgba(20, 47, 104, 0.0)'
  578. },
  579. },
  580. label: {
  581. normal: {
  582. show: true,
  583. //label 的position位置可以是top bottom left,right,也可以是固定值
  584. //在这里需要上下统一对齐,所以用固定值
  585. position: [0, '-100%'],
  586. rich: { //富文本
  587. white: { //自定义颜色
  588. color: '#ffffff',
  589. },
  590. green: {
  591. color: '#70DDA7',
  592. },
  593. yellow: {
  594. color: '#CCB877',
  595. },
  596. red: {
  597. color: '#BC3C47',
  598. },
  599. gray: {
  600. color: '#727CBA'
  601. }
  602. },
  603. formatter: function (data) {
  604. //富文本固定格式{colorName|这里填你想要写的内容}
  605. return '{white|' + xingm[data.dataIndex] + '}';
  606. },
  607. }
  608. },
  609. data: zongjine
  610. }
  611. ]
  612. };
  613. if (option) {
  614. myChart.setOption(option);
  615. }
  616. },
  617. qkq_chart2() {
  618. //一汽解放项目服务局
  619. var myChart = echarts.init(document.getElementById('qkq_chart2'));
  620. var baifenbi = [0.64, 0.36];
  621. var zongjine = [265, 421];
  622. var xingm = ['工业类招商', '商业类招商'];
  623. var option = {
  624. color: ['#61A8FF'], //进度条颜色
  625. grid: {
  626. left: '2%', //如果离左边太远就用这个......
  627. right: '2%',
  628. bottom: '-20',
  629. top: '5%',
  630. containLabel: true
  631. },
  632. xAxis: [{
  633. show: false,
  634. },
  635. //由于下边X轴已经是百分比刻度了,所以需要在顶部加一个X轴,刻度是金额,也隐藏掉
  636. {
  637. show: false,
  638. }
  639. ],
  640. yAxis: [{
  641. type: 'category',
  642. axisLabel: {
  643. show: false, //让Y轴数据不显示
  644. },
  645. itemStyle: {},
  646. axisTick: {
  647. show: false, //隐藏Y轴刻度
  648. },
  649. axisLine: {
  650. show: false, //隐藏Y轴线段
  651. },
  652. data: xingm,
  653. }, {
  654. show: true,
  655. inverse: true,
  656. data: zongjine,
  657. axisLabel: {
  658. textStyle: {
  659. fontSize: 14,
  660. color: '#02d9fc'
  661. },
  662. formatter: '{value} '
  663. },
  664. axisLine: {
  665. show: false
  666. },
  667. splitLine: {
  668. show: false
  669. },
  670. axisTick: {
  671. show: false
  672. },
  673. }],
  674. series: [
  675. //蓝条--------------------我是分割线君------------------------------//
  676. {
  677. show: true,
  678. type: 'bar',
  679. barGap: '-100%',
  680. barWidth: '35%', //统计条宽度
  681. itemStyle: {
  682. normal: {
  683. color: function (params) {
  684. return {
  685. type: 'linear',
  686. x: 0,
  687. y: 1,
  688. x2: 0,
  689. y2: 0,
  690. colorStops: [{
  691. offset: 0,
  692. color: '#0d3b91'
  693. }, {
  694. offset: 1,
  695. color: '#00abda'
  696. }],
  697. }
  698. },
  699. },
  700. },
  701. max: 1,
  702. labelLine: {
  703. show: false,
  704. },
  705. z: 2,
  706. data: baifenbi,
  707. },
  708. {
  709. type: 'lines',
  710. coordinateSystem: 'cartesian2d',
  711. data: baifenbi.map((item, index) => {
  712. return {
  713. coords: [
  714. [0, index],
  715. [item, index],
  716. ]
  717. };
  718. }),
  719. effect: {
  720. show: true,
  721. period: 5,
  722. trailLength: 0.5, //控制拖尾长度
  723. symbolSize: [15, 2],
  724. symbol: this.$store.state.common.echarts_baseStreamer,
  725. loop: true,
  726. color: '#fff' //流光颜色
  727. },
  728. lineStyle: {
  729. width: 0,
  730. opacity: 0.6,
  731. curveness: 0
  732. },
  733. z: 99
  734. },
  735. //数据条--------------------我是分割线君------------------------------//
  736. {
  737. show: true,
  738. type: 'bar',
  739. xAxisIndex: 1, //代表使用第二个X轴刻度!!!!!!!!!!!!!!!!!!!!!!!!
  740. barGap: '-100%',
  741. barWidth: '45%', //统计条宽度
  742. itemStyle: {
  743. normal: {
  744. barBorderRadius: 200,
  745. color: 'rgba(20, 47, 104, 0.0)'
  746. },
  747. },
  748. label: {
  749. normal: {
  750. show: true,
  751. //label 的position位置可以是top bottom left,right,也可以是固定值
  752. //在这里需要上下统一对齐,所以用固定值
  753. position: [0, '-100%'],
  754. rich: { //富文本
  755. white: { //自定义颜色
  756. color: '#ffffff',
  757. },
  758. green: {
  759. color: '#70DDA7',
  760. },
  761. yellow: {
  762. color: '#CCB877',
  763. },
  764. red: {
  765. color: '#BC3C47',
  766. },
  767. gray: {
  768. color: '#727CBA'
  769. }
  770. },
  771. formatter: function (data) {
  772. //富文本固定格式{colorName|这里填你想要写的内容}
  773. return '{white|' + xingm[data.dataIndex] + '}';
  774. },
  775. }
  776. },
  777. data: zongjine
  778. }
  779. ]
  780. };
  781. if (option) {
  782. myChart.setOption(option);
  783. }
  784. },
  785. qkq_chart3() {
  786. // 一汽轿车项目服务局
  787. var myChart = echarts.init(document.getElementById('qkq_chart3'));
  788. var baifenbi = [0.79, 0.21];
  789. var zongjine = [196, 458];
  790. var xingm = ['工业类招商', '商业类招商'];
  791. var option = {
  792. color: ['#61A8FF'], //进度条颜色
  793. grid: {
  794. left: '2%', //如果离左边太远就用这个......
  795. right: '2%',
  796. bottom: '-20',
  797. top: '5%',
  798. containLabel: true
  799. },
  800. xAxis: [{
  801. show: false,
  802. },
  803. //由于下边X轴已经是百分比刻度了,所以需要在顶部加一个X轴,刻度是金额,也隐藏掉
  804. {
  805. show: false,
  806. }
  807. ],
  808. yAxis: [{
  809. type: 'category',
  810. axisLabel: {
  811. show: false, //让Y轴数据不显示
  812. },
  813. itemStyle: {},
  814. axisTick: {
  815. show: false, //隐藏Y轴刻度
  816. },
  817. axisLine: {
  818. show: false, //隐藏Y轴线段
  819. },
  820. data: xingm,
  821. }, {
  822. show: true,
  823. inverse: true,
  824. data: zongjine,
  825. axisLabel: {
  826. textStyle: {
  827. fontSize: 14,
  828. color: '#02d9fc'
  829. },
  830. formatter: '{value} '
  831. },
  832. axisLine: {
  833. show: false
  834. },
  835. splitLine: {
  836. show: false
  837. },
  838. axisTick: {
  839. show: false
  840. },
  841. }],
  842. series: [
  843. //蓝条--------------------我是分割线君------------------------------//
  844. {
  845. show: true,
  846. type: 'bar',
  847. barGap: '-100%',
  848. barWidth: '35%', //统计条宽度
  849. itemStyle: {
  850. normal: {
  851. color: function (params) {
  852. return {
  853. type: 'linear',
  854. x: 0,
  855. y: 1,
  856. x2: 0,
  857. y2: 0,
  858. colorStops: [{
  859. offset: 0,
  860. color: '#0d3b91'
  861. }, {
  862. offset: 1,
  863. color: '#00abda'
  864. }],
  865. }
  866. },
  867. },
  868. },
  869. max: 1,
  870. labelLine: {
  871. show: false,
  872. },
  873. z: 2,
  874. data: baifenbi,
  875. },
  876. {
  877. type: 'lines',
  878. coordinateSystem: 'cartesian2d',
  879. data: baifenbi.map((item, index) => {
  880. return {
  881. coords: [
  882. [0, index],
  883. [item, index],
  884. ]
  885. };
  886. }),
  887. effect: {
  888. show: true,
  889. period: 5,
  890. trailLength: 0.5, //控制拖尾长度
  891. symbolSize: [15, 2],
  892. symbol: this.$store.state.common.echarts_baseStreamer,
  893. loop: true,
  894. color: '#fff' //流光颜色
  895. },
  896. lineStyle: {
  897. width: 0,
  898. opacity: 0.6,
  899. curveness: 0
  900. },
  901. z: 99
  902. },
  903. //数据条--------------------我是分割线君------------------------------//
  904. {
  905. show: true,
  906. type: 'bar',
  907. xAxisIndex: 1, //代表使用第二个X轴刻度!!!!!!!!!!!!!!!!!!!!!!!!
  908. barGap: '-100%',
  909. barWidth: '45%', //统计条宽度
  910. itemStyle: {
  911. normal: {
  912. barBorderRadius: 200,
  913. color: 'rgba(20, 47, 104, 0.0)'
  914. },
  915. },
  916. label: {
  917. normal: {
  918. show: true,
  919. //label 的position位置可以是top bottom left,right,也可以是固定值
  920. //在这里需要上下统一对齐,所以用固定值
  921. position: [0, '-100%'],
  922. rich: { //富文本
  923. white: { //自定义颜色
  924. color: '#ffffff',
  925. },
  926. green: {
  927. color: '#70DDA7',
  928. },
  929. yellow: {
  930. color: '#CCB877',
  931. },
  932. red: {
  933. color: '#BC3C47',
  934. },
  935. gray: {
  936. color: '#727CBA'
  937. }
  938. },
  939. formatter: function (data) {
  940. //富文本固定格式{colorName|这里填你想要写的内容}
  941. return '{white|' + xingm[data.dataIndex] + '}';
  942. },
  943. }
  944. },
  945. data: zongjine
  946. }
  947. ]
  948. };
  949. if (option) {
  950. myChart.setOption(option);
  951. }
  952. },
  953. getCurrentTime() {
  954. const now = new Date();
  955. const year = now.getFullYear();
  956. const month = now.getMonth() + 1;
  957. const date = now.getDate();
  958. const day = now.getDay();
  959. const weekDays = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
  960. const hour = now.getHours();
  961. const minute = now.getMinutes();
  962. const second = now.getSeconds();
  963. const formattedMonth = month < 10 ? `0${month}` : month;
  964. const formattedDate = date < 10 ? `0${date}` : date;
  965. const formattedHour = hour < 10 ? `0${hour}` : hour;
  966. const formattedMinute = minute < 10 ? `0${minute}` : minute;
  967. const formattedSecond = second < 10 ? `0${second}` : second;
  968. this.currentTime = `${year}年${formattedMonth}月${formattedDate}日 ${weekDays[day]} ${formattedHour}:${formattedMinute}:${formattedSecond}`;
  969. },
  970. qkq_chart4() {
  971. var myChart = echarts.init(document.getElementById('qkq_chart4'));
  972. var baifenbi = [0.42, 0.58];
  973. var zongjine = [324, 296];
  974. var xingm = ['工业类招商', '商业类招商'];
  975. var option = {
  976. color: ['#61A8FF'], //进度条颜色
  977. grid: {
  978. left: '2%', //如果离左边太远就用这个......
  979. right: '2%',
  980. bottom: '-20',
  981. top: '5%',
  982. containLabel: true
  983. },
  984. xAxis: [{
  985. show: false,
  986. },
  987. //由于下边X轴已经是百分比刻度了,所以需要在顶部加一个X轴,刻度是金额,也隐藏掉
  988. {
  989. show: false,
  990. }
  991. ],
  992. yAxis: [{
  993. type: 'category',
  994. axisLabel: {
  995. show: false, //让Y轴数据不显示
  996. },
  997. itemStyle: {},
  998. axisTick: {
  999. show: false, //隐藏Y轴刻度
  1000. },
  1001. axisLine: {
  1002. show: false, //隐藏Y轴线段
  1003. },
  1004. data: xingm,
  1005. }, {
  1006. show: true,
  1007. inverse: true,
  1008. data: zongjine,
  1009. axisLabel: {
  1010. textStyle: {
  1011. fontSize: 14,
  1012. color: '#02d9fc'
  1013. },
  1014. formatter: '{value} '
  1015. },
  1016. axisLine: {
  1017. show: false
  1018. },
  1019. splitLine: {
  1020. show: false
  1021. },
  1022. axisTick: {
  1023. show: false
  1024. },
  1025. }],
  1026. series: [
  1027. //蓝条--------------------我是分割线君------------------------------//
  1028. {
  1029. show: true,
  1030. type: 'bar',
  1031. barGap: '-100%',
  1032. barWidth: '35%', //统计条宽度
  1033. itemStyle: {
  1034. normal: {
  1035. color: function (params) {
  1036. return {
  1037. type: 'linear',
  1038. x: 0,
  1039. y: 1,
  1040. x2: 0,
  1041. y2: 0,
  1042. colorStops: [{
  1043. offset: 0,
  1044. color: '#0d3b91'
  1045. }, {
  1046. offset: 1,
  1047. color: '#00abda'
  1048. }],
  1049. }
  1050. },
  1051. },
  1052. },
  1053. max: 1,
  1054. labelLine: {
  1055. show: false,
  1056. },
  1057. z: 2,
  1058. data: baifenbi,
  1059. },
  1060. {
  1061. type: 'lines',
  1062. coordinateSystem: 'cartesian2d',
  1063. data: baifenbi.map((item, index) => {
  1064. return {
  1065. coords: [
  1066. [0, index],
  1067. [item, index],
  1068. ]
  1069. };
  1070. }),
  1071. effect: {
  1072. show: true,
  1073. period: 5,
  1074. trailLength: 0.5, //控制拖尾长度
  1075. symbolSize: [15, 2],
  1076. symbol: this.$store.state.common.echarts_baseStreamer,
  1077. loop: true,
  1078. color: '#fff' //流光颜色
  1079. },
  1080. lineStyle: {
  1081. width: 0,
  1082. opacity: 0.6,
  1083. curveness: 0
  1084. },
  1085. z: 99
  1086. },
  1087. //数据条--------------------我是分割线君------------------------------//
  1088. {
  1089. show: true,
  1090. type: 'bar',
  1091. xAxisIndex: 1, //代表使用第二个X轴刻度!!!!!!!!!!!!!!!!!!!!!!!!
  1092. barGap: '-100%',
  1093. barWidth: '45%', //统计条宽度
  1094. itemStyle: {
  1095. normal: {
  1096. barBorderRadius: 200,
  1097. color: 'rgba(20, 47, 104, 0.0)'
  1098. },
  1099. },
  1100. label: {
  1101. normal: {
  1102. show: true,
  1103. //label 的position位置可以是top bottom left,right,也可以是固定值
  1104. //在这里需要上下统一对齐,所以用固定值
  1105. position: [0, '-100%'],
  1106. rich: { //富文本
  1107. white: { //自定义颜色
  1108. color: '#ffffff',
  1109. },
  1110. green: {
  1111. color: '#70DDA7',
  1112. },
  1113. yellow: {
  1114. color: '#CCB877',
  1115. },
  1116. red: {
  1117. color: '#BC3C47',
  1118. },
  1119. gray: {
  1120. color: '#727CBA'
  1121. }
  1122. },
  1123. formatter: function (data) {
  1124. //富文本固定格式{colorName|这里填你想要写的内容}
  1125. return '{white|' + xingm[data.dataIndex] + '}';
  1126. },
  1127. }
  1128. },
  1129. data: zongjine
  1130. }
  1131. ]
  1132. };
  1133. if (option) {
  1134. myChart.setOption(option);
  1135. }
  1136. },
  1137. qkq_chart5() {
  1138. //摄像头统计
  1139. var myChart = echarts.init(document.getElementById('qkq_chart5'));
  1140. var baifenbi = [0.47, 0.53];
  1141. var zongjine = [425, 412];
  1142. var xingm = ['工业类招商', '商业类招商'];
  1143. var option = {
  1144. color: ['#61A8FF'], //进度条颜色
  1145. grid: {
  1146. left: '2%', //如果离左边太远就用这个......
  1147. right: '2%',
  1148. bottom: '-20',
  1149. top: '5%',
  1150. containLabel: true
  1151. },
  1152. xAxis: [{
  1153. show: false,
  1154. },
  1155. //由于下边X轴已经是百分比刻度了,所以需要在顶部加一个X轴,刻度是金额,也隐藏掉
  1156. {
  1157. show: false,
  1158. }
  1159. ],
  1160. yAxis: [{
  1161. type: 'category',
  1162. axisLabel: {
  1163. show: false, //让Y轴数据不显示
  1164. },
  1165. itemStyle: {},
  1166. axisTick: {
  1167. show: false, //隐藏Y轴刻度
  1168. },
  1169. axisLine: {
  1170. show: false, //隐藏Y轴线段
  1171. },
  1172. data: xingm,
  1173. }, {
  1174. show: true,
  1175. inverse: true,
  1176. data: zongjine,
  1177. axisLabel: {
  1178. textStyle: {
  1179. fontSize: 14,
  1180. color: '#02d9fc'
  1181. },
  1182. formatter: '{value} '
  1183. },
  1184. axisLine: {
  1185. show: false
  1186. },
  1187. splitLine: {
  1188. show: false
  1189. },
  1190. axisTick: {
  1191. show: false
  1192. },
  1193. }],
  1194. series: [
  1195. //蓝条--------------------我是分割线君------------------------------//
  1196. {
  1197. show: true,
  1198. type: 'bar',
  1199. barGap: '-100%',
  1200. barWidth: '35%', //统计条宽度
  1201. itemStyle: {
  1202. normal: {
  1203. color: function (params) {
  1204. return {
  1205. type: 'linear',
  1206. x: 0,
  1207. y: 1,
  1208. x2: 0,
  1209. y2: 0,
  1210. colorStops: [{
  1211. offset: 0,
  1212. color: '#0d3b91'
  1213. }, {
  1214. offset: 1,
  1215. color: '#00abda'
  1216. }],
  1217. }
  1218. },
  1219. },
  1220. },
  1221. max: 1,
  1222. labelLine: {
  1223. show: false,
  1224. },
  1225. z: 2,
  1226. data: baifenbi,
  1227. },
  1228. {
  1229. type: 'lines',
  1230. coordinateSystem: 'cartesian2d',
  1231. data: baifenbi.map((item, index) => {
  1232. return {
  1233. coords: [
  1234. [0, index],
  1235. [item, index],
  1236. ]
  1237. };
  1238. }),
  1239. effect: {
  1240. show: true,
  1241. period: 5,
  1242. trailLength: 0.5, //控制拖尾长度
  1243. symbolSize: [15, 2],
  1244. symbol: this.$store.state.common.echarts_baseStreamer,
  1245. loop: true,
  1246. color: '#fff' //流光颜色
  1247. },
  1248. lineStyle: {
  1249. width: 0,
  1250. opacity: 0.6,
  1251. curveness: 0
  1252. },
  1253. z: 99
  1254. },
  1255. //数据条--------------------我是分割线君------------------------------//
  1256. {
  1257. show: true,
  1258. type: 'bar',
  1259. xAxisIndex: 1, //代表使用第二个X轴刻度!!!!!!!!!!!!!!!!!!!!!!!!
  1260. barGap: '-100%',
  1261. barWidth: '45%', //统计条宽度
  1262. itemStyle: {
  1263. normal: {
  1264. barBorderRadius: 200,
  1265. color: 'rgba(20, 47, 104, 0.0)'
  1266. },
  1267. },
  1268. label: {
  1269. normal: {
  1270. show: true,
  1271. //label 的position位置可以是top bottom left,right,也可以是固定值
  1272. //在这里需要上下统一对齐,所以用固定值
  1273. position: [0, '-100%'],
  1274. rich: { //富文本
  1275. white: { //自定义颜色
  1276. color: '#ffffff',
  1277. },
  1278. green: {
  1279. color: '#70DDA7',
  1280. },
  1281. yellow: {
  1282. color: '#CCB877',
  1283. },
  1284. red: {
  1285. color: '#BC3C47',
  1286. },
  1287. gray: {
  1288. color: '#727CBA'
  1289. }
  1290. },
  1291. formatter: function (data) {
  1292. //富文本固定格式{colorName|这里填你想要写的内容}
  1293. return '{white|' + xingm[data.dataIndex] + '}';
  1294. },
  1295. }
  1296. },
  1297. data: zongjine
  1298. }
  1299. ]
  1300. };
  1301. if (option) {
  1302. myChart.setOption(option);
  1303. }
  1304. },
  1305. qkq_chart6() {
  1306. //摄像头统计
  1307. var myChart = echarts.init(document.getElementById('qkq_chart6'));
  1308. var baifenbi = [0.66, 0.34];
  1309. var zongjine = [167, 420];
  1310. var xingm = ['工业类招商', '商业类招商'];
  1311. var option = {
  1312. color: ['#61A8FF'], //进度条颜色
  1313. grid: {
  1314. left: '2%', //如果离左边太远就用这个......
  1315. right: '2%',
  1316. bottom: '-20',
  1317. top: '5%',
  1318. containLabel: true
  1319. },
  1320. xAxis: [{
  1321. show: false,
  1322. },
  1323. //由于下边X轴已经是百分比刻度了,所以需要在顶部加一个X轴,刻度是金额,也隐藏掉
  1324. {
  1325. show: false,
  1326. }
  1327. ],
  1328. yAxis: [{
  1329. type: 'category',
  1330. axisLabel: {
  1331. show: false, //让Y轴数据不显示
  1332. },
  1333. itemStyle: {},
  1334. axisTick: {
  1335. show: false, //隐藏Y轴刻度
  1336. },
  1337. axisLine: {
  1338. show: false, //隐藏Y轴线段
  1339. },
  1340. data: xingm,
  1341. }, {
  1342. show: true,
  1343. inverse: true,
  1344. data: zongjine,
  1345. axisLabel: {
  1346. textStyle: {
  1347. fontSize: 14,
  1348. color: '#02d9fc'
  1349. },
  1350. formatter: '{value} '
  1351. },
  1352. axisLine: {
  1353. show: false
  1354. },
  1355. splitLine: {
  1356. show: false
  1357. },
  1358. axisTick: {
  1359. show: false
  1360. },
  1361. }],
  1362. series: [
  1363. //蓝条--------------------我是分割线君------------------------------//
  1364. {
  1365. show: true,
  1366. type: 'bar',
  1367. barGap: '-100%',
  1368. barWidth: '35%', //统计条宽度
  1369. itemStyle: {
  1370. normal: {
  1371. color: function (params) {
  1372. return {
  1373. type: 'linear',
  1374. x: 0,
  1375. y: 1,
  1376. x2: 0,
  1377. y2: 0,
  1378. colorStops: [{
  1379. offset: 0,
  1380. color: '#0d3b91'
  1381. }, {
  1382. offset: 1,
  1383. color: '#00abda'
  1384. }],
  1385. }
  1386. },
  1387. },
  1388. },
  1389. max: 1,
  1390. labelLine: {
  1391. show: false,
  1392. },
  1393. z: 2,
  1394. data: baifenbi,
  1395. },
  1396. {
  1397. type: 'lines',
  1398. coordinateSystem: 'cartesian2d',
  1399. data: baifenbi.map((item, index) => {
  1400. return {
  1401. coords: [
  1402. [0, index],
  1403. [item, index],
  1404. ]
  1405. };
  1406. }),
  1407. effect: {
  1408. show: true,
  1409. period: 5,
  1410. trailLength: 0.5, //控制拖尾长度
  1411. symbolSize: [15, 2],
  1412. symbol: this.$store.state.common.echarts_baseStreamer,
  1413. loop: true,
  1414. color: '#fff' //流光颜色
  1415. },
  1416. lineStyle: {
  1417. width: 0,
  1418. opacity: 0.6,
  1419. curveness: 0
  1420. },
  1421. z: 99
  1422. },
  1423. //数据条--------------------我是分割线君------------------------------//
  1424. {
  1425. show: true,
  1426. type: 'bar',
  1427. xAxisIndex: 1, //代表使用第二个X轴刻度!!!!!!!!!!!!!!!!!!!!!!!!
  1428. barGap: '-100%',
  1429. barWidth: '45%', //统计条宽度
  1430. itemStyle: {
  1431. normal: {
  1432. barBorderRadius: 200,
  1433. color: 'rgba(20, 47, 104, 0.0)'
  1434. },
  1435. },
  1436. label: {
  1437. normal: {
  1438. show: true,
  1439. //label 的position位置可以是top bottom left,right,也可以是固定值
  1440. //在这里需要上下统一对齐,所以用固定值
  1441. position: [0, '-100%'],
  1442. rich: { //富文本
  1443. white: { //自定义颜色
  1444. color: '#ffffff',
  1445. },
  1446. green: {
  1447. color: '#70DDA7',
  1448. },
  1449. yellow: {
  1450. color: '#CCB877',
  1451. },
  1452. red: {
  1453. color: '#BC3C47',
  1454. },
  1455. gray: {
  1456. color: '#727CBA'
  1457. }
  1458. },
  1459. formatter: function (data) {
  1460. //富文本固定格式{colorName|这里填你想要写的内容}
  1461. return '{white|' + xingm[data.dataIndex] + '}';
  1462. },
  1463. }
  1464. },
  1465. data: zongjine
  1466. }
  1467. ]
  1468. };
  1469. if (option) {
  1470. myChart.setOption(option);
  1471. }
  1472. },
  1473. qkq_zxt() {
  1474. var myChart = echarts.init(document.getElementById('qkq_zxt'));
  1475. var data1 = [220, 182, 191, 234, 290, 330, 310];
  1476. var data2 = [212, 12, 11, 84, 129, 30, 110];
  1477. var json = {
  1478. chart0: {
  1479. xcategory: ['2011', '2012', '2013', '2014', '2015', '2016', '2017'],
  1480. low: data1,
  1481. lowLine: [],
  1482. }
  1483. };
  1484. var json2 = {
  1485. chart0: {
  1486. xcategory: ['2011', '2012', '2013', '2014', '2015', '2016', '2017'],
  1487. low: data2,
  1488. lowLine: [],
  1489. }
  1490. };
  1491. var zrUtil = echarts.util;
  1492. zrUtil.each(json.chart0.xcategory, function (item, index) {
  1493. json.chart0.lowLine.push([{
  1494. coord: [index, json.chart0.low[index]]
  1495. }, {
  1496. coord: [index + 1, json.chart0.low[index + 1]]
  1497. }]);
  1498. });
  1499. zrUtil.each(json.chart0.xcategory, function (item, index) {
  1500. json2.chart0.lowLine.push([{
  1501. coord: [index, json2.chart0.low[index]]
  1502. }, {
  1503. coord: [index + 1, json2.chart0.low[index + 1]]
  1504. }]);
  1505. });
  1506. var option = {
  1507. title: {
  1508. text: '',
  1509. x: 'center',
  1510. textStyle: {
  1511. fontSize: 14,
  1512. color: '#fff',
  1513. },
  1514. },
  1515. grid: {
  1516. top: '16%',
  1517. left: '3%',
  1518. right: '1%',
  1519. bottom: '3%',
  1520. containLabel: true
  1521. },
  1522. legend: {
  1523. top: '4%',
  1524. textStyle: {
  1525. fontSize: 14,
  1526. color: '#fff',
  1527. },
  1528. },
  1529. tooltip: {
  1530. trigger: 'item',
  1531. position: 'top',
  1532. backgroundColor: 'transparent',
  1533. padding: 0,
  1534. formatter: function (params, ticket, callback) {
  1535. var html = '';
  1536. if (params.seriesIndex === 0) {
  1537. html += '<p style="color:red;">' + params.value + '</p>';
  1538. } else if (params.seriesIndex === 1) {
  1539. html += '<p style="color:green;">' + params.value + '</p>';
  1540. }
  1541. return html;
  1542. },
  1543. },
  1544. xAxis: {
  1545. axisLabel: {
  1546. fontSize: 12,
  1547. color: '#fff'
  1548. },
  1549. axisLine: {
  1550. lineStyle: {
  1551. color: '#073073',
  1552. type: 'solid'
  1553. }
  1554. },
  1555. splitLine: {
  1556. show: false,
  1557. },
  1558. axisTick: {
  1559. show: false
  1560. },
  1561. data: ['2011', '2012', '2013', '2014', '2015', '2016', '2017']
  1562. },
  1563. yAxis: {
  1564. type: 'value',
  1565. name: '',
  1566. nameLocation: 'end',
  1567. nameTextStyle: {
  1568. fontSize: 12,
  1569. color: '#073073'
  1570. },
  1571. axisLabel: {
  1572. fontSize: 12,
  1573. color: '#fff'
  1574. },
  1575. axisLine: {
  1576. lineStyle: {
  1577. color: '#073073',
  1578. }
  1579. },
  1580. splitLine: {
  1581. show: false,
  1582. lineStyle: {
  1583. color: '#073073',
  1584. width: 1,
  1585. type: 'dashed',
  1586. }
  1587. },
  1588. axisTick: {
  1589. show: false
  1590. }
  1591. },
  1592. series: [
  1593. {
  1594. name: '招商计划',
  1595. type: 'line',
  1596. symbol: 'circle',
  1597. symbolSize: 8,
  1598. itemStyle: {
  1599. color: '#0c96ff',
  1600. borderColor: 'rgb(12,150,255,0.3)',
  1601. borderWidth: 4,
  1602. },
  1603. areaStyle: {
  1604. color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
  1605. offset: 0.3,
  1606. color: 'rgba(58,132,255,0)'
  1607. }, {
  1608. offset: 1,
  1609. color: 'rgba(58,132,255,0.35)'
  1610. }]),
  1611. },
  1612. emphasis: {
  1613. itemStyle: {
  1614. color: '#0c96ff',
  1615. borderColor: 'rgb(12,150,255,0.3)',
  1616. borderWidth: 4,
  1617. }
  1618. },
  1619. data: data1,
  1620. },
  1621. {
  1622. name: '招商计划',
  1623. type: 'lines',
  1624. coordinateSystem: 'cartesian2d',
  1625. zlevel: 1,
  1626. smooth: true,
  1627. symbol: 'circle',
  1628. effect: {
  1629. show: true,
  1630. smooth: true,
  1631. period: 2,
  1632. symbolSize: 8
  1633. },
  1634. lineStyle: {
  1635. normal: {
  1636. color: '#0c96ff',
  1637. width: 0,
  1638. opacity: 0,
  1639. curveness: 0,
  1640. }
  1641. },
  1642. data: json.chart0.lowLine,
  1643. },
  1644. {
  1645. name: '实施计划',
  1646. type: 'line',
  1647. symbol: 'circle',
  1648. symbolSize: 8,
  1649. itemStyle: {
  1650. color: '#00ffff',
  1651. borderColor: 'rgb(0,255,255,0.3)',
  1652. borderWidth: 4,
  1653. },
  1654. areaStyle: {
  1655. color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
  1656. offset: 0.3,
  1657. color: 'rgba(58,132,255,0)'
  1658. }, {
  1659. offset: 1,
  1660. color: 'rgba(58,132,255,0.35)'
  1661. }]),
  1662. },
  1663. data: data2
  1664. },
  1665. {
  1666. name: '实施计划',
  1667. type: 'lines',
  1668. coordinateSystem: 'cartesian2d',
  1669. zlevel: 1,
  1670. smooth: true,
  1671. symbol: 'circle',
  1672. effect: {
  1673. show: true,
  1674. smooth: true,
  1675. period: 2,
  1676. symbolSize: 8
  1677. },
  1678. lineStyle: {
  1679. normal: {
  1680. color: '#00ffff',
  1681. width: 0,
  1682. opacity: 0,
  1683. curveness: 0,
  1684. }
  1685. },
  1686. data: json2.chart0.lowLine
  1687. }
  1688. ]
  1689. };
  1690. if (option) {
  1691. myChart.setOption(option);
  1692. }
  1693. },
  1694. qkq_zszb1() {
  1695. var myChart = echarts.init(document.getElementById('qkq_zszb1'));
  1696. const dataArr = [
  1697. {
  1698. value: 50,
  1699. name: '招商指标',
  1700. },
  1701. ];
  1702. const color = new echarts.graphic.LinearGradient(0, 0, 1, 0, [
  1703. {
  1704. offset: 0,
  1705. color: '#1f79b6', // 0% 处的颜色
  1706. },
  1707. {
  1708. offset: 1,
  1709. color: '#0dd2db', // 100% 处的颜色
  1710. },
  1711. ]);
  1712. const colorSet = [
  1713. [0.50, color],
  1714. [1, '#15337C'],
  1715. ];
  1716. const rich = {
  1717. white: {
  1718. fontSize: 14,
  1719. color: '#fff',
  1720. fontWeight: '500',
  1721. },
  1722. bule: {
  1723. fontSize: 22,
  1724. fontFamily: 'DINBold',
  1725. color: '#fff',
  1726. fontWeight: '700',
  1727. },
  1728. radius: {
  1729. width: 350,
  1730. height: 80,
  1731. // lineHeight:80,
  1732. borderWidth: 1,
  1733. borderColor: '#0092F2',
  1734. fontSize: 14,
  1735. color: '#fff',
  1736. backgroundColor: '#1B215B',
  1737. borderRadius: 20,
  1738. textAlign: 'center',
  1739. },
  1740. size: {
  1741. height: 400,
  1742. padding: [100, 0, 0, 0],
  1743. },
  1744. };
  1745. var option = {
  1746. tooltip: {
  1747. formatter: '{a} <br/>{b} : {c}%',
  1748. },
  1749. series: [
  1750. {
  1751. name: '外1圈装饰',
  1752. type: 'pie',
  1753. zlevel: 1,
  1754. silent: true,
  1755. radius: ['98%', '97%'],
  1756. hoverAnimation: false,
  1757. color: "rgba(88,142,197,0.5)",
  1758. // animation:false, //charts3 no
  1759. label: {
  1760. normal: {
  1761. show: false
  1762. },
  1763. },
  1764. labelLine: {
  1765. normal: {
  1766. show: false
  1767. }
  1768. },
  1769. data: [1]
  1770. },
  1771. {
  1772. name: '外2圈装饰',
  1773. type: 'pie',
  1774. zlevel: 2,
  1775. silent: true,
  1776. radius: ['90%', '91%'],
  1777. startAngle: 0,
  1778. hoverAnimation: false,
  1779. // animation:false, //charts3 no
  1780. label: {
  1781. normal: {
  1782. show: false
  1783. },
  1784. },
  1785. labelLine: {
  1786. normal: {
  1787. show: false
  1788. }
  1789. },
  1790. data: [{
  1791. name: '',
  1792. value: 10,
  1793. itemStyle: {
  1794. normal: {
  1795. color: "rgba(88,142,197,0.5)",
  1796. borderWidth: 0,
  1797. borderColor: "rgba(0,0,0,0)"
  1798. }
  1799. }
  1800. },
  1801. {
  1802. name: '',
  1803. value: 8,
  1804. itemStyle: {
  1805. normal: {
  1806. color: "rgba(0,0,0,0)",
  1807. borderWidth: 0,
  1808. borderColor: "rgba(0,0,0,0)"
  1809. }
  1810. }
  1811. },
  1812. {
  1813. name: '',
  1814. value: 10,
  1815. itemStyle: {
  1816. normal: {
  1817. color: "rgba(88,142,197,0.5)",
  1818. borderWidth: 0,
  1819. borderColor: "rgba(0,0,0,0)"
  1820. }
  1821. }
  1822. },
  1823. {
  1824. name: '',
  1825. value: 8,
  1826. itemStyle: {
  1827. normal: {
  1828. color: "rgba(0,0,0,0)",
  1829. borderWidth: 0,
  1830. borderColor: "rgba(0,0,0,0)"
  1831. }
  1832. }
  1833. },
  1834. {
  1835. name: '',
  1836. value: 10,
  1837. itemStyle: {
  1838. normal: {
  1839. color: "rgba(88,142,197,0.5)",
  1840. borderWidth: 0,
  1841. borderColor: "rgba(0,0,0,0)"
  1842. }
  1843. }
  1844. },
  1845. {
  1846. name: '',
  1847. value: 8,
  1848. itemStyle: {
  1849. normal: {
  1850. color: "rgba(0,0,0,0)",
  1851. borderWidth: 0,
  1852. borderColor: "rgba(0,0,0,0)"
  1853. }
  1854. }
  1855. },
  1856. {
  1857. name: '',
  1858. value: 10,
  1859. itemStyle: {
  1860. normal: {
  1861. color: "rgba(88,142,197,0.5)",
  1862. borderWidth: 0,
  1863. borderColor: "rgba(0,0,0,0)"
  1864. }
  1865. }
  1866. },
  1867. {
  1868. name: '',
  1869. value: 8,
  1870. itemStyle: {
  1871. normal: {
  1872. color: "rgba(0,0,0,0)",
  1873. borderWidth: 0,
  1874. borderColor: "rgba(0,0,0,0)"
  1875. }
  1876. }
  1877. }
  1878. ]
  1879. },
  1880. {
  1881. name: '外3圈装饰',
  1882. type: 'pie',
  1883. zlevel: 3,
  1884. silent: true,
  1885. radius: ['88%', '87%'],
  1886. label: {
  1887. normal: {
  1888. show: false
  1889. },
  1890. },
  1891. labelLine: {
  1892. normal: {
  1893. show: false
  1894. }
  1895. },
  1896. data: [{
  1897. name: '',
  1898. value: 8,
  1899. itemStyle: {
  1900. normal: {
  1901. color: "rgba(0,0,0,0)",
  1902. borderWidth: 0,
  1903. borderColor: "rgba(0,0,0,0)"
  1904. }
  1905. }
  1906. },
  1907. {
  1908. name: '',
  1909. value: 10,
  1910. itemStyle: {
  1911. normal: {
  1912. color: "rgba(88,142,197,0.5)",
  1913. borderWidth: 0,
  1914. borderColor: "rgba(0,0,0,0)"
  1915. }
  1916. }
  1917. },
  1918. {
  1919. name: '',
  1920. value: 8,
  1921. itemStyle: {
  1922. normal: {
  1923. color: "rgba(0,0,0,0)",
  1924. borderWidth: 0,
  1925. borderColor: "rgba(0,0,0,0)"
  1926. }
  1927. }
  1928. },
  1929. {
  1930. name: '',
  1931. value: 10,
  1932. itemStyle: {
  1933. normal: {
  1934. color: "rgba(88,142,197,0.5)",
  1935. borderWidth: 0,
  1936. borderColor: "rgba(0,0,0,0)"
  1937. }
  1938. }
  1939. },
  1940. {
  1941. name: '',
  1942. value: 8,
  1943. itemStyle: {
  1944. normal: {
  1945. color: "rgba(0,0,0,0)",
  1946. borderWidth: 0,
  1947. borderColor: "rgba(0,0,0,0)"
  1948. }
  1949. }
  1950. },
  1951. {
  1952. name: '',
  1953. value: 10,
  1954. itemStyle: {
  1955. normal: {
  1956. color: "rgba(88,142,197,0.5)",
  1957. borderWidth: 0,
  1958. borderColor: "rgba(0,0,0,0)"
  1959. }
  1960. }
  1961. },
  1962. {
  1963. name: '',
  1964. value: 8,
  1965. itemStyle: {
  1966. normal: {
  1967. color: "rgba(0,0,0,0)",
  1968. borderWidth: 0,
  1969. borderColor: "rgba(0,0,0,0)"
  1970. }
  1971. }
  1972. },
  1973. {
  1974. name: '',
  1975. value: 10,
  1976. itemStyle: {
  1977. normal: {
  1978. color: "rgba(88,142,197,0.5)",
  1979. borderWidth: 0,
  1980. borderColor: "rgba(0,0,0,0)"
  1981. }
  1982. }
  1983. },
  1984. ]
  1985. },
  1986. {
  1987. name: '外4圈装饰',
  1988. type: 'pie',
  1989. zlevel: 4,
  1990. silent: true,
  1991. radius: ['84%', '83%'],
  1992. label: {
  1993. normal: {
  1994. show: false
  1995. },
  1996. },
  1997. labelLine: {
  1998. normal: {
  1999. show: false
  2000. }
  2001. },
  2002. data: [{
  2003. name: '',
  2004. value: 1,
  2005. itemStyle: {
  2006. normal: {
  2007. color: "rgb(126,190,255)",
  2008. borderWidth: 0,
  2009. borderColor: "rgba(0,0,0,0)"
  2010. }
  2011. }
  2012. },
  2013. {
  2014. name: '',
  2015. value: 1,
  2016. itemStyle: {
  2017. normal: {
  2018. color: "rgba(0,0,0,0)",
  2019. borderWidth: 0,
  2020. borderColor: "rgba(0,0,0,0)"
  2021. }
  2022. }
  2023. },
  2024. {
  2025. name: '',
  2026. value: 1,
  2027. itemStyle: {
  2028. normal: {
  2029. color: "rgb(126,190,255)",
  2030. borderWidth: 0,
  2031. borderColor: "rgba(0,0,0,0)"
  2032. }
  2033. }
  2034. },
  2035. {
  2036. name: '',
  2037. value: 1,
  2038. itemStyle: {
  2039. normal: {
  2040. color: "rgba(0,0,0,0)",
  2041. borderWidth: 0,
  2042. borderColor: "rgba(0,0,0,0)"
  2043. }
  2044. }
  2045. },
  2046. {
  2047. name: '',
  2048. value: 1,
  2049. itemStyle: {
  2050. normal: {
  2051. color: "rgb(126,190,255)",
  2052. borderWidth: 0,
  2053. borderColor: "rgba(0,0,0,0)"
  2054. }
  2055. }
  2056. },
  2057. {
  2058. name: '',
  2059. value: 1,
  2060. itemStyle: {
  2061. normal: {
  2062. color: "rgba(0,0,0,0)",
  2063. borderWidth: 0,
  2064. borderColor: "rgba(0,0,0,0)"
  2065. }
  2066. }
  2067. },
  2068. {
  2069. name: '',
  2070. value: 1,
  2071. itemStyle: {
  2072. normal: {
  2073. color: "rgb(126,190,255)",
  2074. borderWidth: 0,
  2075. borderColor: "rgba(0,0,0,0)"
  2076. }
  2077. }
  2078. },
  2079. {
  2080. name: '',
  2081. value: 1,
  2082. itemStyle: {
  2083. normal: {
  2084. color: "rgba(0,0,0,0)",
  2085. borderWidth: 0,
  2086. borderColor: "rgba(0,0,0,0)"
  2087. }
  2088. }
  2089. },
  2090. {
  2091. name: '',
  2092. value: 1,
  2093. itemStyle: {
  2094. normal: {
  2095. color: "rgb(126,190,255)",
  2096. borderWidth: 0,
  2097. borderColor: "rgba(0,0,0,0)"
  2098. }
  2099. }
  2100. },
  2101. {
  2102. name: '',
  2103. value: 1,
  2104. itemStyle: {
  2105. normal: {
  2106. color: "rgba(0,0,0,0)",
  2107. borderWidth: 0,
  2108. borderColor: "rgba(0,0,0,0)"
  2109. }
  2110. }
  2111. },
  2112. {
  2113. name: '',
  2114. value: 1,
  2115. itemStyle: {
  2116. normal: {
  2117. color: "rgb(126,190,255)",
  2118. borderWidth: 0,
  2119. borderColor: "rgba(0,0,0,0)"
  2120. }
  2121. }
  2122. },
  2123. {
  2124. name: '',
  2125. value: 1,
  2126. itemStyle: {
  2127. normal: {
  2128. color: "rgba(0,0,0,0)",
  2129. borderWidth: 0,
  2130. borderColor: "rgba(0,0,0,0)"
  2131. }
  2132. }
  2133. },
  2134. {
  2135. name: '',
  2136. value: 1,
  2137. itemStyle: {
  2138. normal: {
  2139. color: "rgb(126,190,255)",
  2140. borderWidth: 0,
  2141. borderColor: "rgba(0,0,0,0)"
  2142. }
  2143. }
  2144. },
  2145. {
  2146. name: '',
  2147. value: 1,
  2148. itemStyle: {
  2149. normal: {
  2150. color: "rgba(0,0,0,0)",
  2151. borderWidth: 0,
  2152. borderColor: "rgba(0,0,0,0)"
  2153. }
  2154. }
  2155. },
  2156. {
  2157. name: '',
  2158. value: 1,
  2159. itemStyle: {
  2160. normal: {
  2161. color: "rgb(126,190,255)",
  2162. borderWidth: 0,
  2163. borderColor: "rgba(0,0,0,0)"
  2164. }
  2165. }
  2166. },
  2167. {
  2168. name: '',
  2169. value: 1,
  2170. itemStyle: {
  2171. normal: {
  2172. color: "rgba(0,0,0,0)",
  2173. borderWidth: 0,
  2174. borderColor: "rgba(0,0,0,0)"
  2175. }
  2176. }
  2177. },
  2178. {
  2179. name: '',
  2180. value: 1,
  2181. itemStyle: {
  2182. normal: {
  2183. color: "rgb(126,190,255)",
  2184. borderWidth: 0,
  2185. borderColor: "rgba(0,0,0,0)"
  2186. }
  2187. }
  2188. },
  2189. {
  2190. name: '',
  2191. value: 1,
  2192. itemStyle: {
  2193. normal: {
  2194. color: "rgba(0,0,0,0)",
  2195. borderWidth: 0,
  2196. borderColor: "rgba(0,0,0,0)"
  2197. }
  2198. }
  2199. },
  2200. {
  2201. name: '',
  2202. value: 1,
  2203. itemStyle: {
  2204. normal: {
  2205. color: "rgb(126,190,255)",
  2206. borderWidth: 0,
  2207. borderColor: "rgba(0,0,0,0)"
  2208. }
  2209. }
  2210. },
  2211. {
  2212. name: '',
  2213. value: 1,
  2214. itemStyle: {
  2215. normal: {
  2216. color: "rgba(0,0,0,0)",
  2217. borderWidth: 0,
  2218. borderColor: "rgba(0,0,0,0)"
  2219. }
  2220. }
  2221. },
  2222. {
  2223. name: '',
  2224. value: 1,
  2225. itemStyle: {
  2226. normal: {
  2227. color: "rgb(126,190,255)",
  2228. borderWidth: 0,
  2229. borderColor: "rgba(0,0,0,0)"
  2230. }
  2231. }
  2232. },
  2233. {
  2234. name: '',
  2235. value: 1,
  2236. itemStyle: {
  2237. normal: {
  2238. color: "rgba(0,0,0,0)",
  2239. borderWidth: 0,
  2240. borderColor: "rgba(0,0,0,0)"
  2241. }
  2242. }
  2243. },
  2244. {
  2245. name: '',
  2246. value: 1,
  2247. itemStyle: {
  2248. normal: {
  2249. color: "rgb(126,190,255)",
  2250. borderWidth: 0,
  2251. borderColor: "rgba(0,0,0,0)"
  2252. }
  2253. }
  2254. },
  2255. {
  2256. name: '',
  2257. value: 1,
  2258. itemStyle: {
  2259. normal: {
  2260. color: "rgba(0,0,0,0)",
  2261. borderWidth: 0,
  2262. borderColor: "rgba(0,0,0,0)"
  2263. }
  2264. }
  2265. }
  2266. ]
  2267. },
  2268. {
  2269. name: '外5圈装饰',
  2270. type: 'pie',
  2271. zlevel: 5,
  2272. silent: true,
  2273. radius: ['80%', '78%'],
  2274. color: ["#fc8d89", "#46d3f3", "rgba(203,203,203,.2)"],
  2275. startAngle: 50,
  2276. hoverAnimation: false,
  2277. // animation:false, //charts3 no
  2278. label: {
  2279. normal: {
  2280. show: false
  2281. },
  2282. },
  2283. data: [50, 20, 40]
  2284. },
  2285. {
  2286. type: 'gauge',
  2287. radius: '70%',
  2288. startAngle: '225',
  2289. endAngle: '-45',
  2290. pointer: {
  2291. show: false,
  2292. },
  2293. detail: {
  2294. formatter: function (value) {
  2295. var num = Math.round(value);
  2296. return '{bule|' + num + '}{white|个}';
  2297. },
  2298. rich: rich,
  2299. offsetCenter: ['0%', '0%'],
  2300. },
  2301. data: dataArr,
  2302. title: {
  2303. show: true,
  2304. color: '#fff',
  2305. offsetCenter: ['0', '75%'],
  2306. fontSize: 14
  2307. },
  2308. axisLine: {
  2309. show: true,
  2310. lineStyle: {
  2311. color: colorSet,
  2312. width: 18,
  2313. shadowOffsetX: 0,
  2314. shadowOffsetY: 0,
  2315. opacity: 1,
  2316. },
  2317. },
  2318. axisTick: {
  2319. show: false,
  2320. },
  2321. splitLine: {
  2322. show: false,
  2323. length: 35,
  2324. lineStyle: {
  2325. color: '#00377a',
  2326. width: 2,
  2327. type: 'solid',
  2328. },
  2329. },
  2330. axisLabel: {
  2331. show: false,
  2332. },
  2333. },
  2334. ],
  2335. };
  2336. if (option) {
  2337. myChart.setOption(option);
  2338. }
  2339. var timer;
  2340. function doing() {
  2341. let option = myChart.getOption();
  2342. option.series[3].startAngle = option.series[3].startAngle - 1;
  2343. myChart.setOption(option);
  2344. }
  2345. function startTimer() {
  2346. timer = setInterval(doing, 100);
  2347. }
  2348. // function stopTimer() {
  2349. // clearInterval(timer);
  2350. // xzTimer = null;
  2351. // }
  2352. setTimeout(startTimer, 500);
  2353. },
  2354. qkq_zszb2() {
  2355. var myChart = echarts.init(document.getElementById('qkq_zszb2'));
  2356. const dataArr = [
  2357. {
  2358. value: 91,
  2359. name: '实施数量',
  2360. },
  2361. ];
  2362. const color = new echarts.graphic.LinearGradient(0, 0, 1, 0, [
  2363. {
  2364. offset: 0,
  2365. color: '#1f79b6', // 0% 处的颜色
  2366. },
  2367. {
  2368. offset: 1,
  2369. color: '#0dd2db', // 100% 处的颜色
  2370. },
  2371. ]);
  2372. const colorSet = [
  2373. [0.91, color],
  2374. [1, '#15337C'],
  2375. ];
  2376. const rich = {
  2377. white: {
  2378. fontSize: 14,
  2379. color: '#fff',
  2380. fontWeight: '500',
  2381. },
  2382. bule: {
  2383. fontSize: 22,
  2384. fontFamily: 'DINBold',
  2385. color: '#fff',
  2386. fontWeight: '700',
  2387. },
  2388. radius: {
  2389. width: 350,
  2390. height: 80,
  2391. // lineHeight:80,
  2392. borderWidth: 1,
  2393. borderColor: '#0092F2',
  2394. fontSize: 14,
  2395. color: '#fff',
  2396. backgroundColor: '#1B215B',
  2397. borderRadius: 20,
  2398. textAlign: 'center',
  2399. },
  2400. size: {
  2401. height: 400,
  2402. padding: [100, 0, 0, 0],
  2403. },
  2404. };
  2405. var option = {
  2406. tooltip: {
  2407. formatter: '{a} <br/>{b} : {c}%',
  2408. },
  2409. series: [
  2410. {
  2411. name: '外1圈装饰',
  2412. type: 'pie',
  2413. zlevel: 1,
  2414. silent: true,
  2415. radius: ['98%', '97%'],
  2416. hoverAnimation: false,
  2417. color: "rgba(88,142,197,0.5)",
  2418. // animation:false, //charts3 no
  2419. label: {
  2420. normal: {
  2421. show: false
  2422. },
  2423. },
  2424. labelLine: {
  2425. normal: {
  2426. show: false
  2427. }
  2428. },
  2429. data: [1]
  2430. },
  2431. {
  2432. name: '外2圈装饰',
  2433. type: 'pie',
  2434. zlevel: 2,
  2435. silent: true,
  2436. radius: ['90%', '91%'],
  2437. startAngle: 0,
  2438. hoverAnimation: false,
  2439. // animation:false, //charts3 no
  2440. label: {
  2441. normal: {
  2442. show: false
  2443. },
  2444. },
  2445. labelLine: {
  2446. normal: {
  2447. show: false
  2448. }
  2449. },
  2450. data: [{
  2451. name: '',
  2452. value: 10,
  2453. itemStyle: {
  2454. normal: {
  2455. color: "rgba(88,142,197,0.5)",
  2456. borderWidth: 0,
  2457. borderColor: "rgba(0,0,0,0)"
  2458. }
  2459. }
  2460. },
  2461. {
  2462. name: '',
  2463. value: 8,
  2464. itemStyle: {
  2465. normal: {
  2466. color: "rgba(0,0,0,0)",
  2467. borderWidth: 0,
  2468. borderColor: "rgba(0,0,0,0)"
  2469. }
  2470. }
  2471. },
  2472. {
  2473. name: '',
  2474. value: 10,
  2475. itemStyle: {
  2476. normal: {
  2477. color: "rgba(88,142,197,0.5)",
  2478. borderWidth: 0,
  2479. borderColor: "rgba(0,0,0,0)"
  2480. }
  2481. }
  2482. },
  2483. {
  2484. name: '',
  2485. value: 8,
  2486. itemStyle: {
  2487. normal: {
  2488. color: "rgba(0,0,0,0)",
  2489. borderWidth: 0,
  2490. borderColor: "rgba(0,0,0,0)"
  2491. }
  2492. }
  2493. },
  2494. {
  2495. name: '',
  2496. value: 10,
  2497. itemStyle: {
  2498. normal: {
  2499. color: "rgba(88,142,197,0.5)",
  2500. borderWidth: 0,
  2501. borderColor: "rgba(0,0,0,0)"
  2502. }
  2503. }
  2504. },
  2505. {
  2506. name: '',
  2507. value: 8,
  2508. itemStyle: {
  2509. normal: {
  2510. color: "rgba(0,0,0,0)",
  2511. borderWidth: 0,
  2512. borderColor: "rgba(0,0,0,0)"
  2513. }
  2514. }
  2515. },
  2516. {
  2517. name: '',
  2518. value: 10,
  2519. itemStyle: {
  2520. normal: {
  2521. color: "rgba(88,142,197,0.5)",
  2522. borderWidth: 0,
  2523. borderColor: "rgba(0,0,0,0)"
  2524. }
  2525. }
  2526. },
  2527. {
  2528. name: '',
  2529. value: 8,
  2530. itemStyle: {
  2531. normal: {
  2532. color: "rgba(0,0,0,0)",
  2533. borderWidth: 0,
  2534. borderColor: "rgba(0,0,0,0)"
  2535. }
  2536. }
  2537. }
  2538. ]
  2539. },
  2540. {
  2541. name: '外3圈装饰',
  2542. type: 'pie',
  2543. zlevel: 3,
  2544. silent: true,
  2545. radius: ['88%', '87%'],
  2546. label: {
  2547. normal: {
  2548. show: false
  2549. },
  2550. },
  2551. labelLine: {
  2552. normal: {
  2553. show: false
  2554. }
  2555. },
  2556. data: [{
  2557. name: '',
  2558. value: 8,
  2559. itemStyle: {
  2560. normal: {
  2561. color: "rgba(0,0,0,0)",
  2562. borderWidth: 0,
  2563. borderColor: "rgba(0,0,0,0)"
  2564. }
  2565. }
  2566. },
  2567. {
  2568. name: '',
  2569. value: 10,
  2570. itemStyle: {
  2571. normal: {
  2572. color: "rgba(88,142,197,0.5)",
  2573. borderWidth: 0,
  2574. borderColor: "rgba(0,0,0,0)"
  2575. }
  2576. }
  2577. },
  2578. {
  2579. name: '',
  2580. value: 8,
  2581. itemStyle: {
  2582. normal: {
  2583. color: "rgba(0,0,0,0)",
  2584. borderWidth: 0,
  2585. borderColor: "rgba(0,0,0,0)"
  2586. }
  2587. }
  2588. },
  2589. {
  2590. name: '',
  2591. value: 10,
  2592. itemStyle: {
  2593. normal: {
  2594. color: "rgba(88,142,197,0.5)",
  2595. borderWidth: 0,
  2596. borderColor: "rgba(0,0,0,0)"
  2597. }
  2598. }
  2599. },
  2600. {
  2601. name: '',
  2602. value: 8,
  2603. itemStyle: {
  2604. normal: {
  2605. color: "rgba(0,0,0,0)",
  2606. borderWidth: 0,
  2607. borderColor: "rgba(0,0,0,0)"
  2608. }
  2609. }
  2610. },
  2611. {
  2612. name: '',
  2613. value: 10,
  2614. itemStyle: {
  2615. normal: {
  2616. color: "rgba(88,142,197,0.5)",
  2617. borderWidth: 0,
  2618. borderColor: "rgba(0,0,0,0)"
  2619. }
  2620. }
  2621. },
  2622. {
  2623. name: '',
  2624. value: 8,
  2625. itemStyle: {
  2626. normal: {
  2627. color: "rgba(0,0,0,0)",
  2628. borderWidth: 0,
  2629. borderColor: "rgba(0,0,0,0)"
  2630. }
  2631. }
  2632. },
  2633. {
  2634. name: '',
  2635. value: 10,
  2636. itemStyle: {
  2637. normal: {
  2638. color: "rgba(88,142,197,0.5)",
  2639. borderWidth: 0,
  2640. borderColor: "rgba(0,0,0,0)"
  2641. }
  2642. }
  2643. },
  2644. ]
  2645. },
  2646. {
  2647. name: '外4圈装饰',
  2648. type: 'pie',
  2649. zlevel: 4,
  2650. silent: true,
  2651. radius: ['84%', '83%'],
  2652. label: {
  2653. normal: {
  2654. show: false
  2655. },
  2656. },
  2657. labelLine: {
  2658. normal: {
  2659. show: false
  2660. }
  2661. },
  2662. data: [{
  2663. name: '',
  2664. value: 1,
  2665. itemStyle: {
  2666. normal: {
  2667. color: "rgb(126,190,255)",
  2668. borderWidth: 0,
  2669. borderColor: "rgba(0,0,0,0)"
  2670. }
  2671. }
  2672. },
  2673. {
  2674. name: '',
  2675. value: 1,
  2676. itemStyle: {
  2677. normal: {
  2678. color: "rgba(0,0,0,0)",
  2679. borderWidth: 0,
  2680. borderColor: "rgba(0,0,0,0)"
  2681. }
  2682. }
  2683. },
  2684. {
  2685. name: '',
  2686. value: 1,
  2687. itemStyle: {
  2688. normal: {
  2689. color: "rgb(126,190,255)",
  2690. borderWidth: 0,
  2691. borderColor: "rgba(0,0,0,0)"
  2692. }
  2693. }
  2694. },
  2695. {
  2696. name: '',
  2697. value: 1,
  2698. itemStyle: {
  2699. normal: {
  2700. color: "rgba(0,0,0,0)",
  2701. borderWidth: 0,
  2702. borderColor: "rgba(0,0,0,0)"
  2703. }
  2704. }
  2705. },
  2706. {
  2707. name: '',
  2708. value: 1,
  2709. itemStyle: {
  2710. normal: {
  2711. color: "rgb(126,190,255)",
  2712. borderWidth: 0,
  2713. borderColor: "rgba(0,0,0,0)"
  2714. }
  2715. }
  2716. },
  2717. {
  2718. name: '',
  2719. value: 1,
  2720. itemStyle: {
  2721. normal: {
  2722. color: "rgba(0,0,0,0)",
  2723. borderWidth: 0,
  2724. borderColor: "rgba(0,0,0,0)"
  2725. }
  2726. }
  2727. },
  2728. {
  2729. name: '',
  2730. value: 1,
  2731. itemStyle: {
  2732. normal: {
  2733. color: "rgb(126,190,255)",
  2734. borderWidth: 0,
  2735. borderColor: "rgba(0,0,0,0)"
  2736. }
  2737. }
  2738. },
  2739. {
  2740. name: '',
  2741. value: 1,
  2742. itemStyle: {
  2743. normal: {
  2744. color: "rgba(0,0,0,0)",
  2745. borderWidth: 0,
  2746. borderColor: "rgba(0,0,0,0)"
  2747. }
  2748. }
  2749. },
  2750. {
  2751. name: '',
  2752. value: 1,
  2753. itemStyle: {
  2754. normal: {
  2755. color: "rgb(126,190,255)",
  2756. borderWidth: 0,
  2757. borderColor: "rgba(0,0,0,0)"
  2758. }
  2759. }
  2760. },
  2761. {
  2762. name: '',
  2763. value: 1,
  2764. itemStyle: {
  2765. normal: {
  2766. color: "rgba(0,0,0,0)",
  2767. borderWidth: 0,
  2768. borderColor: "rgba(0,0,0,0)"
  2769. }
  2770. }
  2771. },
  2772. {
  2773. name: '',
  2774. value: 1,
  2775. itemStyle: {
  2776. normal: {
  2777. color: "rgb(126,190,255)",
  2778. borderWidth: 0,
  2779. borderColor: "rgba(0,0,0,0)"
  2780. }
  2781. }
  2782. },
  2783. {
  2784. name: '',
  2785. value: 1,
  2786. itemStyle: {
  2787. normal: {
  2788. color: "rgba(0,0,0,0)",
  2789. borderWidth: 0,
  2790. borderColor: "rgba(0,0,0,0)"
  2791. }
  2792. }
  2793. },
  2794. {
  2795. name: '',
  2796. value: 1,
  2797. itemStyle: {
  2798. normal: {
  2799. color: "rgb(126,190,255)",
  2800. borderWidth: 0,
  2801. borderColor: "rgba(0,0,0,0)"
  2802. }
  2803. }
  2804. },
  2805. {
  2806. name: '',
  2807. value: 1,
  2808. itemStyle: {
  2809. normal: {
  2810. color: "rgba(0,0,0,0)",
  2811. borderWidth: 0,
  2812. borderColor: "rgba(0,0,0,0)"
  2813. }
  2814. }
  2815. },
  2816. {
  2817. name: '',
  2818. value: 1,
  2819. itemStyle: {
  2820. normal: {
  2821. color: "rgb(126,190,255)",
  2822. borderWidth: 0,
  2823. borderColor: "rgba(0,0,0,0)"
  2824. }
  2825. }
  2826. },
  2827. {
  2828. name: '',
  2829. value: 1,
  2830. itemStyle: {
  2831. normal: {
  2832. color: "rgba(0,0,0,0)",
  2833. borderWidth: 0,
  2834. borderColor: "rgba(0,0,0,0)"
  2835. }
  2836. }
  2837. },
  2838. {
  2839. name: '',
  2840. value: 1,
  2841. itemStyle: {
  2842. normal: {
  2843. color: "rgb(126,190,255)",
  2844. borderWidth: 0,
  2845. borderColor: "rgba(0,0,0,0)"
  2846. }
  2847. }
  2848. },
  2849. {
  2850. name: '',
  2851. value: 1,
  2852. itemStyle: {
  2853. normal: {
  2854. color: "rgba(0,0,0,0)",
  2855. borderWidth: 0,
  2856. borderColor: "rgba(0,0,0,0)"
  2857. }
  2858. }
  2859. },
  2860. {
  2861. name: '',
  2862. value: 1,
  2863. itemStyle: {
  2864. normal: {
  2865. color: "rgb(126,190,255)",
  2866. borderWidth: 0,
  2867. borderColor: "rgba(0,0,0,0)"
  2868. }
  2869. }
  2870. },
  2871. {
  2872. name: '',
  2873. value: 1,
  2874. itemStyle: {
  2875. normal: {
  2876. color: "rgba(0,0,0,0)",
  2877. borderWidth: 0,
  2878. borderColor: "rgba(0,0,0,0)"
  2879. }
  2880. }
  2881. },
  2882. {
  2883. name: '',
  2884. value: 1,
  2885. itemStyle: {
  2886. normal: {
  2887. color: "rgb(126,190,255)",
  2888. borderWidth: 0,
  2889. borderColor: "rgba(0,0,0,0)"
  2890. }
  2891. }
  2892. },
  2893. {
  2894. name: '',
  2895. value: 1,
  2896. itemStyle: {
  2897. normal: {
  2898. color: "rgba(0,0,0,0)",
  2899. borderWidth: 0,
  2900. borderColor: "rgba(0,0,0,0)"
  2901. }
  2902. }
  2903. },
  2904. {
  2905. name: '',
  2906. value: 1,
  2907. itemStyle: {
  2908. normal: {
  2909. color: "rgb(126,190,255)",
  2910. borderWidth: 0,
  2911. borderColor: "rgba(0,0,0,0)"
  2912. }
  2913. }
  2914. },
  2915. {
  2916. name: '',
  2917. value: 1,
  2918. itemStyle: {
  2919. normal: {
  2920. color: "rgba(0,0,0,0)",
  2921. borderWidth: 0,
  2922. borderColor: "rgba(0,0,0,0)"
  2923. }
  2924. }
  2925. }
  2926. ]
  2927. },
  2928. {
  2929. name: '外5圈装饰',
  2930. type: 'pie',
  2931. zlevel: 5,
  2932. silent: true,
  2933. radius: ['80%', '78%'],
  2934. color: ["#fc8d89", "#46d3f3", "rgba(203,203,203,.2)"],
  2935. startAngle: 50,
  2936. hoverAnimation: false,
  2937. // animation:false, //charts3 no
  2938. label: {
  2939. normal: {
  2940. show: false
  2941. },
  2942. },
  2943. data: [50, 20, 40]
  2944. },
  2945. {
  2946. type: 'gauge',
  2947. radius: '70%',
  2948. startAngle: '225',
  2949. endAngle: '-45',
  2950. pointer: {
  2951. show: false,
  2952. },
  2953. detail: {
  2954. formatter: function (value) {
  2955. var num = Math.round(value);
  2956. return '{bule|' + num + '}{white|个}';
  2957. },
  2958. rich: rich,
  2959. offsetCenter: ['0%', '0%'],
  2960. },
  2961. data: dataArr,
  2962. title: {
  2963. show: true,
  2964. color: '#fff',
  2965. offsetCenter: ['0', '75%'],
  2966. fontSize: 14
  2967. },
  2968. axisLine: {
  2969. show: true,
  2970. lineStyle: {
  2971. color: colorSet,
  2972. width: 18,
  2973. shadowOffsetX: 0,
  2974. shadowOffsetY: 0,
  2975. opacity: 1,
  2976. },
  2977. },
  2978. axisTick: {
  2979. show: false,
  2980. },
  2981. splitLine: {
  2982. show: false,
  2983. length: 35,
  2984. lineStyle: {
  2985. color: '#00377a',
  2986. width: 2,
  2987. type: 'solid',
  2988. },
  2989. },
  2990. axisLabel: {
  2991. show: false,
  2992. },
  2993. },
  2994. ],
  2995. };
  2996. if (option) {
  2997. myChart.setOption(option);
  2998. }
  2999. var timer;
  3000. function doing() {
  3001. let option = myChart.getOption();
  3002. option.series[3].startAngle = option.series[3].startAngle - 1;
  3003. myChart.setOption(option);
  3004. }
  3005. function startTimer() {
  3006. timer = setInterval(doing, 100);
  3007. }
  3008. // function stopTimer() {
  3009. // clearInterval(timer);
  3010. // xzTimer = null;
  3011. // }
  3012. setTimeout(startTimer, 500);
  3013. },
  3014. qkq_btzb() {
  3015. // 基于准备好的dom,初始化echarts实例
  3016. var myChart = echarts.init(document.getElementById('qkq_btzb'));
  3017. var xData = ['2018', '2019', '2020', '2021', '2022', '2023', '2024']
  3018. var lineData = [100, 100, 100, 100, 100, 100, 100]
  3019. var lastYearData = [3, 20, 62, 34, 55, 65, 33];
  3020. var thisYearData = [11, 38, 23, 39, 66, 66, 79];
  3021. var timeLineData = [1];
  3022. let legend = ['工业类', '商业类'];
  3023. let textColor = "#fff";
  3024. let lineColor = "rgba(16, 62, 91, 0.2)";
  3025. let colors = [{
  3026. borderColor: "rgba(227,161,96,1)",
  3027. start: "rgba(227,161,96,0.8)",
  3028. end: "rgba(227,161,96,0.3)"
  3029. },
  3030. {
  3031. borderColor: "rgba(0,222,255,1)",
  3032. start: "rgba(0,222,255,0.3)",
  3033. end: "rgba(0,222,255,0.8)"
  3034. },
  3035. ];
  3036. let borderData = [];
  3037. let scale = 2;
  3038. borderData = xData.map(item => {
  3039. return scale;
  3040. });
  3041. var option = {
  3042. baseOption: {
  3043. timeline: {
  3044. show: false,
  3045. top: 0,
  3046. data: []
  3047. },
  3048. legend: {
  3049. top: '0%',
  3050. right: '5%',
  3051. itemWidth: 10,
  3052. itemHeight: 5,
  3053. // itemGap: 343,
  3054. icon: 'horizontal',
  3055. textStyle: {
  3056. color: '#ffffff',
  3057. fontSize: 14,
  3058. },
  3059. data: legend
  3060. },
  3061. grid: [
  3062. {
  3063. show: false,
  3064. left: '5%',
  3065. top: '10%',
  3066. bottom: '8%',
  3067. containLabel: true,
  3068. width: '37%'
  3069. },
  3070. {
  3071. show: false,
  3072. left: '53%',
  3073. top: '10%',
  3074. bottom: '8%',
  3075. width: '0%'
  3076. },
  3077. {
  3078. show: false,
  3079. right: '2%',
  3080. top: '10%',
  3081. bottom: '8%',
  3082. containLabel: true,
  3083. width: '37%'
  3084. }
  3085. ],
  3086. xAxis: [
  3087. {
  3088. type: 'value',
  3089. inverse: true,
  3090. axisLine: {
  3091. show: false
  3092. },
  3093. axisTick: {
  3094. show: false
  3095. },
  3096. position: 'top',
  3097. axisLabel: {
  3098. show: true,
  3099. color: textColor
  3100. },
  3101. splitLine: {
  3102. show: true,
  3103. lineStyle: {
  3104. color: lineColor
  3105. }
  3106. },
  3107. },
  3108. {
  3109. gridIndex: 1,
  3110. show: false
  3111. },
  3112. {
  3113. gridIndex: 2,
  3114. axisLine: {
  3115. show: false
  3116. },
  3117. axisTick: {
  3118. show: false
  3119. },
  3120. position: 'top',
  3121. axisLabel: {
  3122. show: true,
  3123. color: textColor
  3124. },
  3125. splitLine: {
  3126. show: true,
  3127. lineStyle: {
  3128. color: lineColor
  3129. }
  3130. },
  3131. }
  3132. ],
  3133. yAxis: [
  3134. {
  3135. type: 'category',
  3136. inverse: true,
  3137. position: 'right',
  3138. axisLine: {
  3139. show: true,
  3140. lineStyle: {
  3141. color: lineColor
  3142. }
  3143. },
  3144. axisTick: {
  3145. show: false
  3146. },
  3147. axisLabel: {
  3148. show: false
  3149. },
  3150. data: xData
  3151. },
  3152. {
  3153. gridIndex: 1,
  3154. type: 'category',
  3155. inverse: true,
  3156. position: 'left',
  3157. axisLine: {
  3158. show: false
  3159. },
  3160. axisTick: {
  3161. show: false
  3162. },
  3163. axisLabel: {
  3164. show: true,
  3165. padding: [30, 0, 0, 0],
  3166. textStyle: {
  3167. color: '#ffffff',
  3168. fontSize: 14
  3169. },
  3170. align: "center"
  3171. },
  3172. data: xData.map(function (value) {
  3173. return {
  3174. value: value,
  3175. textStyle: {
  3176. align: 'center'
  3177. }
  3178. }
  3179. })
  3180. },
  3181. {
  3182. gridIndex: 2,
  3183. type: 'category',
  3184. inverse: true,
  3185. position: 'left',
  3186. axisLine: {
  3187. show: true,
  3188. lineStyle: {
  3189. color: lineColor
  3190. }
  3191. },
  3192. axisTick: {
  3193. show: false
  3194. },
  3195. axisLabel: {
  3196. show: false
  3197. },
  3198. data: xData
  3199. }
  3200. ],
  3201. series: []
  3202. },
  3203. options: []
  3204. }
  3205. option.baseOption.timeline.data.push(timeLineData[0])
  3206. option.options.push({
  3207. series: [
  3208. {
  3209. name: "工业类",
  3210. type: "bar",
  3211. barWidth: 15,
  3212. stack: "1",
  3213. itemStyle: {
  3214. normal: {
  3215. color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [{
  3216. offset: 0,
  3217. color: colors[0].start
  3218. },
  3219. {
  3220. offset: 1,
  3221. color: colors[0].end
  3222. }
  3223. ]),
  3224. }
  3225. },
  3226. label: {
  3227. normal: {
  3228. show: true,
  3229. }
  3230. },
  3231. data: lastYearData,
  3232. animationEasing: "elasticOut"
  3233. },
  3234. // {
  3235. // type: 'lines',
  3236. // coordinateSystem: 'cartesian2d',
  3237. // data: lastYearData.map((item, index) => {
  3238. // return {
  3239. // coords: [
  3240. // [0, index],
  3241. // [item, index],
  3242. // ]
  3243. // };
  3244. // }),
  3245. // effect: {
  3246. // show: true,
  3247. // period: 5,
  3248. // trailLength: 0.5, //控制拖尾长度
  3249. // symbolSize: [15, 2],
  3250. // symbol: this.$store.state.common.echarts_baseStreamer,
  3251. // loop: true,
  3252. // color: '#fff' //流光颜色
  3253. // },
  3254. // lineStyle: {
  3255. // width: 0,
  3256. // opacity: 0.6,
  3257. // curveness: 0
  3258. // },
  3259. // z: 99
  3260. // },
  3261. {
  3262. name: "工业类",
  3263. type: "bar",
  3264. barWidth: 15,
  3265. stack: "1",
  3266. itemStyle: {
  3267. normal: {
  3268. color: colors[0].borderColor
  3269. }
  3270. },
  3271. data: borderData
  3272. },
  3273. {
  3274. name: "商业类",
  3275. type: "bar",
  3276. stack: "2",
  3277. barWidth: 15,
  3278. xAxisIndex: 2,
  3279. yAxisIndex: 2,
  3280. itemStyle: {
  3281. normal: {
  3282. color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [{
  3283. offset: 0,
  3284. color: colors[1].start
  3285. },
  3286. {
  3287. offset: 1,
  3288. color: colors[1].end
  3289. }
  3290. ]),
  3291. }
  3292. },
  3293. label: {
  3294. normal: {
  3295. show: true,
  3296. }
  3297. },
  3298. data: thisYearData,
  3299. animationEasing: "elasticOut"
  3300. },
  3301. // {
  3302. // type: 'lines',
  3303. // coordinateSystem: 'cartesian2d',
  3304. // data: thisYearData.map((item, index) => {
  3305. // return {
  3306. // coords: [
  3307. // [0, index],
  3308. // [item, index],
  3309. // ]
  3310. // };
  3311. // }),
  3312. // effect: {
  3313. // show: true,
  3314. // period: 5,
  3315. // trailLength: 0.5, //控制拖尾长度
  3316. // symbolSize: [15, 2],
  3317. // symbol: this.$store.state.common.echarts_baseStreamer,
  3318. // loop: true,
  3319. // color: '#fff' //流光颜色
  3320. // },
  3321. // lineStyle: {
  3322. // width: 0,
  3323. // opacity: 0.6,
  3324. // curveness: 0
  3325. // },
  3326. // z: 99
  3327. // },
  3328. {
  3329. name: "商业类",
  3330. type: "bar",
  3331. xAxisIndex: 2,
  3332. yAxisIndex: 2,
  3333. barWidth: 15,
  3334. stack: "2",
  3335. itemStyle: {
  3336. normal: {
  3337. color: colors[1].borderColor
  3338. }
  3339. },
  3340. data: borderData
  3341. },
  3342. ]
  3343. });
  3344. if (option) {
  3345. myChart.setOption(option);
  3346. }
  3347. }
  3348. }
  3349. };
  3350. // import '@/assets/images/leftnav.js';
  3351. $(function () {
  3352. var Accordion = function (el, multiple) {
  3353. this.el = el || {};
  3354. this.multiple = multiple || false;
  3355. // Variables privadas
  3356. var links = this.el.find('.link');
  3357. // Evento
  3358. links.on('click', {el: this.el, multiple: this.multiple}, this.dropdown)
  3359. };
  3360. Accordion.prototype.dropdown = function (e) {
  3361. var $el = e.data.el;
  3362. let $this = $(this);
  3363. let $next = $this.next();
  3364. $next.slideToggle();
  3365. $this.parent().toggleClass('open');
  3366. if (!e.data.multiple) {
  3367. $el.find('.submenu').not($next).slideUp().parent().removeClass('open');
  3368. }
  3369. };
  3370. var accordion = new Accordion($('#accordion'), false);
  3371. $('.submenu li').click(function () {
  3372. $(this).addClass('current').siblings('li').removeClass('current');
  3373. });
  3374. });
  3375. </script>
  3376. <style>
  3377. /* 添加你的CSS样式 */
  3378. </style>