index.js 142 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857
  1. let app = new Vue({
  2. el: "#app",
  3. data () {
  4. return {
  5. count: 0, //重点项目两线指标轮到哪个
  6. list: [], //重点项目两线指标数组
  7. countType: 0, //重点项目两线指标数组
  8. mapShow: false, // false为中国地图 true为山西地图
  9. leftEcharts1: "",
  10. leftEcharts2: "",
  11. leftEcharts3: "",
  12. leftEcharts4: "",
  13. leftEcharts5: "",
  14. leftEcharts6: "",
  15. leftEcharts7: "",
  16. leftEcharts8: "",
  17. leftEcharts9: "",
  18. leftEcharts10: "",
  19. leftEcharts11: "",
  20. leftEcharts12: '',
  21. leftEcharts13: '',
  22. leftEcharts14: '',
  23. leftEcharts15: '',
  24. echartR2Fd: true, // 投后进度成本偏差防抖
  25. leftEcharts16: '', // 中国地图背景地球
  26. rightEcharts1: '', // 投后进度成本偏差
  27. shanxiMap: "", // 山西地图
  28. chinaMap: '', // 中国地图
  29. industryProportion: 1, // 主辅业占比轮播
  30. industryLayout: 0, //产业布局分析
  31. time1: "", // 4秒定时器
  32. time2: "", // 针对投前产业布局分析的定时器
  33. storageRecordConfig: {
  34. waitTime: "2000",
  35. hoverPause: true,
  36. header: ["企业集团", "项目名 ", "投资总额"],
  37. headerHeight: 80,
  38. headerBGC: '#69C0FF20',
  39. oddRowBGC: '#011e4800',
  40. evenRowBGC: '#69C0FF20',
  41. // oddRowBGC: '#05507b33',
  42. rowNum: 6,
  43. columnWidth: [150, 450, 150],
  44. align: ["center", "center", "center"],
  45. data: [
  46. ["国际能源", "娄烦县120MW智慧光伏发电项目+10%储能", "6.78亿元"],
  47. ["国际能源", "平朔矿区150MW农光储氢一体化项目", "7.84亿元"],
  48. ["汾酒集团", "汾酒2030技改原酒产储能扩建项目(一期)", "91.02亿元"],
  49. [
  50. "大地控股",
  51. "山西大地控股忻州新店矿业有限公司投资建设年产800万吨精品砂石骨料项目",
  52. "8.67亿元",
  53. ],
  54. ["潞安化工", "分布式光伏发电项目", "2.01亿元"],
  55. ["太重集团", "设立太重(大同)新能源产业投资公司", "0.30亿元"],
  56. [
  57. "大地控股",
  58. "山西大地宏翔环保科技有限公司电厂固废资源化综合利用建设项目",
  59. "3.60亿元",
  60. ],
  61. [
  62. "大地控股",
  63. "山西大地海科环保科技有限公司电厂固废资源化综合利用建设项目",
  64. "3.11亿元",
  65. ],
  66. ["汾酒集团", "保健酒园区新增原酒产能项目", "4.98亿元"],
  67. ["汾酒集团", "白玉酒厂改扩建项目", "4.96亿元"],
  68. ["华阳新材", "5GW高效光伏组件制造项目", "4.82亿元"],
  69. ["华新燃气", "吉县—延长输气管道项目(一期工程)", "3.54亿元"],
  70. ["太重集团", "建设液压挖掘机配套油缸项目", "2.60亿元"],
  71. [
  72. "华远陆港",
  73. "物产集团参股设立项目公司投资建设山西物产万科(太原)综合物流产业园项目",
  74. "6.60亿元",
  75. ],
  76. ["太重集团", "设立昔阳县晶能新能源有限公司", "0.50亿元"],
  77. ["山西建投", "设立山西低碳环保产业集团有限公司", "30.00亿元"],
  78. [
  79. "山西建投",
  80. "设立山西省太忻经济一体化发展投资集团有限公司",
  81. "30.00亿元",
  82. ],
  83. ["华新燃气", "设立山西华新液化天然气集团有限公司", "3.00亿元"],
  84. ["交控集团", "设立山西交控新能源发展有限公司", "3.00亿元"],
  85. ],
  86. },
  87. storageRecordConfig2: {
  88. header: ['企业集团', '项目名称', '投资金额'],
  89. headerBGC: '#69C0FF20',
  90. oddRowBGC: '#011e4800',
  91. evenRowBGC: '#69C0FF20',
  92. headerHeight: '80',
  93. rowNum: 6,
  94. // columnWidth: [250],
  95. align: ['center', 'center', 'center'],
  96. data: [
  97. ["战略性新兴产业", "新材料", "20,340.00"],
  98. ["战略性新兴产业", "新材料", "20,340.00"],
  99. ["战略性新兴产业", "新材料", "20,340.00"],
  100. ["战略性新兴产业", "新材料", "20,340.00"],
  101. ["战略性新兴产业", "新材料", "20,340.00"],
  102. ["战略性新兴产业", "新材料", "20,340.00"],
  103. ["战略性新兴产业", "新材料", "20,340.00"],
  104. ["战略性新兴产业", "新材料", "20,340.00"],
  105. ["战略性新兴产业", "新材料", "20,340.00"],
  106. ],
  107. },
  108. meansList: [
  109. {
  110. label: "初步设计",
  111. value: "106",
  112. },
  113. {
  114. label: "详细设计",
  115. value: "103",
  116. },
  117. {
  118. label: "施工",
  119. value: "62",
  120. },
  121. {
  122. label: "完工",
  123. value: "35",
  124. },
  125. {
  126. label: "验收",
  127. value: "42",
  128. },
  129. {
  130. label: "结算",
  131. value: "33",
  132. },
  133. ],
  134. stockRightList: [
  135. {
  136. label: "前期准备",
  137. value: "66",
  138. },
  139. {
  140. label: "变更登记",
  141. value: "77",
  142. },
  143. ],
  144. costList: [
  145. {
  146. num: 160,
  147. value: 284,
  148. status: "正偏差",
  149. },
  150. {
  151. num: 280,
  152. value: 129,
  153. status: "容差内",
  154. },
  155. {
  156. num: 103,
  157. value: 1082,
  158. status: "负偏差",
  159. },
  160. ],
  161. investData: {
  162. investList: [
  163. {
  164. name: "大地控股",
  165. yse: "26.79",
  166. yqhte: "9.64",
  167. czrde: "121.59",
  168. jse: "120.13",
  169. fke: "36.4",
  170. url: "./img/logos/logo15.png",
  171. },
  172. {
  173. name: "云时代",
  174. yse: "21.79",
  175. yqhte: "9.64",
  176. czrde: "121.59",
  177. jse: "120.13",
  178. fke: "36.4",
  179. url: "./img/logos/logo16.png",
  180. },
  181. {
  182. name: "华舰体育",
  183. yse: "26.79",
  184. yqhte: "9.64",
  185. czrde: "121.59",
  186. jse: "120.13",
  187. fke: "36.4",
  188. url: "./img/logos/logo17.png",
  189. },
  190. {
  191. name: "神农科技",
  192. yse: "26.79",
  193. yqhte: "9.64",
  194. czrde: "121.59",
  195. jse: "120.13",
  196. fke: "36.4",
  197. url: "./img/logos/logo18.png",
  198. },
  199. {
  200. name: "山西焦煤",
  201. yse: "26.79",
  202. yqhte: "9.64",
  203. czrde: "121.59",
  204. jse: "120.13",
  205. fke: "36.4",
  206. url: "./img/logos/logo1.png",
  207. },
  208. {
  209. name: "晋能控股",
  210. yse: "26.79",
  211. yqhte: "9.64",
  212. czrde: "121.59",
  213. jse: "120.13",
  214. fke: "36.4",
  215. url: "./img/logos/logo2.png",
  216. },
  217. {
  218. name: "华阳新材",
  219. yse: "26.79",
  220. yqhte: "9.64",
  221. czrde: "121.59",
  222. jse: "120.13",
  223. fke: "36.4",
  224. url: "./img/logos/logo3.png",
  225. },
  226. {
  227. name: "潞安化工",
  228. yse: "26.79",
  229. yqhte: "9.64",
  230. czrde: "121.59",
  231. jse: "120.13",
  232. fke: "36.4",
  233. url: "./img/logos/logo4.png",
  234. },
  235. {
  236. name: "华新燃气",
  237. yse: "26.79",
  238. yqhte: "9.64",
  239. czrde: "121.59",
  240. jse: "120.13",
  241. fke: "36.4",
  242. url: "./img/logos/logo5.png",
  243. },
  244. {
  245. name: "太重集团",
  246. yse: "26.79",
  247. yqhte: "9.64",
  248. czrde: "121.59",
  249. jse: "120.13",
  250. fke: "36.4",
  251. url: "./img/logos/logo6.png",
  252. },
  253. {
  254. name: "国际能源",
  255. yse: "26.79",
  256. yqhte: "9.64",
  257. czrde: "121.59",
  258. jse: "120.13",
  259. fke: "36.4",
  260. url: "./img/logos/logo7.png",
  261. },
  262. {
  263. name: "华远陆港",
  264. yse: "26.79",
  265. yqhte: "9.64",
  266. czrde: "121.59",
  267. jse: "120.13",
  268. fke: "36.4",
  269. url: "./img/logos/logo8.png",
  270. },
  271. {
  272. name: "水控集团",
  273. yse: "26.79",
  274. yqhte: "9.64",
  275. czrde: "121.59",
  276. jse: "120.13",
  277. fke: "36.4",
  278. url: "./img/logos/logo9.png",
  279. },
  280. {
  281. name: "文旅集团",
  282. yse: "26.79",
  283. yqhte: "9.64",
  284. czrde: "121.59",
  285. jse: "120.13",
  286. fke: "36.4",
  287. url: "./img/logos/logo10.png",
  288. },
  289. {
  290. name: "交控集团",
  291. yse: "26.79",
  292. yqhte: "9.64",
  293. czrde: "121.59",
  294. jse: "120.13",
  295. fke: "36.4",
  296. url: "./img/logos/logo11.png",
  297. },
  298. {
  299. name: "航产集团",
  300. yse: "26.79",
  301. yqhte: "9.64",
  302. czrde: "121.59",
  303. jse: "120.13",
  304. fke: "36.4",
  305. url: "./img/logos/logo12.png",
  306. },
  307. {
  308. name: "山西建投",
  309. yse: "26.79",
  310. yqhte: "9.64",
  311. czrde: "121.59",
  312. jse: "120.13",
  313. fke: "36.4",
  314. url: "./img/logos/logo13.png",
  315. },
  316. {
  317. name: "汾酒集团",
  318. yse: "26.79",
  319. yqhte: "9.64",
  320. czrde: "121.59",
  321. jse: "120.13",
  322. fke: "36.4",
  323. url: "./img/logos/logo14.png",
  324. },
  325. ],
  326. },
  327. riskData: {
  328. x: [
  329. { name: "大地控股", value: [14, 13, 6, 15, 13, 4] },
  330. { name: "云时代", value: [15, 12, 12, 10, 24, 6] },
  331. { name: "华舰体育", value: [14, 13, 6, 15, 13, 4] },
  332. { name: "神农科技", value: [14, 13, 6, 15, 13, 4] },
  333. { name: "山西焦煤", value: [14, 13, 6, 15, 13, 4] },
  334. { name: "晋能控股", value: [14, 13, 6, 15, 13, 4] },
  335. { name: "华阳新材", value: [14, 13, 6, 15, 13, 4] },
  336. { name: "潞安化工", value: [14, 13, 6, 15, 13, 4] },
  337. { name: "华新燃气", value: [14, 13, 6, 15, 13, 4] },
  338. { name: "太重集团", value: [14, 13, 6, 15, 13, 4] },
  339. { name: "国际能源", value: [14, 13, 6, 15, 13, 4] },
  340. { name: "华远陆港", value: [14, 13, 6, 15, 13, 4] },
  341. { name: "水控集团", value: [14, 13, 6, 15, 13, 4] },
  342. { name: "文旅集团", value: [14, 13, 6, 15, 13, 4] },
  343. { name: "交控集团", value: [14, 13, 6, 15, 13, 4] },
  344. { name: "航产集团", value: [14, 13, 6, 15, 13, 4] },
  345. { name: "山西建投", value: [14, 13, 6, 15, 13, 4] },
  346. { name: "汾酒集团", value: [14, 13, 6, 15, 13, 4] },
  347. ],
  348. y1: [
  349. 120, 110, 200, 220, 123, 345, 323, 123, 233, 234, 123, 143, 120, 110,
  350. 20, 220, 123, 345,
  351. ],
  352. y2: [
  353. 120, 110, 210, 220, 123, 345, 323, 123, 233, 234, 123, 143, 120, 110,
  354. 20, 220, 123, 345,
  355. ],
  356. y3: [
  357. 120, 110, 230, 220, 123, 345, 323, 123, 233, 234, 123, 143, 120, 110,
  358. 20, 220, 123, 345,
  359. ],
  360. },
  361. inner: 0,
  362. innerDeg: 0,
  363. timer: null,
  364. witchs: 0,
  365. topIndex: 0,
  366. echartR1Fd1: true,
  367. echartR2Fd2: true,
  368. r3Index: 0,
  369. riskData1: {
  370. x: [
  371. "大地控股",
  372. "云时代",
  373. "华舰体育",
  374. "神农科技",
  375. "山西焦煤",
  376. "晋能控股",
  377. "华阳新材",
  378. "潞安化工",
  379. "华新燃气",
  380. "太重集团",
  381. "国际能源",
  382. "华远陆港",
  383. "水控集团",
  384. "文旅集团",
  385. "交控集团",
  386. "航产集团",
  387. "山西建投",
  388. "汾酒集团",
  389. ],
  390. y1: [
  391. 100, 45, 67, 110, 108, 120, 110, 45, 67, 110, 108, 34, 100, 45, 67,
  392. 110, 108, 34,
  393. ],
  394. y2: [
  395. 120, 50, 67, 130, 56, 233, 100, 78, 98, 100, 120, 78, 120, 90, 56,
  396. 120, 110, 78,
  397. ],
  398. y3: [
  399. 130, 76, 67, 120, 89, 111, 87, 123, 56, 65, 45, 98, 230, 78, 99, 130,
  400. 56, 98,
  401. ],
  402. y4: [
  403. 90, 100, 67, 90, 110, 120, 34, 231, 34, 78, 78, 100, 110, 120, 67, 89,
  404. 78, 110,
  405. ],
  406. y5: [
  407. 110, 110, 67, 110, 120, 95, 78, 45, 120, 110, 98, 233, 100, 45, 67,
  408. 98, 98, 34,
  409. ],
  410. },
  411. };
  412. },
  413. created () { },
  414. beforeDestroy () {
  415. clearInterval(this.timer);
  416. clearInterval(this.time1);
  417. clearInterval(this.time2);
  418. },
  419. mounted () {
  420. let that = this
  421. this.time4s();
  422. this.timeNs();
  423. this.filterLpData();
  424. this.lpRotate();
  425. setTimeout(() => {
  426. if (that.mapShow) {
  427. that.leftEcharts12Fun()
  428. that.leftEcharts14Fun()
  429. that.leftEcharts9Fun()
  430. that.leftEcharts15Fun()
  431. that.leftEcharts13Fun()
  432. that.shanxiEchartsFun()
  433. } else {
  434. that.chinaEchartsFun()
  435. that.leftEcharts16Fun() // 中国地图背景地球
  436. }
  437. this.leftEcharts1Fun();
  438. this.leftEcharts2Fun();
  439. this.leftEcharts3Fun();
  440. this.leftEcharts4Fun();
  441. this.leftEcharts5Fun();
  442. this.leftEcharts6Fun();
  443. this.leftEcharts7Fun();
  444. this.leftEcharts8Fun();
  445. this.leftEcharts10Fun();
  446. this.leftEcharts11Fun();
  447. this.rightEcharts1Fun();
  448. this.initChartR2();
  449. this.initChartR4();
  450. });
  451. },
  452. methods: {
  453. // 解决乘法失去精度
  454. numMulti (num1, num2) {
  455. var baseNum = 0;
  456. try {
  457. baseNum += num1.toString().split(".")[1].length;
  458. } catch (e) {
  459. }
  460. try {
  461. baseNum += num2.toString().split(".")[1].length;
  462. } catch (e) {
  463. }
  464. return Number(num1.toString().replace(".", "")) * Number(num2.toString().replace(".", "")) / Math.pow(10, baseNum);
  465. },
  466. // 解决减法失去精度
  467. numSub (num1, num2) {
  468. var baseNum, baseNum1, baseNum2;
  469. var precision;// 精度
  470. try {
  471. baseNum1 = num1.toString().split(".")[1].length;
  472. } catch (e) {
  473. baseNum1 = 0;
  474. }
  475. try {
  476. baseNum2 = num2.toString().split(".")[1].length;
  477. } catch (e) {
  478. baseNum2 = 0;
  479. }
  480. baseNum = Math.pow(10, Math.max(baseNum1, baseNum2));
  481. precision = (baseNum1 >= baseNum2) ? baseNum1 : baseNum2;
  482. return ((num1 * baseNum - num2 * baseNum) / baseNum).toFixed(precision);
  483. },
  484. rightEcharts1Fun () {
  485. let that = this
  486. let sumA = 42
  487. // 所有在100范围外的全部变成0,其他值相应增加/减少sumA
  488. right5.forEach(item => {
  489. item.forEach(item2 => {
  490. if (Number(item2[1]) < 0) {
  491. item2[1] = that.$set(item2, 1, Number(that.numSub(item2[1], sumA)))
  492. } else if (Number(item2[1]) > 0) {
  493. item2[1] = that.$set(item2, 1, Number(item2[1]) + sumA)
  494. }
  495. if (Number(item2[1]) < (-100 - sumA)) {
  496. item2[1] = that.$set(item2, 1, 0)
  497. item2[1] = that.$set(item2, 2, 0)
  498. } else if (Number(item2[1]) > (100 + sumA)) {
  499. item2[1] = that.$set(item2, 1, 0)
  500. item2[1] = that.$set(item2, 2, 0)
  501. }
  502. })
  503. })
  504. const itemStyle = {
  505. // opacity: 0.8,
  506. shadowBlur: 10,
  507. shadowOffsetX: 0,
  508. shadowOffsetY: 0,
  509. shadowColor: 'rgba(0,0,0,0.3)'
  510. };
  511. that.rightEcharts1 = echarts.init(this.$refs['rightEcharts1'])
  512. that.rightEcharts1.on('showTip', (params) => {
  513. // 如果是7或者15并且满足防抖则切换
  514. if ((params.dataIndex == 5 || params.dataIndex == 11) && that.echartR2Fd) {
  515. that.echartR2Fd = false
  516. setTimeout(() => {
  517. option.dataZoom[0].endValue = option.dataZoom[0].endValue + 6
  518. option.dataZoom[0].startValue = option.dataZoom[0].startValue + 6
  519. that.rightEcharts1.setOption(option);
  520. // 防止勿刷新做的防抖
  521. setTimeout(() => {
  522. that.echartR2Fd = true
  523. }, 2000)
  524. }, 1900);
  525. // 如果是17表示到了最后一个,那么重新来一遍
  526. } else if (params.dataIndex == 17 && that.echartR2Fd) {
  527. that.echartR2Fd = false
  528. setTimeout(() => {
  529. option.dataZoom[0].endValue = 0
  530. option.dataZoom[0].startValue = 5
  531. that.rightEcharts1.setOption(option);
  532. // 防止勿刷新做的防抖
  533. setTimeout(() => {
  534. that.echartR2Fd = true
  535. }, 2000)
  536. }, 1900)
  537. }
  538. })
  539. let option = {
  540. color: ['#04635E', '#697143', '#4A3042'],
  541. dataZoom: [
  542. {
  543. // start: 9,//默认为@
  544. // end: 100,//黑认认为1@0
  545. type: "slider",
  546. show: false,
  547. // xAxisIndex: [0]
  548. handlesize: 0,//滑动条的 左右2个滑动条的大小
  549. startValue: 5,// 初始显示值
  550. endValue: 0,// 结束显示值
  551. height: 10,//组件高度
  552. left: "5%",
  553. right: "4%",//右边的距离
  554. bottom: "25%",//底边的距离
  555. borderColor: "#939",
  556. fillerColor: "#269cdb",
  557. borderRadius: 5,
  558. backgroundColor: "#33384b",//两边未选中的滑动条区域的额色
  559. showDataShadow: false,//是否显示数据阴影
  560. showDetail: false,//即拖拽时候是否显示详细数值信息
  561. truerealtime: true,//是否实时更新
  562. filterMode: "filter"
  563. }, {
  564. type: 'inside',
  565. show: true,
  566. start: 1,
  567. end: 100,
  568. zoomOnMouseWheel: false, //滚轮是否触发缩放
  569. moveOnMouseMove: false, //鼠标滚轮触发滚动
  570. }
  571. ],
  572. legend: {
  573. selectedMode: false,
  574. top: 10,
  575. data: ['正偏差', '容差', '负偏差'],
  576. textStyle: {
  577. fontSize: 20,
  578. color: '#fff',
  579. fontFamily: 'Microsoft YaHei'
  580. }
  581. },
  582. textStyle: {
  583. color: '#fff',
  584. },
  585. tooltip: {
  586. show: true,
  587. trigger: "axis",
  588. backgroundColor: "rgba(50,50,50,0.7)", // 提示框浮层的背景颜色
  589. borderColor: "rgba(50,50,50,0.7)",
  590. textStyle: {
  591. color: "#fff",
  592. fontStyle: "normal", // 文字字体的风格('normal',无样式;'italic',斜体;'oblique',倾斜字体)
  593. fontWeight: "normal", // 文字字体的粗细('normal',无样式;'bold',加粗;'bolder',加粗的基础上再加粗;'lighter',变细;数字定义粗细也可以,取值范围100至700)
  594. fontSize: "28", // 文字字体大小
  595. },
  596. formatter: data => {
  597. return `${data[0].value[0]}<br /><span style="display:inline-block;border-radius:50%; width:20px;height:20px;background-color:${data[0].color}"></span> ${data[0].seriesName}:${that.numFormat(data[0].data[2])}亿<br /><span style="display:inline-block;border-radius:50%; width:20px;height:20px;background-color:${data[1].color}"></span> ${data[1].seriesName}:${that.numFormat(data[1].data[2])}亿<br /><span style="display:inline-block;border-radius:50%; width:20px;height:20px;background-color:${data[2].color}"></span> ${data[2].seriesName}:${that.numFormat(data[2].data[2])}亿`
  598. },
  599. axisPointer: {
  600. // // type: 'cross',',
  601. },
  602. },
  603. grid: {
  604. top: '10%',
  605. right: '7%',
  606. left: '7%',
  607. bottom: '5%',
  608. },
  609. yAxis: {
  610. min: (-101 - sumA),
  611. max: (101 + sumA),
  612. maxInterval: 1,
  613. splitLine: {
  614. show: false,
  615. // interval:,
  616. lineStyle: {
  617. color: '#68b4dd66',
  618. type: 'dashed',
  619. },
  620. },
  621. axisLine: {
  622. show: false
  623. },
  624. axisTick: {
  625. show: false
  626. },
  627. axisLabel: {
  628. show: true,
  629. // formatter: '{value}',
  630. formatter (data) {
  631. if (data == (100 + sumA)) {
  632. return '100%'
  633. } else if (data == (-100 - sumA)) {
  634. return '-100%'
  635. } else if (data == (-5 - sumA)) {
  636. return '-5%'
  637. } else if (data == (5 + sumA)) {
  638. return '5%'
  639. }
  640. },
  641. textStyle: {
  642. color: '#fff',
  643. fontSize: '20',
  644. fontFamily: 'Microsoft YaHei'
  645. },
  646. },
  647. nameTextStyle: {
  648. color: '#fff',
  649. fontSize: 20,
  650. fontFamily: 'Microsoft YaHei'
  651. },
  652. },
  653. xAxis: {
  654. data: commonCompany,
  655. axisLine: {
  656. show: false, //隐藏X轴轴线
  657. lineStyle: {
  658. color: '#005094',
  659. width: 1,
  660. },
  661. },
  662. splitLine: {
  663. show: true,
  664. lineStyle: {
  665. color: '#68b4dd66',
  666. type: 'dashed',
  667. },
  668. },
  669. axisTick: {
  670. show: true, //隐藏X轴刻度
  671. },
  672. axisLabel: {
  673. show: true,
  674. // rotate: 40,
  675. padding: [0, 0, 0, 0],
  676. textStyle: {
  677. color: '#fff', //X轴文字颜色
  678. fontSize: 20,
  679. fontFamily: 'Microsoft YaHei'
  680. },
  681. },
  682. },
  683. series: [
  684. {
  685. name: '正偏差',
  686. type: 'scatter',
  687. itemStyle: itemStyle,
  688. data: right5[0],
  689. symbolSize: function (data) {
  690. if ((data[2] > 0 && data[2] < 50) || data[2] == 50) {
  691. return 40;
  692. } else if ((data[2] > 50 && data[2] < 100) || data[2] == 100) {
  693. return 70;
  694. } else if (data[2] > 100) {
  695. return 100;
  696. }
  697. },
  698. markLine: {
  699. symbol: 'none',
  700. data: [
  701. {
  702. name: '100%',
  703. yAxis: 100 + sumA,
  704. lineStyle: {
  705. // color: '#fff',
  706. },
  707. label: {
  708. show: false,
  709. formatter: '{b}',
  710. position: 'right',
  711. color: '#fff',
  712. fontSize: 20,
  713. label: {
  714. show: false
  715. }
  716. },
  717. },
  718. {
  719. name: '5%',
  720. yAxis: 5 + sumA,
  721. lineStyle: {
  722. // color: '#fff',
  723. },
  724. label: {
  725. show: false,
  726. formatter: '{b}',
  727. position: 'right',
  728. color: '#fff',
  729. fontSize: 20,
  730. },
  731. },
  732. {
  733. name: '-5%',
  734. yAxis: -5 - sumA,
  735. lineStyle: {
  736. // color: '#fff',
  737. },
  738. label: {
  739. show: false,
  740. formatter: '{b}',
  741. position: 'right',
  742. color: '#fff',
  743. fontSize: 20,
  744. },
  745. },
  746. {
  747. name: '100%',
  748. yAxis: -100 - sumA,
  749. lineStyle: {
  750. // color: '#fff',
  751. },
  752. label: {
  753. show: false,
  754. formatter: '{b}',
  755. position: 'right',
  756. color: '#fff',
  757. fontSize: 20,
  758. },
  759. },
  760. ],
  761. },
  762. },
  763. {
  764. name: '容差',
  765. type: 'scatter',
  766. itemStyle: itemStyle,
  767. data: right5[1],
  768. symbolSize: function (data) {
  769. if ((data[2] > 0 && data[2] < 50) || data[2] == 50) {
  770. return 40;
  771. } else if ((data[2] > 50 && data[2] < 100) || data[2] == 100) {
  772. return 70;
  773. } else if (data[2] > 100) {
  774. return 100;
  775. }
  776. },
  777. },
  778. {
  779. name: '负偏差',
  780. type: 'scatter',
  781. itemStyle: itemStyle,
  782. data: right5[2],
  783. symbolSize: function (data) {
  784. if ((data[2] > 0 && data[2] < 50) || data[2] == 50) {
  785. return 40;
  786. } else if ((data[2] > 50 && data[2] < 100) || data[2] == 100) {
  787. return 70;
  788. } else if (data[2] > 100) {
  789. return 100;
  790. }
  791. },
  792. }
  793. ]
  794. }
  795. that.rightEcharts1.setOption(option)
  796. tools.loopShowTooltip(that.rightEcharts1, option, {
  797. interval: 2000,
  798. loopSeries: true,
  799. })
  800. },
  801. initChartR2 () {
  802. let that = this;
  803. that.right1Chart = echarts.init(this.$refs["echartR2"]);
  804. that.right1Chart.on("showTip", (params) => {
  805. that.r3Index = params.dataIndex;
  806. that.initChartR3();
  807. // 如果是7或者15并且满足防抖则切换
  808. if (
  809. (params.dataIndex == 5 || params.dataIndex == 11) &&
  810. that.echartR1Fd1
  811. ) {
  812. that.echartR1Fd1 = false;
  813. setTimeout(() => {
  814. option.dataZoom[0].endValue = option.dataZoom[0].endValue + 6;
  815. option.dataZoom[0].startValue = option.dataZoom[0].startValue + 6;
  816. that.right1Chart.setOption(option);
  817. // 防止勿刷新做的防抖
  818. setTimeout(() => {
  819. that.echartR1Fd1 = true;
  820. }, 2000);
  821. }, 1900);
  822. // 如果是17表示到了最后一个,那么重新来一遍
  823. } else if (params.dataIndex == 17 && that.echartR1Fd1) {
  824. that.echartR1Fd1 = false;
  825. setTimeout(() => {
  826. option.dataZoom[0].endValue = 0;
  827. option.dataZoom[0].startValue = 5;
  828. that.right1Chart.setOption(option);
  829. // 防止勿刷新做的防抖
  830. setTimeout(() => {
  831. that.echartR1Fd1 = true;
  832. }, 2000);
  833. }, 1900);
  834. }
  835. });
  836. let option = {
  837. color: [
  838. {
  839. type: "linear",
  840. x: 0,
  841. y: 0,
  842. x2: 0,
  843. y2: 1,
  844. colorStops: [
  845. {
  846. offset: 0,
  847. color: "#91231F", // 0% 处的颜色
  848. },
  849. {
  850. offset: 1,
  851. color: "#F98784", // 100% 处的颜色
  852. },
  853. ],
  854. global: false, // 缺省为 false
  855. },
  856. {
  857. type: "linear",
  858. x: 0,
  859. y: 0,
  860. x2: 0,
  861. y2: 1,
  862. colorStops: [
  863. {
  864. offset: 0,
  865. color: "#9F7F00", // 0% 处的颜色
  866. },
  867. {
  868. offset: 1,
  869. color: "#FBE463", // 100% 处的颜色
  870. },
  871. ],
  872. global: false, // 缺省为 false
  873. },
  874. {
  875. type: "linear",
  876. x: 0,
  877. y: 0,
  878. x2: 0,
  879. y2: 1,
  880. colorStops: [
  881. {
  882. offset: 0,
  883. color: "#07806E", // 0% 处的颜色
  884. },
  885. {
  886. offset: 1,
  887. color: "#79FFEB", // 100% 处的颜色
  888. },
  889. ],
  890. global: false, // 缺省为 false
  891. },
  892. ],
  893. dataZoom: [
  894. {
  895. // start: 9,//默认为@
  896. // end: 100,//黑认认为1@0
  897. type: "slider",
  898. show: false,
  899. // xAxisIndex: [0]
  900. handlesize: 0, //滑动条的 左右2个滑动条的大小
  901. startValue: 5, // 初始显示值
  902. endValue: 0, // 结束显示值
  903. height: 10, //组件高度
  904. left: "5%",
  905. right: "4%", //右边的距离
  906. bottom: "25%", //底边的距离
  907. borderColor: "#939",
  908. fillerColor: "#269cdb",
  909. borderRadius: 5,
  910. backgroundColor: "#33384b", //两边未选中的滑动条区域的额色
  911. showDataShadow: false, //是否显示数据阴影
  912. showDetail: false, //即拖拽时候是否显示详细数值信息
  913. truerealtime: true, //是否实时更新
  914. filterMode: "filter",
  915. },
  916. {
  917. type: "inside",
  918. show: true,
  919. start: 1,
  920. end: 100,
  921. zoomOnMouseWheel: false, //滚轮是否触发缩放
  922. moveOnMouseMove: false, //鼠标滚轮触发滚动
  923. },
  924. ],
  925. legend: {
  926. top: 10,
  927. right: 10,
  928. textStyle: {
  929. fontSize: 20,
  930. color: "#fff",
  931. fontFamily: "Microsoft YaHei",
  932. },
  933. itemStyle: {
  934. borderCap: "round",
  935. },
  936. },
  937. tooltip: {
  938. trigger: "item",
  939. show: true,
  940. position: "top",
  941. backgroundColor: "rgba(50,50,50,0.7)", // 提示框浮层的背景颜色
  942. backgroundColor: "rgba(50,50,50,0.7)", // 提示框浮层的背景颜色
  943. borderColor: "rgba(50,50,50,0.7)",
  944. textStyle: {
  945. color: "#fff",
  946. fontStyle: "normal", // 文字字体的风格('normal',无样式;'italic',斜体;'oblique',倾斜字体)
  947. fontWeight: "normal", // 文字字体的粗细('normal',无样式;'bold',加粗;'bolder',加粗的基础上再加粗;'lighter',变细;数字定义粗细也可以,取值范围100至700)
  948. fontSize: "28", // 文字字体大小
  949. },
  950. formatter: function (p) {
  951. return p.name + "<br/>" + p.marker + p.seriesName + ": " + p.value;
  952. },
  953. },
  954. grid: {
  955. left: "3%",
  956. right: "4%",
  957. bottom: "3%",
  958. containLabel: true,
  959. },
  960. xAxis: [
  961. {
  962. type: "category",
  963. data: that.riskData.x.map((item) => item.name),
  964. axisLine: {
  965. show: true,
  966. lineStyle: {
  967. color: "rgba(0, 80, 148, .8)",
  968. },
  969. },
  970. axisTick: {
  971. show: false,
  972. },
  973. axisLabel: {
  974. color: "#fff",
  975. rotate: 20,
  976. fontSize: 22,
  977. },
  978. },
  979. ],
  980. yAxis: [
  981. {
  982. type: "value",
  983. axisLabel: {
  984. color: "#fff",
  985. fontSize: 22,
  986. },
  987. splitLine: {
  988. show: true,
  989. lineStyle: {
  990. color: "rgba(104, 180, 221, .2)",
  991. type: "dashed",
  992. },
  993. },
  994. },
  995. ],
  996. series: [
  997. {
  998. name: "低风险",
  999. type: "bar",
  1000. stack: "Ad",
  1001. barWidth: 14,
  1002. emphasis: {
  1003. focus: "series",
  1004. },
  1005. itemStyle: {
  1006. barBorderRadius: [15, 15, 15, 15],
  1007. },
  1008. data: that.riskData.y1,
  1009. },
  1010. {
  1011. name: "中风险",
  1012. type: "bar",
  1013. barWidth: 14,
  1014. stack: "Ad",
  1015. itemStyle: {
  1016. barBorderRadius: [15, 15, 15, 15],
  1017. },
  1018. emphasis: {
  1019. focus: "series",
  1020. },
  1021. data: that.riskData.y2,
  1022. },
  1023. {
  1024. name: "高风险",
  1025. type: "bar",
  1026. barWidth: 14,
  1027. stack: "Ad",
  1028. itemStyle: {
  1029. barBorderRadius: [15, 15, 15, 15],
  1030. },
  1031. emphasis: {
  1032. focus: "series",
  1033. },
  1034. data: that.riskData.y3,
  1035. },
  1036. ],
  1037. };
  1038. that.right1Chart.setOption(option);
  1039. tools.loopShowTooltip(that.right1Chart, option, {
  1040. interval: 2000,
  1041. loopSeries: true,
  1042. });
  1043. },
  1044. initChartR3 () {
  1045. let that = this;
  1046. that.right3Chart = echarts.init(this.$refs["echartR3"]);
  1047. let option = {
  1048. radar: {
  1049. // shape: 'circle',
  1050. splitNumber: 3,
  1051. splitLine: {
  1052. lineStyle: {
  1053. color: ["#DD5955", "#39e1d0", "#2e3d45"],
  1054. },
  1055. },
  1056. splitArea: {
  1057. areaStyle: {
  1058. color: [
  1059. "rgba(88,247,223,0.2)",
  1060. "rgba(255, 224, 54, 0.2)",
  1061. "rgba(221,89,85,0.3)",
  1062. ],
  1063. },
  1064. },
  1065. indicator: [
  1066. { name: "安全风险", max: 25 },
  1067. { name: "付款风险", max: 25 },
  1068. { name: "合同风险", max: 25 },
  1069. { name: "结算风险", max: 25 },
  1070. { name: "进度风险", max: 25 },
  1071. { name: "质量风险", max: 25 },
  1072. ],
  1073. },
  1074. series: [
  1075. {
  1076. name: "风险",
  1077. type: "radar",
  1078. symbol: "circle",
  1079. label: {
  1080. show: true,
  1081. formatter: function (params) {
  1082. return params.value;
  1083. },
  1084. fontSize: 24,
  1085. color: "#68BDFF",
  1086. },
  1087. data: [
  1088. {
  1089. value: that.riskData.x[that.r3Index].value,
  1090. areaStyle: {
  1091. color: "#112b75",
  1092. },
  1093. lineStyle: {
  1094. width: 4,
  1095. color: "#60C1FF",
  1096. },
  1097. label: {
  1098. fontSize: 22,
  1099. },
  1100. },
  1101. ],
  1102. },
  1103. ],
  1104. };
  1105. that.right3Chart.setOption(option);
  1106. },
  1107. initChartR4 () {
  1108. let that = this;
  1109. that.right4Chart = echarts.init(this.$refs["echartR4"]);
  1110. that.right4Chart.on("showTip", (params) => {
  1111. // 如果是7或者15并且满足防抖则切换
  1112. if (
  1113. (params.dataIndex == 5 || params.dataIndex == 11) &&
  1114. that.echartR2Fd2
  1115. ) {
  1116. that.echartR2Fd2 = false;
  1117. setTimeout(() => {
  1118. option.dataZoom[0].endValue = option.dataZoom[0].endValue + 6;
  1119. option.dataZoom[0].startValue = option.dataZoom[0].startValue + 6;
  1120. that.right4Chart.setOption(option);
  1121. // 防止勿刷新做的防抖
  1122. setTimeout(() => {
  1123. that.echartR2Fd2 = true;
  1124. }, 2000);
  1125. }, 1900);
  1126. // 如果是17表示到了最后一个,那么重新来一遍
  1127. } else if (params.dataIndex == 17 && that.echartR2Fd2) {
  1128. that.echartR2Fd2 = false;
  1129. setTimeout(() => {
  1130. option.dataZoom[0].endValue = 0;
  1131. option.dataZoom[0].startValue = 5;
  1132. that.right4Chart.setOption(option);
  1133. // 防止勿刷新做的防抖
  1134. setTimeout(() => {
  1135. that.echartR2Fd2 = true;
  1136. }, 2000);
  1137. }, 1900);
  1138. }
  1139. });
  1140. let option = {
  1141. dataZoom: [
  1142. {
  1143. // start: 9,//默认为@
  1144. // end: 100,//黑认认为1@0
  1145. type: "slider",
  1146. show: false,
  1147. // xAxisIndex: [0]
  1148. handlesize: 0, //滑动条的 左右2个滑动条的大小
  1149. startValue: 5, // 初始显示值
  1150. endValue: 0, // 结束显示值
  1151. height: 10, //组件高度
  1152. left: "5%",
  1153. right: "4%", //右边的距离
  1154. bottom: "25%", //底边的距离
  1155. borderColor: "#939",
  1156. fillerColor: "#269cdb",
  1157. borderRadius: 5,
  1158. backgroundColor: "#33384b", //两边未选中的滑动条区域的额色
  1159. showDataShadow: false, //是否显示数据阴影
  1160. showDetail: false, //即拖拽时候是否显示详细数值信息
  1161. truerealtime: true, //是否实时更新
  1162. filterMode: "filter",
  1163. },
  1164. {
  1165. type: "inside",
  1166. show: true,
  1167. start: 1,
  1168. end: 100,
  1169. zoomOnMouseWheel: false, //滚轮是否触发缩放
  1170. moveOnMouseMove: false, //鼠标滚轮触发滚动
  1171. },
  1172. ],
  1173. title: {
  1174. text: "企业后评价执行情况",
  1175. left: "center",
  1176. textStyle: {
  1177. color: "#fff",
  1178. fontSize: 32,
  1179. },
  1180. },
  1181. tooltip: {
  1182. trigger: "item",
  1183. show: true,
  1184. position: "top",
  1185. backgroundColor: "rgba(50,50,50,0.7)", // 提示框浮层的背景颜色
  1186. borderColor: "rgba(50,50,50,0.7)",
  1187. textStyle: {
  1188. color: "#fff",
  1189. fontStyle: "normal", // 文字字体的风格('normal',无样式;'italic',斜体;'oblique',倾斜字体)
  1190. fontWeight: "normal", // 文字字体的粗细('normal',无样式;'bold',加粗;'bolder',加粗的基础上再加粗;'lighter',变细;数字定义粗细也可以,取值范围100至700)
  1191. fontSize: "28", // 文字字体大小
  1192. },
  1193. formatter: function (p) {
  1194. return p.name + "<br/>" + p.marker + p.seriesName + ": " + p.value;
  1195. },
  1196. },
  1197. legend: {
  1198. show: true,
  1199. textStyle: {
  1200. fontSize: 24,
  1201. color: "rgba(255, 255, 255, .6)",
  1202. },
  1203. inactiveColor: "#fff",
  1204. itemHeight: 20,
  1205. top: "15%",
  1206. backgroundColor: "transparent",
  1207. data: [
  1208. {
  1209. name: "应首评项目数",
  1210. icon: "image://data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAUCAYAAAC58NwRAAAAAXNSR0IArs4c6QAAAWdJREFUOE+N0k8og3EYB/Dvs8P8CSlTxJGD8u+yTYmNm0gJQznIQRxMoV2cXWSKCznIQdk7SkmOEomNg41y4EjURkLZFI/ed3vX+5v82nt4357n9/s8Pe/v9xCST6+fzVHGKAMDAKqT6WsCNi2ElS0Xfak5Ul+tfi77YewBqNcLpH0vTYSOAxc9kFo5wghINus2lJMPOzl8PE6EpX8qC2lmuMmp8CmABn3FVgJ4bIloLggEnwRzRg6F4wSY9fR2J1CUnYieY0DPrgDiUvASA7pF8PGnJXsp4LEC3wx4L4DAY1pLLQq7GVjM5KcJmKC2fc76fNeOtU6GmBDOzYMt04sLmQjt2sUZRyMCjAEYBKNKyxNuAGwUA8vCaBhbcSrMxviwj1JFU7Nk3NC49iqAk+FCObAu3AngfLJCDmpmjgVwNdskB5UjPgHcrvbLQXmXVwD3O1NyYGmeFkD0aF4OCmqHBPAWXhfAL4WqeuKVsFKCAAAAAElFTkSuQmCC",
  1211. },
  1212. {
  1213. name: "已完成首评项目数",
  1214. icon: "image://data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAUCAYAAAC58NwRAAAAAXNSR0IArs4c6QAAAXFJREFUOE+V0kFLAkEUB/D/G9eW3UN1sFPYNaJAu2R0Coog8mq0fQH1kEVBhz5Ah6CoLhrdE/LqKQo6VZ7SKCKChKRTBRmhbq47oabsZC22h1nem/k93jCP8P0F+E2HQ1dD4NAAGqqn+TUI8YpciCVo8LOaoeoSKOR6GTOSxOFtFLD+OSFtmpI/obqfqFqZ6Wrqr8NNyJHJK4aPtNLDAue0+1vlnzkiHqG5YvYcwGhj08MUhJyuWhgrvyBjFq3uogp0AB2NbFR2o5sctfCNVxDWc1ag/xPQR0tLXqYg6HTBBMd++RXplpZK2Qg4dtq5NAiLNM3v5a6ilALBY4s4rvKKMdLWw4EjU4E0U3s462gwXQ3DMLeJsfpgmCYgsSVTLkSF0bC24r9NcWucHPA1izZnyXpg8vRIAMfjU/ZgLH4ogDNt1h4Mb8YEcLkSsgf9y+sCuNtaswd92qoAHuMb9qBnIiiA55M9e9DpnRfAe/pAAF9gqJXUYWdYUwAAAABJRU5ErkJggg==",
  1215. },
  1216. {
  1217. name: "应再评项目数",
  1218. icon: "image://data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAUCAYAAAC58NwRAAAAAXNSR0IArs4c6QAAAV5JREFUOE+V0j8oxGEYwPHvo/wMjgyUslAWcTFhMRiEsHLKYDzFKZRBSskgR7mUG29QjpX86QaDwdlwLotiUYpB/gyHPDru9HsPP+c3vL+e530/T8/b+wipb31KrYJ8vAi9QE0qfYqy+vBEsHtKnpM5SS4bC1qW+8amQl26gP0vcPSSQ2fXiFxJsnKhi8PfDtvgsVo0yJZfhwQCP1XOzCn4ZNuvB0BjerO4HNxtn1FsB24vDRZNggRgpdPNXsjL/4wST7AXNEDiv+DxW0slFVDTCvoG8QjcXGS2NKc+hMVsLo0yLFsBzZNnDoHaP9CJWtRn9XDA8WsOHR8PZx+NQhcDqvQhVH3klTMRVu4fWTZGw97Ktl/VHrePyVfRr1myHwhP3xnAM1nkDJbGzw0wOFvpDCa8+waYCTY5g/6esAFCax5n0NI6b4DI7qgzcDeOGSAW9TuD0up+A1zHQwZ4B2JrgI9r4uMDAAAAAElFTkSuQmCC",
  1219. },
  1220. {
  1221. name: "已完成再评项目数",
  1222. icon: "image://data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAUCAYAAAC58NwRAAAAAXNSR0IArs4c6QAAAWBJREFUOE9jZICC/1e12Rh4uDIY/jNGMjAw6ECFrzAw/l/O8OXbDEbtq79AYowg4v9jS2mGv3+3MDAwGMAMQKMvMDAz+zDKHn/KCDaZm/skHsUwvRcZfr8zZ/z/0CyX4T/DJBwmowozMuQx/n9gdpyBgcECLsNpycAgXAPhvm1hYPgOkoaDEyANPxkYGNjgQjJbGRiYRSDcv28YGJ54I2v4SUDDWwaGJ17IGr5gcZIV1El/GRjetjMwfD+G5qSHpnkM/xknEufp//mM/2+rsDOwCoGCVZ+ApksMv9+ZERtxFxmYmb3BEYeaNHgyGf7/j2FgYNCEil9nYGRcwvDly3SUpIHslP8PzP4j8xkVTsENhaclZAWvLligaBAzOIFfw9ld1igajN2O4tewar49ioawxIP4NbQ0OqNoqKnfi19DXIoHioZFc3bg12Dt6YOi4ej2Lfg1yBn7o2h4dHYjigYAb0t88hVwEBYAAAAASUVORK5CYII=",
  1223. },
  1224. {
  1225. name: "再评达标项目数",
  1226. icon: "image://data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAUCAYAAAC58NwRAAAAAXNSR0IArs4c6QAAAWBJREFUOE+V0k8og2EcwPHvkzVZLLm6KItEzWlclIPbdhGKcsCJwzZFdtgOK+8OimIXTjgoSrisXByUgz8nE4mmXFwlZmuaPXr3r/eZ9sZ7eN9+v/f5/J6n3/MTFJ9wWFpTFqYFjAFdxfSthF1blo1wWHzpOaG/gppszkIM6C4VqPheW8ATCYkXoVdOW7g0WVyy8ZSdHhFYlF4E0SqV1bTEJwKaPAd6S3/aWmHEU4j2Y/D4pJgLHWQAaykd9ENDfSH6SEJkTQGZ/4LkryO1O2DYDbkcHB7DQ6LiSAua9AlQN67SAQl+4Y3KWtt7vq1Os04JuPm04/rrxcUt4M5fnHE00jXMIBgHOor5eyQ7dd+sK6NhPEpAk9IYL4VEuWh5lowLfKE3BUS1RnMwOZtQwNaqwxwMTp0p4Gizzxz0D+0p4PRg1Bw4B1YUED+ZMwctrnkFPF8tm4OmzgkFvN5tK+AHKZh4TU8krdoAAAAASUVORK5CYII=",
  1227. },
  1228. ],
  1229. },
  1230. grid: {
  1231. top: "30%",
  1232. left: "3%",
  1233. right: "4%",
  1234. bottom: "3%",
  1235. containLabel: true,
  1236. },
  1237. xAxis: {
  1238. data: that.riskData1.x,
  1239. type: "category",
  1240. splitLine: {
  1241. show: false,
  1242. },
  1243. alignTicks: true,
  1244. axisLine: {
  1245. show: true,
  1246. lineStyle: {
  1247. color: "rgba(0, 80, 148, .8)",
  1248. },
  1249. },
  1250. axisTick: {
  1251. show: false,
  1252. },
  1253. axisLabel: {
  1254. color: "#fff",
  1255. fontSize: 22,
  1256. rotate: 20,
  1257. },
  1258. },
  1259. yAxis: {
  1260. type: "value",
  1261. splitLine: {
  1262. show: true,
  1263. lineStyle: {
  1264. color: "rgba(104, 180, 221, .2)",
  1265. type: "dashed",
  1266. },
  1267. },
  1268. axisLine: {
  1269. show: false,
  1270. },
  1271. axisTick: {
  1272. show: false,
  1273. },
  1274. axisLabel: {
  1275. color: "#fff",
  1276. fontSize: 22,
  1277. },
  1278. },
  1279. series: [
  1280. {
  1281. type: "bar",
  1282. name: "应首评项目数",
  1283. barWidth: 4,
  1284. barGap: "600%",
  1285. data: that.riskData1.y1,
  1286. label: {
  1287. show: true,
  1288. position: "top",
  1289. formatter: " ",
  1290. width: 6,
  1291. height: 6,
  1292. borderRadius: 50,
  1293. borderWidth: 6,
  1294. borderColor: "#40A9FF",
  1295. backgroundColor: "#fff",
  1296. },
  1297. itemStyle: {
  1298. color: {
  1299. x: 0,
  1300. y: 0,
  1301. x2: 0,
  1302. y2: 1,
  1303. colorStops: [
  1304. {
  1305. offset: 0,
  1306. color: "#40A9FF", // 0% 处的颜色
  1307. },
  1308. {
  1309. offset: 1,
  1310. color: "#092351", // 100% 处的颜色
  1311. },
  1312. ],
  1313. },
  1314. },
  1315. },
  1316. {
  1317. type: "bar",
  1318. name: "已完成首评项目数",
  1319. barGap: "600%",
  1320. barWidth: 4,
  1321. data: that.riskData1.y2,
  1322. label: {
  1323. show: true,
  1324. position: "top",
  1325. formatter: " ",
  1326. width: 6,
  1327. height: 6,
  1328. borderRadius: 50,
  1329. borderWidth: 6,
  1330. borderColor: "#58F7DF",
  1331. backgroundColor: "#fff",
  1332. },
  1333. itemStyle: {
  1334. color: {
  1335. x: 0,
  1336. y: 0,
  1337. x2: 0,
  1338. y2: 1,
  1339. colorStops: [
  1340. {
  1341. offset: 0,
  1342. color: "#58F7DF", // 0% 处的颜色
  1343. },
  1344. {
  1345. offset: 1,
  1346. color: "#092351", // 100% 处的颜色
  1347. },
  1348. ],
  1349. },
  1350. },
  1351. },
  1352. {
  1353. type: "bar",
  1354. name: "应再评项目数",
  1355. barGap: "600%",
  1356. barWidth: 4,
  1357. data: that.riskData1.y3,
  1358. label: {
  1359. show: true,
  1360. position: "top",
  1361. formatter: " ",
  1362. width: 6,
  1363. height: 6,
  1364. borderRadius: 50,
  1365. borderWidth: 6,
  1366. borderColor: "#B78CFF",
  1367. backgroundColor: "#fff",
  1368. },
  1369. itemStyle: {
  1370. color: {
  1371. x: 0,
  1372. y: 0,
  1373. x2: 0,
  1374. y2: 1,
  1375. colorStops: [
  1376. {
  1377. offset: 0,
  1378. color: "#B78CFF", // 0% 处的颜色
  1379. },
  1380. {
  1381. offset: 1,
  1382. color: "#092351", // 100% 处的颜色
  1383. },
  1384. ],
  1385. },
  1386. },
  1387. },
  1388. {
  1389. type: "bar",
  1390. name: "已完成再评项目数",
  1391. barGap: "600%",
  1392. barWidth: 4,
  1393. data: that.riskData1.y4,
  1394. label: {
  1395. show: true,
  1396. position: "top",
  1397. formatter: " ",
  1398. width: 6,
  1399. height: 6,
  1400. borderRadius: 50,
  1401. borderWidth: 6,
  1402. borderColor: "#FFE036",
  1403. backgroundColor: "#fff",
  1404. },
  1405. itemStyle: {
  1406. color: {
  1407. x: 0,
  1408. y: 0,
  1409. x2: 0,
  1410. y2: 1,
  1411. colorStops: [
  1412. {
  1413. offset: 0,
  1414. color: "#FFE036", // 0% 处的颜色
  1415. },
  1416. {
  1417. offset: 1,
  1418. color: "#092351", // 100% 处的颜色
  1419. },
  1420. ],
  1421. },
  1422. },
  1423. },
  1424. {
  1425. type: "bar",
  1426. name: "再评达标项目数",
  1427. barGap: "600%",
  1428. barWidth: 4,
  1429. data: that.riskData1.y5,
  1430. label: {
  1431. show: true,
  1432. position: "top",
  1433. formatter: " ",
  1434. width: 6,
  1435. height: 6,
  1436. borderRadius: 50,
  1437. borderWidth: 6,
  1438. borderColor: "#7784FF",
  1439. backgroundColor: "#fff",
  1440. },
  1441. itemStyle: {
  1442. color: {
  1443. x: 0,
  1444. y: 0,
  1445. x2: 0,
  1446. y2: 1,
  1447. colorStops: [
  1448. {
  1449. offset: 0,
  1450. color: "#7784FF", // 0% 处的颜色
  1451. },
  1452. {
  1453. offset: 1,
  1454. color: "#092351", // 100% 处的颜色
  1455. },
  1456. ],
  1457. },
  1458. },
  1459. },
  1460. ],
  1461. };
  1462. that.right4Chart.setOption(option);
  1463. tools.loopShowTooltip(that.right4Chart, option, {
  1464. interval: 2000,
  1465. loopSeries: true,
  1466. });
  1467. },
  1468. clickItem (index) {
  1469. const angle = 360 / this.investData.investList.length;
  1470. this.witchs = index;
  1471. this.inner = index;
  1472. this.innerDeg = this.witchs * angle;
  1473. this.lpRotate();
  1474. },
  1475. lpRotate () {
  1476. const angle = 360 / this.investData.investList.length;
  1477. clearInterval(this.timer);
  1478. this.timer = setInterval(() => {
  1479. this.inner++;
  1480. this.topIndex++;
  1481. this.topIndex = this.topIndex % 8;
  1482. this.witchs = this.inner % this.investData.investList.length;
  1483. this.innerDeg = this.inner * angle;
  1484. }, 2000);
  1485. },
  1486. filterLpData () {
  1487. const angle = 360 / this.investData.investList.length;
  1488. for (let i in this.investData.investList) {
  1489. this.investData.investList[i].deg = i * angle;
  1490. this.$set(this.investData.investList, i, {
  1491. ...this.investData.investList[i],
  1492. deg: i * angle,
  1493. });
  1494. }
  1495. },
  1496. // 4秒定时器
  1497. time4s () {
  1498. let that = this;
  1499. // 4秒定时器
  1500. this.time1 = setInterval(() => {
  1501. that.industryProportion == 1
  1502. ? (that.industryProportion = 2)
  1503. : (that.industryProportion = 1);
  1504. that.leftEcharts1.dispose();
  1505. that.leftEcharts2.dispose();
  1506. that.leftEcharts3.dispose();
  1507. that.leftEcharts4.dispose();
  1508. that.leftEcharts1Fun();
  1509. that.leftEcharts2Fun();
  1510. that.leftEcharts3Fun();
  1511. that.leftEcharts4Fun();
  1512. }, 4000);
  1513. },
  1514. // 针对投前产业布局分析的定时器
  1515. timeNs () {
  1516. let that = this;
  1517. this.time2 = setInterval(() => {
  1518. if (that.industryLayout < 3) {
  1519. that.industryLayout = that.industryLayout + 1;
  1520. } else {
  1521. that.industryLayout = 0;
  1522. }
  1523. this.time2 && clearInterval(this.time2);
  1524. this.timeNs();
  1525. that.leftEcharts5.dispose();
  1526. that.leftEcharts5Fun();
  1527. }, left1[that.industryLayout].length * 2000);
  1528. },
  1529. // 主辅业占比点击方法
  1530. industryProportionChange (e) {
  1531. let that = this;
  1532. this.industryProportion = e;
  1533. this.time1 && clearInterval(this.time1);
  1534. that.leftEcharts1.dispose();
  1535. that.leftEcharts2.dispose();
  1536. that.leftEcharts3.dispose();
  1537. that.leftEcharts4.dispose();
  1538. that.leftEcharts1Fun();
  1539. that.leftEcharts2Fun();
  1540. that.leftEcharts3Fun();
  1541. that.leftEcharts4Fun();
  1542. this.time4s();
  1543. },
  1544. // 产业布局分析点击方法
  1545. industryLayoutChange (e) {
  1546. this.industryLayout = e;
  1547. this.time2 && clearInterval(this.time2);
  1548. this.leftEcharts5.dispose();
  1549. this.timeNs();
  1550. this.leftEcharts5Fun();
  1551. },
  1552. yuanChange (value) {
  1553. return Number((value / 100000000).toFixed(2));
  1554. },
  1555. // 逢三折断
  1556. numFormat (value) {
  1557. if (!value) return "0";
  1558. // var intPart = Number(value).toFixed(0) // 获取整数部分
  1559. var intPart = parseInt(value); // 获取整数部分
  1560. var intPartFormat = intPart
  1561. .toString()
  1562. .replace(/(\d)(?=(?:\d{3})+$)/g, "$1,"); // 将整数部分逢三一断
  1563. var floatPart = ".00"; // 预定义小数部分
  1564. var value2Array = value.toString().split(".");
  1565. // =2表示数据有小数位
  1566. if (value2Array.length === 2) {
  1567. floatPart = value2Array[1].toString(); // 拿到小数部分
  1568. if (floatPart.length === 1) {
  1569. // 补0
  1570. return intPartFormat + "." + floatPart + "0";
  1571. } else {
  1572. floatPart = floatPart.slice(0, 2);
  1573. return intPartFormat + "." + floatPart;
  1574. }
  1575. } else {
  1576. return intPartFormat;
  1577. }
  1578. },
  1579. leftEcharts1Fun () {
  1580. let that = this;
  1581. this.leftEcharts1 = echarts.init(this.$refs["leftEcharts1"]);
  1582. option = {
  1583. title: {
  1584. text: that.industryProportion == 1 ? "30%" : "70%",
  1585. x: "center",
  1586. y: "center",
  1587. textStyle: {
  1588. fontWeight: "normal",
  1589. color: "#68BDFF",
  1590. fontSize: "20",
  1591. },
  1592. },
  1593. color: ["#68BDFF", "#254F7F"],
  1594. series: [
  1595. {
  1596. name: "Line 1",
  1597. type: "pie",
  1598. clockWise: true,
  1599. radius: ["80%", "100%"],
  1600. itemStyle: {
  1601. normal: {
  1602. label: {
  1603. show: false,
  1604. },
  1605. labelLine: {
  1606. show: false,
  1607. },
  1608. },
  1609. },
  1610. hoverAnimation: false,
  1611. data: [
  1612. {
  1613. value: 80,
  1614. name: "01",
  1615. itemStyle: {
  1616. normal: {
  1617. label: {
  1618. show: false,
  1619. },
  1620. labelLine: {
  1621. show: false,
  1622. },
  1623. },
  1624. },
  1625. },
  1626. {
  1627. name: "02",
  1628. value: 20,
  1629. },
  1630. ],
  1631. },
  1632. ],
  1633. };
  1634. //轮播
  1635. // tools.loopShowTooltip(leftEcharts1, option, {
  1636. // interval: 2000,
  1637. // loopSeries: true,
  1638. // });
  1639. //注册
  1640. that.leftEcharts1.setOption(option);
  1641. },
  1642. leftEcharts2Fun () {
  1643. let that = this;
  1644. this.leftEcharts2 = echarts.init(this.$refs["leftEcharts2"]);
  1645. let nameList = ["a"];
  1646. let valueList = that.industryProportion == 1 ? [30] : [70];
  1647. let total = 100; // 数据总数
  1648. var category = nameList.map((item, index) => {
  1649. return {
  1650. value: valueList[index],
  1651. itemStyle: {
  1652. color: new echarts.graphic.LinearGradient(
  1653. 1,
  1654. 0,
  1655. 0,
  1656. 1,
  1657. [
  1658. {
  1659. offset: 0,
  1660. color: "#40A9FF50",
  1661. },
  1662. {
  1663. offset: 1,
  1664. color: "#40A9FF",
  1665. },
  1666. ],
  1667. false
  1668. ),
  1669. },
  1670. };
  1671. });
  1672. var totalList = [];
  1673. var totalBorderList = [];
  1674. nameList.map((item, index) => {
  1675. totalList.push({
  1676. value: total,
  1677. itemStyle: {
  1678. color: "rgba(51, 147, 236, 0.29)",
  1679. },
  1680. });
  1681. totalBorderList.push({
  1682. value: total,
  1683. itemStyle: {
  1684. borderColor: "rgba(51, 147, 236, 0.29)",
  1685. color: "transparent",
  1686. },
  1687. });
  1688. });
  1689. var datas = [];
  1690. category.forEach((value) => {
  1691. datas.push(value.value);
  1692. });
  1693. option = {
  1694. // backgroundColor: 'rgb(231,238,249)',
  1695. xAxis: {
  1696. max: total,
  1697. splitLine: {
  1698. show: false,
  1699. },
  1700. axisLine: {
  1701. show: false,
  1702. },
  1703. axisLabel: {
  1704. show: false,
  1705. },
  1706. axisTick: {
  1707. show: false,
  1708. },
  1709. },
  1710. grid: {
  1711. left: "0%",
  1712. top: "15%", // 设置条形图的边距
  1713. right: "15%",
  1714. bottom: "5%",
  1715. },
  1716. yAxis: [
  1717. {
  1718. type: "category",
  1719. inverse: false,
  1720. data: nameList,
  1721. axisLine: {
  1722. show: false,
  1723. },
  1724. axisTick: {
  1725. show: false,
  1726. },
  1727. axisLabel: {
  1728. show: false,
  1729. },
  1730. },
  1731. ],
  1732. series: [
  1733. {
  1734. // 内
  1735. type: "bar",
  1736. barWidth: 16,
  1737. barGap: "20%",
  1738. silent: true,
  1739. // label: {
  1740. // normal: {
  1741. // formatter: (item) => {
  1742. // return `${item['name']}:${item['value']} `;
  1743. // },
  1744. // textStyle: {
  1745. // color: 'rgba(105, 120, 136, 1)',
  1746. // fontSize: 14,
  1747. // },
  1748. // position: [0, '-25px'],
  1749. // show: true,
  1750. // },
  1751. // },
  1752. data: category,
  1753. z: 1,
  1754. itemStyle: {
  1755. normal: {
  1756. color: new echarts.graphic.LinearGradient(
  1757. 1,
  1758. 0,
  1759. 0,
  1760. 1,
  1761. [
  1762. {
  1763. offset: 0,
  1764. color: "rgba(81, 193, 156, 1)",
  1765. },
  1766. {
  1767. offset: 1,
  1768. color: "rgba(234, 177, 100, 1)",
  1769. },
  1770. ],
  1771. false
  1772. ),
  1773. },
  1774. },
  1775. animationEasing: "elasticOut",
  1776. },
  1777. {
  1778. // 分隔
  1779. type: "pictorialBar",
  1780. itemStyle: {
  1781. normal: {
  1782. color: "#143362",
  1783. },
  1784. },
  1785. symbolRepeat: "fixed",
  1786. symbolMargin: 8,
  1787. symbol: "rect",
  1788. symbolClip: false,
  1789. symbolSize: [4, 20],
  1790. symbolPosition: "start",
  1791. symbolOffset: [0, -2],
  1792. symbolBoundingData: total,
  1793. data: [total, total, total, total],
  1794. z: 2,
  1795. animationEasing: "elasticOut",
  1796. },
  1797. {
  1798. // label
  1799. type: "pictorialBar",
  1800. symbolBoundingData: total,
  1801. itemStyle: {
  1802. normal: {
  1803. color: "none",
  1804. },
  1805. },
  1806. label: {
  1807. normal: {
  1808. formatter: (params) => {
  1809. var text;
  1810. text = `${((params["data"] * 100) / total).toFixed(2)}亿`;
  1811. return text;
  1812. },
  1813. textStyle: {
  1814. // 图列内容样式
  1815. fontSize: "20",
  1816. fontWeight: 800,
  1817. },
  1818. position: "right",
  1819. offset: [0, -3],
  1820. distance: 10, // 向右偏移位置
  1821. show: true,
  1822. color: "#68BDFF",
  1823. },
  1824. },
  1825. data: datas,
  1826. z: 0,
  1827. },
  1828. {
  1829. name: "外框",
  1830. type: "bar",
  1831. barGap: "-130%", // 设置外框粗细
  1832. data: totalBorderList,
  1833. barWidth: 26,
  1834. itemStyle: {
  1835. normal: {
  1836. // barBorderRadius: [5, 5, 5, 5],
  1837. borderWidth: 1, // 边框宽度
  1838. borderColor: "rgb(51, 147, 236)", // 边框色
  1839. color: "rgb(231,238,249)",
  1840. },
  1841. },
  1842. z: 0,
  1843. },
  1844. ],
  1845. };
  1846. //轮播
  1847. // tools.loopShowTooltip(leftEcharts1, option, {
  1848. // interval: 2000,
  1849. // loopSeries: true,
  1850. // });
  1851. //注册
  1852. that.leftEcharts2.setOption(option);
  1853. },
  1854. leftEcharts3Fun () {
  1855. let that = this;
  1856. this.leftEcharts3 = echarts.init(this.$refs["leftEcharts3"]);
  1857. option = {
  1858. title: {
  1859. text: that.industryProportion == 1 ? "70%" : "30%",
  1860. x: "center",
  1861. y: "center",
  1862. textStyle: {
  1863. fontWeight: "normal",
  1864. color: "#68BDFF",
  1865. fontSize: "20",
  1866. },
  1867. },
  1868. color: ["#5BDCC8", "#254F7F"],
  1869. series: [
  1870. {
  1871. name: "Line 1",
  1872. type: "pie",
  1873. clockWise: true,
  1874. radius: ["80%", "100%"],
  1875. itemStyle: {
  1876. normal: {
  1877. label: {
  1878. show: false,
  1879. },
  1880. labelLine: {
  1881. show: false,
  1882. },
  1883. },
  1884. },
  1885. hoverAnimation: false,
  1886. data: [
  1887. {
  1888. value: 80,
  1889. name: "01",
  1890. itemStyle: {
  1891. normal: {
  1892. label: {
  1893. show: false,
  1894. },
  1895. labelLine: {
  1896. show: false,
  1897. },
  1898. },
  1899. },
  1900. },
  1901. {
  1902. name: "02",
  1903. value: 20,
  1904. },
  1905. ],
  1906. },
  1907. ],
  1908. };
  1909. //轮播
  1910. // tools.loopShowTooltip(leftEcharts1, option, {
  1911. // interval: 2000,
  1912. // loopSeries: true,
  1913. // });
  1914. //注册
  1915. that.leftEcharts3.setOption(option);
  1916. },
  1917. leftEcharts4Fun () {
  1918. let that = this;
  1919. this.leftEcharts4 = echarts.init(this.$refs["leftEcharts4"]);
  1920. let nameList = ["a"];
  1921. let valueList = that.industryProportion == 1 ? [70] : [30];
  1922. let total = 100; // 数据总数
  1923. var category = nameList.map((item, index) => {
  1924. return {
  1925. value: valueList[index],
  1926. itemStyle: {
  1927. color: new echarts.graphic.LinearGradient(
  1928. 1,
  1929. 0,
  1930. 0,
  1931. 1,
  1932. [
  1933. {
  1934. offset: 0,
  1935. color: "#5BDCC850",
  1936. },
  1937. {
  1938. offset: 1,
  1939. color: "#5BDCC8",
  1940. },
  1941. ],
  1942. false
  1943. ),
  1944. },
  1945. };
  1946. });
  1947. var totalList = [];
  1948. var totalBorderList = [];
  1949. nameList.map((item, index) => {
  1950. totalList.push({
  1951. value: total,
  1952. itemStyle: {
  1953. color: "rgba(51, 147, 236, 0.29)",
  1954. },
  1955. });
  1956. totalBorderList.push({
  1957. value: total,
  1958. itemStyle: {
  1959. borderColor: "rgba(51, 147, 236, 0.29)",
  1960. color: "transparent",
  1961. },
  1962. });
  1963. });
  1964. var datas = [];
  1965. category.forEach((value) => {
  1966. datas.push(value.value);
  1967. });
  1968. option = {
  1969. // backgroundColor: 'rgb(231,238,249)',
  1970. xAxis: {
  1971. max: total,
  1972. splitLine: {
  1973. show: false,
  1974. },
  1975. axisLine: {
  1976. show: false,
  1977. },
  1978. axisLabel: {
  1979. show: false,
  1980. },
  1981. axisTick: {
  1982. show: false,
  1983. },
  1984. },
  1985. grid: {
  1986. left: "0%",
  1987. top: "15%", // 设置条形图的边距
  1988. right: "15%",
  1989. bottom: "5%",
  1990. },
  1991. yAxis: [
  1992. {
  1993. type: "category",
  1994. inverse: false,
  1995. data: nameList,
  1996. axisLine: {
  1997. show: false,
  1998. },
  1999. axisTick: {
  2000. show: false,
  2001. },
  2002. axisLabel: {
  2003. show: false,
  2004. },
  2005. },
  2006. ],
  2007. series: [
  2008. {
  2009. // 内
  2010. type: "bar",
  2011. barWidth: 16,
  2012. barGap: "20%",
  2013. silent: true,
  2014. // label: {
  2015. // normal: {
  2016. // formatter: (item) => {
  2017. // return `${item['name']}:${item['value']} `;
  2018. // },
  2019. // textStyle: {
  2020. // color: 'rgba(105, 120, 136, 1)',
  2021. // fontSize: 14,
  2022. // },
  2023. // position: [0, '-25px'],
  2024. // show: true,
  2025. // },
  2026. // },
  2027. data: category,
  2028. z: 1,
  2029. itemStyle: {
  2030. normal: {
  2031. color: new echarts.graphic.LinearGradient(
  2032. 1,
  2033. 0,
  2034. 0,
  2035. 1,
  2036. [
  2037. {
  2038. offset: 0,
  2039. color: "rgba(81, 193, 156, 1)",
  2040. },
  2041. {
  2042. offset: 1,
  2043. color: "rgba(234, 177, 100, 1)",
  2044. },
  2045. ],
  2046. false
  2047. ),
  2048. },
  2049. },
  2050. animationEasing: "elasticOut",
  2051. },
  2052. {
  2053. // 分隔
  2054. type: "pictorialBar",
  2055. itemStyle: {
  2056. normal: {
  2057. color: "#143362",
  2058. },
  2059. },
  2060. symbolRepeat: "fixed",
  2061. symbolMargin: 8,
  2062. symbol: "rect",
  2063. symbolClip: false,
  2064. symbolSize: [4, 20],
  2065. symbolPosition: "start",
  2066. symbolOffset: [0, -2],
  2067. symbolBoundingData: total,
  2068. data: [total, total, total, total],
  2069. z: 2,
  2070. animationEasing: "elasticOut",
  2071. },
  2072. {
  2073. // label
  2074. type: "pictorialBar",
  2075. symbolBoundingData: total,
  2076. itemStyle: {
  2077. normal: {
  2078. color: "none",
  2079. },
  2080. },
  2081. label: {
  2082. normal: {
  2083. formatter: (params) => {
  2084. var text;
  2085. text = `${((params["data"] * 100) / total).toFixed(2)}亿`;
  2086. return text;
  2087. },
  2088. textStyle: {
  2089. // 图列内容样式
  2090. fontSize: "20",
  2091. fontWeight: 800,
  2092. },
  2093. position: "right",
  2094. offset: [0, -3],
  2095. distance: 10, // 向右偏移位置
  2096. show: true,
  2097. color: "#68BDFF",
  2098. },
  2099. },
  2100. data: datas,
  2101. z: 0,
  2102. },
  2103. {
  2104. name: "外框",
  2105. type: "bar",
  2106. barGap: "-130%", // 设置外框粗细
  2107. data: totalBorderList,
  2108. barWidth: 26,
  2109. itemStyle: {
  2110. normal: {
  2111. // barBorderRadius: [5, 5, 5, 5],
  2112. borderWidth: 1, // 边框宽度
  2113. borderColor: "rgb(51, 147, 236)", // 边框色
  2114. color: "rgb(231,238,249)",
  2115. },
  2116. },
  2117. z: 0,
  2118. },
  2119. ],
  2120. };
  2121. //轮播
  2122. // tools.loopShowTooltip(leftEcharts1, option, {
  2123. // interval: 2000,
  2124. // loopSeries: true,
  2125. // });
  2126. //注册
  2127. that.leftEcharts4.setOption(option);
  2128. },
  2129. leftEcharts5Fun () {
  2130. let that = this;
  2131. this.leftEcharts5 = echarts.init(this.$refs["leftEcharts5"]);
  2132. let dataList = [];
  2133. left1[that.industryLayout].forEach((item, index) => {
  2134. dataList[index] = {
  2135. value: item.y,
  2136. name: item.name,
  2137. itemStyle: {
  2138. normal: {
  2139. color: new echarts.graphic.LinearGradient(1, 0, 0, 1, [
  2140. {
  2141. offset: 0,
  2142. color: commonColor2[index], //顶部颜色
  2143. },
  2144. {
  2145. offset: 1,
  2146. color: commonColor[index], // 底部颜色
  2147. },
  2148. ]),
  2149. borderColor: commonColor[index],
  2150. borderWidth: 3,
  2151. },
  2152. },
  2153. };
  2154. });
  2155. let option = {
  2156. tooltip: {
  2157. trigger: "item",
  2158. formatter: function (e) {
  2159. return `<span style="display:inline-block;margin-right:15px;border-radius:10px;width:20px;height:20px;background-color:${e.borderColor
  2160. };"></span>${e.name} ${e.percent}%<br>${e.value}亿 ${left1[that.industryLayout][e.seriesIndex].num
  2161. }个`;
  2162. },
  2163. backgroundColor: "rgba(50,50,50,0.7)", // 提示框浮层的背景颜色
  2164. textStyle: {
  2165. color: "#fff",
  2166. fontStyle: "normal", // 文字字体的风格('normal',无样式;'italic',斜体;'oblique',倾斜字体)
  2167. fontWeight: "normal", // 文字字体的粗细('normal',无样式;'bold',加粗;'bolder',加粗的基础上再加粗;'lighter',变细;数字定义粗细也可以,取值范围100至700)
  2168. fontSize: "28", // 文字字体大小
  2169. },
  2170. },
  2171. legend: {
  2172. top: "center",
  2173. orient: "vertical",
  2174. left: "75%",
  2175. textStyle: {
  2176. color: "#fff",
  2177. fontSize: 20,
  2178. padding: [0, 20],
  2179. },
  2180. },
  2181. graphic: {
  2182. elements: [
  2183. {
  2184. type: "image", //需要填充图片,配置image,如果不需要图片可以配置其他的, text, circle, sector, ring, polygon, polyline, rect, line, bezierCurve, arc, group,
  2185. style: {
  2186. image: "./img/whiteCircle.png", //这里添加图片地址
  2187. width: 80,
  2188. height: 80,
  2189. },
  2190. left: "center", //
  2191. top: "middle", //配置图片居中
  2192. },
  2193. ],
  2194. },
  2195. series: [
  2196. {
  2197. name: "",
  2198. type: "pie",
  2199. radius: ["20%", "80%"],
  2200. labelLine: {
  2201. normal: {
  2202. lineStyle: {
  2203. width: 1,
  2204. },
  2205. },
  2206. },
  2207. label: {
  2208. normal: {
  2209. show: false,
  2210. textStyle: {
  2211. fontSize: 28,
  2212. color: "#fff",
  2213. },
  2214. },
  2215. },
  2216. roseType: "area",
  2217. data: dataList,
  2218. },
  2219. {
  2220. tooltip: {
  2221. show: false,
  2222. },
  2223. type: "pie",
  2224. radius: ["80%", "82%"],
  2225. hoverAnimation: false,
  2226. name: "",
  2227. data: [
  2228. {
  2229. name: "",
  2230. value: 0,
  2231. itemStyle: {
  2232. normal: {
  2233. color: "#345189",
  2234. },
  2235. },
  2236. },
  2237. ],
  2238. },
  2239. ],
  2240. };
  2241. //轮播
  2242. tools.loopShowTooltip(that.leftEcharts5, option, {
  2243. interval: 2000,
  2244. loopSeries: true,
  2245. });
  2246. //注册
  2247. that.leftEcharts5.setOption(option);
  2248. },
  2249. leftEcharts6Fun () {
  2250. let that = this;
  2251. this.leftEcharts6 = echarts.init(this.$refs["leftEcharts6"]);
  2252. var dataArr = 44;
  2253. var colorSet = {
  2254. color: "#22B95E",
  2255. };
  2256. var color1 = {
  2257. type: "linear",
  2258. x: 0,
  2259. y: 0,
  2260. x2: 1,
  2261. y2: 1,
  2262. colorStops: [
  2263. {
  2264. offset: 0,
  2265. color: "rgba(255,255,255,0.1)",
  2266. },
  2267. {
  2268. offset: 1,
  2269. color: "rgba(255,255,255,0.3)",
  2270. },
  2271. ],
  2272. global: false,
  2273. };
  2274. var color2 = {
  2275. type: "linear",
  2276. x: 0,
  2277. y: 0,
  2278. x2: 1,
  2279. y2: 1,
  2280. colorStops: [
  2281. {
  2282. offset: 0,
  2283. color: "#30DBBA",
  2284. },
  2285. {
  2286. offset: 1,
  2287. color: "#2DE696",
  2288. },
  2289. ],
  2290. global: false,
  2291. };
  2292. option = {
  2293. tooltip: {
  2294. formatter: "{a} <br/>{b} : {c}%",
  2295. },
  2296. series: [
  2297. {
  2298. name: "内部进度条",
  2299. type: "gauge",
  2300. // center: ['20%', '50%'],
  2301. radius: "50%",
  2302. splitNumber: 10,
  2303. axisLine: {
  2304. lineStyle: {
  2305. color: [
  2306. [dataArr / 100, "rgba(0,0,0,0)"],
  2307. [1, "rgba(0,0,0,0)"],
  2308. ],
  2309. width: 1,
  2310. },
  2311. },
  2312. axisLabel: {
  2313. show: false,
  2314. },
  2315. axisTick: {
  2316. show: false,
  2317. },
  2318. splitLine: {
  2319. show: false,
  2320. },
  2321. itemStyle: {
  2322. color: "#ffffff",
  2323. },
  2324. detail: {
  2325. formatter: function (value) {
  2326. if (value !== 0) {
  2327. var num = Math.round(value);
  2328. return parseInt(num).toFixed(0) + "%";
  2329. } else {
  2330. return 0;
  2331. }
  2332. },
  2333. offsetCenter: [0, 117],
  2334. textStyle: {
  2335. padding: [0, 0, 0, 0],
  2336. fontSize: 60,
  2337. color: "#58F7DF",
  2338. },
  2339. },
  2340. title: {
  2341. //标题
  2342. show: true,
  2343. offsetCenter: [0, 220], // x, y,单位px
  2344. textStyle: {
  2345. color: "#40A9FF",
  2346. fontSize: 34, //表盘上的标题文字大小
  2347. fontWeight: 400,
  2348. fontFamily: "MicrosoftYaHei",
  2349. },
  2350. },
  2351. data: [
  2352. {
  2353. name: "总额度:1,323.85亿",
  2354. value: dataArr,
  2355. itemStyle: {
  2356. fontSize: "50", //y轴上方单位的大小
  2357. color: "#FFF666",
  2358. fontFamily: "MicrosoftYaHei",
  2359. },
  2360. },
  2361. ],
  2362. pointer: {
  2363. show: true,
  2364. length: "100%",
  2365. radius: "20%",
  2366. width: 3, //指针粗细
  2367. },
  2368. animationDuration: 4000,
  2369. },
  2370. {
  2371. name: "内部阴影",
  2372. type: "gauge",
  2373. radius: "75%",
  2374. splitNumber: 10,
  2375. axisLine: {
  2376. lineStyle: {
  2377. color: [
  2378. [
  2379. dataArr / 100,
  2380. new echarts.graphic.LinearGradient(0, 1, 0, 0, [
  2381. {
  2382. offset: 0,
  2383. color: "#081947",
  2384. },
  2385. {
  2386. offset: 0.5,
  2387. color: "#5DF5A9",
  2388. },
  2389. {
  2390. offset: 1,
  2391. color: "#F6F16A",
  2392. },
  2393. ]),
  2394. ],
  2395. [1, "#0E4889"],
  2396. ],
  2397. width: 70,
  2398. },
  2399. },
  2400. axisLabel: {
  2401. show: false,
  2402. },
  2403. axisTick: {
  2404. show: false,
  2405. },
  2406. splitLine: {
  2407. show: false,
  2408. },
  2409. itemStyle: {
  2410. show: false,
  2411. },
  2412. },
  2413. {
  2414. name: "外部刻度",
  2415. type: "gauge",
  2416. // center: ['20%', '50%'],
  2417. radius: "90%",
  2418. min: 0, //最小刻度
  2419. max: 100, //最大刻度
  2420. splitNumber: 5, //刻度数量
  2421. startAngle: 225,
  2422. endAngle: -45,
  2423. axisLine: {
  2424. show: true,
  2425. lineStyle: {
  2426. width: 1,
  2427. color: [[1, "rgba(0,0,0,0)"]],
  2428. },
  2429. }, //仪表盘轴线
  2430. axisLabel: {
  2431. show: false,
  2432. color: "#ffffff",
  2433. fontSize: 28,
  2434. fontFamily: "SourceHanSansSC-Regular",
  2435. fontWeight: "bold",
  2436. // position: "top",
  2437. distance: -45,
  2438. formatter: function (v) {
  2439. switch (v + "") {
  2440. case "0":
  2441. return "0";
  2442. case "10":
  2443. return "10";
  2444. case "20":
  2445. return "20";
  2446. case "30":
  2447. return "30";
  2448. case "40":
  2449. return "40";
  2450. case "50":
  2451. return "50";
  2452. case "60":
  2453. return "60";
  2454. case "70":
  2455. return "70";
  2456. case "80":
  2457. return "80";
  2458. case "90":
  2459. return "90";
  2460. case "100":
  2461. return "100";
  2462. }
  2463. },
  2464. }, //刻度标签。
  2465. axisTick: {
  2466. show: true,
  2467. splitNumber: 10,
  2468. lineStyle: {
  2469. color: "#3798D7", //用颜色渐变函数不起作用
  2470. width: 1,
  2471. },
  2472. length: -6,
  2473. }, //刻度样式
  2474. splitLine: {
  2475. show: true,
  2476. length: -12,
  2477. lineStyle: {
  2478. color: "#3798D7", //用颜色渐变函数不起作用
  2479. },
  2480. }, //分隔线样式
  2481. detail: {
  2482. show: false,
  2483. },
  2484. },
  2485. {
  2486. //指针上的圆
  2487. type: "pie",
  2488. tooltip: {
  2489. show: false,
  2490. },
  2491. hoverAnimation: false,
  2492. legendHoverLink: false,
  2493. radius: ["0%", "4%"],
  2494. center: ["50%", "50%"],
  2495. label: {
  2496. normal: {
  2497. show: false,
  2498. },
  2499. },
  2500. labelLine: {
  2501. normal: {
  2502. show: false,
  2503. },
  2504. },
  2505. data: [
  2506. {
  2507. value: 120,
  2508. itemStyle: {
  2509. normal: {
  2510. color: "#ffffff",
  2511. },
  2512. },
  2513. },
  2514. ],
  2515. },
  2516. ],
  2517. };
  2518. //轮播
  2519. // tools.loopShowTooltip(leftEcharts1, option, {
  2520. // interval: 2000,
  2521. // loopSeries: true,
  2522. // });
  2523. //注册
  2524. that.leftEcharts6.setOption(option);
  2525. },
  2526. leftEcharts7Fun () {
  2527. let that = this;
  2528. this.leftEcharts7 = echarts.init(this.$refs["leftEcharts7"]);
  2529. let option = {
  2530. title: {
  2531. text: "固定资产进度分布",
  2532. textStyle: {
  2533. color: "#fff",
  2534. fontSize: 28,
  2535. fontWeight: 500,
  2536. fontFamily: "Microsoft YaHei",
  2537. },
  2538. top: "20",
  2539. left: "220",
  2540. },
  2541. textStyle: {
  2542. color: "#fff",
  2543. },
  2544. tooltip: {
  2545. show: false,
  2546. trigger: "axis",
  2547. formatter: function (params) {
  2548. var tip =
  2549. params[0].axisValue +
  2550. "<br/>" +
  2551. params[0].marker +
  2552. params[0].data[1] +
  2553. ":" +
  2554. params[0].data[2] +
  2555. "个," +
  2556. params[0].data[3] +
  2557. "亿元" +
  2558. "<br/>" +
  2559. params[1].marker +
  2560. params[1].data[1] +
  2561. ":" +
  2562. params[1].data[2] +
  2563. "个," +
  2564. params[1].data[3] +
  2565. "亿元";
  2566. return tip;
  2567. },
  2568. textStyle: {
  2569. color: "#ffffff", // 文字的颜色
  2570. fontSize: "20", // 文字字体大小
  2571. fontFamily: "Microsoft YaHei",
  2572. },
  2573. axisPointer: {
  2574. // lineStyle: {
  2575. // type: 'dashed',
  2576. // width: 2,
  2577. // color: 'rgba(255,255,255,0.6)'
  2578. // },
  2579. animation: false,
  2580. },
  2581. },
  2582. grid: {
  2583. top: "0%",
  2584. right: "5%",
  2585. left: "15%",
  2586. bottom: "-10%",
  2587. },
  2588. yAxis: {
  2589. data: ["备案", "特别监管"],
  2590. splitLine: {
  2591. show: false,
  2592. lineStyle: {
  2593. color: "#68b4dd66",
  2594. type: "dashed",
  2595. },
  2596. },
  2597. axisLine: {
  2598. show: false,
  2599. },
  2600. axisLabel: {
  2601. show: true,
  2602. formatter: "{value}",
  2603. textStyle: {
  2604. color: function (data) {
  2605. if (data == "特别监管") {
  2606. return "#40A9FF";
  2607. } else if (data == "备案") {
  2608. return "#5BDCC8";
  2609. }
  2610. },
  2611. fontSize: 20,
  2612. padding: [0, -10, 0, 0],
  2613. fontFamily: "Microsoft YaHei",
  2614. },
  2615. },
  2616. nameTextStyle: {
  2617. color: "#ebf8ac",
  2618. fontSize: 16,
  2619. fontFamily: "Microsoft YaHei",
  2620. },
  2621. },
  2622. xAxis: {
  2623. data: ["项目储备", "项目立项", "可研论证", "投资决策"],
  2624. axisLine: {
  2625. show: true, //隐藏X轴轴线
  2626. lineStyle: {
  2627. color: "red",
  2628. width: 1,
  2629. },
  2630. },
  2631. axisTick: {
  2632. show: false, //隐藏X轴刻度
  2633. },
  2634. axisLabel: {
  2635. show: true,
  2636. textStyle: {
  2637. color: "#fff", //X轴文字颜色
  2638. fontSize: 20,
  2639. padding: [-80, 0, 0, 0],
  2640. fontFamily: "Microsoft YaHei",
  2641. },
  2642. },
  2643. },
  2644. series: [
  2645. {
  2646. name: "特别监管",
  2647. type: "scatter",
  2648. symbol: "circle", //'circle', 'rect', 'roundRect', 'triangle', 'diamond', 'pin', 'arrow'
  2649. symbolSize: function (data) {
  2650. return Math.sqrt(data[2]) * 5;
  2651. },
  2652. // label: {
  2653. // emphasis: {
  2654. // show: true,
  2655. // formatter: function (param) {
  2656. // return param.data[2];
  2657. // },
  2658. // position: 'top'
  2659. // }
  2660. // },
  2661. itemStyle: {
  2662. normal: {
  2663. color: "#69c0ff",
  2664. },
  2665. },
  2666. // data: left13[0]
  2667. },
  2668. {
  2669. name: "备案",
  2670. type: "scatter",
  2671. symbol: "circle", //'circle', 'rect', 'roundRect', 'triangle', 'diamond', 'pin', 'arrow'
  2672. symbolSize: function (data) {
  2673. return Math.sqrt(data[2]) * 5;
  2674. },
  2675. // label: {
  2676. // emphasis: {
  2677. // show: true,
  2678. // formatter: function (param) {
  2679. // return param.data[2];
  2680. // },
  2681. // position: 'top'
  2682. // }
  2683. // },
  2684. itemStyle: {
  2685. normal: {
  2686. color: "#957DFF",
  2687. },
  2688. },
  2689. // data: left13[1]
  2690. },
  2691. ],
  2692. };
  2693. //轮播
  2694. // tools.loopShowTooltip(leftEcharts1, option, {
  2695. // interval: 2000,
  2696. // loopSeries: true,
  2697. // });
  2698. //注册
  2699. that.leftEcharts7.setOption(option);
  2700. },
  2701. leftEcharts8Fun () {
  2702. let that = this;
  2703. this.leftEcharts8 = echarts.init(this.$refs["leftEcharts8"]);
  2704. let option = {
  2705. title: {
  2706. text: "固定资产进度分布",
  2707. textStyle: {
  2708. color: "#fff",
  2709. fontSize: 28,
  2710. fontWeight: 500,
  2711. fontFamily: "Microsoft YaHei",
  2712. },
  2713. top: "20",
  2714. left: "220",
  2715. },
  2716. textStyle: {
  2717. color: "#fff",
  2718. },
  2719. tooltip: {
  2720. show: false,
  2721. trigger: "axis",
  2722. formatter: function (params) {
  2723. var tip =
  2724. params[0].axisValue +
  2725. "<br/>" +
  2726. params[0].marker +
  2727. params[0].data[1] +
  2728. ":" +
  2729. params[0].data[2] +
  2730. "个," +
  2731. params[0].data[3] +
  2732. "亿元" +
  2733. "<br/>" +
  2734. params[1].marker +
  2735. params[1].data[1] +
  2736. ":" +
  2737. params[1].data[2] +
  2738. "个," +
  2739. params[1].data[3] +
  2740. "亿元";
  2741. return tip;
  2742. },
  2743. textStyle: {
  2744. color: "#ffffff", // 文字的颜色
  2745. fontSize: "20", // 文字字体大小
  2746. fontFamily: "Microsoft YaHei",
  2747. },
  2748. axisPointer: {
  2749. // lineStyle: {
  2750. // type: 'dashed',
  2751. // width: 2,
  2752. // color: 'rgba(255,255,255,0.6)'
  2753. // },
  2754. animation: false,
  2755. },
  2756. },
  2757. grid: {
  2758. top: "0%",
  2759. right: "5%",
  2760. left: "15%",
  2761. bottom: "-10%",
  2762. },
  2763. yAxis: {
  2764. data: ["备案", "特别监管"],
  2765. splitLine: {
  2766. show: false,
  2767. lineStyle: {
  2768. color: "#68b4dd66",
  2769. type: "dashed",
  2770. },
  2771. },
  2772. axisLine: {
  2773. show: false,
  2774. },
  2775. axisLabel: {
  2776. show: false,
  2777. formatter: "{value}",
  2778. textStyle: {
  2779. color: "#fff",
  2780. fontSize: 20,
  2781. padding: [0, -10, 0, 0],
  2782. fontFamily: "Microsoft YaHei",
  2783. },
  2784. },
  2785. nameTextStyle: {
  2786. color: "#ebf8ac",
  2787. fontSize: 16,
  2788. fontFamily: "Microsoft YaHei",
  2789. },
  2790. },
  2791. xAxis: {
  2792. data: ["项目储备", "项目立项", "可研论证", "投资决策"],
  2793. axisLine: {
  2794. show: true, //隐藏X轴轴线
  2795. lineStyle: {
  2796. color: "red",
  2797. width: 1,
  2798. },
  2799. },
  2800. axisTick: {
  2801. show: false, //隐藏X轴刻度
  2802. },
  2803. axisLabel: {
  2804. show: true,
  2805. textStyle: {
  2806. color: "#fff", //X轴文字颜色
  2807. fontSize: 20,
  2808. padding: [-80, 0, 0, 0],
  2809. fontFamily: "Microsoft YaHei",
  2810. },
  2811. },
  2812. },
  2813. series: [
  2814. {
  2815. name: "特别监管",
  2816. type: "scatter",
  2817. symbol: "circle", //'circle', 'rect', 'roundRect', 'triangle', 'diamond', 'pin', 'arrow'
  2818. symbolSize: function (data) {
  2819. return Math.sqrt(data[2]) * 5;
  2820. },
  2821. // label: {
  2822. // emphasis: {
  2823. // show: true,
  2824. // formatter: function (param) {
  2825. // return param.data[2];
  2826. // },
  2827. // position: 'top'
  2828. // }
  2829. // },
  2830. itemStyle: {
  2831. normal: {
  2832. color: "#69c0ff",
  2833. },
  2834. },
  2835. // data: left13[0]
  2836. },
  2837. {
  2838. name: "备案",
  2839. type: "scatter",
  2840. symbol: "circle", //'circle', 'rect', 'roundRect', 'triangle', 'diamond', 'pin', 'arrow'
  2841. symbolSize: function (data) {
  2842. return Math.sqrt(data[2]) * 5;
  2843. },
  2844. // label: {
  2845. // emphasis: {
  2846. // show: true,
  2847. // formatter: function (param) {
  2848. // return param.data[2];
  2849. // },
  2850. // position: 'top'
  2851. // }
  2852. // },
  2853. itemStyle: {
  2854. normal: {
  2855. color: "#957DFF",
  2856. },
  2857. },
  2858. // data: left13[1]
  2859. },
  2860. ],
  2861. };
  2862. //轮播
  2863. // tools.loopShowTooltip(leftEcharts1, option, {
  2864. // interval: 2000,
  2865. // loopSeries: true,
  2866. // });
  2867. //注册
  2868. that.leftEcharts8.setOption(option);
  2869. },
  2870. shanxiEchartsFun () {
  2871. let that = this;
  2872. this.geoCoordMap = [];
  2873. /*获取地图数据*/
  2874. this.shanxiMap = echarts.init(this.$refs["shanxi"]);
  2875. // echarts.registerMap('china', china)
  2876. echarts.registerMap("china", shanxi);
  2877. // var mapFeatures = echarts.getMap('china').geoJson.features
  2878. // mapFeatures.forEach(v => {
  2879. // // 地区名称
  2880. // var name = v.properties.name
  2881. // // 地区经纬度
  2882. // this.geoCoordMap[name] = v.properties.cp
  2883. // data.push({ name: v.properties.name, value: v.properties.cp[0], value2: v.properties.cp[1] })
  2884. // })
  2885. var data = [
  2886. { name: "大同市", value: 6035, value2: 28 },
  2887. { name: "朔州市", value: 3361, value2: 13 },
  2888. { name: "忻州市", value: 7335, value2: 25 },
  2889. { name: "吕梁市", value: 10904, value2: 45 },
  2890. { name: "太原市", value: 25167, value2: 113 },
  2891. { name: "阳泉市", value: 2512, value2: 28 },
  2892. { name: "晋中市", value: 14857, value2: 52 },
  2893. { name: "临汾市", value: 13055, value2: 30 },
  2894. { name: "长治市", value: 10300, value2: 23 },
  2895. { name: "运城市", value: 4106, value2: 23 },
  2896. { name: "晋城市", value: 4543, value2: 31 },
  2897. ];
  2898. var geoCoordMap = {
  2899. 太原市: [112.53, 37.87],
  2900. 大同市: [113.3, 40.12],
  2901. 阳泉市: [113.57, 37.85],
  2902. 长治市: [113.08, 36.18],
  2903. 晋城市: [112.83, 35.52],
  2904. 朔州市: [112.43, 39.33],
  2905. 晋中市: [112.94, 37.4],
  2906. 运城市: [110.97, 35.03],
  2907. 忻州市: [112.53, 38.72],
  2908. 临汾市: [111.5, 36.08],
  2909. 吕梁市: [111.13, 37.52],
  2910. };
  2911. var convertData = function (data) {
  2912. var res = [];
  2913. for (var i = 0; i < data.length; i++) {
  2914. var geoCoord = geoCoordMap[data[i].name];
  2915. if (geoCoord) {
  2916. res.push({
  2917. name: data[i].name,
  2918. value: geoCoord.concat(data[i].value, data[i].value2),
  2919. });
  2920. }
  2921. }
  2922. return res;
  2923. };
  2924. var convertedData = [
  2925. convertData(data),
  2926. convertData(
  2927. data
  2928. .sort(function (a, b) {
  2929. return b.value - a.value;
  2930. })
  2931. .slice(0, 6)
  2932. ),
  2933. ];
  2934. data.sort(function (a, b) {
  2935. return a.value - b.value;
  2936. });
  2937. option = {
  2938. backgroundColor: "#404a5900",
  2939. animation: true,
  2940. animationDuration: 1000,
  2941. animationEasing: "cubicInOut",
  2942. animationDurationUpdate: 1000,
  2943. animationEasingUpdate: "cubicInOut",
  2944. geo: {
  2945. map: "china",
  2946. center: [112.53, 37.67],
  2947. zoom: 4.5,
  2948. label: {
  2949. emphasis: {
  2950. show: false,
  2951. },
  2952. },
  2953. roam: false,
  2954. itemStyle: {
  2955. normal: {
  2956. borderColor: "#7fb3ff",
  2957. borderWidth: 3,
  2958. areaColor: {
  2959. type: "radial",
  2960. x: 0.5,
  2961. y: 0.5,
  2962. r: 0.8,
  2963. colorStops: [
  2964. {
  2965. offset: 0,
  2966. color: "#468ff8", // 0% 处的颜色
  2967. },
  2968. {
  2969. offset: 1,
  2970. color: "#0a2c6d", // 100% 处的颜色
  2971. },
  2972. ],
  2973. globalCoord: false, // 缺省为 false
  2974. },
  2975. // shadowColor: 'rgba(128, 217, 248, 1)',
  2976. shadowColor: "#468ff8",
  2977. shadowOffsetX: -2,
  2978. shadowOffsetY: 2,
  2979. shadowBlur: 20,
  2980. },
  2981. emphasis: {
  2982. areaColor: {
  2983. colorStops: [
  2984. {
  2985. offset: 0,
  2986. color: "#3844aa", // 0% 处的颜色
  2987. },
  2988. {
  2989. offset: 1,
  2990. color: "#7284fc", // 100% 处的颜色
  2991. },
  2992. ],
  2993. },
  2994. borderColor: "#b3baff",
  2995. borderWidth: 5,
  2996. },
  2997. },
  2998. tooltip: {
  2999. trigger: "item",
  3000. className: "custom-tooltip-box",
  3001. confine: true, // 不超出当前表
  3002. formatter: (params, ticket, callback) => {
  3003. // 清空所有轮播
  3004. for (var k in geoCoordMap) {
  3005. that.shanxiMap.dispatchAction({
  3006. // type: 'geoUnSelect',
  3007. type: "downplay",
  3008. name: k,
  3009. geoIndex: 0,
  3010. });
  3011. that.shanxiMap.dispatchAction({
  3012. // type: 'geoUnSelect',
  3013. type: "downplay",
  3014. name: k,
  3015. seriesName: params.seriesName,
  3016. });
  3017. that.shanxiMap.dispatchAction({
  3018. // type: 'geoUnSelect',
  3019. type: "downplay",
  3020. name: k,
  3021. seriesName: "series\u00001",
  3022. });
  3023. }
  3024. that.shanxiMap.dispatchAction({
  3025. // type: 'geoSelect',
  3026. type: "highlight",
  3027. name: params.name,
  3028. geoIndex: 0,
  3029. });
  3030. that.shanxiMap.dispatchAction({
  3031. // type: 'geoSelect',
  3032. type: "highlight",
  3033. name: params.name,
  3034. seriesName: params.seriesName,
  3035. });
  3036. that.shanxiMap.dispatchAction({
  3037. // type: 'geoSelect',
  3038. type: "highlight",
  3039. name: params.name,
  3040. seriesName: "series\u00001",
  3041. });
  3042. return `<div class="bgTooltip" style="background: url('../img/shanxi/${params.name}.png') no-repeat center center;background-size: 100% 100%;font-size:36px">
  3043. <div class="flex items-center">
  3044. <img src="./img/yellowArrow.png" style="width: 12px;height: 22px;margin-right:10px" alt=""><span class="fb">${params.name}</span>
  3045. </div>
  3046. <div class="blueIcon flex items-center">项目数量:<span class="fb" style="color:#68BDFF;">${params.value[3]}<span style="font-size:20px" class="fn">个</span></span></div>
  3047. <div class="blueIcon flex items-center">投资总额:<span class="fb" style="color:#68BDFF">${params.value[2]}<span style="font-size:20px" class="fn">亿</span></span></div>
  3048. </div>`;
  3049. },
  3050. },
  3051. regions: [
  3052. {
  3053. name: "太原市",
  3054. value: 2000,
  3055. itemStyle: {
  3056. emphasis: {
  3057. borderColor: "#ffe036",
  3058. borderWidth: 5,
  3059. areaColor: {
  3060. type: "radial",
  3061. x: 0.5,
  3062. y: 0.5,
  3063. r: 0.8,
  3064. colorStops: [
  3065. {
  3066. offset: 0,
  3067. color: "#ffe036", // 0% 处的颜色
  3068. },
  3069. {
  3070. offset: 1,
  3071. color: "#7c732a", // 100% 处的颜色
  3072. },
  3073. ],
  3074. globalCoord: false, // 缺省为 false
  3075. },
  3076. },
  3077. },
  3078. },
  3079. {
  3080. name: "南海诸岛",
  3081. itemStyle: {
  3082. // 隐藏地图
  3083. normal: {
  3084. opacity: 0, // 为 0 时不绘制该图形
  3085. },
  3086. },
  3087. label: {
  3088. show: false, // 隐藏文字
  3089. },
  3090. },
  3091. ],
  3092. },
  3093. tooltip: {
  3094. trigger: "item",
  3095. className: "custom-tooltip-box",
  3096. confine: true, // 不超出当前表
  3097. formatter: (e) => {
  3098. console.log('走了这里了', e)
  3099. }
  3100. },
  3101. xAxis: {
  3102. type: "value",
  3103. scale: true,
  3104. position: "top",
  3105. boundaryGap: false,
  3106. splitLine: {
  3107. show: false,
  3108. },
  3109. axisLine: {
  3110. show: false,
  3111. },
  3112. axisTick: {
  3113. show: false,
  3114. },
  3115. axisLabel: {
  3116. margin: 2,
  3117. textStyle: {
  3118. color: "#aaa",
  3119. },
  3120. },
  3121. },
  3122. yAxis: {
  3123. type: "category",
  3124. nameGap: 16,
  3125. axisLine: {
  3126. show: false,
  3127. lineStyle: {
  3128. color: "#ddd",
  3129. },
  3130. },
  3131. axisTick: {
  3132. show: false,
  3133. lineStyle: {
  3134. color: "#ddd",
  3135. },
  3136. },
  3137. axisLabel: {
  3138. interval: 0,
  3139. textStyle: {
  3140. color: "#ddd",
  3141. },
  3142. },
  3143. data: categoryData,
  3144. },
  3145. series: [
  3146. {
  3147. type: "effectScatter",
  3148. colorBy: "data",
  3149. coordinateSystem: "geo",
  3150. data: convertedData[0],
  3151. symbolSize: function (val) {
  3152. return Math.max(val[2] / 500, 8);
  3153. },
  3154. showEffectOn: "emphasis",
  3155. rippleEffect: {
  3156. brushType: "stroke",
  3157. color: "#58F7DF",
  3158. },
  3159. hoverAnimation: true,
  3160. label: {
  3161. normal: {
  3162. formatter: "{b}",
  3163. position: "right",
  3164. show: true,
  3165. fontSize: "30",
  3166. color: "#fff",
  3167. },
  3168. },
  3169. itemStyle: {
  3170. normal: {
  3171. color: "#ffc809",
  3172. shadowBlur: 50,
  3173. shadowColor: "#ffc809",
  3174. },
  3175. emphasis: {
  3176. color: "#58F7DF",
  3177. shadowBlur: 50,
  3178. shadowColor: "#58F7DF",
  3179. },
  3180. },
  3181. zlevel: 99,
  3182. },
  3183. {
  3184. type: "effectScatter",
  3185. colorBy: "data",
  3186. coordinateSystem: "geo",
  3187. data: [
  3188. {
  3189. name: "太原市",
  3190. value: [112.53, 37.87, 25167, 113],
  3191. },
  3192. ],
  3193. symbolSize: function (val) {
  3194. return Math.max(val[2] / 500, 8);
  3195. },
  3196. showEffectOn: "emphasis",
  3197. rippleEffect: {
  3198. brushType: "stroke",
  3199. color: "#DF62F2",
  3200. },
  3201. hoverAnimation: true,
  3202. label: {
  3203. normal: {
  3204. formatter: "{b}",
  3205. position: "right",
  3206. show: true,
  3207. fontSize: "30",
  3208. color: "#fff",
  3209. },
  3210. },
  3211. itemStyle: {
  3212. normal: {
  3213. color: "#ffc809",
  3214. shadowBlur: 50,
  3215. shadowColor: "#ffc809",
  3216. },
  3217. emphasis: {
  3218. color: "#DF62F2",
  3219. shadowBlur: 50,
  3220. shadowColor: "#DF62F2",
  3221. },
  3222. },
  3223. zlevel: 999,
  3224. },
  3225. ],
  3226. };
  3227. var categoryData = [];
  3228. var barData = [];
  3229. var sum = 0;
  3230. for (var i = 0; i < data.length; i++) {
  3231. categoryData.push(data[i].name);
  3232. barData.push(data[i].value);
  3233. sum += data[i].value;
  3234. }
  3235. // this.shanxiMap.on('click', function (params) {
  3236. // if (params.name == '山西') {
  3237. // that.shanxiMap.dispose()
  3238. // that.centerShow = true
  3239. // setTimeout(() => {
  3240. // })
  3241. // }
  3242. // })
  3243. tools.loopShowTooltip(this.shanxiMap, option, {
  3244. interval: 2000,
  3245. loopSeries: false,
  3246. seriesIndex: 0,
  3247. });
  3248. this.shanxiMap.setOption(option);
  3249. },
  3250. chinaEchartsFun () {
  3251. let that = this;
  3252. this.geoCoordMap = [];
  3253. /*获取地图数据*/
  3254. this.chinaMap = echarts.init(this.$refs["china"]);
  3255. echarts.registerMap("china", china);
  3256. // var mapFeatures = echarts.getMap('china').geoJson.features
  3257. // mapFeatures.forEach(v => {
  3258. // // 地区名称
  3259. // var name = v.properties.name
  3260. // // 地区经纬度
  3261. // this.geoCoordMap[name] = v.properties.cp
  3262. // data.push({ name: v.properties.name, value: v.properties.cp[0], value2: v.properties.cp[1] })
  3263. // })
  3264. var data = [
  3265. { "name": "新疆", value: 29780, value2: 80 },
  3266. { "name": "西藏", value: 2186, value2: 80 },
  3267. { "name": "内蒙古", value: 1135, value2: 80 },
  3268. { "name": "青海", value: 29780, value2: 80 },
  3269. { "name": "四川", value: 2568, value2: 80 },
  3270. { "name": "黑龙江", value: 29780, value2: 80 },
  3271. { "name": "甘肃", value: 6959, value2: 80 },
  3272. { "name": "云南", value: 5632, value2: 80 },
  3273. { "name": "广西", value: 6707, value2: 80 },
  3274. { "name": "湖南", value: 29780, value2: 80 },
  3275. { "name": "陕西", value: 1894, value2: 80 },
  3276. { "name": "广东", value: 15769, value2: 80 },
  3277. { "name": "吉林", value: 8259, value2: 80 },
  3278. { "name": "河北", value: 5741, value2: 80 },
  3279. { "name": "湖北", value: 3030, value2: 80 },
  3280. { "name": "贵州", value: 4542, value2: 80 },
  3281. { "name": "山东", value: 19780, value2: 80 },
  3282. { "name": "江西", value: 3157, value2: 80 },
  3283. { "name": "河南", value: 6690, value2: 80 },
  3284. { "name": "辽宁", value: 8678, value2: 80 },
  3285. { "name": "山西", value: 5303, value2: 80 },
  3286. { "name": "安徽", value: 29780, value2: 80 },
  3287. { "name": "福建", value: 10259, value2: 80 },
  3288. { "name": "浙江", value: 3016, value2: 80 },
  3289. { "name": "江苏", value: 3202, value2: 80 },
  3290. { "name": "重庆", value: 4540, value2: 80 },
  3291. { "name": "宁夏", value: 19780, value2: 80 },
  3292. { "name": "海南", value: 8626, value2: 80 },
  3293. { "name": "台湾", value: 4361, value2: 80 },
  3294. { "name": "北京", value: 20000, value2: 80 },
  3295. { "name": "天津", value: 4080, value2: 80 },
  3296. { "name": "上海", value: 19780, value2: 80 },
  3297. { "name": "香港", value: 6991, value2: 80 },
  3298. { "name": "澳门", value: 13873, value2: 80 },
  3299. ];
  3300. var geoCoordMap = {
  3301. "新疆": [86.9023, 41.148],
  3302. "西藏": [87.8695, 31.6846],
  3303. "内蒙古": [110.5977, 41.3408],
  3304. "青海": [95.2402, 35.4199],
  3305. "四川": [102.9199, 30.1904],
  3306. "黑龙江": [128.1445, 46.7156],
  3307. "甘肃": [102.7129, 38.166],
  3308. "云南": [101.0652, 24.6807],
  3309. "广西": [108.7813, 23.6426],
  3310. "湖南": [111.5332, 27.3779],
  3311. "陕西": [108.5996, 33.7396],
  3312. "广东": [113.8668, 22.8076],
  3313. "吉林": [126.1746, 43.5938],
  3314. "河北": [115.4004, 38.1688],
  3315. "湖北": [112.2363, 30.8572],
  3316. "贵州": [106.6113, 26.6385],
  3317. "山东": [118.2402, 36.2307],
  3318. "江西": [115.7156, 27.99],
  3319. "河南": [113.0668, 33.8818],
  3320. "辽宁": [123.0438, 41.0889],
  3321. "山西": [112.44, 37.73],
  3322. "安徽": [117.2461, 31.0361],
  3323. "福建": [118.3008, 25.9277],
  3324. "浙江": [120.498, 29.0918],
  3325. "江苏": [119.8586, 32.915],
  3326. "重庆": [107.7539, 29.8904],
  3327. "宁夏": [105.9961, 37.1096],
  3328. "海南": [109.9512, 19.2041],
  3329. "台湾": [120.8254, 23.5986],
  3330. "北京": [116.4551, 40.2539],
  3331. "天津": [117.4219, 39.4189],
  3332. "上海": [121.4648, 31.2891],
  3333. "香港": [114.6178, 22.3242],
  3334. "澳门": [113.5547, 21.6484],
  3335. '南海诸岛': [128.8254, 21.5986]
  3336. };
  3337. var convertData = function (data) {
  3338. var res = [];
  3339. for (var i = 0; i < data.length; i++) {
  3340. var geoCoord = geoCoordMap[data[i].name];
  3341. if (geoCoord) {
  3342. res.push({
  3343. name: data[i].name,
  3344. value: geoCoord.concat(data[i].value, data[i].value2),
  3345. });
  3346. }
  3347. }
  3348. return res;
  3349. };
  3350. var convertedData = [
  3351. convertData(data),
  3352. convertData(
  3353. data
  3354. .sort(function (a, b) {
  3355. return b.value - a.value;
  3356. })
  3357. .slice(0, 6)
  3358. ),
  3359. ];
  3360. data.sort(function (a, b) {
  3361. return a.value - b.value;
  3362. });
  3363. option = {
  3364. animation: true,
  3365. animationDuration: 1000,
  3366. animationEasing: "cubicInOut",
  3367. animationDurationUpdate: 1000,
  3368. animationEasingUpdate: "cubicInOut",
  3369. geo: {
  3370. map: "china",
  3371. zoom: 0.9,
  3372. label: {
  3373. emphasis: {
  3374. show: false,
  3375. },
  3376. },
  3377. roam: false,
  3378. itemStyle: {
  3379. normal: {
  3380. borderColor: "#7fb3ff",
  3381. borderWidth: 3,
  3382. areaColor: {
  3383. type: "radial",
  3384. x: 0.5,
  3385. y: 0.5,
  3386. r: 0.8,
  3387. colorStops: [
  3388. {
  3389. offset: 0,
  3390. color: "#468ff8", // 0% 处的颜色
  3391. },
  3392. {
  3393. offset: 1,
  3394. color: "#0a2c6d", // 100% 处的颜色
  3395. },
  3396. ],
  3397. globalCoord: false, // 缺省为 false
  3398. },
  3399. // shadowColor: 'rgba(128, 217, 248, 1)',
  3400. shadowColor: "#468ff8",
  3401. shadowOffsetX: -2,
  3402. shadowOffsetY: 2,
  3403. shadowBlur: 20,
  3404. },
  3405. emphasis: {
  3406. areaColor: {
  3407. colorStops: [
  3408. {
  3409. offset: 0,
  3410. color: "#3844aa", // 0% 处的颜色
  3411. },
  3412. {
  3413. offset: 1,
  3414. color: "#7284fc", // 100% 处的颜色
  3415. },
  3416. ],
  3417. },
  3418. borderColor: "#b3baff",
  3419. borderWidth: 5,
  3420. },
  3421. },
  3422. tooltip: {
  3423. trigger: "item",
  3424. className: "custom-tooltip-box",
  3425. confine: true, // 不超出当前表
  3426. formatter: (params, ticket, callback) => {
  3427. // console.log(params, '走了这里了')
  3428. // 清空所有轮播
  3429. for (var k in geoCoordMap) {
  3430. that.chinaMap.dispatchAction({
  3431. // type: 'geoUnSelect',
  3432. type: "downplay",
  3433. name: k,
  3434. geoIndex: 0,
  3435. });
  3436. that.chinaMap.dispatchAction({
  3437. // type: 'geoUnSelect',
  3438. type: "downplay",
  3439. name: k,
  3440. seriesName: params.seriesName,
  3441. });
  3442. that.chinaMap.dispatchAction({
  3443. // type: 'geoUnSelect',
  3444. type: "downplay",
  3445. name: k,
  3446. seriesName: "series\u00001",
  3447. });
  3448. }
  3449. that.chinaMap.dispatchAction({
  3450. // type: 'geoSelect',
  3451. type: "highlight",
  3452. name: params.name,
  3453. geoIndex: 0,
  3454. });
  3455. that.chinaMap.dispatchAction({
  3456. // type: 'geoSelect',
  3457. type: "highlight",
  3458. name: params.name,
  3459. seriesName: params.seriesName,
  3460. });
  3461. that.chinaMap.dispatchAction({
  3462. // type: 'geoSelect',
  3463. type: "highlight",
  3464. name: params.name,
  3465. seriesName: "series\u00001",
  3466. });
  3467. return `<div class="bgTooltip" style="background: rgba(50,50,50,0.7);font-size:36px">
  3468. <div class="flex items-center">
  3469. <img src="./img/yellowArrow.png" style="width: 12px;height: 22px;margin-right:10px" alt=""><span class="fb">${params.name}</span>
  3470. </div>
  3471. <div class="blueIcon flex items-center">项目数量:<span class="fb" style="color:#68BDFF;">${params.value[3]}<span style="font-size:20px" class="fn">个</span></span></div>
  3472. <div class="blueIcon flex items-center">投资总额:<span class="fb" style="color:#68BDFF">${params.value[2]}<span style="font-size:20px" class="fn">亿</span></span></div>
  3473. </div>`;
  3474. },
  3475. },
  3476. regions: [
  3477. {
  3478. name: "山西",
  3479. value: 2000,
  3480. itemStyle: {
  3481. emphasis: {
  3482. borderColor: "#ffe036",
  3483. borderWidth: 5,
  3484. areaColor: {
  3485. type: "radial",
  3486. x: 0.5,
  3487. y: 0.5,
  3488. r: 0.8,
  3489. colorStops: [
  3490. {
  3491. offset: 0,
  3492. color: "#ffe036", // 0% 处的颜色
  3493. },
  3494. {
  3495. offset: 1,
  3496. color: "#7c732a", // 100% 处的颜色
  3497. },
  3498. ],
  3499. globalCoord: false, // 缺省为 false
  3500. },
  3501. },
  3502. },
  3503. },
  3504. // {
  3505. // name: "南海诸岛",
  3506. // itemStyle: {
  3507. // // 隐藏地图
  3508. // normal: {
  3509. // opacity: 0, // 为 0 时不绘制该图形
  3510. // },
  3511. // },
  3512. // label: {
  3513. // show: false, // 隐藏文字
  3514. // },
  3515. // },
  3516. ],
  3517. },
  3518. tooltip: {
  3519. trigger: "item",
  3520. className: "custom-tooltip-box",
  3521. confine: true, // 不超出当前表
  3522. },
  3523. xAxis: {
  3524. type: "value",
  3525. scale: true,
  3526. position: "top",
  3527. boundaryGap: false,
  3528. splitLine: {
  3529. show: false,
  3530. },
  3531. axisLine: {
  3532. show: false,
  3533. },
  3534. axisTick: {
  3535. show: false,
  3536. },
  3537. axisLabel: {
  3538. margin: 2,
  3539. textStyle: {
  3540. color: "#aaa",
  3541. },
  3542. },
  3543. },
  3544. yAxis: {
  3545. type: "category",
  3546. nameGap: 16,
  3547. axisLine: {
  3548. show: false,
  3549. lineStyle: {
  3550. color: "#ddd",
  3551. },
  3552. },
  3553. axisTick: {
  3554. show: false,
  3555. lineStyle: {
  3556. color: "#ddd",
  3557. },
  3558. },
  3559. axisLabel: {
  3560. interval: 0,
  3561. textStyle: {
  3562. color: "#ddd",
  3563. },
  3564. },
  3565. data: categoryData,
  3566. },
  3567. series: [
  3568. {
  3569. type: "effectScatter",
  3570. colorBy: "data",
  3571. coordinateSystem: "geo",
  3572. data: convertedData[0],
  3573. symbolSize: function (val) {
  3574. return Math.max(val[2] / 500, 8);
  3575. },
  3576. showEffectOn: "emphasis",
  3577. rippleEffect: {
  3578. brushType: "stroke",
  3579. color: "#58F7DF",
  3580. },
  3581. hoverAnimation: true,
  3582. label: {
  3583. normal: {
  3584. formatter: "{b}",
  3585. position: "right",
  3586. show: true,
  3587. fontSize: "30",
  3588. color: "#fff",
  3589. },
  3590. },
  3591. itemStyle: {
  3592. normal: {
  3593. color: "#ffc809",
  3594. shadowBlur: 50,
  3595. shadowColor: "#ffc809",
  3596. },
  3597. emphasis: {
  3598. color: "#58F7DF",
  3599. shadowBlur: 50,
  3600. shadowColor: "#58F7DF",
  3601. },
  3602. },
  3603. zlevel: 99,
  3604. },
  3605. {
  3606. type: "effectScatter",
  3607. colorBy: "data",
  3608. coordinateSystem: "geo",
  3609. data: [
  3610. {
  3611. name: "山西",
  3612. value: [112.43, 37.73,5303, 80],
  3613. },
  3614. ],
  3615. symbolSize: function (val) {
  3616. return Math.max(val[2] / 500, 8);
  3617. },
  3618. showEffectOn: "emphasis",
  3619. rippleEffect: {
  3620. brushType: "stroke",
  3621. color: "#DF62F2",
  3622. },
  3623. hoverAnimation: true,
  3624. label: {
  3625. normal: {
  3626. formatter: "{b}",
  3627. position: "right",
  3628. show: true,
  3629. fontSize: "30",
  3630. color: "#fff",
  3631. },
  3632. },
  3633. itemStyle: {
  3634. normal: {
  3635. color: "#ffc809",
  3636. shadowBlur: 50,
  3637. shadowColor: "#ffc809",
  3638. },
  3639. emphasis: {
  3640. color: "#DF62F2",
  3641. shadowBlur: 50,
  3642. shadowColor: "#DF62F2",
  3643. },
  3644. },
  3645. zlevel: 999,
  3646. },
  3647. ],
  3648. };
  3649. var categoryData = [];
  3650. var barData = [];
  3651. var sum = 0;
  3652. for (var i = 0; i < data.length; i++) {
  3653. categoryData.push(data[i].name);
  3654. barData.push(data[i].value);
  3655. sum += data[i].value;
  3656. }
  3657. this.chinaMap.on('click', function (params) {
  3658. if (params.name == '山西') {
  3659. that.chinaMap.dispose()
  3660. that.leftEcharts16.dispose()
  3661. that.mapShow = true
  3662. setTimeout(() => {
  3663. that.leftEcharts12Fun()
  3664. that.leftEcharts14Fun()
  3665. that.leftEcharts9Fun()
  3666. that.leftEcharts15Fun()
  3667. that.leftEcharts13Fun()
  3668. that.shanxiEchartsFun()
  3669. })
  3670. }
  3671. })
  3672. tools.loopShowTooltip(this.chinaMap, option, {
  3673. interval: 2000,
  3674. loopSeries: false,
  3675. seriesIndex: 0,
  3676. });
  3677. this.chinaMap.setOption(option);
  3678. },
  3679. leftEcharts9Fun () {
  3680. let that = this;
  3681. this.leftEcharts9 = echarts.init(this.$refs["leftEcharts9"]);
  3682. // var ROOT_PATH = 'https://echarts.apache.org/examples';
  3683. let option = {
  3684. backgroundColor: "#00000000",
  3685. globe: {
  3686. globeRadius: 55,
  3687. baseTexture: "./img/3D/world1.jpg",
  3688. heightTexture: "./img/3D/world1.jpg",
  3689. displacementScale: 0.04,
  3690. shading: "realistic",
  3691. // environment: './img/3D/world2.jpg',
  3692. realisticMaterial: {
  3693. roughness: 0.9,
  3694. },
  3695. postEffect: {
  3696. enable: true,
  3697. },
  3698. light: {
  3699. main: {
  3700. intensity: 3,
  3701. shadow: true,
  3702. },
  3703. },
  3704. },
  3705. };
  3706. that.leftEcharts9.setOption(option);
  3707. },
  3708. leftEcharts10Fun () {
  3709. let that = this;
  3710. this.leftEcharts10 = echarts.init(this.$refs["leftEcharts10"]);
  3711. option = {
  3712. grid: {
  3713. top: 45,
  3714. right: 0,
  3715. left: 80,
  3716. bottom: 80,
  3717. },
  3718. tooltip: {
  3719. show: true,
  3720. trigger: "axis",
  3721. formatter: (data) => {
  3722. return `${data[0].name
  3723. }<br /><span style="display:inline-block;border-radius:50%; width:20px;height:20px;background-color:${data[0].color
  3724. }"></span> ${data[0].seriesName}:${that.numFormat(
  3725. data[0].value
  3726. )}亿<br/><span style="display:inline-block;border-radius:50%; width:20px;height:20px;background-color:${data[1].color.colorStops[0].color
  3727. }"></span> ${data[1].seriesName}:${that.numFormat(
  3728. data[1].value
  3729. )}亿`;
  3730. },
  3731. axisPointer: {
  3732. // 坐标轴指示器,坐标轴触发有效
  3733. type: "shadow", // 默认为直线,可选为:'line' | 'shadow'
  3734. },
  3735. backgroundColor: "rgba(50,50,50,0.7)", // 提示框浮层的背景颜色
  3736. borderColor: "rgba(50,50,50,0.7)",
  3737. textStyle: {
  3738. color: "#fff",
  3739. fontStyle: "normal", // 文字字体的风格('normal',无样式;'italic',斜体;'oblique',倾斜字体)
  3740. fontWeight: "normal", // 文字字体的粗细('normal',无样式;'bold',加粗;'bolder',加粗的基础上再加粗;'lighter',变细;数字定义粗细也可以,取值范围100至700)
  3741. fontSize: "28", // 文字字体大小
  3742. },
  3743. },
  3744. xAxis: {
  3745. data: commonCompany,
  3746. axisTick: {
  3747. show: false,
  3748. },
  3749. // x轴的字体颜色
  3750. axisLabel: {
  3751. rotate: 40,
  3752. textStyle: {
  3753. color: "white",
  3754. fontSize: "20",
  3755. fontFamily: "Microsoft YaHei",
  3756. },
  3757. },
  3758. //y轴线的颜色以及宽度
  3759. axisLine: {
  3760. show: true,
  3761. lineStyle: {
  3762. color: "#1E5389",
  3763. width: 1,
  3764. type: "solid",
  3765. },
  3766. },
  3767. },
  3768. yAxis: {
  3769. name: "亿",
  3770. axisTick: {
  3771. lineStyle: {
  3772. color: "#18416F",
  3773. },
  3774. },
  3775. // y轴的字体颜色
  3776. axisLabel: {
  3777. textStyle: {
  3778. color: "white",
  3779. fontSize: "20",
  3780. fontFamily: "Microsoft YaHei",
  3781. },
  3782. },
  3783. splitLine: {
  3784. show: true,
  3785. lineStyle: {
  3786. color: "#68b4dd66",
  3787. width: 1,
  3788. type: "dashed",
  3789. },
  3790. },
  3791. //y轴线的颜色以及宽度
  3792. axisLine: {
  3793. show: true,
  3794. lineStyle: {
  3795. color: "#1E5389",
  3796. width: 1,
  3797. type: "solid",
  3798. },
  3799. },
  3800. nameTextStyle: {
  3801. color: "#fff",
  3802. fontSize: 20,
  3803. fontFamily: "Microsoft YaHei",
  3804. },
  3805. },
  3806. series: [
  3807. {
  3808. name: "已用额度",
  3809. type: "pictorialBar",
  3810. symbol: "fixed",
  3811. symbolSize: [20, 5],
  3812. symbolMargin: 2,
  3813. symbolRepeat: "repeat",
  3814. data: [
  3815. 26, 36, 16, 46, 26, 36, 16, 46, 26, 36, 16, 46, 26, 36, 16, 46,
  3816. 26, 36,
  3817. ],
  3818. showBackground: false,
  3819. barWidth: "15",
  3820. itemStyle: {
  3821. color: "#40A9FF",
  3822. },
  3823. zlevel: 1,
  3824. },
  3825. {
  3826. name: "总额度",
  3827. type: "pictorialBar",
  3828. symbol: "fixed",
  3829. symbolSize: [30, 5],
  3830. symbolMargin: 2,
  3831. symbolRepeat: "repeat",
  3832. data: [
  3833. 390, 390, 390, 200, 390, 390, 390, 200, 390, 390, 390, 200, 390,
  3834. 390, 390, 200, 390, 200,
  3835. ],
  3836. barGap: "-130%",
  3837. barWidth: "25",
  3838. itemStyle: {
  3839. color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [
  3840. {
  3841. offset: 0,
  3842. color: "#b9b7c030",
  3843. },
  3844. {
  3845. offset: 1,
  3846. color: "#b9b7c030",
  3847. },
  3848. ]),
  3849. },
  3850. },
  3851. ],
  3852. };
  3853. //轮播
  3854. tools.loopShowTooltip(that.leftEcharts10, option, {
  3855. interval: 2000,
  3856. loopSeries: true,
  3857. });
  3858. //注册
  3859. that.leftEcharts10.setOption(option);
  3860. },
  3861. // 重点项目两线指标轮播方法
  3862. scrollChange (index) {
  3863. if (index == 18) {
  3864. this.count = -1;
  3865. } else {
  3866. this.count = index;
  3867. }
  3868. if (this.count > 12 && this.count != 18) {
  3869. this.countType = 1;
  3870. } else {
  3871. this.countType = 0;
  3872. }
  3873. for (var i = 0; i < this.list.length; i++) {
  3874. if (i == 2) {
  3875. this.list[i].classList.add("light");
  3876. } else {
  3877. this.list[i].classList.remove("light");
  3878. }
  3879. }
  3880. this.leftEcharts11 ? this.leftEcharts11.dispose() : "";
  3881. this.leftEcharts11Fun();
  3882. },
  3883. leftEcharts11Fun () {
  3884. let that = this;
  3885. this.leftEcharts11 = echarts.init(this.$refs["leftEcharts11"]);
  3886. option = {
  3887. tooltip: {
  3888. trigger: "axis",
  3889. formatter:
  3890. "指标:" +
  3891. "{c0}" +
  3892. "<br/>" +
  3893. "发展线:" +
  3894. "{c1}" +
  3895. "<br/>" +
  3896. "生存线:" +
  3897. "{c2}", //+ '<br/>'+ '{a1}:{c1}' + '%',
  3898. axisPointer: {
  3899. type: "shadow",
  3900. },
  3901. backgroundColor: "rgba(50,50,50,0.7)",
  3902. borderColor: "rgba(50,50,50,0.7)",
  3903. textStyle: {
  3904. color: "#fff",
  3905. fontStyle: "normal", // 文字字体的风格('normal',无样式;'italic',斜体;'oblique',倾斜字体)
  3906. fontWeight: "normal", // 文字字体的粗细('normal',无样式;'bold',加粗;'bolder',加粗的基础上再加粗;'lighter',变细;数字定义粗细也可以,取值范围100至700)
  3907. fontSize: "28", // 文字字体大小
  3908. }
  3909. },
  3910. grid: {
  3911. top: "10%",
  3912. right: "5%",
  3913. left: "15%",
  3914. bottom: "20%",
  3915. },
  3916. xAxis: {
  3917. data: [
  3918. "总投资收益率",
  3919. "销售利润率",
  3920. "成本费用利润率",
  3921. "总资产周转率",
  3922. "财务内部收益率",
  3923. ],
  3924. // data: left15[this.countType],
  3925. axisLine: {
  3926. show: true, //隐藏X轴轴线
  3927. lineStyle: {
  3928. color: "#005094",
  3929. width: 1,
  3930. },
  3931. },
  3932. axisTick: {
  3933. show: true, //隐藏X轴刻度
  3934. },
  3935. axisLabel: {
  3936. show: true,
  3937. rotate: 30,
  3938. textStyle: {
  3939. color: "#fff", //X轴文字颜色
  3940. fontSize: 20,
  3941. fontFamily: "Microsoft YaHei",
  3942. },
  3943. },
  3944. },
  3945. yAxis: [
  3946. {
  3947. type: "value",
  3948. splitLine: {
  3949. show: true,
  3950. lineStyle: {
  3951. color: "#68b4dd66",
  3952. type: "dashed",
  3953. },
  3954. },
  3955. axisLine: {
  3956. show: false,
  3957. },
  3958. axisLabel: {
  3959. show: true,
  3960. formatter: "{value}%",
  3961. textStyle: {
  3962. color: "#fff",
  3963. fontSize: 20,
  3964. fontFamily: "Microsoft YaHei",
  3965. },
  3966. },
  3967. nameTextStyle: {
  3968. color: "#ebf8ac",
  3969. fontSize: 16,
  3970. fontFamily: "Microsoft YaHei",
  3971. },
  3972. },
  3973. ],
  3974. series: [
  3975. {
  3976. name: "实际值",
  3977. type: "bar",
  3978. barWidth: 20,
  3979. itemStyle: {
  3980. normal: {
  3981. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  3982. {
  3983. offset: 0,
  3984. color: "#69c0ff",
  3985. },
  3986. {
  3987. offset: 1,
  3988. color: "#082550",
  3989. },
  3990. ]),
  3991. },
  3992. },
  3993. data: [70, 52, 33, 41, 52],
  3994. // data: this.storageRecordConfig.data.length == 0 ? [] : this.storageRecordConfig.data.length == 1 ? left12[this.count][2] : left12[this.count + 1][2]
  3995. },
  3996. {
  3997. name: "",
  3998. type: "line",
  3999. barWidth: 15,
  4000. itemStyle: {
  4001. normal: {
  4002. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  4003. {
  4004. offset: 0,
  4005. color: "#69c0ff",
  4006. },
  4007. {
  4008. offset: 1,
  4009. color: "green",
  4010. },
  4011. ]),
  4012. },
  4013. },
  4014. data: [20, 30, 15, 28, 36],
  4015. // data: this.storageRecordConfig.data.length == 0 ? [] : this.storageRecordConfig.data.length == 1 ? left12[this.count][1] : left12[this.count + 1][1]
  4016. },
  4017. {
  4018. name: "",
  4019. type: "line",
  4020. barWidth: 15,
  4021. itemStyle: {
  4022. normal: {
  4023. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  4024. {
  4025. offset: 0,
  4026. color: "#69c0ff",
  4027. },
  4028. {
  4029. offset: 1,
  4030. color: "yellow",
  4031. },
  4032. ]),
  4033. },
  4034. },
  4035. data: [15, 22, 17, 33, 14],
  4036. // data: this.storageRecordConfig.data.length == 0 ? [] : this.storageRecordConfig.data.length == 1 ? left12[this.count][0] : left12[this.count + 1][0]
  4037. },
  4038. ],
  4039. };
  4040. //轮播
  4041. tools.loopShowTooltip(that.leftEcharts11, option, {
  4042. interval: 2000,
  4043. loopSeries: true,
  4044. });
  4045. //注册
  4046. that.leftEcharts11.setOption(option);
  4047. },
  4048. leftEcharts12Fun () {
  4049. let that = this;
  4050. this.leftEcharts12 = echarts.init(this.$refs["leftEcharts12"]);
  4051. var totalData = [{
  4052. name: '传统产业',
  4053. value: 12,
  4054. radio: 0.13
  4055. }, {
  4056. name: '公共基础产业',
  4057. value: 52,
  4058. radio: 0.01
  4059. }, {
  4060. name: '战略性新兴产业',
  4061. value: 15,
  4062. radio: 3.9
  4063. }, {
  4064. name: '特色优势产业',
  4065. value: 56,
  4066. radio: 10.5
  4067. }];
  4068. var data = [];
  4069. for (var i = 0; i < totalData.length; i++) {
  4070. data.push({
  4071. value: totalData[i].value,
  4072. name: totalData[i].name,
  4073. itemStyle: {
  4074. normal: {
  4075. borderWidth: 8,
  4076. shadowBlur: 0,
  4077. borderColor: commonColor[i],
  4078. shadowColor: commonColor[i]
  4079. }
  4080. }
  4081. },
  4082. {
  4083. value: 5,
  4084. name: '',
  4085. itemStyle: {
  4086. normal: {
  4087. label: {
  4088. show: false
  4089. },
  4090. labelLine: {
  4091. show: false
  4092. },
  4093. color: 'rgba(0, 0, 0, 0)',
  4094. borderColor: 'rgba(0, 0, 0, 0)',
  4095. borderWidth: 0
  4096. }
  4097. }
  4098. }
  4099. );
  4100. }
  4101. var seriesOption = [
  4102. {
  4103. name: '',
  4104. type: 'pie',
  4105. clockWise: false,
  4106. radius: [170, 160],
  4107. center: [260, 250],
  4108. hoverAnimation: false,
  4109. itemStyle: {
  4110. normal: {
  4111. label: {
  4112. show: false,
  4113. }
  4114. }
  4115. },
  4116. data: data
  4117. },
  4118. {
  4119. type: 'pie',
  4120. radius: [120, 120],
  4121. center: [260, 250],
  4122. zlevel: 3,
  4123. silent: true,
  4124. label: {
  4125. normal: {
  4126. show: false
  4127. },
  4128. },
  4129. labelLine: {
  4130. normal: {
  4131. show: false
  4132. }
  4133. },
  4134. data: _pie3()
  4135. },
  4136. {
  4137. type: "liquidFill",
  4138. radius: "40%",
  4139. data: [left2[0], left2[0] + 0.05, left2[0] - 0.05],
  4140. center: [260, 250],
  4141. backgroundStyle: {
  4142. color: {
  4143. type: "radial",
  4144. x: 0.5,
  4145. y: 0.5,
  4146. r: 0.5,
  4147. // 水球体颜色
  4148. colorStops: [
  4149. {
  4150. offset: 0,
  4151. color: "#010a11",
  4152. },
  4153. {
  4154. offset: 0.75,
  4155. // color: "#203852",
  4156. color: "#1a2f45",
  4157. },
  4158. {
  4159. offset: 1,
  4160. // color: "#354e6d",
  4161. color: "#2b405a",
  4162. // color: "#314967",
  4163. },
  4164. ],
  4165. globalCoord: false,
  4166. },
  4167. },
  4168. outline: {
  4169. borderDistance: 0,
  4170. itemStyle: {
  4171. borderWidth: 0,
  4172. borderColor: {
  4173. type: "linear",
  4174. x: 0,
  4175. y: 0,
  4176. x2: 0,
  4177. y2: 1,
  4178. colorStops: [
  4179. ],
  4180. globalCoord: false,
  4181. },
  4182. },
  4183. },
  4184. color: [
  4185. {
  4186. x: 0,
  4187. y: 0,
  4188. x2: 0,
  4189. y2: 1,
  4190. colorStops: [{
  4191. offset: 0,
  4192. color: '#237386',
  4193. },
  4194. {
  4195. offset: 1,
  4196. color: '#0078C8',
  4197. },],
  4198. },
  4199. {
  4200. x: 0,
  4201. y: 0,
  4202. x2: 0,
  4203. y2: 1,
  4204. colorStops: [{
  4205. offset: 0,
  4206. color: '#2F97A9',
  4207. },
  4208. {
  4209. offset: 1,
  4210. color: '#0078C8',
  4211. },],
  4212. },
  4213. {
  4214. x: 0,
  4215. y: 0,
  4216. x2: 0,
  4217. y2: 1,
  4218. colorStops: [{
  4219. offset: 0,
  4220. color: '#48E0ED',
  4221. },
  4222. {
  4223. offset: 1,
  4224. color: '#0078C8',
  4225. },],
  4226. }
  4227. ],
  4228. label: {
  4229. normal: {
  4230. textStyle: {
  4231. fontSize: '50',
  4232. color: "#58E6F7", // x轴文字颜色
  4233. },
  4234. },
  4235. },
  4236. },
  4237. ];
  4238. option = {
  4239. color: commonColor,
  4240. title: {
  4241. show: false,
  4242. text: '风险类型123',
  4243. top: '48%',
  4244. textAlign: "center",
  4245. left: "49%",
  4246. textStyle: {
  4247. color: '#fff',
  4248. fontSize: 18,
  4249. fontWeight: '400'
  4250. }
  4251. },
  4252. tooltip: {
  4253. show: false
  4254. },
  4255. legend: {
  4256. icon: "circle",
  4257. orient: 'vertical',
  4258. formatter: function (name) {
  4259. let num
  4260. for (let i = 0; i < totalData.length; i++) {
  4261. if (totalData[i].name === name) {
  4262. num = name + ':' + totalData[i].value + '(' + totalData[i].radio + '%' + ')'
  4263. }
  4264. }
  4265. return num
  4266. },
  4267. data: ['传统产业', '公共基础产业', '战略性新兴产业', '特色优势产业'],
  4268. right: 0,
  4269. bottom: 0,
  4270. align: 'left',
  4271. textStyle: {
  4272. color: '#FFF', // 文字的颜色
  4273. fontSize: '20', // 文字字体大小
  4274. fontFamily: 'Microsoft YaHei'
  4275. },
  4276. itemGap: 20
  4277. },
  4278. toolbox: {
  4279. show: false
  4280. },
  4281. series: seriesOption
  4282. }
  4283. function _pie3 () {
  4284. let dataArr = [];
  4285. for (var i = 0; i < 100; i++) {
  4286. if (i % 2 === 0) {
  4287. dataArr.push({
  4288. name: (i + 1).toString(),
  4289. value: 25,
  4290. itemStyle: {
  4291. normal: {
  4292. color: "#5A5DE0",
  4293. borderWidth: 1,
  4294. borderColor: "#5A5DE0"
  4295. }
  4296. }
  4297. })
  4298. } else {
  4299. dataArr.push({
  4300. name: (i + 1).toString(),
  4301. value: 20,
  4302. itemStyle: {
  4303. normal: {
  4304. color: "rgba(0,0,0,0)",
  4305. borderWidth: 0,
  4306. borderColor: "rgba(0,0,0,0)"
  4307. }
  4308. }
  4309. })
  4310. }
  4311. }
  4312. return dataArr
  4313. }
  4314. //轮播
  4315. tools.loopShowTooltip(that.leftEcharts12, option, {
  4316. interval: 2000,
  4317. loopSeries: true,
  4318. });
  4319. //注册
  4320. that.leftEcharts12.setOption(option);
  4321. },
  4322. leftEcharts13Fun () {
  4323. let that = this;
  4324. this.leftEcharts13 = echarts.init(this.$refs["leftEcharts13"]);
  4325. var totalData = [{
  4326. name: '新建',
  4327. value: 12,
  4328. radio: 0.13
  4329. }, {
  4330. name: '续建',
  4331. value: 52,
  4332. radio: 0.01
  4333. }];
  4334. var data = [];
  4335. for (var i = 0; i < totalData.length; i++) {
  4336. data.push({
  4337. value: totalData[i].value,
  4338. name: totalData[i].name,
  4339. itemStyle: {
  4340. normal: {
  4341. borderWidth: 8,
  4342. shadowBlur: 0,
  4343. borderColor: commonColor[i],
  4344. shadowColor: commonColor[i]
  4345. }
  4346. }
  4347. },
  4348. {
  4349. value: 5,
  4350. name: '',
  4351. itemStyle: {
  4352. normal: {
  4353. label: {
  4354. show: false
  4355. },
  4356. labelLine: {
  4357. show: false
  4358. },
  4359. color: 'rgba(0, 0, 0, 0)',
  4360. borderColor: 'rgba(0, 0, 0, 0)',
  4361. borderWidth: 0
  4362. }
  4363. }
  4364. }
  4365. );
  4366. }
  4367. var seriesOption = [
  4368. {
  4369. name: '',
  4370. type: 'pie',
  4371. clockWise: false,
  4372. radius: [170, 160],
  4373. center: [350, 250],
  4374. hoverAnimation: false,
  4375. itemStyle: {
  4376. normal: {
  4377. label: {
  4378. show: false,
  4379. }
  4380. }
  4381. },
  4382. data: data
  4383. },
  4384. {
  4385. type: 'pie',
  4386. radius: [120, 120],
  4387. center: [350, 250],
  4388. zlevel: 3,
  4389. silent: true,
  4390. label: {
  4391. normal: {
  4392. show: false
  4393. },
  4394. },
  4395. labelLine: {
  4396. normal: {
  4397. show: false
  4398. }
  4399. },
  4400. data: _pie3()
  4401. }
  4402. ];
  4403. option = {
  4404. color: commonColor,
  4405. title: {
  4406. show: true,
  4407. text: '25%',
  4408. top: '48%',
  4409. textAlign: "center",
  4410. left: "49%",
  4411. textStyle: {
  4412. fontWeight: '600',
  4413. fontFamily: 'Microsoft YaHei',
  4414. fontSize: '50',
  4415. color: "#58E6F7", // x轴文字颜色
  4416. }
  4417. },
  4418. tooltip: {
  4419. show: false
  4420. },
  4421. legend: {
  4422. icon: "circle",
  4423. orient: 'vertical',
  4424. formatter: function (name) {
  4425. let num
  4426. for (let i = 0; i < totalData.length; i++) {
  4427. if (totalData[i].name === name) {
  4428. num = name + ':' + totalData[i].value + '(' + totalData[i].radio + '%' + ')'
  4429. }
  4430. }
  4431. return num
  4432. },
  4433. data: ['新建', '续建'],
  4434. right: 0,
  4435. bottom: 0,
  4436. align: 'left',
  4437. textStyle: {
  4438. color: '#FFF', // 文字的颜色
  4439. fontSize: '20', // 文字字体大小
  4440. },
  4441. itemGap: 20
  4442. },
  4443. toolbox: {
  4444. show: false
  4445. },
  4446. series: seriesOption
  4447. }
  4448. function _pie3 () {
  4449. let dataArr = [];
  4450. for (var i = 0; i < 1; i++) {
  4451. if (i % 2 === 0) {
  4452. dataArr.push({
  4453. name: (i + 1).toString(),
  4454. value: 25,
  4455. itemStyle: {
  4456. normal: {
  4457. color: "#5A5DE0",
  4458. borderWidth: 1,
  4459. borderColor: "#5A5DE0"
  4460. }
  4461. }
  4462. })
  4463. } else {
  4464. dataArr.push({
  4465. name: (i + 1).toString(),
  4466. value: 20,
  4467. itemStyle: {
  4468. normal: {
  4469. color: "rgba(0,0,0,0)",
  4470. borderWidth: 0,
  4471. borderColor: "rgba(0,0,0,0)"
  4472. }
  4473. }
  4474. })
  4475. }
  4476. }
  4477. return dataArr
  4478. }
  4479. //轮播
  4480. tools.loopShowTooltip(that.leftEcharts13, option, {
  4481. interval: 2000,
  4482. loopSeries: true,
  4483. });
  4484. //注册
  4485. that.leftEcharts13.setOption(option);
  4486. },
  4487. leftEcharts14Fun () {
  4488. let that = this;
  4489. this.leftEcharts14 = echarts.init(this.$refs["leftEcharts14"]);
  4490. option = {
  4491. tooltip: {
  4492. show: true,
  4493. trigger: "axis",
  4494. // formatter: (data) => {
  4495. // return `${data[0].name
  4496. // }<br /><span style="display:inline-block;border-radius:50%; width:20px;height:20px;background-color:${data[0].color
  4497. // }"></span> ${data[0].seriesName}:${that.numFormat(
  4498. // data[0].value
  4499. // )}亿<br/><span style="display:inline-block;border-radius:50%; width:20px;height:20px;background-color:${data[1].color.colorStops[0].color
  4500. // }"></span> ${data[1].seriesName}:${that.numFormat(
  4501. // data[1].value
  4502. // )}亿`;
  4503. // },
  4504. axisPointer: {
  4505. // 坐标轴指示器,坐标轴触发有效
  4506. type: "shadow", // 默认为直线,可选为:'line' | 'shadow'
  4507. },
  4508. backgroundColor: "rgba(50,50,50,0.7)", // 提示框浮层的背景颜色
  4509. borderColor: "rgba(50,50,50,0.7)",
  4510. textStyle: {
  4511. color: "#fff",
  4512. fontStyle: "normal", // 文字字体的风格('normal',无样式;'italic',斜体;'oblique',倾斜字体)
  4513. fontWeight: "normal", // 文字字体的粗细('normal',无样式;'bold',加粗;'bolder',加粗的基础上再加粗;'lighter',变细;数字定义粗细也可以,取值范围100至700)
  4514. fontSize: "28", // 文字字体大小
  4515. },
  4516. },
  4517. legend: {
  4518. top: "top",
  4519. textStyle: {
  4520. color: "#fff",
  4521. fontSize: 20,
  4522. padding: [0, 20],
  4523. },
  4524. },
  4525. grid: {
  4526. left: '3%',
  4527. right: '7%',
  4528. bottom: '3%',
  4529. containLabel: true
  4530. },
  4531. xAxis: {
  4532. name: '亿',
  4533. nameTextStyle: {
  4534. color: '#fff',
  4535. fontSize: 20,
  4536. fontFamily: 'Microsoft YaHei'
  4537. },
  4538. type: 'value',
  4539. axisLabel: {
  4540. textStyle: {
  4541. color: "white",
  4542. fontSize: '20',
  4543. fontFamily: 'Microsoft YaHei'
  4544. },
  4545. },
  4546. splitLine: {
  4547. show: true,
  4548. lineStyle: {
  4549. color: "#68b4dd66",
  4550. width: 1,
  4551. type: "dashed",
  4552. },
  4553. },
  4554. },
  4555. yAxis: {
  4556. type: 'category',
  4557. axisTick: {
  4558. lineStyle: {
  4559. color: "#18416F",
  4560. },
  4561. },
  4562. // y轴的字体颜色
  4563. axisLabel: {
  4564. textStyle: {
  4565. color: "white",
  4566. fontSize: '20',
  4567. fontFamily: 'Microsoft YaHei'
  4568. },
  4569. },
  4570. splitLine: {
  4571. show: false,
  4572. lineStyle: {
  4573. color: "#68b4dd66",
  4574. width: 1,
  4575. type: "dashed",
  4576. },
  4577. },
  4578. //y轴线的颜色以及宽度
  4579. axisLine: {
  4580. show: true,
  4581. lineStyle: {
  4582. color: "#1E5389",
  4583. width: 1,
  4584. type: "solid",
  4585. },
  4586. },
  4587. nameTextStyle: {
  4588. color: '#fff',
  4589. fontSize: 20,
  4590. fontFamily: 'Microsoft YaHei'
  4591. },
  4592. data: ["山西焦煤", "晋能控股", "华阳新材", "潞安化工", "华新燃气", "太重集团"]
  4593. },
  4594. series: [
  4595. {
  4596. name: '实际投资',
  4597. type: 'bar',
  4598. data: [18203, 23489, 29034, 104970, 131744, 630230],
  4599. barGap: '-145%',
  4600. barWidth: "15",
  4601. zlevel: 10,
  4602. itemStyle: {
  4603. barBorderRadius: [0, 20, 20, 0],
  4604. color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [
  4605. {
  4606. offset: 0,
  4607. color: '#0F357C',
  4608. },
  4609. {
  4610. offset: 1,
  4611. color: '#B78CFF',
  4612. },
  4613. ]),
  4614. },
  4615. },
  4616. {
  4617. name: '计划投资',
  4618. type: 'bar',
  4619. data: [19325, 23438, 31000, 121594, 134141, 681807],
  4620. barWidth: "30",
  4621. itemStyle: {
  4622. barBorderRadius: [0, 50, 50, 0],
  4623. borderColor: '#B78CFF',
  4624. color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [
  4625. {
  4626. offset: 0,
  4627. color: '#0F357C00',
  4628. },
  4629. {
  4630. offset: 1,
  4631. color: '#10417F00',
  4632. },
  4633. ]),
  4634. },
  4635. }
  4636. ]
  4637. };
  4638. //轮播
  4639. tools.loopShowTooltip(that.leftEcharts14, option, {
  4640. interval: 2000,
  4641. loopSeries: true,
  4642. });
  4643. //注册
  4644. that.leftEcharts14.setOption(option);
  4645. },
  4646. leftEcharts15Fun () {
  4647. let that = this;
  4648. this.leftEcharts15 = echarts.init(this.$refs["leftEcharts15"]);
  4649. var xdata = ['煤炭和煤电', '煤电和新能源', '煤炭和化工', '煤炭和数字', '煤炭和降碳'];
  4650. var data = [70, 60, 80, 200, 300];
  4651. var maxArr = [100, 100, 100];
  4652. option = {
  4653. tooltip: {
  4654. show: true,
  4655. trigger: "axis",
  4656. // formatter: (data) => {
  4657. // return `${data[0].name
  4658. // }<br /><span style="display:inline-block;border-radius:50%; width:20px;height:20px;background-color:${data[0].color
  4659. // }"></span> ${data[0].seriesName}:${that.numFormat(
  4660. // data[0].value
  4661. // )}亿<br/><span style="display:inline-block;border-radius:50%; width:20px;height:20px;background-color:${data[1].color.colorStops[0].color
  4662. // }"></span> ${data[1].seriesName}:${that.numFormat(
  4663. // data[1].value
  4664. // )}亿`;
  4665. // },
  4666. axisPointer: {
  4667. // 坐标轴指示器,坐标轴触发有效
  4668. type: "shadow", // 默认为直线,可选为:'line' | 'shadow'
  4669. },
  4670. backgroundColor: "rgba(50,50,50,0.7)", // 提示框浮层的背景颜色
  4671. borderColor: "rgba(50,50,50,0.7)",
  4672. textStyle: {
  4673. color: "#fff",
  4674. fontStyle: "normal", // 文字字体的风格('normal',无样式;'italic',斜体;'oblique',倾斜字体)
  4675. fontWeight: "normal", // 文字字体的粗细('normal',无样式;'bold',加粗;'bolder',加粗的基础上再加粗;'lighter',变细;数字定义粗细也可以,取值范围100至700)
  4676. fontSize: "28", // 文字字体大小
  4677. },
  4678. },
  4679. grid: {
  4680. left: "4%",
  4681. right: "4%",
  4682. bottom: "3%",
  4683. top: "15%",
  4684. containLabel: true
  4685. },
  4686. xAxis: {
  4687. data: xdata,
  4688. triggerEvent: true,
  4689. axisTick: {
  4690. show: false
  4691. },
  4692. axisLine: {
  4693. show: false
  4694. },
  4695. axisLabel: {
  4696. show: true,
  4697. rotate: 0,
  4698. interval: 0,
  4699. textStyle: {
  4700. padding: [14, 0, 0, 0],
  4701. fontSize: 14,
  4702. color: "rgba(255,255,255,1)"
  4703. }
  4704. }
  4705. },
  4706. yAxis: {
  4707. name: "单位:个数",
  4708. triggerEvent: true,
  4709. nameTextStyle: {
  4710. color: "rgba(255,255,255,1)",
  4711. fontSize: 16,
  4712. padding: [0, 0, 10, -20]
  4713. },
  4714. splitLine: {
  4715. show: true,
  4716. lineStyle: {
  4717. color: 'rgba(255,255,255,.1)'
  4718. }
  4719. },
  4720. axisTick: {
  4721. show: false
  4722. },
  4723. axisLine: {
  4724. show: true,
  4725. lineStyle: {
  4726. color: 'rgba(255,255,255,.1)'
  4727. }
  4728. },
  4729. axisLabel: {
  4730. show: true,
  4731. textStyle: {
  4732. color: "rgb(148,159,167)",
  4733. fontSize: 16
  4734. }
  4735. }
  4736. },
  4737. series: [
  4738. {
  4739. name: "数量",
  4740. type: "pictorialBar",
  4741. barCategoryGap: "60%",
  4742. // symbol: 'path://M0,10 L10,10 L5,0 L0,10 z',
  4743. symbol: "path://M0,10 L10,10 C5.5,10 5.5,5 5,0 C4.5,5 4.5,10 0,10 z",
  4744. itemStyle: {
  4745. normal: {
  4746. //渐变色
  4747. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
  4748. offset: 0,
  4749. color: "#01EAED"
  4750. },
  4751. {
  4752. offset: 0.5,
  4753. color: "#02C4DD"
  4754. },
  4755. {
  4756. offset: 1,
  4757. color: "#029ED9"
  4758. }
  4759. ])
  4760. }
  4761. },
  4762. label: {
  4763. normal: {
  4764. show: false,
  4765. position: "top",
  4766. textStyle: {
  4767. color: "#fff",
  4768. fontSize: 20
  4769. }
  4770. }
  4771. },
  4772. data: data,
  4773. }
  4774. ]
  4775. }
  4776. //轮播
  4777. tools.loopShowTooltip(that.leftEcharts15, option, {
  4778. interval: 2000,
  4779. loopSeries: true,
  4780. });
  4781. //注册
  4782. that.leftEcharts15.setOption(option);
  4783. },
  4784. leftEcharts16Fun () {
  4785. let that = this;
  4786. this.leftEcharts16 = echarts.init(this.$refs["leftEcharts16"]);
  4787. // var ROOT_PATH = 'https://echarts.apache.org/examples';
  4788. let option = {
  4789. backgroundColor: "#00000000",
  4790. globe: {
  4791. globeRadius: 85,
  4792. baseTexture: "./img/3D/world1.jpg",
  4793. heightTexture: "./img/3D/world1.jpg",
  4794. displacementScale: 0.04,
  4795. shading: "realistic",
  4796. // environment: './img/3D/world2.jpg',
  4797. realisticMaterial: {
  4798. roughness: 0.9,
  4799. },
  4800. postEffect: {
  4801. enable: true,
  4802. },
  4803. light: {
  4804. main: {
  4805. intensity: 3,
  4806. shadow: true,
  4807. },
  4808. },
  4809. },
  4810. };
  4811. that.leftEcharts16.setOption(option);
  4812. },
  4813. // 回到中国地图
  4814. backChina () {
  4815. let that = this
  4816. if (!this.mapShow) {
  4817. return
  4818. }
  4819. this.mapShow = false
  4820. that.leftEcharts12.dispose()
  4821. that.leftEcharts14.dispose()
  4822. that.leftEcharts9.dispose()
  4823. that.leftEcharts15.dispose()
  4824. that.leftEcharts13.dispose()
  4825. that.shanxiMap.dispose()
  4826. setTimeout(() => {
  4827. that.chinaEchartsFun()
  4828. that.leftEcharts16Fun()
  4829. });
  4830. },
  4831. },
  4832. });