investHomeGroup.js 166 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451
  1. let app = new Vue({
  2. el: '#app',
  3. data () {
  4. return {
  5. echartR4Chart: '',// 倒数第二个专用
  6. echartR5Chart: '', // 倒是第一个专用
  7. echartEnterpriseShow: false, // 企业额度分析控制
  8. mapChart: '',//地图专用echarts
  9. chartCarousel: '',//做大屏轮播专用echarts
  10. mapTipShow: false,
  11. echartSingleTipShow: false,
  12. echartDoubleTipShow: false,
  13. projectListTipShow: false, //项目列表专属弹窗
  14. backShow: false,
  15. titleUrl: '',
  16. titleName: '',
  17. yellowCount: 0, // 黄圈轮播参数
  18. yellowPosition: 40,// 黄圈悬浮窗位置参数
  19. yellowType: true, // 黄圈悬浮停止轮播
  20. echartR1Fd: true,
  21. echartR2Fd: true,
  22. echartC2Fd: true,
  23. echartR3Fd: true,
  24. echarts1Time: 16000,
  25. time: '',
  26. timer: '',
  27. timer2: '',
  28. totleLimit: left4[0],
  29. totleLimit2: left4[1],
  30. totleLimit3: left4[2],
  31. totleLimit4: left4[3],
  32. totleLimit5: left4[4],
  33. center1: center1,
  34. showTip2: false,
  35. showTip3: false,
  36. list: [],
  37. count: 0,
  38. countType: 0,
  39. mapName: 'shanxi',
  40. geoCoordMap: {},
  41. storageRecordConfig2: center9,
  42. titleList: right1,
  43. centerLeftList: right3,
  44. storageRecordConfig: left11,
  45. config5: {
  46. rowNum: 9,
  47. waitTime: 2000,
  48. headerHeight: '40',
  49. header: ["项目名称", "所属组织", '实施主体', '建设性质(新建/续建)', '产业类别', '建设地点', '2022年投资完成额(万元)'],
  50. data: [
  51. ["青银二广高速公路太原联络线建设PPP项目", "交控集团", "山西路桥建设集团有限公司", "新建", "交通运输业", "山西省太原市、晋中市", "148,086.00"],
  52. ["国道241、省道岚马线汾河水库段改线工程", "交控集团", "太原国省道汾河水库段建设管理有限公司", "续建", "交通运输业", "山西省 太原市、吕梁市", "165,314.33"],
  53. ["路桥科技中心", "交控集团", "山西路桥集团多经营有限公司", "续建", "建筑房地产", "山西省太原市", "8,098.26"],
  54. ["路桥科研基地", "交控集团", "山西路桥集团多经有限公司", "续建", "建筑房地产", "山西省太原市", "6,596.56"],
  55. ["武宿高速充电站建设", "交控集团", "山西交通运输投融资集团有限责任公司", "新建", "新能源", "山西省太原市", "100.00"],
  56. ["山西交通研创商务基地项目", "交控集团", "山西交通物流集团有限公司", "续建", "建筑房地产", "山西省太原市", "4,097.00"],
  57. ["山西省交通科学研究院产业化基地", "交控集团", "山西省交通科技研发有限公司", "续建", "建筑房地产", "山西省太原市武洛街27号", "3,242.00"],
  58. ["太长高速公路太原南收费站(二期工程暨龙城服务区)项目", "交控集团", "山西省交通开发投资集团有限公司龙城服务区发展分公司", "续建", "建筑房地产", "山西省太原市", "3,580.00"],
  59. ["山西转型综改示范区中小企业产业园项目", "交控集团", "山西交投综改园区开发有限公司", "续建", "建筑房地产", "山西省太原市", "14,432.00"]
  60. ],
  61. align: ["center", "center", "center", "center", "center", "center", "center"],
  62. headerBGC: "#153A62",
  63. oddRowBGC: "#061F42",
  64. evenRowBGC: "#0C284A",
  65. },
  66. config6: {
  67. rowNum: 15,
  68. waitTime: 1000,
  69. headerHeight: '100',
  70. header: ["项目名称", "所属组织", '实施主体', '产业类别I级', '产业类别II级', '2022年投资完成额(万元)'],
  71. data: [
  72. ["6万吨/年PBAT项目", "华阳新材", "华阳生物降解公司", "战略性新兴产业", "新材料", "20,340.00"],
  73. ["2万吨/年生物降解改性材料及塑料制品项目", "华阳新材", "华阳生物降解公司", "战略性新兴产业", "新材料", "5,270.00"],
  74. ["2万吨/年全系列生物降解新材料项目", "华阳新材", "华阳新材", "战略性新兴产业", "新材料", "5,560.00"],
  75. ["开元煤层气发电项目", "华阳新材", "阳煤扬德公司", "战略性新兴产业", "煤层气", "880.00"],
  76. ["平舒翟下庄煤层气发电项目", "华阳新材", "阳煤扬德公司", "战略性新兴产业", "煤层气", "570.00"],
  77. ["5GW高效光伏组件制造项目一期2GW", "华阳新材", "华储光电公司", "战略性新兴产业", "新能源", "10,000.00"],
  78. ["钠离子电池正极材料千吨级生产项目", "华阳新材", "华钠铜能公司", "战略性新兴产业", "新能源", "6,060.00"],
  79. ["钠离子电池负极材料千吨级生产项目", "华阳新材", "华钠碳能公司", "战略性新兴产业", "新能源", "4,080.00"],
  80. ["1GWh钠离子Pack电池生产线建设项目", "华阳新材", "华钠芯能公司", "战略性新兴产业", "新能源", "2790.00"],
  81. ["天成光储网充项目", "华阳新材", "新阳公司", "战略性新兴产业", "新能源", "1680.00"],
  82. ["宏厦三建绿色建材工业园区项目", "华阳新材", "宏厦三建", "战略性新兴产业", "新材料", "2,550.00"],
  83. ["亚美公司超低排放改造及节能技改项目", "华阳新材", "亚美公司", "战略性新兴产业", "其他", "20,101.00"],
  84. ["超净滤材项目", "华阳新材", "华阳科创城", "战略性新兴产业", "新材料", "5,510.00"],
  85. ["华阳集团网络安全工作顶层设计及整体整改项目", "华阳新材", "华阳集团", "战略性新兴产业", "新一代信息技术", "814.00"],
  86. ["山西科技创新城阳煤设计研发中心项目", "华阳新材", "碳基合成新材料公司", "战略性新兴产业", "其他", "12,930.00"],
  87. ["阳煤西110kv变电站及线路建设工程", "华阳新材", "华阳股份", "战略性新兴产业", "其他", "7,060.00"],
  88. ["郊区35kV输变电工程", "华阳新材", "华储光电公司", "战略性新兴产业", "其他", "1,250.00"],
  89. ["环境保护及治理", "华阳新材", "华阳股份", "战略性新兴产业", "节能环保", "5,890.00"],
  90. ["增资山西新阳清洁能源有限公司", "华阳新材", "华阳股份", "战略性新兴产业", "新能源产业", "101,700.00"],
  91. ["增资阳煤集团纳谷(山西)气凝胶科创城管理有限责任公司", "华阳新材", "华阳集团", "战略性新兴产业", "新材料产业", "34,582.00"],
  92. ["太化集团普田农业有限公司股权收购及增资", "华阳新材", "华阳新材", "战略性新兴产业", "新材料产业", "7,400.00"],
  93. ["山西阳煤道得新材股权投资合伙企业(有限合伙)", "华阳新材", "华阳资本", "战略性新兴产业", "新材料产业", "5,000.00"],
  94. ["阳泉市梧桐树嘉裕阳煤智能制造股权投资合伙企业(有限合伙)", "华阳新材", "华阳资本华阳股份", "战略性新兴产业", "新材料产业", "6,576.29"],
  95. ["阳煤纳谷(山西)气凝胶经销有限责任公司", "华阳新材", "气凝胶科创城", "战略性新兴产业", "新材料产业", "4,335.00"],
  96. ["阳煤纳谷(山西)节能服务有限责任公司", "华阳新材", "气凝胶科创城", "战略性新兴产业", "新材料产业", "3,674.00"],
  97. ["华阳诺爱特(山西)新材料科技有限公司", "华阳新材", "气凝胶科创城", "战略性新兴产业", "新材料产业", "500.00"],
  98. ["华阳纳谷(北京)新材料科技有限公司", "华阳新材", "气凝胶科创城", "战略性新兴产业", "新材料产业", "250.00"],
  99. ["山西华储光电有限责任公司", "华阳新材", "山西新阳清洁能源有限公司", "战略性新兴产业", "新材料产业", "45,000.00"],
  100. ["山西华钠铜能科技有限责任公司", "华阳新材", "山西新阳清洁能源有限公司", "战略性新兴产业", "新能源产业", "900.00"],
  101. ["山西华钠碳能科技有限责任公司", "华阳新材", "山西新阳清洁能源有限公司", "战略性新兴产业", "新能源产业", "450.00"]
  102. ],
  103. align: ["center", "center", "center", "center", "center", "center", "center"],
  104. headerBGC: "#153A62",
  105. oddRowBGC: "#061F42",
  106. evenRowBGC: "#0C284A",
  107. },
  108. }
  109. },
  110. created () {
  111. this.time = formatDate()
  112. this.timer = setInterval(() => {
  113. this.time = formatDate()
  114. }, 1000)
  115. this.timer2 = setInterval(() => {
  116. this.yellowType && this.changeYellow()
  117. }, 2000)
  118. },
  119. beforeDestroy () {
  120. if (this.timer) {
  121. clearInterval(this.timer);
  122. }
  123. if (this.timer2) {
  124. clearInterval(this.timer2);
  125. }
  126. },
  127. mounted () {
  128. setTimeout(() => {
  129. this.initChartL1()
  130. this.initChartL2()
  131. this.initChartL3()
  132. this.initChartL4()
  133. this.initChartL5()
  134. this.initChartL6()
  135. this.initChartL7()
  136. this.initChartL8()
  137. this.initChartL10()
  138. this.initChartL11()
  139. this.changeTopColor()
  140. // 大屏二
  141. this.initChartC1()
  142. this.initChartC2()
  143. this.initChartC3()
  144. this.initChartC4()
  145. this.initChinaChart()
  146. this.initProjectList()
  147. // 大屏三
  148. this.initChartR1()
  149. this.initChartR2()
  150. this.initChartR3()
  151. // this.initChartR4()
  152. // this.initChartR5()
  153. this.changeYellow()
  154. })
  155. },
  156. methods: {
  157. getDate () {
  158. let dataList = []
  159. // 中间
  160. // 投资关键指标
  161. center1[0] = dataList.keyIndicators.totalSum
  162. center1[1] = dataList.keyIndicators.total
  163. center1[2] = dataList.keyIndicators.property
  164. center1[3] = dataList.keyIndicators.invest
  165. // 投资产业分布
  166. // center2[0].value = dataList.distribution
  167. // 投资执行情况
  168. // center3
  169. // 中上
  170. center4[0] = dataList.transformations.estateAmount
  171. center4[1] = dataList.transformations.estateNum
  172. center4[2] = dataList.transformations.figureAmount
  173. center4[3] = dataList.transformations.figureNum
  174. // 地图
  175. // center5
  176. // 五个一体化
  177. center6[0] = dataList.five.amount1
  178. center6[1] = dataList.five.amount2
  179. center6[2] = dataList.five.amount3
  180. center6[3] = dataList.five.amount4
  181. center6[4] = dataList.five.amount5
  182. // 投资阶段分析
  183. // center7
  184. // 重点项目监控
  185. // center8
  186. // 左边
  187. // 投资额度分析
  188. left1[0] = dataList.investmentQuota.netProfit
  189. left1[1] = dataList.investmentQuota.pressureDrop
  190. left1[2] = dataList.investmentQuota.amortization
  191. // left2
  192. // 企业额度分析
  193. // left3
  194. // 重点两线指标
  195. // left11
  196. // 投资计划分析
  197. totleLimit = investmentPlan.total
  198. totleLimit2 = investmentPlan.fixedAmount
  199. totleLimit3 = investmentPlan.fixedNum
  200. totleLimit4 = investmentPlan.stockAmount
  201. totleLimit5 = investmentPlan.stockNum
  202. // left5
  203. // left6
  204. // 产业布局分析
  205. // left7
  206. // left8
  207. // left9
  208. // left10
  209. // 项目阶段分析
  210. // echartL10
  211. // echartL11
  212. // 右边
  213. // 上面黄色轮播
  214. // right1
  215. },
  216. yellowMouse (index) {
  217. if (index % 2 == 0) {
  218. this.yellowCount = index
  219. this.yellowPosition = (index / 2 - 1) * 315 + 40
  220. this.yellowType = false
  221. this.changeYellow()
  222. }
  223. },
  224. // 回到中国地图
  225. backChina () {
  226. this.backShow = false
  227. this.mapChart.dispose()
  228. setTimeout(() => {
  229. this.initChinaChart()
  230. });
  231. },
  232. // 去项目看板
  233. goLookBoard (e) {
  234. console.log(e, '?????')
  235. },
  236. // 单个柱状图的弹窗
  237. showChartLTipSingle (e) {
  238. this.closeTap()
  239. this.titleName = e
  240. this.echartSingleTipShow = true
  241. setTimeout(() => {
  242. this.initChartLTip()
  243. })
  244. },
  245. // 两个柱状图的弹窗
  246. showChartLTipDouble (e) {
  247. this.titleName = e
  248. this.echartDoubleTipShow = true
  249. setTimeout(() => {
  250. this.initChartLTip2()
  251. this.initChartLTip3()
  252. })
  253. },
  254. initChartLTip () {
  255. let myChart = echarts.init(document.getElementById("echartSingleTip"));
  256. let option = {
  257. grid: {
  258. top: 40,
  259. right: 0,
  260. left: 60,
  261. bottom: 70,
  262. },
  263. tooltip: {
  264. show: true,
  265. trigger: "axis",
  266. axisPointer: {
  267. // 坐标轴指示器,坐标轴触发有效
  268. type: "shadow", // 默认为直线,可选为:'line' | 'shadow'
  269. },
  270. textStyle: {
  271. color: '#FFF', // 文字的颜色
  272. fontSize: '20', // 文字字体大小
  273. fontFamily: 'Microsoft YaHei'
  274. },
  275. },
  276. xAxis: {
  277. data: commonCompany,
  278. axisTick: {
  279. show: false,
  280. },
  281. // x轴的字体颜色
  282. axisLabel: {
  283. rotate: 40,
  284. textStyle: {
  285. color: "white",
  286. fontSize: '20',
  287. fontFamily: 'Microsoft YaHei'
  288. },
  289. },
  290. //y轴线的颜色以及宽度
  291. axisLine: {
  292. show: true,
  293. lineStyle: {
  294. color: "#1E5389",
  295. width: 1,
  296. type: "solid",
  297. },
  298. },
  299. },
  300. yAxis: {
  301. name: '亿元',
  302. nameTextStyle: {//y轴上方单位的颜色
  303. color: '#fff',
  304. fontSize: '20',
  305. fontFamily: 'Microsoft YaHei'
  306. },
  307. axisTick: {
  308. lineStyle: {
  309. color: "#18416F",
  310. },
  311. },
  312. // y轴的字体颜色
  313. axisLabel: {
  314. textStyle: {
  315. color: "white",
  316. fontSize: '20'
  317. },
  318. },
  319. splitLine: {
  320. show: true,
  321. lineStyle: {
  322. color: "#204561",
  323. width: 1,
  324. type: "dotted",
  325. },
  326. },
  327. //y轴线的颜色以及宽度
  328. axisLine: {
  329. show: true,
  330. lineStyle: {
  331. color: "#1E5389",
  332. width: 1,
  333. type: "solid",
  334. },
  335. },
  336. },
  337. series: [
  338. // {
  339. // name: "2022年额度",
  340. // type: "bar",
  341. // data: [263.23, 402.18, 73.28, 144.80, 25.56, 8.23, 0, 12.97, 8.56, -1.72, 0, 0, 0, 76.90, 5.03, 9.14, 0, 0],
  342. // showBackground: false,
  343. // backgroundStyle: {
  344. // color: "#18416F",
  345. // },
  346. // barWidth: "10%",
  347. // itemStyle: {
  348. // barBorderRadius: [10, 10, 0, 0],
  349. // color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [
  350. // {
  351. // offset: 0,
  352. // color: '#082550',
  353. // },
  354. // {
  355. // offset: 1,
  356. // color: '#69c0ff',
  357. // },
  358. // ]),
  359. // },
  360. // },
  361. {
  362. name: "2023年额度",
  363. type: "bar",
  364. data: common3,
  365. showBackground: false,
  366. backgroundStyle: {
  367. color: "#18416F",
  368. },
  369. barWidth: "30%",
  370. itemStyle: {
  371. // barBorderRadius: [10, 10, 0, 0],
  372. color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [
  373. {
  374. offset: 0,
  375. color: '#082550',
  376. },
  377. {
  378. offset: 1,
  379. color: '#957DFF',
  380. },
  381. ]),
  382. },
  383. },
  384. ],
  385. legend: {
  386. // data: ["2022年额度", "2023年额度"],
  387. data: ["2023年额度"],
  388. textStyle: {
  389. // 图列内容样式
  390. color: "#fff", // 字体颜色
  391. fontSize: "20",
  392. fontFamily: 'Microsoft YaHei'
  393. },
  394. right: 'center',
  395. y: 5,
  396. // 小图标的宽高
  397. },
  398. };
  399. tools.loopShowTooltip(myChart, option, {
  400. nterval: 2000,
  401. loopSeries: true,
  402. })
  403. let that = this
  404. myChart.on('click', function (param) {
  405. that.projectListTipShow = true
  406. })
  407. myChart.setOption(option);
  408. },
  409. initChartLTip2 () {
  410. let myChart = echarts.init(document.getElementById("echartSingleTip2"));
  411. let option = {
  412. grid: {
  413. top: 40,
  414. right: 0,
  415. left: 60,
  416. bottom: '15%',
  417. },
  418. tooltip: {
  419. show: true,
  420. trigger: "axis",
  421. axisPointer: {
  422. // 坐标轴指示器,坐标轴触发有效
  423. type: "shadow", // 默认为直线,可选为:'line' | 'shadow'
  424. },
  425. textStyle: {
  426. color: '#FFF', // 文字的颜色
  427. fontSize: '20', // 文字字体大小
  428. fontFamily: 'Microsoft YaHei'
  429. },
  430. },
  431. xAxis: {
  432. data: ["山西焦煤", "晋能控股", "华阳新材", "潞安化工", "华新燃气", "太重集团", "国际能源", "华远陆港", "水控集团", "文旅集团", "交控集团", '航产集团', '山西建投', '汾酒集团', '大地控股', '云时代', '华舰体育', '神农科技'],
  433. axisTick: {
  434. show: false,
  435. },
  436. // x轴的字体颜色
  437. axisLabel: {
  438. rotate: 40,
  439. textStyle: {
  440. color: "white",
  441. fontSize: '20',
  442. fontFamily: 'Microsoft YaHei'
  443. },
  444. },
  445. //y轴线的颜色以及宽度
  446. axisLine: {
  447. show: true,
  448. lineStyle: {
  449. color: "#1E5389",
  450. width: 1,
  451. type: "solid",
  452. },
  453. },
  454. },
  455. yAxis: {
  456. name: '个',
  457. nameTextStyle: {//y轴上方单位的颜色
  458. color: '#fff',
  459. fontSize: '20',
  460. fontFamily: 'Microsoft YaHei'
  461. },
  462. axisTick: {
  463. lineStyle: {
  464. color: "#18416F",
  465. },
  466. },
  467. // y轴的字体颜色
  468. axisLabel: {
  469. textStyle: {
  470. color: "#fff",
  471. fontSize: '20',
  472. fontFamily: 'Microsoft YaHei'
  473. },
  474. },
  475. splitLine: {
  476. show: true,
  477. lineStyle: {
  478. color: "#204561",
  479. width: 1,
  480. type: "dotted",
  481. },
  482. },
  483. //y轴线的颜色以及宽度
  484. axisLine: {
  485. show: true,
  486. lineStyle: {
  487. color: "#1E5389",
  488. width: 1,
  489. type: "solid",
  490. },
  491. },
  492. },
  493. series: [
  494. // {
  495. // name: "2022年额度",
  496. // type: "bar",
  497. // data: [263.23, 402.18, 73.28, 144.80, 25.56, 8.23, 0, 12.97, 8.56, -1.72, 0, 0, 0, 76.90, 5.03, 9.14, 0, 0],
  498. // showBackground: false,
  499. // backgroundStyle: {
  500. // color: "#18416F",
  501. // },
  502. // barWidth: "10%",
  503. // itemStyle: {
  504. // barBorderRadius: [10, 10, 0, 0],
  505. // color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [
  506. // {
  507. // offset: 0,
  508. // color: '#082550',
  509. // },
  510. // {
  511. // offset: 1,
  512. // color: '#69c0ff',
  513. // },
  514. // ]),
  515. // },
  516. // },
  517. {
  518. name: "2023年额度",
  519. type: "bar",
  520. data: common4,
  521. showBackground: false,
  522. backgroundStyle: {
  523. color: "#18416F",
  524. },
  525. barWidth: "30%",
  526. itemStyle: {
  527. // barBorderRadius: [10, 10, 0, 0],
  528. color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [
  529. {
  530. offset: 0,
  531. color: '#082550',
  532. },
  533. {
  534. offset: 1,
  535. color: '#957DFF',
  536. },
  537. ]),
  538. },
  539. },
  540. ],
  541. legend: {
  542. // data: ["2022年额度", "2023年额度"],
  543. data: ["2023年额度"],
  544. textStyle: {
  545. // 图列内容样式
  546. color: "#fff", // 字体颜色
  547. fontSize: "20",
  548. fontFamily: 'Microsoft YaHei'
  549. },
  550. right: 'center',
  551. y: 0,
  552. // 小图标的宽高
  553. },
  554. };
  555. tools.loopShowTooltip(myChart, option, {
  556. nterval: 2000,
  557. loopSeries: true,
  558. })
  559. let that = this
  560. myChart.on('click', function (param) {
  561. that.projectListTipShow = true
  562. })
  563. myChart.setOption(option);
  564. },
  565. initChartLTip3 () {
  566. let myChart = echarts.init(document.getElementById("echartSingleTip3"));
  567. let option = {
  568. grid: {
  569. top: 40,
  570. right: 0,
  571. left: 60,
  572. bottom: '15%',
  573. },
  574. tooltip: {
  575. show: true,
  576. trigger: "axis",
  577. axisPointer: {
  578. // 坐标轴指示器,坐标轴触发有效
  579. type: "shadow", // 默认为直线,可选为:'line' | 'shadow'
  580. },
  581. textStyle: {
  582. color: '#FFF', // 文字的颜色
  583. fontSize: '20', // 文字字体大小
  584. fontFamily: 'Microsoft YaHei'
  585. },
  586. },
  587. xAxis: {
  588. data: ["山西焦煤", "晋能控股", "华阳新材", "潞安化工", "华新燃气", "太重集团", "国际能源", "华远陆港", "水控集团", "文旅集团", "交控集团", '航产集团', '山西建投', '汾酒集团', '大地控股', '云时代', '华舰体育', '神农科技'],
  589. axisTick: {
  590. show: false,
  591. },
  592. // x轴的字体颜色
  593. axisLabel: {
  594. rotate: 40,
  595. textStyle: {
  596. color: "#fff",
  597. fontSize: '20',
  598. fontFamily: 'Microsoft YaHei'
  599. },
  600. },
  601. //y轴线的颜色以及宽度
  602. axisLine: {
  603. show: true,
  604. lineStyle: {
  605. color: "#1E5389",
  606. width: 1,
  607. type: "solid",
  608. },
  609. },
  610. },
  611. yAxis: {
  612. name: '亿元',
  613. nameTextStyle: {//y轴上方单位的颜色
  614. color: '#fff',
  615. fontSize: '20',
  616. fontFamily: 'Microsoft YaHei'
  617. },
  618. axisTick: {
  619. lineStyle: {
  620. color: "#18416F",
  621. },
  622. },
  623. // y轴的字体颜色
  624. axisLabel: {
  625. textStyle: {
  626. color: "#fff",
  627. fontSize: '20',
  628. fontFamily: 'Microsoft YaHei'
  629. },
  630. },
  631. splitLine: {
  632. show: true,
  633. lineStyle: {
  634. color: "#204561",
  635. width: 1,
  636. type: "dotted",
  637. },
  638. },
  639. //y轴线的颜色以及宽度
  640. axisLine: {
  641. show: true,
  642. lineStyle: {
  643. color: "#1E5389",
  644. width: 1,
  645. type: "solid",
  646. },
  647. },
  648. },
  649. series: [
  650. // {
  651. // name: "2022年额度",
  652. // type: "bar",
  653. // data: [263.23, 402.18, 73.28, 144.80, 25.56, 8.23, 0, 12.97, 8.56, -1.72, 0, 0, 0, 76.90, 5.03, 9.14, 0, 0],
  654. // showBackground: false,
  655. // backgroundStyle: {
  656. // color: "#18416F",
  657. // },
  658. // barWidth: "10%",
  659. // itemStyle: {
  660. // barBorderRadius: [10, 10, 0, 0],
  661. // color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [
  662. // {
  663. // offset: 0,
  664. // color: '#082550',
  665. // },
  666. // {
  667. // offset: 1,
  668. // color: '#69c0ff',
  669. // },
  670. // ]),
  671. // },
  672. // },
  673. {
  674. name: "2023年额度",
  675. type: "bar",
  676. data: common5,
  677. showBackground: false,
  678. backgroundStyle: {
  679. color: "#18416F",
  680. },
  681. barWidth: "30%",
  682. itemStyle: {
  683. // barBorderRadius: [10, 10, 0, 0],
  684. color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [
  685. {
  686. offset: 0,
  687. color: '#082550',
  688. },
  689. {
  690. offset: 1,
  691. color: '#69c0ff',
  692. },
  693. ]),
  694. },
  695. },
  696. ],
  697. legend: {
  698. // data: ["2022年额度", "2023年额度"],
  699. data: ["2023年额度"],
  700. textStyle: {
  701. // 图列内容样式
  702. color: "#fff", // 字体颜色
  703. fontSize: "20",
  704. fontFamily: 'Microsoft YaHei'
  705. },
  706. right: 'center',
  707. y: 5,
  708. },
  709. };
  710. tools.loopShowTooltip(myChart, option, {
  711. nterval: 2000,
  712. loopSeries: true,
  713. })
  714. let that = this
  715. myChart.on('click', function (param) {
  716. that.projectListTipShow = true
  717. })
  718. myChart.setOption(option);
  719. },
  720. closeTap () {
  721. this.echartEnterpriseShow = false
  722. this.mapTipShow = false
  723. this.echartSingleTipShow = false
  724. this.echartDoubleTipShow = false
  725. this.projectListTipShow = false
  726. },
  727. //点击弹窗左半部分
  728. popLeftClick () {
  729. if (this.titleUrl == '2.png') {
  730. this.titleUrl = '3.png'
  731. } else if (this.titleUrl == '7.png') {
  732. this.titleUrl = '8.png'
  733. } else if (this.titleUrl == '3.png') {
  734. this.titleUrl = '2.png'
  735. } else if (this.titleUrl == '8.png') {
  736. this.titleUrl = '7.png'
  737. } else if (this.titleUrl == '5.png') {
  738. this.titleUrl = '2.png'
  739. } else if (this.titleUrl == '10.png') {
  740. this.titleUrl = '7.png'
  741. }
  742. },
  743. //点击弹窗右半部分
  744. poprightClick () {
  745. if (this.titleUrl == '2.png') {
  746. this.titleUrl = '5.png'
  747. } else if (this.titleUrl == '7.png') {
  748. this.titleUrl = '10.png'
  749. } else if (this.titleUrl == '5.png') {
  750. this.titleUrl = '2.png'
  751. } else if (this.titleUrl == '10.png') {
  752. this.titleUrl = '7.png'
  753. } else if (this.titleUrl == '3.png') {
  754. this.titleUrl = '2.png'
  755. } else if (this.titleUrl == '8.png') {
  756. this.titleUrl = '7.png'
  757. }
  758. },
  759. // 标题弹窗
  760. showTitlePop (e, name) {
  761. this.closeTap()
  762. this.titleUrl = e
  763. this.titleName = name
  764. this.mapTipShow = true
  765. },
  766. changeYellow () {
  767. this.titleList.forEach((item, index) => {
  768. this.$set(this.titleList[index], 'type', 1)
  769. })
  770. this.$set(this.titleList[this.yellowCount], 'type', 2)
  771. if (this.yellowCount == 14) {
  772. this.yellowCount = 0
  773. this.yellowPosition += 315
  774. } else {
  775. if (this.yellowCount != 0) {
  776. this.yellowPosition += 315
  777. } else {
  778. this.yellowPosition = 40
  779. }
  780. this.yellowCount += 2
  781. }
  782. },
  783. numFormat (value) {
  784. if (!value) return '0'
  785. // var intPart = Number(value).toFixed(0) // 获取整数部分
  786. var intPart = parseInt(value)// 获取整数部分
  787. var intPartFormat = intPart.toString().replace(/(\d)(?=(?:\d{3})+$)/g, '$1,') // 将整数部分逢三一断
  788. var floatPart = '.00' // 预定义小数部分
  789. var value2Array = value.toString().split('.')
  790. // =2表示数据有小数位
  791. if (value2Array.length === 2) {
  792. floatPart = value2Array[1].toString() // 拿到小数部分
  793. if (floatPart.length === 1) {
  794. // 补0
  795. return intPartFormat + '.' + floatPart + '0'
  796. } else {
  797. return intPartFormat + '.' + floatPart
  798. }
  799. } else {
  800. return intPartFormat
  801. }
  802. },
  803. changeTopColor () {
  804. this.list = document.getElementsByClassName('row-item')
  805. for (var i = 0; i < this.list.length; i++) {
  806. if (i == 1) {
  807. this.list[i].classList.add('light')
  808. } else {
  809. this.list[i].classList.remove('light')
  810. }
  811. }
  812. this.initChartL9()
  813. },
  814. scrollChange (index) {
  815. if (index == 18) {
  816. this.count = -1
  817. } else {
  818. this.count = index
  819. }
  820. if (this.count > 12 && this.count != 18) {
  821. this.countType = 1
  822. } else {
  823. this.countType = 0
  824. }
  825. for (var i = 0; i < this.list.length; i++) {
  826. if (i == 2) {
  827. this.list[i].classList.add('light')
  828. } else {
  829. this.list[i].classList.remove('light')
  830. }
  831. }
  832. this.chartCarousel.dispose()
  833. this.initChartL9()
  834. },
  835. initChartBall () {
  836. let myChart = echarts.init(this.$refs['echartBall'])
  837. var value = common2[0];
  838. var data = [value];
  839. option = {
  840. backgroundColor: "#042148",
  841. series: [
  842. {
  843. type: "liquidFill",
  844. radius: "80%",
  845. data: [0.45,0.5,0.4],
  846. // data: [
  847. // {}
  848. // ],
  849. backgroundStyle: {
  850. color: {
  851. type: "radial",
  852. x: 0.5,
  853. y: 0.5,
  854. r: 0.5,
  855. // 水球体颜色
  856. colorStops: [
  857. {
  858. offset: 0,
  859. color: "#010a11",
  860. },
  861. {
  862. offset: 0.75,
  863. color: "#203852",
  864. },
  865. {
  866. offset: 1,
  867. color: "#354e6d",
  868. },
  869. ],
  870. globalCoord: false,
  871. },
  872. },
  873. outline: {
  874. borderDistance: 0,
  875. itemStyle: {
  876. borderWidth: 0,
  877. borderColor: {
  878. type: "linear",
  879. x: 0,
  880. y: 0,
  881. x2: 0,
  882. y2: 1,
  883. colorStops: [
  884. ],
  885. globalCoord: false,
  886. },
  887. },
  888. },
  889. color: [
  890. {
  891. x: 0,
  892. y: 0,
  893. x2: 0,
  894. y2: 1,
  895. colorStops: [{
  896. offset: 0,
  897. color: '#237386',
  898. },
  899. {
  900. offset: 1,
  901. color: '#0078C8',
  902. },],
  903. },
  904. {
  905. x: 0,
  906. y: 0,
  907. x2: 0,
  908. y2: 1,
  909. colorStops: [{
  910. offset: 0,
  911. color: '#2F97A9',
  912. },
  913. {
  914. offset: 1,
  915. color: '#0078C8',
  916. },],
  917. },
  918. {
  919. x: 0,
  920. y: 0,
  921. x2: 0,
  922. y2: 1,
  923. colorStops: [{
  924. offset: 0,
  925. color: '#48E0ED',
  926. },
  927. {
  928. offset: 1,
  929. color: '#0078C8',
  930. },],
  931. }
  932. ],
  933. label: {
  934. normal: {
  935. textStyle: {
  936. color: "#fff", // x轴文字颜色
  937. fontSize:'70'
  938. },
  939. },
  940. },
  941. },
  942. ],
  943. };
  944. myChart.setOption(option)
  945. },
  946. initChartL1 () {
  947. let myChart = echarts.init(this.$refs['echartL1'])
  948. var value = left2[0];
  949. option = {
  950. backgroundColor: "#042148",
  951. series: [
  952. {
  953. type: "liquidFill",
  954. radius: "80%",
  955. data: [0.45,0.5,0.4],
  956. // data: [
  957. // {}
  958. // ],
  959. backgroundStyle: {
  960. color: {
  961. type: "radial",
  962. x: 0.5,
  963. y: 0.5,
  964. r: 0.5,
  965. // 水球体颜色
  966. colorStops: [
  967. {
  968. offset: 0,
  969. color: "#010a11",
  970. },
  971. {
  972. offset: 0.75,
  973. color: "#203852",
  974. },
  975. {
  976. offset: 1,
  977. color: "#354e6d",
  978. },
  979. ],
  980. globalCoord: false,
  981. },
  982. },
  983. outline: {
  984. borderDistance: 0,
  985. itemStyle: {
  986. borderWidth: 0,
  987. borderColor: {
  988. type: "linear",
  989. x: 0,
  990. y: 0,
  991. x2: 0,
  992. y2: 1,
  993. colorStops: [
  994. ],
  995. globalCoord: false,
  996. },
  997. },
  998. },
  999. color: [
  1000. {
  1001. x: 0,
  1002. y: 0,
  1003. x2: 0,
  1004. y2: 1,
  1005. colorStops: [{
  1006. offset: 0,
  1007. color: '#237386',
  1008. },
  1009. {
  1010. offset: 1,
  1011. color: '#0078C8',
  1012. },],
  1013. },
  1014. {
  1015. x: 0,
  1016. y: 0,
  1017. x2: 0,
  1018. y2: 1,
  1019. colorStops: [{
  1020. offset: 0,
  1021. color: '#2F97A9',
  1022. },
  1023. {
  1024. offset: 1,
  1025. color: '#0078C8',
  1026. },],
  1027. },
  1028. {
  1029. x: 0,
  1030. y: 0,
  1031. x2: 0,
  1032. y2: 1,
  1033. colorStops: [{
  1034. offset: 0,
  1035. color: '#48E0ED',
  1036. },
  1037. {
  1038. offset: 1,
  1039. color: '#0078C8',
  1040. },],
  1041. }
  1042. ],
  1043. label: {
  1044. normal: {
  1045. textStyle: {
  1046. color: "#fff", // x轴文字颜色
  1047. },
  1048. },
  1049. },
  1050. },
  1051. ],
  1052. };
  1053. myChart.setOption(option)
  1054. },
  1055. initChartL2 () {
  1056. var chartData = left5
  1057. var timer = null;
  1058. var i = 0;
  1059. let that = this
  1060. var option = {
  1061. colors: ['#a79c57', '#cc8c29', '#91a65f', '#e1d7da', '#383062', '#034a39','#b48494','#85868b'],
  1062. chart: {
  1063. type: 'pie',
  1064. backgroundColor: 'rgba(0,0,0,0)',
  1065. options3d: {
  1066. enabled: true,
  1067. alpha: 45,
  1068. //beta: 0
  1069. },
  1070. events: {
  1071. // load,图表加载完成时触发
  1072. load: function () {
  1073. var chart = this;
  1074. var points = chart.series[0].points;
  1075. var len = points.length;
  1076. timer && clearInterval(timer);
  1077. timer = setInterval(function () {
  1078. autoTooltip(points[i]);
  1079. chartData.forEach((item, index) => {
  1080. item.sliced = false
  1081. item.selected = false
  1082. if (index == i) {
  1083. item.sliced = true
  1084. item.selected = true
  1085. }
  1086. })
  1087. chart.update({
  1088. series: [{
  1089. type: 'pie',
  1090. name: '占比',
  1091. point: {
  1092. events: {
  1093. click: function (e) {
  1094. that.showChartLTipDouble(e.point.name)
  1095. }
  1096. }
  1097. },
  1098. data: chartData
  1099. }]
  1100. })
  1101. i++;
  1102. if (i === len) {
  1103. i = 0;
  1104. chartData.forEach((item, index) => {
  1105. item.sliced = false
  1106. item.selected = false
  1107. })
  1108. chart.update({
  1109. series: [{
  1110. type: 'pie',
  1111. name: '占比',
  1112. point: {
  1113. events: {
  1114. click: function (e) {
  1115. that.showTip3 = true
  1116. that.showChartLTipDouble(e.point.name)
  1117. }
  1118. }
  1119. },
  1120. data: chartData
  1121. }]
  1122. })
  1123. }
  1124. }, 2000);
  1125. },
  1126. legendItemClick: function (event) {
  1127. console.log(event);
  1128. return true;
  1129. }
  1130. }
  1131. },
  1132. credits: {
  1133. enabled: false //去掉hightchats水印
  1134. },
  1135. legend: {
  1136. // labelFormatter: function() {
  1137. // return 123;
  1138. // },
  1139. align: 'right',//横向位置
  1140. verticalAlign: 'middle', // 纵向位置
  1141. layout: "vertical",//横排还是竖排
  1142. x: -110,
  1143. y: 90,
  1144. symbolWidth: 50,
  1145. itemStyle: {
  1146. fontSize: '20px',
  1147. color: '#fff',
  1148. x: 20,
  1149. fontWeight: 0,
  1150. fontFamily: 'Microsoft YaHei'
  1151. },
  1152. },
  1153. title: {
  1154. text: '主辅业计划占比',
  1155. style: {
  1156. color: '#fff',
  1157. fontSize: 24,
  1158. fontFamily: 'Microsoft YaHei',
  1159. },
  1160. align: 'center',
  1161. verticalAlign: "bottom",
  1162. x: -120
  1163. },
  1164. tooltip: {
  1165. crosshairs: false,
  1166. backgroundColor: 'rgba(0,0,0,0.5)',
  1167. // positioner: function(e){
  1168. // console.log(e, this)
  1169. // },
  1170. useHTML: false, //开启html模式
  1171. style: {
  1172. color: '#fff',
  1173. fontSize: '20',
  1174. fontFamily: 'Microsoft YaHei'
  1175. },
  1176. formatter: function (e) {
  1177. let num = chartData[this.colorIndex].num
  1178. this.percentage = this.percentage.toFixed(2) //Math.round(this.percentage)
  1179. return `${this.key}:<b>${this.percentage}%</b><br/><b>${this.y}</b>亿,<b>${num}个</b>`
  1180. },
  1181. //pointFormat:
  1182. },
  1183. plotOptions: {
  1184. pie: {
  1185. allowPointSelect: true,
  1186. showInLegend: true, // 图例
  1187. cursor: 'pointer',
  1188. size: 220,
  1189. innerSize: 150, //环形图中间空白,0为饼图
  1190. depth: 25, //立体高度
  1191. slicedOffset: 21, //动画距离
  1192. dataLabels: {
  1193. enabled: false, // 是否展示指示线
  1194. format: '{point.name}: {point.percentage}'
  1195. }
  1196. },
  1197. },
  1198. series: [{
  1199. type: 'pie',
  1200. name: '占比',
  1201. center: ['50%', '50%'],
  1202. point: {
  1203. events: {
  1204. click: function (e) { //点击事件
  1205. that.showChartLTipDouble(e.point.name)
  1206. },
  1207. mouseOver: function (e) { //鼠标移入停止轮播并且找到移入的当前数据设为选中
  1208. //console.log(e)
  1209. chartData.forEach((item, index) => {
  1210. item.sliced = false
  1211. item.selected = false
  1212. })
  1213. chartData[e.target.index].sliced = true
  1214. chartData[e.target.index].selected = true
  1215. chart.update({
  1216. series: [{
  1217. type: 'pie',
  1218. name: '占比',
  1219. point: {
  1220. events: {
  1221. click: function (e) {
  1222. that.showChartLTipDouble(e.point.name)
  1223. }
  1224. }
  1225. },
  1226. data: chartData
  1227. }]
  1228. })
  1229. timer && clearInterval(timer);
  1230. },
  1231. mouseOut: function () { // 鼠标移出后需要继续执行轮播
  1232. var points = chart.series[0].points;
  1233. var len = points.length;
  1234. timer && clearInterval(timer);
  1235. timer = setInterval(function () {
  1236. autoTooltip(points[i]);
  1237. chartData.forEach((item, index) => {
  1238. item.sliced = false
  1239. item.selected = false
  1240. if (index == i) {
  1241. item.sliced = true
  1242. item.selected = true
  1243. }
  1244. })
  1245. chart.update({
  1246. series: [{
  1247. type: 'pie',
  1248. name: '占比',
  1249. point: {
  1250. events: {
  1251. click: function (e) {
  1252. that.showChartLTipDouble(e.point.name)
  1253. }
  1254. }
  1255. },
  1256. data: chartData
  1257. }]
  1258. })
  1259. i++;
  1260. if (i === len) {
  1261. i = 0;
  1262. chartData.forEach((item, index) => {
  1263. item.sliced = false
  1264. item.selected = false
  1265. })
  1266. chart.update({
  1267. series: [{
  1268. type: 'pie',
  1269. name: '占比',
  1270. point: {
  1271. events: {
  1272. click: function (e) {
  1273. that.showChartLTipDouble(e.point.name)
  1274. }
  1275. }
  1276. },
  1277. data: chartData
  1278. }]
  1279. })
  1280. }
  1281. }, 2000);
  1282. }
  1283. }
  1284. },
  1285. data: chartData
  1286. }]
  1287. }
  1288. var chart = Highcharts.chart('echartL2', option);
  1289. function autoTooltip (point) {
  1290. chart.tooltip.refresh(point);
  1291. }
  1292. },
  1293. initChartL3 () {
  1294. var chartData = left6
  1295. var timer = null;
  1296. var i = 0;
  1297. let that = this
  1298. var chart = Highcharts.chart('echartL3', {
  1299. colors: ['#a79c57', '#cc8c29', '#91a65f', '#e1d7da', '#383062', '#034a39','#b48494','#85868b'],
  1300. chart: {
  1301. type: 'pie',
  1302. backgroundColor: 'rgba(0,0,0,0)',
  1303. options3d: {
  1304. enabled: true,
  1305. alpha: 45,
  1306. //beta: 0
  1307. },
  1308. events: {
  1309. // load,图表加载完成时触发
  1310. load: function () {
  1311. var chart = this;
  1312. var points = chart.series[0].points;
  1313. var len = points.length;
  1314. timer && clearInterval(timer);
  1315. timer = setInterval(function () {
  1316. autoTooltip(points[i]);
  1317. chartData.forEach((item, index) => {
  1318. item.sliced = false
  1319. item.selected = false
  1320. if (index == i) {
  1321. item.sliced = true
  1322. item.selected = true
  1323. }
  1324. })
  1325. chart.update({
  1326. series: [{
  1327. type: 'pie',
  1328. name: '占比',
  1329. point: {
  1330. events: {
  1331. click: function (e) {
  1332. that.showChartLTipDouble(e.point.name)
  1333. }
  1334. }
  1335. },
  1336. data: chartData
  1337. }]
  1338. })
  1339. i++;
  1340. if (i === len) {
  1341. i = 0;
  1342. chartData.forEach((item, index) => {
  1343. item.sliced = false
  1344. item.selected = false
  1345. })
  1346. chart.update({
  1347. series: [{
  1348. type: 'pie',
  1349. name: '占比',
  1350. point: {
  1351. events: {
  1352. click: function (e) {
  1353. that.showChartLTipDouble(e.point.name)
  1354. }
  1355. }
  1356. },
  1357. data: chartData
  1358. }]
  1359. })
  1360. }
  1361. }, 2000);
  1362. },
  1363. legendItemClick: function (event) {
  1364. that.showChartLTipDouble(e.point.name)
  1365. return true;
  1366. }
  1367. }
  1368. },
  1369. credits: {
  1370. enabled: false //去掉hightchats水印
  1371. },
  1372. legend: {
  1373. // labelFormatter: function() {
  1374. // return 123;
  1375. // },
  1376. align: 'right',//横向位置
  1377. verticalAlign: 'middle', // 纵向位置
  1378. layout: "vertical",//横排还是竖排
  1379. x: -70,
  1380. y: 90,
  1381. symbolWidth: 50,
  1382. itemStyle: {
  1383. fontSize: '20px',
  1384. color: '#fff',
  1385. x: 20,
  1386. fontWeight: 0,
  1387. fontFamily: 'Microsoft YaHei'
  1388. },
  1389. },
  1390. title: {
  1391. text: '项目管理类型',
  1392. style: {
  1393. color: '#fff',
  1394. fontSize: 24,
  1395. fontFamily: 'Microsoft YaHei'
  1396. },
  1397. align: 'center',
  1398. verticalAlign: "bottom",
  1399. x: -120
  1400. },
  1401. tooltip: {
  1402. crosshairs: true,
  1403. backgroundColor: 'rgba(0,0,0,0.5)',
  1404. // positioner: function(e){
  1405. // console.log(e, this)
  1406. // },
  1407. useHTML: false, //开启html模式
  1408. style: {
  1409. color: '#fff',
  1410. fontSize: '20',
  1411. fontFamily: 'Microsoft YaHei'
  1412. },
  1413. formatter: function (e) {
  1414. //console.log(this)
  1415. let num = chartData[this.colorIndex].num
  1416. this.percentage = this.percentage.toFixed(2) //Math.round(this.percentage)
  1417. return `${this.key}:<b>${this.percentage}%</b><br/><b>${this.y}</b>亿,<b>${num}个</b>`
  1418. },
  1419. //pointFormat:
  1420. },
  1421. plotOptions: {
  1422. pie: {
  1423. allowPointSelect: true,
  1424. showInLegend: true, // 图例
  1425. cursor: 'pointer',
  1426. size: 220,
  1427. innerSize: 150, //环形图中间空白,0为饼图
  1428. depth: 25, //立体高度
  1429. slicedOffset: 21, //动画距离
  1430. dataLabels: {
  1431. enabled: false, // 是否展示指示线
  1432. format: '{point.name}: {point.percentage}'
  1433. }
  1434. },
  1435. },
  1436. series: [{
  1437. type: 'pie',
  1438. name: '占比',
  1439. // center: ['70%', '50%'],
  1440. point: {
  1441. events: {
  1442. click: function (e) { //点击事件
  1443. that.showChartLTipDouble(e.point.name)
  1444. },
  1445. mouseOver: function (e) { //鼠标移入停止轮播并且找到移入的当前数据设为选中
  1446. //console.log(e)
  1447. chartData.forEach((item, index) => {
  1448. item.sliced = false
  1449. item.selected = false
  1450. })
  1451. chartData[e.target.index].sliced = true
  1452. chartData[e.target.index].selected = true
  1453. chart.update({
  1454. series: [{
  1455. type: 'pie',
  1456. name: '占比',
  1457. point: {
  1458. events: {
  1459. click: function (e) {
  1460. that.showChartLTipDouble(e.point.name)
  1461. }
  1462. }
  1463. },
  1464. data: chartData
  1465. }]
  1466. })
  1467. timer && clearInterval(timer);
  1468. },
  1469. mouseOut: function () { // 鼠标移出后需要继续执行轮播
  1470. var points = chart.series[0].points;
  1471. var len = points.length;
  1472. timer && clearInterval(timer);
  1473. timer = setInterval(function () {
  1474. autoTooltip(points[i]);
  1475. chartData.forEach((item, index) => {
  1476. item.sliced = false
  1477. item.selected = false
  1478. if (index == i) {
  1479. item.sliced = true
  1480. item.selected = true
  1481. }
  1482. })
  1483. chart.update({
  1484. series: [{
  1485. type: 'pie',
  1486. name: '占比',
  1487. point: {
  1488. events: {
  1489. click: function (e) {
  1490. that.showChartLTipDouble(e.point.name)
  1491. }
  1492. }
  1493. },
  1494. data: chartData
  1495. }]
  1496. })
  1497. i++;
  1498. if (i === len) {
  1499. i = 0;
  1500. chartData.forEach((item, index) => {
  1501. item.sliced = false
  1502. item.selected = false
  1503. })
  1504. chart.update({
  1505. series: [{
  1506. type: 'pie',
  1507. name: '占比',
  1508. point: {
  1509. events: {
  1510. click: function (e) {
  1511. console.log(e)
  1512. }
  1513. }
  1514. },
  1515. data: chartData
  1516. }]
  1517. })
  1518. }
  1519. }, 2000);
  1520. }
  1521. }
  1522. },
  1523. data: chartData
  1524. }]
  1525. });
  1526. function autoTooltip (point) {
  1527. chart.tooltip.refresh(point);
  1528. }
  1529. },
  1530. initChartL4 () {
  1531. let myChart = echarts.init(document.getElementById("echartL4"));
  1532. let option = {
  1533. grid: {
  1534. top: 45,
  1535. right: 0,
  1536. left: 60,
  1537. bottom: 80,
  1538. },
  1539. tooltip: {
  1540. show: true,
  1541. trigger: "axis",
  1542. axisPointer: {
  1543. // 坐标轴指示器,坐标轴触发有效
  1544. type: "shadow", // 默认为直线,可选为:'line' | 'shadow'
  1545. },
  1546. textStyle: {
  1547. color: '#FFF', // 文字的颜色
  1548. fontSize: '20', // 文字字体大小
  1549. fontFamily: 'Microsoft YaHei'
  1550. },
  1551. },
  1552. xAxis: {
  1553. data: commonCompany,
  1554. axisTick: {
  1555. show: false,
  1556. },
  1557. // x轴的字体颜色
  1558. axisLabel: {
  1559. rotate: 40,
  1560. textStyle: {
  1561. color: "white",
  1562. fontSize: '20',
  1563. fontFamily: 'Microsoft YaHei'
  1564. },
  1565. },
  1566. //y轴线的颜色以及宽度
  1567. axisLine: {
  1568. show: true,
  1569. lineStyle: {
  1570. color: "#1E5389",
  1571. width: 1,
  1572. type: "solid",
  1573. },
  1574. },
  1575. },
  1576. yAxis: {
  1577. name: '亿元',
  1578. axisTick: {
  1579. lineStyle: {
  1580. color: "#18416F",
  1581. },
  1582. },
  1583. // y轴的字体颜色
  1584. axisLabel: {
  1585. textStyle: {
  1586. color: "white",
  1587. fontSize: '20',
  1588. fontFamily: 'Microsoft YaHei'
  1589. },
  1590. },
  1591. splitLine: {
  1592. show: true,
  1593. lineStyle: {
  1594. color: "#204561",
  1595. width: 1,
  1596. type: "dotted",
  1597. },
  1598. },
  1599. //y轴线的颜色以及宽度
  1600. axisLine: {
  1601. show: true,
  1602. lineStyle: {
  1603. color: "#1E5389",
  1604. width: 1,
  1605. type: "solid",
  1606. },
  1607. },
  1608. nameTextStyle: {
  1609. color: '#fff',
  1610. fontSize: 20,
  1611. fontFamily: 'Microsoft YaHei'
  1612. },
  1613. },
  1614. series: [
  1615. {
  1616. name: "2023年额度",
  1617. type: "bar",
  1618. data: left3[0],
  1619. showBackground: true,
  1620. backgroundStyle: {
  1621. color: "#18416F",
  1622. },
  1623. barWidth: "30%",
  1624. itemStyle: {
  1625. // barBorderRadius: [10, 10, 0, 0],
  1626. color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [
  1627. {
  1628. offset: 0,
  1629. color: '#082550',
  1630. },
  1631. {
  1632. offset: 1,
  1633. color: '#957DFF',
  1634. },
  1635. ]),
  1636. },
  1637. },
  1638. ],
  1639. legend: {
  1640. // data: ["2022年额度", "2023年额度"],
  1641. data: ["2023年额度"],
  1642. textStyle: {
  1643. // 图列内容样式
  1644. color: "#fff", // 字体颜色
  1645. fontSize: "20",
  1646. fontFamily: 'Microsoft YaHei'
  1647. },
  1648. right: 'center',
  1649. y: 5,
  1650. // icon: "roundRect",
  1651. // 小图标的宽高
  1652. },
  1653. };
  1654. tools.loopShowTooltip(myChart, option, {
  1655. nterval: 2000,
  1656. loopSeries: true,
  1657. })
  1658. let that = this
  1659. myChart.on('click', function (param) {
  1660. that.titleName = param.name
  1661. that.echartEnterpriseShow = true
  1662. setTimeout(() => {
  1663. that.initChartBall()
  1664. });
  1665. })
  1666. myChart.setOption(option);
  1667. },
  1668. initChartL5 () {
  1669. var chartData = left7
  1670. var timer = null;
  1671. var i = 0;
  1672. let that = this
  1673. var option = {
  1674. colors: ['#a79c57', '#cc8c29', '#91a65f', '#e1d7da', '#383062', '#034a39','#b48494','#85868b'],
  1675. chart: {
  1676. type: 'pie',
  1677. backgroundColor: 'rgba(0,0,0,0)',
  1678. options3d: {
  1679. enabled: true,
  1680. alpha: 45,
  1681. //beta: 0
  1682. },
  1683. events: {
  1684. // load,图表加载完成时触发
  1685. load: function () {
  1686. var chart = this;
  1687. var points = chart.series[0].points;
  1688. var len = points.length;
  1689. timer && clearInterval(timer);
  1690. timer = setInterval(function () {
  1691. autoTooltip(points[i]);
  1692. chartData.forEach((item, index) => {
  1693. item.sliced = false
  1694. item.selected = false
  1695. if (index == i) {
  1696. item.sliced = true
  1697. item.selected = true
  1698. }
  1699. })
  1700. chart.update({
  1701. series: [{
  1702. type: 'pie',
  1703. name: '占比',
  1704. point: {
  1705. events: {
  1706. click: function (e) {
  1707. that.showChartLTipDouble(e.point.name)
  1708. }
  1709. }
  1710. },
  1711. data: chartData
  1712. }]
  1713. })
  1714. i++;
  1715. if (i === len) {
  1716. i = 0;
  1717. }
  1718. }, 2000);
  1719. },
  1720. legendItemClick: function (event) {
  1721. console.log(event);
  1722. return true;
  1723. }
  1724. }
  1725. },
  1726. credits: {
  1727. enabled: false //去掉hightchats水印
  1728. },
  1729. legend: {
  1730. // labelFormatter: function() {
  1731. // return 123;
  1732. // },
  1733. align: 'right',//横向位置
  1734. verticalAlign: 'middle', // 纵向位置
  1735. layout: "vertical",//横排还是竖排
  1736. x: -110,
  1737. y: 50,
  1738. symbolWidth: 50,
  1739. itemDistance: 50,
  1740. itemStyle: {
  1741. fontSize: '20px',
  1742. color: '#fff',
  1743. x: 20,
  1744. fontWeight: 0,
  1745. fontFamily: 'Microsoft YaHei'
  1746. },
  1747. },
  1748. title: {
  1749. text: '传统产业分析',
  1750. style: {
  1751. color: '#fff',
  1752. fontSize: 24,
  1753. fontFamily: 'Microsoft YaHei'
  1754. },
  1755. align: 'center',
  1756. verticalAlign: "bottom",
  1757. x: -120
  1758. },
  1759. tooltip: {
  1760. crosshairs: true,
  1761. backgroundColor: 'rgba(0,0,0,0.5)',
  1762. // positioner: function(e){
  1763. // console.log(e, this)
  1764. // },
  1765. useHTML: false, //开启html模式
  1766. style: {
  1767. color: '#fff',
  1768. fontSize: '20',
  1769. fontFamily: 'Microsoft YaHei'
  1770. },
  1771. formatter: function (e) {
  1772. //console.log(this)
  1773. let num = chartData[this.colorIndex].num
  1774. this.percentage = this.percentage.toFixed(2) //Math.round(this.percentage)
  1775. return `${this.key}:<b>${this.percentage}%</b><br/><b>${this.y}</b>亿,<b>${num}个</b>`
  1776. },
  1777. //pointFormat:
  1778. },
  1779. plotOptions: {
  1780. pie: {
  1781. allowPointSelect: true,
  1782. showInLegend: true, // 图例
  1783. cursor: 'pointer',
  1784. size: 220,
  1785. innerSize: 150, //环形图中间空白,0为饼图
  1786. depth: 25, //立体高度
  1787. slicedOffset: 21, //动画距离
  1788. dataLabels: {
  1789. enabled: false, // 是否展示指示线
  1790. format: '{point.name}: {point.percentage}'
  1791. }
  1792. },
  1793. },
  1794. series: [{
  1795. type: 'pie',
  1796. name: '占比',
  1797. //center: ['35%','50%'],
  1798. point: {
  1799. events: {
  1800. click: function (e) { //点击事件
  1801. that.showChartLTipDouble(e.point.name)
  1802. },
  1803. mouseOver: function (e) { //鼠标移入停止轮播并且找到移入的当前数据设为选中
  1804. //console.log(e)
  1805. chartData.forEach((item, index) => {
  1806. item.sliced = false
  1807. item.selected = false
  1808. })
  1809. chartData[e.target.index].sliced = true
  1810. chartData[e.target.index].selected = true
  1811. chart.update({
  1812. series: [{
  1813. type: 'pie',
  1814. name: '占比',
  1815. point: {
  1816. events: {
  1817. click: function (e) {
  1818. that.showChartLTipDouble(e.point.name)
  1819. }
  1820. }
  1821. },
  1822. data: chartData
  1823. }]
  1824. })
  1825. timer && clearInterval(timer);
  1826. },
  1827. mouseOut: function () { // 鼠标移出后需要继续执行轮播
  1828. var points = chart.series[0].points;
  1829. var len = points.length;
  1830. timer && clearInterval(timer);
  1831. timer = setInterval(function () {
  1832. autoTooltip(points[i]);
  1833. chartData.forEach((item, index) => {
  1834. item.sliced = false
  1835. item.selected = false
  1836. if (index == i) {
  1837. item.sliced = true
  1838. item.selected = true
  1839. }
  1840. })
  1841. chart.update({
  1842. series: [{
  1843. type: 'pie',
  1844. name: '占比',
  1845. point: {
  1846. events: {
  1847. click: function (e) {
  1848. that.showChartLTipDouble(e.point.name)
  1849. }
  1850. }
  1851. },
  1852. data: chartData
  1853. }]
  1854. })
  1855. i++;
  1856. if (i === len) {
  1857. i = 0;
  1858. }
  1859. }, 2000);
  1860. }
  1861. }
  1862. },
  1863. data: chartData
  1864. }]
  1865. }
  1866. var chart = Highcharts.chart('echartL5', option);
  1867. function autoTooltip (point) {
  1868. chart.tooltip.refresh(point);
  1869. }
  1870. },
  1871. initChartL6 () {
  1872. var chartData = left8
  1873. var timer = null;
  1874. var i = 0;
  1875. let that = this
  1876. var option = {
  1877. colors: ['#a79c57', '#cc8c29', '#91a65f', '#e1d7da', '#383062', '#034a39','#b48494','#85868b'],
  1878. chart: {
  1879. type: 'pie',
  1880. backgroundColor: 'rgba(0,0,0,0)',
  1881. options3d: {
  1882. enabled: true,
  1883. alpha: 45,
  1884. //beta: 0
  1885. },
  1886. events: {
  1887. // load,图表加载完成时触发
  1888. load: function () {
  1889. var chart = this;
  1890. var points = chart.series[0].points;
  1891. var len = points.length;
  1892. timer && clearInterval(timer);
  1893. timer = setInterval(function () {
  1894. autoTooltip(points[i]);
  1895. chartData.forEach((item, index) => {
  1896. item.sliced = false
  1897. item.selected = false
  1898. if (index == i) {
  1899. item.sliced = true
  1900. item.selected = true
  1901. }
  1902. })
  1903. chart.update({
  1904. series: [{
  1905. type: 'pie',
  1906. name: '占比',
  1907. point: {
  1908. events: {
  1909. click: function (e) {
  1910. that.showChartLTipDouble(e.point.name)
  1911. }
  1912. }
  1913. },
  1914. data: chartData
  1915. }]
  1916. })
  1917. i++;
  1918. if (i === len) {
  1919. i = 0;
  1920. }
  1921. }, 2000);
  1922. },
  1923. legendItemClick: function (event) {
  1924. console.log(event);
  1925. return true;
  1926. }
  1927. }
  1928. },
  1929. credits: {
  1930. enabled: false //去掉hightchats水印
  1931. },
  1932. legend: {
  1933. // labelFormatter: function() {
  1934. // return 123;
  1935. // },
  1936. align: 'right',//横向位置
  1937. verticalAlign: 'middle', // 纵向位置
  1938. layout: "vertical",//横排还是竖排
  1939. x: -30,
  1940. y: 30,
  1941. symbolWidth: 50,
  1942. itemDistance: 50,
  1943. itemStyle: {
  1944. fontSize: '20px',
  1945. color: '#fff',
  1946. x: 20,
  1947. fontWeight: 0,
  1948. fontFamily: 'Microsoft YaHei'
  1949. },
  1950. },
  1951. title: {
  1952. text: '战略性新兴产业',
  1953. style: {
  1954. color: '#fff',
  1955. fontSize: 24,
  1956. fontFamily: 'Microsoft YaHei'
  1957. },
  1958. align: 'center',
  1959. verticalAlign: "bottom",
  1960. x: -120
  1961. },
  1962. tooltip: {
  1963. crosshairs: true,
  1964. backgroundColor: 'rgba(0,0,0,0.5)',
  1965. // positioner: function(e){
  1966. // console.log(e, this)
  1967. // },
  1968. useHTML: false, //开启html模式
  1969. style: {
  1970. color: '#fff',
  1971. fontSize: '20',
  1972. fontFamily: 'Microsoft YaHei'
  1973. },
  1974. formatter: function (e) {
  1975. //console.log(this)
  1976. let num = chartData[this.colorIndex].num
  1977. this.percentage = this.percentage.toFixed(2) //Math.round(this.percentage)
  1978. return `${this.key}:<b>${this.percentage}%</b><br/><b>${this.y}</b>亿,<b>${num}个</b>`
  1979. },
  1980. //pointFormat:
  1981. },
  1982. plotOptions: {
  1983. pie: {
  1984. allowPointSelect: true,
  1985. showInLegend: true, // 图例
  1986. cursor: 'pointer',
  1987. size: 220,
  1988. innerSize: 150, //环形图中间空白,0为饼图
  1989. depth: 25, //立体高度
  1990. slicedOffset: 21, //动画距离
  1991. dataLabels: {
  1992. enabled: false, // 是否展示指示线
  1993. format: '{point.name}: {point.percentage}'
  1994. }
  1995. },
  1996. },
  1997. series: [{
  1998. type: 'pie',
  1999. name: '占比',
  2000. //center: ['35%','50%'],
  2001. point: {
  2002. events: {
  2003. click: function (e) { //点击事件
  2004. that.showChartLTipDouble(e.point.name)
  2005. },
  2006. mouseOver: function (e) { //鼠标移入停止轮播并且找到移入的当前数据设为选中
  2007. //console.log(e)
  2008. chartData.forEach((item, index) => {
  2009. item.sliced = false
  2010. item.selected = false
  2011. })
  2012. chartData[e.target.index].sliced = true
  2013. chartData[e.target.index].selected = true
  2014. chart.update({
  2015. series: [{
  2016. type: 'pie',
  2017. name: '占比',
  2018. point: {
  2019. events: {
  2020. click: function (e) {
  2021. that.showChartLTipDouble(e.point.name)
  2022. }
  2023. }
  2024. },
  2025. data: chartData
  2026. }]
  2027. })
  2028. timer && clearInterval(timer);
  2029. },
  2030. mouseOut: function () { // 鼠标移出后需要继续执行轮播
  2031. var points = chart.series[0].points;
  2032. var len = points.length;
  2033. timer && clearInterval(timer);
  2034. timer = setInterval(function () {
  2035. autoTooltip(points[i]);
  2036. chartData.forEach((item, index) => {
  2037. item.sliced = false
  2038. item.selected = false
  2039. if (index == i) {
  2040. item.sliced = true
  2041. item.selected = true
  2042. }
  2043. })
  2044. chart.update({
  2045. series: [{
  2046. type: 'pie',
  2047. name: '占比',
  2048. point: {
  2049. events: {
  2050. click: function (e) {
  2051. that.showChartLTipDouble(e.point.name)
  2052. }
  2053. }
  2054. },
  2055. data: chartData
  2056. }]
  2057. })
  2058. i++;
  2059. if (i === len) {
  2060. i = 0;
  2061. }
  2062. }, 2000);
  2063. }
  2064. }
  2065. },
  2066. data: chartData
  2067. }]
  2068. }
  2069. var chart = Highcharts.chart('echartL6', option);
  2070. function autoTooltip (point) {
  2071. chart.tooltip.refresh(point);
  2072. }
  2073. },
  2074. initChartL7 () {
  2075. var chartData = left9
  2076. var timer = null;
  2077. var i = 0;
  2078. let that = this
  2079. var option = {
  2080. colors: ['#a79c57', '#cc8c29', '#91a65f', '#e1d7da', '#383062', '#034a39','#b48494','#85868b'],
  2081. chart: {
  2082. type: 'pie',
  2083. backgroundColor: 'rgba(0,0,0,0)',
  2084. options3d: {
  2085. enabled: true,
  2086. alpha: 45,
  2087. //beta: 0
  2088. },
  2089. events: {
  2090. // load,图表加载完成时触发
  2091. load: function () {
  2092. var chart = this;
  2093. var points = chart.series[0].points;
  2094. var len = points.length;
  2095. timer && clearInterval(timer);
  2096. timer = setInterval(function () {
  2097. autoTooltip(points[i]);
  2098. chartData.forEach((item, index) => {
  2099. item.sliced = false
  2100. item.selected = false
  2101. if (index == i) {
  2102. item.sliced = true
  2103. item.selected = true
  2104. }
  2105. })
  2106. chart.update({
  2107. series: [{
  2108. type: 'pie',
  2109. name: '占比',
  2110. point: {
  2111. events: {
  2112. click: function (e) {
  2113. that.showChartLTipDouble(e.point.name)
  2114. }
  2115. }
  2116. },
  2117. data: chartData
  2118. }]
  2119. })
  2120. i++;
  2121. if (i === len) {
  2122. i = 0;
  2123. }
  2124. }, 2000);
  2125. },
  2126. legendItemClick: function (event) {
  2127. console.log(event);
  2128. return true;
  2129. }
  2130. }
  2131. },
  2132. credits: {
  2133. enabled: false //去掉hightchats水印
  2134. },
  2135. title: {
  2136. text: '特色优势产业',
  2137. style: {
  2138. color: '#fff',
  2139. fontSize: 24,
  2140. fontFamily: 'Microsoft YaHei'
  2141. },
  2142. align: 'center',
  2143. verticalAlign: "bottom",
  2144. x: -120
  2145. },
  2146. legend: {
  2147. // labelFormatter: function() {
  2148. // return 123;
  2149. // },
  2150. align: 'right',//横向位置
  2151. verticalAlign: 'middle', // 纵向位置
  2152. layout: "vertical",//横排还是竖排
  2153. x: -50,
  2154. y: 30,
  2155. symbolWidth: 50,
  2156. itemDistance: 50,
  2157. itemStyle: {
  2158. fontSize: '20px',
  2159. color: '#fff',
  2160. x: 20,
  2161. fontWeight: 0,
  2162. fontFamily: 'Microsoft YaHei'
  2163. },
  2164. },
  2165. tooltip: {
  2166. crosshairs: true,
  2167. backgroundColor: 'rgba(0,0,0,0.5)',
  2168. // positioner: function(e){
  2169. // console.log(e, this)
  2170. // },
  2171. useHTML: false, //开启html模式
  2172. style: {
  2173. color: '#fff',
  2174. fontSize: '20',
  2175. fontFamily: 'Microsoft YaHei'
  2176. },
  2177. formatter: function (e) {
  2178. //console.log(this)
  2179. let num = chartData[this.colorIndex].num
  2180. this.percentage = this.percentage.toFixed(2) //Math.round(this.percentage)
  2181. return `${this.key}:<b>${this.percentage}%</b><br/><b>${this.y}</b>亿,<b>${num}个</b>`
  2182. },
  2183. //pointFormat:
  2184. },
  2185. plotOptions: {
  2186. pie: {
  2187. allowPointSelect: true,
  2188. showInLegend: true, // 图例
  2189. cursor: 'pointer',
  2190. size: 220,
  2191. innerSize: 150, //环形图中间空白,0为饼图
  2192. depth: 25, //立体高度
  2193. slicedOffset: 21, //动画距离
  2194. dataLabels: {
  2195. enabled: false, // 是否展示指示线
  2196. format: '{point.name}: {point.percentage}'
  2197. }
  2198. },
  2199. },
  2200. series: [{
  2201. type: 'pie',
  2202. name: '占比',
  2203. //center: ['35%','50%'],
  2204. point: {
  2205. events: {
  2206. click: function (e) { //点击事件
  2207. that.showChartLTipDouble(e.point.name)
  2208. },
  2209. mouseOver: function (e) { //鼠标移入停止轮播并且找到移入的当前数据设为选中
  2210. //console.log(e)
  2211. chartData.forEach((item, index) => {
  2212. item.sliced = false
  2213. item.selected = false
  2214. })
  2215. chartData[e.target.index].sliced = true
  2216. chartData[e.target.index].selected = true
  2217. chart.update({
  2218. series: [{
  2219. type: 'pie',
  2220. name: '占比',
  2221. point: {
  2222. events: {
  2223. click: function (e) {
  2224. that.showChartLTipDouble(e.point.name)
  2225. }
  2226. }
  2227. },
  2228. data: chartData
  2229. }]
  2230. })
  2231. timer && clearInterval(timer);
  2232. },
  2233. mouseOut: function () { // 鼠标移出后需要继续执行轮播
  2234. var points = chart.series[0].points;
  2235. var len = points.length;
  2236. timer && clearInterval(timer);
  2237. timer = setInterval(function () {
  2238. autoTooltip(points[i]);
  2239. chartData.forEach((item, index) => {
  2240. item.sliced = false
  2241. item.selected = false
  2242. if (index == i) {
  2243. item.sliced = true
  2244. item.selected = true
  2245. }
  2246. })
  2247. chart.update({
  2248. series: [{
  2249. type: 'pie',
  2250. name: '占比',
  2251. point: {
  2252. events: {
  2253. click: function (e) {
  2254. that.showChartLTipDouble(e.point.name)
  2255. }
  2256. }
  2257. },
  2258. data: chartData
  2259. }]
  2260. })
  2261. i++;
  2262. if (i === len) {
  2263. i = 0;
  2264. }
  2265. }, 2000);
  2266. }
  2267. }
  2268. },
  2269. data: chartData
  2270. }]
  2271. }
  2272. var chart = Highcharts.chart('echartL7', option);
  2273. function autoTooltip (point) {
  2274. chart.tooltip.refresh(point);
  2275. }
  2276. },
  2277. initChartL8 () {
  2278. var chartData = left10
  2279. var timer = null;
  2280. var i = 0;
  2281. let that = this
  2282. var option = {
  2283. colors: ['#a79c57', '#cc8c29', '#91a65f', '#e1d7da', '#383062', '#034a39','#b48494','#85868b'],
  2284. chart: {
  2285. type: 'pie',
  2286. backgroundColor: 'rgba(0,0,0,0)',
  2287. options3d: {
  2288. enabled: true,
  2289. alpha: 45,
  2290. //beta: 0
  2291. },
  2292. events: {
  2293. // load,图表加载完成时触发
  2294. load: function () {
  2295. var chart = this;
  2296. var points = chart.series[0].points;
  2297. var len = points.length;
  2298. timer && clearInterval(timer);
  2299. timer = setInterval(function () {
  2300. autoTooltip(points[i]);
  2301. chartData.forEach((item, index) => {
  2302. item.sliced = false
  2303. item.selected = false
  2304. if (index == i) {
  2305. item.sliced = true
  2306. item.selected = true
  2307. }
  2308. })
  2309. chart.update({
  2310. series: [{
  2311. type: 'pie',
  2312. name: '占比',
  2313. point: {
  2314. events: {
  2315. click: function (e) {
  2316. that.showChartLTipDouble(e.point.name)
  2317. }
  2318. }
  2319. },
  2320. data: chartData
  2321. }]
  2322. })
  2323. i++;
  2324. if (i === len) {
  2325. i = 0;
  2326. }
  2327. }, 2000);
  2328. },
  2329. legendItemClick: function (event) {
  2330. console.log(event);
  2331. return true;
  2332. }
  2333. }
  2334. },
  2335. credits: {
  2336. enabled: false //去掉hightchats水印
  2337. },
  2338. title: {
  2339. text: '公共基础等产业',
  2340. style: {
  2341. color: '#fff',
  2342. fontSize: 24,
  2343. fontFamily: 'Microsoft YaHei'
  2344. },
  2345. align: 'center',
  2346. verticalAlign: "bottom",
  2347. x: -120
  2348. },
  2349. legend: {
  2350. // labelFormatter: function() {
  2351. // return 123;
  2352. // },
  2353. align: 'right',//横向位置
  2354. verticalAlign: 'middle', // 纵向位置
  2355. layout: "vertical",//横排还是竖排
  2356. x: -70,
  2357. y: 50,
  2358. symbolWidth: 50,
  2359. itemDistance: 50,
  2360. itemStyle: {
  2361. fontSize: '20px',
  2362. color: '#fff',
  2363. x: 20,
  2364. fontWeight: 0,
  2365. fontFamily: 'Microsoft YaHei'
  2366. },
  2367. },
  2368. tooltip: {
  2369. crosshairs: true,
  2370. backgroundColor: 'rgba(0,0,0,0.5)',
  2371. // positioner: function(e){
  2372. // console.log(e, this)
  2373. // },
  2374. useHTML: false, //开启html模式
  2375. style: {
  2376. color: '#fff',
  2377. fontSize: '20',
  2378. fontFamily: 'Microsoft YaHei'
  2379. },
  2380. formatter: function (e) {
  2381. //console.log(this)
  2382. let num = chartData[this.colorIndex].num
  2383. this.percentage = this.percentage.toFixed(2) //Math.round(this.percentage)
  2384. return `${this.key}:<b>${this.percentage}%</b><br/><b>${this.y}</b>亿,<b>${num}个</b>`
  2385. },
  2386. //pointFormat:
  2387. },
  2388. plotOptions: {
  2389. pie: {
  2390. allowPointSelect: true,
  2391. showInLegend: true, // 图例
  2392. cursor: 'pointer',
  2393. size: 220,
  2394. innerSize: 150, //环形图中间空白,0为饼图
  2395. depth: 25, //立体高度
  2396. slicedOffset: 21, //动画距离
  2397. dataLabels: {
  2398. enabled: false, // 是否展示指示线
  2399. format: '{point.name}: {point.percentage}'
  2400. }
  2401. },
  2402. },
  2403. series: [{
  2404. type: 'pie',
  2405. name: '占比',
  2406. //center: ['35%','50%'],
  2407. point: {
  2408. events: {
  2409. click: function (e) { //点击事件
  2410. that.showChartLTipDouble(e.point.name)
  2411. },
  2412. mouseOver: function (e) { //鼠标移入停止轮播并且找到移入的当前数据设为选中
  2413. //console.log(e)
  2414. chartData.forEach((item, index) => {
  2415. item.sliced = false
  2416. item.selected = false
  2417. })
  2418. chartData[e.target.index].sliced = true
  2419. chartData[e.target.index].selected = true
  2420. chart.update({
  2421. series: [{
  2422. type: 'pie',
  2423. name: '占比',
  2424. point: {
  2425. events: {
  2426. click: function (e) {
  2427. that.showChartLTipDouble(e.point.name)
  2428. }
  2429. }
  2430. },
  2431. data: chartData
  2432. }]
  2433. })
  2434. timer && clearInterval(timer);
  2435. },
  2436. mouseOut: function () { // 鼠标移出后需要继续执行轮播
  2437. var points = chart.series[0].points;
  2438. var len = points.length;
  2439. timer && clearInterval(timer);
  2440. timer = setInterval(function () {
  2441. autoTooltip(points[i]);
  2442. chartData.forEach((item, index) => {
  2443. item.sliced = false
  2444. item.selected = false
  2445. if (index == i) {
  2446. item.sliced = true
  2447. item.selected = true
  2448. }
  2449. })
  2450. chart.update({
  2451. series: [{
  2452. type: 'pie',
  2453. name: '占比',
  2454. point: {
  2455. events: {
  2456. click: function (e) {
  2457. that.showChartLTipDouble(e.point.name)
  2458. }
  2459. }
  2460. },
  2461. data: chartData
  2462. }]
  2463. })
  2464. i++;
  2465. if (i === len) {
  2466. i = 0;
  2467. }
  2468. }, 2000);
  2469. }
  2470. }
  2471. },
  2472. data: chartData
  2473. }]
  2474. }
  2475. var chart = Highcharts.chart('echartL8', option);
  2476. function autoTooltip (point) {
  2477. chart.tooltip.refresh(point);
  2478. }
  2479. },
  2480. initChartL9 () {
  2481. this.chartCarousel = echarts.init(document.getElementById("echartL9"));
  2482. option = {
  2483. tooltip: {
  2484. trigger: 'axis',
  2485. formatter: '指标:' + '{c0}' + '<br/>' + '发展线:' + '{c1}' + '<br/>' + '生存线:' + '{c2}', //+ '<br/>'+ '{a1}:{c1}' + '%',
  2486. axisPointer: {
  2487. type: 'shadow',
  2488. },
  2489. },
  2490. grid: {
  2491. top: '10%',
  2492. right: '5%',
  2493. left: '12%',
  2494. bottom: '15%',
  2495. },
  2496. xAxis: {
  2497. // data: ['总投资收益率', '销售利润率', '成本费用利润率', '总资产周转率', '财务内部收益率'],
  2498. data: left15[this.countType],
  2499. axisLine: {
  2500. show: true, //隐藏X轴轴线
  2501. lineStyle: {
  2502. color: '#005094',
  2503. width: 1,
  2504. },
  2505. },
  2506. axisTick: {
  2507. show: true, //隐藏X轴刻度
  2508. },
  2509. axisLabel: {
  2510. show: true,
  2511. rotate: 30,
  2512. textStyle: {
  2513. color: '#fff', //X轴文字颜色
  2514. fontSize: 20,
  2515. fontFamily: 'Microsoft YaHei'
  2516. },
  2517. },
  2518. },
  2519. yAxis: [
  2520. {
  2521. type: 'value',
  2522. splitLine: {
  2523. show: true,
  2524. lineStyle: {
  2525. color: '#68b4dd66',
  2526. type: 'dashed',
  2527. },
  2528. },
  2529. axisLine: {
  2530. show: false
  2531. },
  2532. axisLabel: {
  2533. show: true,
  2534. formatter: '{value}%',
  2535. textStyle: {
  2536. color: '#fff',
  2537. fontSize: 20,
  2538. fontFamily: 'Microsoft YaHei'
  2539. },
  2540. },
  2541. nameTextStyle: {
  2542. color: '#ebf8ac',
  2543. fontSize: 16,
  2544. fontFamily: 'Microsoft YaHei'
  2545. },
  2546. },
  2547. ],
  2548. series: [
  2549. {
  2550. name: '实际值',
  2551. type: 'bar',
  2552. barWidth: 15,
  2553. itemStyle: {
  2554. normal: {
  2555. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2556. {
  2557. offset: 0,
  2558. color: '#69c0ff',
  2559. },
  2560. {
  2561. offset: 1,
  2562. color: '#082550',
  2563. },
  2564. ]),
  2565. },
  2566. },
  2567. // data: [70, 52, 33, 41, 52],
  2568. data: left12[this.count + 1][2]
  2569. },
  2570. {
  2571. name: '',
  2572. type: 'line',
  2573. barWidth: 15,
  2574. itemStyle: {
  2575. normal: {
  2576. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2577. {
  2578. offset: 0,
  2579. color: '#69c0ff',
  2580. },
  2581. {
  2582. offset: 1,
  2583. color: 'green',
  2584. },
  2585. ]),
  2586. },
  2587. },
  2588. // data: [20, 30, 15, 28, 36],
  2589. data: left12[this.count + 1][1]
  2590. },
  2591. {
  2592. name: '',
  2593. type: 'line',
  2594. barWidth: 15,
  2595. itemStyle: {
  2596. normal: {
  2597. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2598. {
  2599. offset: 0,
  2600. color: '#69c0ff',
  2601. },
  2602. {
  2603. offset: 1,
  2604. color: 'yellow',
  2605. },
  2606. ]),
  2607. },
  2608. },
  2609. // data: [15, 22, 17, 33, 14],
  2610. data: left12[this.count + 1][0]
  2611. },
  2612. ],
  2613. }
  2614. let that = this
  2615. this.chartCarousel.on('click', function (param) {
  2616. that.titleName = param.name
  2617. that.echartSingleTipShow = true
  2618. setTimeout(() => {
  2619. that.initChartLTip()
  2620. });
  2621. })
  2622. this.chartCarousel.setOption(option)
  2623. // tools.loopShowTooltip(myChart, option, {
  2624. // nterval: 2000,
  2625. // loopSeries: true,
  2626. // })
  2627. },
  2628. initChartL10 () {
  2629. let myChart = echarts.init(document.getElementById("echartL10"));
  2630. let option = {
  2631. title: {
  2632. text: '固定资产进度分布',
  2633. textStyle: {
  2634. color: '#69C0FF',
  2635. fontSize: 30,
  2636. fontWeight: 500,
  2637. fontFamily: 'Microsoft YaHei'
  2638. },
  2639. top: '20',
  2640. left: '20'
  2641. },
  2642. textStyle: {
  2643. color: '#fff',
  2644. },
  2645. tooltip: {
  2646. trigger: "axis",
  2647. formatter: function (params) {
  2648. var tip = params[0].axisValue + '<br/>' + params[0].marker + params[0].data[1] + ':' + params[0].data[2] + '个,' + params[0].data[3] + '亿元' + '<br/>' + params[1].marker + params[1].data[1] + ':' + params[1].data[2] + '个,' + params[1].data[3] + '亿元';
  2649. return tip
  2650. },
  2651. textStyle: {
  2652. color: '#ffffff', // 文字的颜色
  2653. fontSize: '20', // 文字字体大小
  2654. fontFamily: 'Microsoft YaHei'
  2655. },
  2656. axisPointer: {
  2657. lineStyle: {
  2658. type: 'dashed',
  2659. width: 2,
  2660. color: 'rgba(255,255,255,0.6)'
  2661. },
  2662. animation: true
  2663. }
  2664. },
  2665. grid: {
  2666. top: '0%',
  2667. right: '5%',
  2668. left: '15%',
  2669. bottom: '-10%',
  2670. },
  2671. yAxis: {
  2672. data: ['备案', '特别监管'],
  2673. splitLine: {
  2674. show: false,
  2675. lineStyle: {
  2676. color: '#68b4dd66',
  2677. type: 'dashed',
  2678. },
  2679. },
  2680. axisLine: {
  2681. show: false
  2682. },
  2683. axisLabel: {
  2684. show: true,
  2685. formatter: '{value}',
  2686. textStyle: {
  2687. color: '#fff',
  2688. fontSize: 20,
  2689. padding: [0, -10, 0, 0],
  2690. fontFamily: 'Microsoft YaHei',
  2691. },
  2692. },
  2693. nameTextStyle: {
  2694. color: '#ebf8ac',
  2695. fontSize: 16,
  2696. fontFamily: 'Microsoft YaHei'
  2697. },
  2698. },
  2699. xAxis: {
  2700. data: ['项目储备', '项目立项', '可研论证', '投资决策'],
  2701. axisLine: {
  2702. show: true, //隐藏X轴轴线
  2703. lineStyle: {
  2704. color: '#005094',
  2705. width: 1,
  2706. },
  2707. },
  2708. axisTick: {
  2709. show: false, //隐藏X轴刻度
  2710. },
  2711. axisLabel: {
  2712. show: true,
  2713. textStyle: {
  2714. color: '#fff', //X轴文字颜色
  2715. fontSize: 20,
  2716. padding: [-320, 0, 0, 0],
  2717. fontFamily: 'Microsoft YaHei'
  2718. },
  2719. }
  2720. },
  2721. series: [
  2722. {
  2723. name: '特别监管',
  2724. type: 'scatter',
  2725. symbol: 'circle',//'circle', 'rect', 'roundRect', 'triangle', 'diamond', 'pin', 'arrow'
  2726. symbolSize: function (data) {
  2727. return Math.sqrt(data[2]) * 3;
  2728. },
  2729. label: {
  2730. emphasis: {
  2731. show: true,
  2732. formatter: function (param) {
  2733. return param.data[2];
  2734. },
  2735. position: 'top'
  2736. }
  2737. },
  2738. itemStyle: {
  2739. normal: {
  2740. color: '#40A9FF'
  2741. }
  2742. },
  2743. data: left13[0]
  2744. },
  2745. {
  2746. name: '备案',
  2747. type: 'scatter',
  2748. symbol: 'circle',//'circle', 'rect', 'roundRect', 'triangle', 'diamond', 'pin', 'arrow'
  2749. symbolSize: function (data) {
  2750. return Math.sqrt(data[2]) * 3;
  2751. },
  2752. label: {
  2753. emphasis: {
  2754. show: true,
  2755. formatter: function (param) {
  2756. return param.data[2];
  2757. },
  2758. position: 'top'
  2759. }
  2760. },
  2761. itemStyle: {
  2762. normal: {
  2763. color: '#45DAD1'
  2764. }
  2765. },
  2766. data: left13[1]
  2767. },
  2768. ]
  2769. }
  2770. let that = this
  2771. myChart.on('click', function (param) {
  2772. that.showChartLTipDouble('固定资产')
  2773. })
  2774. myChart.setOption(option)
  2775. tools.loopShowTooltip(myChart, option, {
  2776. nterval: 2000,
  2777. loopSeries: true,
  2778. })
  2779. },
  2780. initChartL11 () {
  2781. let myChart = echarts.init(document.getElementById("echartL11"));
  2782. let option = {
  2783. title: {
  2784. text: '股权类进度分布',
  2785. textStyle: {
  2786. color: '#69C0FF',
  2787. fontSize: 30,
  2788. fontWeight: 500,
  2789. fontFamily: 'Microsoft YaHei'
  2790. },
  2791. top: '20',
  2792. left: '20'
  2793. },
  2794. textStyle: {
  2795. color: '#fff',
  2796. },
  2797. tooltip: {
  2798. trigger: "axis",
  2799. formatter: function (params) {
  2800. var tip = params[0].axisValue + '<br/>' + params[0].marker + params[0].data[1] + ':' + params[0].data[2] + '个,' + params[0].data[3] + '亿元' + '<br/>' + params[1].marker + params[1].data[1] + ':' + params[1].data[2] + '个,' + params[1].data[3] + '亿元';
  2801. return tip
  2802. },
  2803. textStyle: {
  2804. color: '#FFF', // 文字的颜色
  2805. fontSize: '20', // 文字字体大小
  2806. fontFamily: 'Microsoft YaHei'
  2807. },
  2808. axisPointer: {
  2809. lineStyle: {
  2810. type: 'dashed',
  2811. width: 2,
  2812. color: 'rgba(255,255,255,0.6)'
  2813. },
  2814. animation: true
  2815. }
  2816. },
  2817. grid: {
  2818. top: '0%',
  2819. right: '5%',
  2820. left: '15%',
  2821. bottom: '-10%',
  2822. },
  2823. yAxis: {
  2824. data: ['备案', '特别监管'],
  2825. splitLine: {
  2826. show: false,
  2827. lineStyle: {
  2828. color: '#68b4dd66',
  2829. type: 'dashed',
  2830. },
  2831. },
  2832. axisLine: {
  2833. show: false
  2834. },
  2835. axisLabel: {
  2836. show: true,
  2837. formatter: '{value}',
  2838. textStyle: {
  2839. fontSize: 20,
  2840. padding: [0, -10, 0, 0],
  2841. fontFamily: 'Microsoft YaHei'
  2842. },
  2843. },
  2844. nameTextStyle: {
  2845. color: '#ebf8ac',
  2846. fontSize: 16,
  2847. fontFamily: 'Microsoft YaHei'
  2848. },
  2849. },
  2850. xAxis: {
  2851. data: ['项目储备', '项目立项', '可研论证', '投资决策'],
  2852. axisLine: {
  2853. show: true, //隐藏X轴轴线
  2854. lineStyle: {
  2855. color: '#005094',
  2856. width: 1,
  2857. },
  2858. },
  2859. axisTick: {
  2860. show: true, //隐藏X轴刻度
  2861. },
  2862. axisLabel: {
  2863. show: true,
  2864. textStyle: {
  2865. color: '#fff', //X轴文字颜色
  2866. fontSize: 20,
  2867. padding: [-320, 0, 0, 0],
  2868. fontFamily: 'Microsoft YaHei'
  2869. },
  2870. },
  2871. },
  2872. series: [
  2873. {
  2874. name: '',
  2875. type: 'scatter',
  2876. symbol: 'circle',
  2877. symbolSize: function (data) {
  2878. return Math.sqrt(data[2]) * 3;
  2879. },
  2880. label: {
  2881. emphasis: {
  2882. show: true,
  2883. formatter: function (param) {
  2884. return param.data[2];
  2885. },
  2886. position: 'top'
  2887. }
  2888. },
  2889. itemStyle: {
  2890. normal: {
  2891. color: '#40A9FF'
  2892. }
  2893. },
  2894. data: left14[0]
  2895. },
  2896. {
  2897. name: '',
  2898. type: 'scatter',
  2899. symbol: 'circle',
  2900. symbolSize: function (data) {
  2901. return Math.sqrt(data[2]) * 3;
  2902. },
  2903. label: {
  2904. emphasis: {
  2905. show: true,
  2906. formatter: function (param) {
  2907. return param.data[2];
  2908. },
  2909. position: 'top'
  2910. }
  2911. },
  2912. itemStyle: {
  2913. normal: {
  2914. color: '#45DAD1'
  2915. }
  2916. },
  2917. data: left14[1]
  2918. },
  2919. ]
  2920. }
  2921. let that = this
  2922. myChart.on('click', function (param) {
  2923. that.showChartLTipDouble('股权类')
  2924. })
  2925. myChart.setOption(option)
  2926. tools.loopShowTooltip(myChart, option, {
  2927. nterval: 2000,
  2928. loopSeries: true,
  2929. })
  2930. },
  2931. // 大屏二
  2932. initChartC1 () {
  2933. var chartData = []
  2934. var timer = null;
  2935. var timer2 = null;
  2936. var i = 0;
  2937. center2.forEach((item, index) => {
  2938. let obj = {
  2939. name: item.name,
  2940. y: item.value,
  2941. sliced: false,
  2942. selected: false,
  2943. color: index == 0 ? 'rgb(243,178,119)' : index == 1 ? 'rgb(110,222,191)' : 'rgb(82,161,229)'
  2944. }
  2945. chartData.push(obj)
  2946. })
  2947. let that = this
  2948. var chart = Highcharts.chart('echartC1', {
  2949. chart: {
  2950. type: 'pie',
  2951. backgroundColor: 'rgba(0,0,0,0)',
  2952. options3d: {
  2953. enabled: true,
  2954. alpha: 45,
  2955. //beta: 0
  2956. },
  2957. events: {
  2958. // load,图表加载完成时触发
  2959. load: function () {
  2960. var chart = this;
  2961. var points = chart.series[0].points;
  2962. var len = points.length;
  2963. timer && clearInterval(timer);
  2964. timer = setInterval(function () {
  2965. autoTooltip(points[i]);
  2966. chartData.forEach((item, index) => {
  2967. item.sliced = false
  2968. item.selected = false
  2969. if (index == i) {
  2970. item.sliced = true
  2971. item.selected = true
  2972. }
  2973. })
  2974. chart.update({
  2975. series: [{
  2976. type: 'pie',
  2977. name: '占比',
  2978. point: {
  2979. events: {
  2980. click: function (e) {
  2981. that.showChartLTipDouble(e.point.name)
  2982. }
  2983. }
  2984. },
  2985. data: chartData
  2986. }]
  2987. })
  2988. i++;
  2989. if (i === len) {
  2990. i = 0;
  2991. }
  2992. }, 2000);
  2993. },
  2994. legendItemClick: function (event) {
  2995. console.log(event);
  2996. return true;
  2997. }
  2998. }
  2999. },
  3000. credits: {
  3001. enabled: false //去掉hightchats水印
  3002. },
  3003. title: {
  3004. text: null
  3005. },
  3006. tooltip: {
  3007. crosshairs: true,
  3008. backgroundColor: 'rgba(0,0,0,0.5)',
  3009. useHTML: false, //开启html模式
  3010. style: {
  3011. color: '#fff',
  3012. fontSize: '20',
  3013. fontFamily: 'Microsoft YaHei'
  3014. },
  3015. formatter: function (e) {
  3016. //console.log(this, e)
  3017. this.percentage = Math.round(this.percentage)
  3018. // e.options.backgroundColor = 'rgba(0,0,0,0.5)'
  3019. // e.options.style.color = '#fff'
  3020. return `${this.key}:<b>${this.percentage}%</b><br/>金额:<b>${this.y}</b>亿`
  3021. },
  3022. //pointFormat:
  3023. },
  3024. legend: {
  3025. layout: 'vertical',
  3026. align: 'right',
  3027. y: -10,
  3028. verticalAlign: 'bottom',
  3029. itemStyle: {
  3030. fontSize: '20px',
  3031. color: '#fff',
  3032. fontWeight: 0,
  3033. fontFamily: 'Microsoft YaHei'
  3034. }
  3035. },
  3036. plotOptions: {
  3037. pie: {
  3038. allowPointSelect: true,
  3039. showInLegend: true, // 图例
  3040. cursor: 'pointer',
  3041. size: 500,
  3042. innerSize: 330, //环形图中间空白,0为饼图
  3043. depth: 50, //立体高度
  3044. slicedOffset: 40, //动画距离
  3045. dataLabels: {
  3046. enabled: false, // 是否展示指示线
  3047. format: '{point.name}: {point.percentage}'
  3048. }
  3049. },
  3050. },
  3051. series: [{
  3052. type: 'pie',
  3053. name: '占比',
  3054. center: ['75%', '45%'],
  3055. point: {
  3056. events: {
  3057. click: function (e) { //点击事件
  3058. that.showChartLTipDouble(e.point.name)
  3059. },
  3060. mouseOver: function (e) { //鼠标移入停止轮播并且找到移入的当前数据设为选中
  3061. //console.log(e)
  3062. chartData.forEach((item, index) => {
  3063. item.sliced = false
  3064. item.selected = false
  3065. })
  3066. chartData[e.target.index].sliced = true
  3067. chartData[e.target.index].selected = true
  3068. chart.update({
  3069. series: [{
  3070. type: 'pie',
  3071. name: '占比',
  3072. point: {
  3073. events: {
  3074. click: function (e) {
  3075. console.log(222222)
  3076. that.showChartLTipDouble(e.point.name)
  3077. // if (e.point.name == '战略新兴产业') {
  3078. // that.tipTitle2 = e.point.name
  3079. // that.showTip2 = true
  3080. // }
  3081. }
  3082. }
  3083. },
  3084. data: chartData
  3085. }]
  3086. })
  3087. timer && clearInterval(timer);
  3088. },
  3089. mouseOut: function () { // 鼠标移出后需要继续执行轮播
  3090. var points = chart.series[0].points;
  3091. var len = points.length;
  3092. timer && clearInterval(timer);
  3093. timer = setInterval(function () {
  3094. autoTooltip(points[i]);
  3095. chartData.forEach((item, index) => {
  3096. item.sliced = false
  3097. item.selected = false
  3098. if (index == i) {
  3099. item.sliced = true
  3100. item.selected = true
  3101. }
  3102. })
  3103. chart.update({
  3104. series: [{
  3105. type: 'pie',
  3106. name: '占比',
  3107. point: {
  3108. events: {
  3109. click: function (e) {
  3110. console.log(111111)
  3111. that.showChartLTipDouble(e.point.name)
  3112. // if (e.point.name == '战略新兴产业') {
  3113. // that.tipTitle2 = e.point.name
  3114. // that.showTip2 = true
  3115. // }
  3116. }
  3117. }
  3118. },
  3119. data: chartData
  3120. }]
  3121. })
  3122. i++;
  3123. if (i === len) {
  3124. i = 0;
  3125. }
  3126. }, 2000);
  3127. }
  3128. }
  3129. },
  3130. data: chartData
  3131. }]
  3132. });
  3133. function autoTooltip (point) {
  3134. chart.tooltip.refresh(point);
  3135. }
  3136. },
  3137. initChartC2 () {
  3138. let that = this
  3139. let myChart = echarts.init(this.$refs['echartC2'])
  3140. myChart.on('showTip', (params) => {
  3141. // 如果是7或者15并且满足防抖则切换
  3142. if ((params.dataIndex == 5 || params.dataIndex == 11) && that.echartC2Fd) {
  3143. that.echartC2Fd = false
  3144. setTimeout(() => {
  3145. option.dataZoom[0].endValue = option.dataZoom[0].endValue + 6
  3146. option.dataZoom[0].startValue = option.dataZoom[0].startValue + 6
  3147. myChart.setOption(option);
  3148. // 防止勿刷新做的防抖
  3149. setTimeout(() => {
  3150. that.echartC2Fd = true
  3151. }, 2000)
  3152. }, 1900);
  3153. // 如果是17表示到了最后一个,那么重新来一遍
  3154. } else if (params.dataIndex == 17 && that.echartC2Fd) {
  3155. that.echartC2Fd = false
  3156. setTimeout(() => {
  3157. option.dataZoom[0].endValue = 0
  3158. option.dataZoom[0].startValue = 5
  3159. myChart.setOption(option);
  3160. // 防止勿刷新做的防抖
  3161. setTimeout(() => {
  3162. that.echartC2Fd = true
  3163. }, 2000)
  3164. }, 1900)
  3165. }
  3166. })
  3167. let option = {
  3168. tooltip: {
  3169. formatter: data => {
  3170. return `${data[0].name}<br /><span style="display:inline-block;border-radius:50%; width:7px;height:7px;background-color:${data[0].color.colorStops[0].color}"></span> ${data[0].seriesName}:${data[0].value}亿 <br/><span style="display:inline-block;border-radius:50%; width:7px;height:7px;background-color:${data[1].color.colorStops[0].color}"></span> ${data[1].seriesName}:${data[1].value}亿`
  3171. },
  3172. trigger: 'axis',
  3173. axisPointer: {
  3174. // type: 'cross',',
  3175. },
  3176. textStyle: {
  3177. color: '#FFF', // 文字的颜色
  3178. fontSize: '20', // 文字字体大小
  3179. fontFamily: 'Microsoft YaHei'
  3180. },
  3181. },
  3182. dataZoom: [
  3183. {
  3184. // start: 9,//默认为@
  3185. // end: 100,//黑认认为1@0
  3186. type: "slider",
  3187. show: false,
  3188. // xAxisIndex: [0]
  3189. handlesize: 0,//滑动条的 左右2个滑动条的大小
  3190. startValue: 5,// 初始显示值
  3191. endValue: 0,// 结束显示值
  3192. height: 10,//组件高度
  3193. left: "5%",
  3194. right: "4%",//右边的距离
  3195. bottom: "25%",//底边的距离
  3196. borderColor: "#939",
  3197. fillerColor: "#269cdb",
  3198. borderRadius: 5,
  3199. backgroundColor: "#33384b",//两边未选中的滑动条区域的额色
  3200. showDataShadow: false,//是否显示数据阴影
  3201. showDetail: false,//即拖拽时候是否显示详细数值信息
  3202. truerealtime: true,//是否实时更新
  3203. filterMode: "filter"
  3204. }, {
  3205. type: 'inside',
  3206. show: true,
  3207. start: 1,
  3208. end: 100,
  3209. zoomOnMouseWheel: false, //滚轮是否触发缩放
  3210. moveOnMouseMove: false, //鼠标滚轮触发滚动
  3211. }
  3212. ],
  3213. grid: {
  3214. top: '10%',
  3215. right: '3%',
  3216. left: '7%',
  3217. bottom: '15%',
  3218. },
  3219. legend: {
  3220. top: '1',
  3221. right: 'center',
  3222. textStyle: {
  3223. color: '#fff',
  3224. fontSize: '20',
  3225. fontFamily: 'Microsoft YaHei'
  3226. },
  3227. },
  3228. xAxis: {
  3229. data: center3.map(item => item.name),
  3230. axisLine: {
  3231. show: true, //隐藏X轴轴线
  3232. lineStyle: {
  3233. color: '#005094',
  3234. width: 1,
  3235. },
  3236. },
  3237. axisTick: {
  3238. show: false, //隐藏X轴刻度
  3239. },
  3240. axisLabel: {
  3241. show: true,
  3242. rotate: 40,
  3243. textStyle: {
  3244. color: '#fff',//'rgba(255,255,255,0.6)', //X轴文字颜色
  3245. fontSize: '20',
  3246. fontFamily: 'Microsoft YaHei'
  3247. },
  3248. },
  3249. },
  3250. yAxis: [
  3251. {
  3252. type: 'value',
  3253. name: '亿元',
  3254. splitLine: {
  3255. show: true,
  3256. lineStyle: {
  3257. color: '#68b4dd66',
  3258. type: 'dashed',
  3259. },
  3260. },
  3261. axisLine: {
  3262. show: true,
  3263. lineStyle: {
  3264. color: '#3D7495',
  3265. },
  3266. },
  3267. axisLabel: {
  3268. show: true,
  3269. textStyle: {
  3270. color: '#fff',
  3271. fontSize: '20',
  3272. fontFamily: 'Microsoft YaHei'
  3273. },
  3274. },
  3275. nameTextStyle: {
  3276. color: '#fff',
  3277. fontSize: 20,
  3278. fontFamily: 'Microsoft YaHei'
  3279. },
  3280. },
  3281. ],
  3282. series: [
  3283. {
  3284. name: '计划投资',
  3285. type: 'bar',
  3286. barWidth: 10,
  3287. itemStyle: {
  3288. normal: {
  3289. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  3290. {
  3291. offset: 0,
  3292. color: '#69c0ff',
  3293. },
  3294. {
  3295. offset: 1,
  3296. color: '#082550',
  3297. },
  3298. ]),
  3299. },
  3300. },
  3301. data: center3.map(item => item.value),
  3302. },
  3303. {
  3304. name: '实际投资',
  3305. type: 'bar',
  3306. barWidth: 10,
  3307. itemStyle: {
  3308. normal: {
  3309. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  3310. {
  3311. offset: 0,
  3312. color: '#957DFF',
  3313. },
  3314. {
  3315. offset: 1,
  3316. color: '#082550',
  3317. },
  3318. ]),
  3319. },
  3320. },
  3321. data: center3.map(item => item.value2),
  3322. },
  3323. ],
  3324. }
  3325. myChart.on('click', function (param) {
  3326. that.projectListTipShow = true
  3327. })
  3328. myChart.setOption(option)
  3329. tools.loopShowTooltip(myChart, option, {
  3330. nterval: 2000,
  3331. loopSeries: true,
  3332. })
  3333. // let arr = center3.map(item => item.value2)
  3334. // this.timeOut = setInterval(function () {
  3335. // let startValue = myChart.getModel().option.dataZoom[0].startValue;
  3336. // let endValue = myChart.getModel().option.dataZoom[0].endValue;
  3337. // let start = myChart.getModel().option.xAxis[0].data[startValue];//起始X轴
  3338. // let end = myChart.getModel().option.xAxis[0].data[endValue];//结束X轴
  3339. // // 每次向后滚动一个,最后一个从头开始。
  3340. // // console.log(option.dataZoom[0].endValue);
  3341. // if (option.dataZoom[0].endValue >= 12) {
  3342. // option.dataZoom[0].endValue = 5
  3343. // option.dataZoom[0].startValue = 0
  3344. // } else {
  3345. // option.dataZoom[0].endValue = option.dataZoom[0].endValue + 6
  3346. // option.dataZoom[0].startValue = option.dataZoom[0].startValue + 6
  3347. // }
  3348. // // myChart.dispatchAction({
  3349. // // type: 'showTip',
  3350. // // seriesIndex: 0,
  3351. // // dataIndex: startValue +1,
  3352. // // });
  3353. // myChart.setOption(option);
  3354. // }, 12000);
  3355. },
  3356. convertData (data) {
  3357. var res = []
  3358. for (var i = 0; i < data.length; i++) {
  3359. var geoCoord = this.geoCoordMap[data[i].name]
  3360. if (geoCoord) {
  3361. res.push({
  3362. name: data[i].name,
  3363. value: geoCoord.concat(data[i].value),
  3364. })
  3365. }
  3366. }
  3367. return res
  3368. },
  3369. initProvinceChart () {
  3370. var data = [
  3371. { name: '大同市', value: 60.35, value2: 28 },
  3372. { name: '朔州市', value: 33.61, value2: 13 },
  3373. { name: '忻州市', value: 73.35, value2: 25 },
  3374. { name: '吕梁市', value: 109.04, value2: 45 },
  3375. { name: '太原市', value: 251.67, value2: 113 },
  3376. { name: '阳泉市', value: 25.12, value2: 28 },
  3377. { name: '晋中市', value: 148.57, value2: 52 },
  3378. { name: '临汾市', value: 130.55, value2: 30 },
  3379. { name: '长治市', value: 103.00, value2: 23 },
  3380. { name: '运城市', value: 41.06, value2: 23 },
  3381. { name: '晋城市', value: 45.43, value2: 31 }
  3382. ]
  3383. this.geoCoordMap = []
  3384. var moveLine = {
  3385. normal: [
  3386. {
  3387. fromName: '太原市',
  3388. toName: '吕梁市',
  3389. coords: [
  3390. [112.3352, 37.9413],
  3391. [111.3574, 37.7325],
  3392. ],
  3393. },
  3394. {
  3395. fromName: '太原市',
  3396. toName: '忻州市',
  3397. coords: [
  3398. [112.3352, 37.9413],
  3399. [112.4561, 38.8971],
  3400. ],
  3401. },
  3402. {
  3403. fromName: '太原市',
  3404. toName: '临汾市',
  3405. coords: [
  3406. [112.3352, 37.9413],
  3407. [111.4783, 36.1615],
  3408. ],
  3409. },
  3410. {
  3411. fromName: '太原市',
  3412. toName: '阳泉市',
  3413. coords: [
  3414. [112.3352, 37.9413],
  3415. [113.4778, 38.0951],
  3416. ],
  3417. },
  3418. {
  3419. fromName: '太原市',
  3420. toName: '晋中市',
  3421. coords: [
  3422. [112.3352, 37.9413],
  3423. [112.7747, 37.37],
  3424. ],
  3425. },
  3426. {
  3427. fromName: '太原市',
  3428. toName: '运城市',
  3429. coords: [
  3430. [112.3352, 37.9413],
  3431. [111.1487, 35.2002],
  3432. ],
  3433. },
  3434. {
  3435. fromName: '太原市',
  3436. toName: '大同市',
  3437. coords: [
  3438. [112.3352, 37.9413],
  3439. [113.7854, 39.8035],
  3440. ],
  3441. },
  3442. {
  3443. fromName: '太原市',
  3444. toName: '晋城市',
  3445. coords: [
  3446. [112.3352, 37.9413],
  3447. [112.7856, 35.6342],
  3448. ],
  3449. },
  3450. {
  3451. fromName: '太原市',
  3452. toName: '长治市',
  3453. coords: [
  3454. [112.3352, 37.9413],
  3455. [112.8625, 36.4746],
  3456. ],
  3457. },
  3458. {
  3459. fromName: '太原市',
  3460. toName: '朔州市',
  3461. coords: [
  3462. [112.3352, 37.9413],
  3463. [113.0713, 39.6991],
  3464. ],
  3465. },
  3466. ],
  3467. }
  3468. /*获取地图数据*/
  3469. this.mapChart = echarts.init(this.$refs['echarts-map'])
  3470. echarts.registerMap('shanxi', shanxi)
  3471. var mapFeatures = echarts.getMap('shanxi').geoJson.features
  3472. mapFeatures.forEach(v => {
  3473. // 地区名称
  3474. var name = v.properties.name
  3475. // 地区经纬度
  3476. this.geoCoordMap[name] = v.properties.centroid
  3477. // 按照地图乱序
  3478. // data.push({ name: v.properties.name, value: v.properties.centroid[0], value2: v.properties.centroid[1] })
  3479. })
  3480. let option = {
  3481. tooltip: {
  3482. padding: 15,
  3483. enterable: true,
  3484. transitionDuration: 1,
  3485. formatter: (params, ticket, callback) => {
  3486. // 清空所有轮播
  3487. for (var k in this.geoCoordMap) {
  3488. this.mapChart.dispatchAction({
  3489. // type: 'geoUnSelect',
  3490. type: 'downplay',
  3491. name: k,
  3492. })
  3493. }
  3494. // 如果鼠标滑动到线线上面,则返回空
  3495. this.mapChart.dispatchAction({
  3496. // type: 'geoSelect',
  3497. type: 'highlight',
  3498. name: params.name,
  3499. })
  3500. if (params.componentSubType == 'lines') {
  3501. return
  3502. }
  3503. if (params.componentSubType == 'scatter') {
  3504. let tipHtml = `
  3505. <div class="tooltip-cont">
  3506. <p>项目数量:<span>${data[params.dataIndex].value2}个</span></p>
  3507. <p>总投资额:<span>${params.data.value[2]}亿</span></p>
  3508. </div>`
  3509. callback(ticket, tipHtml)
  3510. return tipHtml
  3511. }
  3512. if (params.componentSubType == 'map') {
  3513. let tipHtml = `
  3514. <div class="tooltip-cont">
  3515. <p>项目数量:<span>${data[params.dataIndex].value2}个</span></p>
  3516. <p>总投资额:<span>${params.data.value}亿</span></p>
  3517. </div>`
  3518. callback(ticket, tipHtml)
  3519. return tipHtml
  3520. }
  3521. },
  3522. },
  3523. visualMap: {
  3524. show: false,
  3525. min: 0,
  3526. max: 300,
  3527. right: 0,
  3528. bottom: 0,
  3529. text: ['高', '低'],
  3530. textStyle: {
  3531. color: '#f1f1f1'
  3532. },
  3533. realtime: false,
  3534. calculable: false,
  3535. inRange: {
  3536. color: ['lightskyblue', '#2754b7']
  3537. }
  3538. },
  3539. geo: {
  3540. show: true,
  3541. map: 'shanxi',
  3542. layoutCenter: ['50%', '50%'], //地图位置
  3543. layoutSize: '65%',
  3544. zoom: 1.5,
  3545. label: {
  3546. normal: {
  3547. show: false,
  3548. },
  3549. emphasis: {
  3550. show: false,
  3551. },
  3552. },
  3553. roam: false,
  3554. itemStyle: {
  3555. normal: {
  3556. areaColor: '#1946a8',
  3557. shadowColor: '#1946a8',
  3558. borderWidth: 1, //设置外层边框
  3559. borderColor: '#1946a8',
  3560. shadowOffsetX: 10,
  3561. shadowOffsetY: 5,
  3562. shadowBlur: 2,
  3563. },
  3564. emphasis: {
  3565. areaColor: '#1946a8',
  3566. borderColor: '#d4bc1d',
  3567. borderWidth: 2, //设置外层边框
  3568. },
  3569. },
  3570. },
  3571. series: [
  3572. {
  3573. name: '散点',
  3574. type: 'scatter',
  3575. coordinateSystem: 'geo',
  3576. data: this.convertData(data),
  3577. symbolSize: function (val) {
  3578. return 10
  3579. },
  3580. label: {
  3581. normal: {
  3582. formatter: '{b}',
  3583. position: [10, 10],
  3584. fontSize: 30,
  3585. fontFamily: 'Microsoft YaHei',
  3586. fontWeight: 600,
  3587. fontStyle: 'italic',
  3588. color: '#fff',
  3589. show: true,
  3590. },
  3591. emphasis: {
  3592. show: true,
  3593. },
  3594. },
  3595. itemStyle: {
  3596. normal: {
  3597. color: '#000',
  3598. borderWidth: 2,
  3599. borderColor: '#fff',
  3600. },
  3601. },
  3602. },
  3603. {
  3604. type: 'map',
  3605. map: this.mapName,
  3606. geoIndex: 0,
  3607. aspectScale: 1.5, //长宽比
  3608. showLegendSymbol: true, // 存在legend时显示
  3609. label: {
  3610. normal: {
  3611. show: true,
  3612. },
  3613. emphasis: {
  3614. show: false,
  3615. textStyle: {
  3616. color: '#fff',
  3617. },
  3618. },
  3619. },
  3620. roam: true,
  3621. itemStyle: {
  3622. normal: {
  3623. areaColor: '#031525',
  3624. borderColor: '#3B5077',
  3625. },
  3626. emphasis: {
  3627. areaColor: '#2B91B7',
  3628. },
  3629. },
  3630. animation: false,
  3631. data: data,
  3632. },
  3633. {
  3634. name: '点',
  3635. type: 'scatter',
  3636. coordinateSystem: 'geo',
  3637. zlevel: 6,
  3638. },
  3639. {
  3640. name: 'Top 5',
  3641. type: 'effectScatter',
  3642. coordinateSystem: 'geo',
  3643. data: this.convertData(
  3644. data
  3645. .sort(function (a, b) {
  3646. return b.value - a.value
  3647. })
  3648. .slice(0, 5)
  3649. ),
  3650. symbolSize: function (val) {
  3651. return 15
  3652. },
  3653. showEffectOn: 'render',
  3654. rippleEffect: {
  3655. brushType: 'stroke',
  3656. },
  3657. hoverAnimation: true,
  3658. label: {
  3659. normal: {
  3660. formatter: '{b}',
  3661. position: 'left',
  3662. show: false,
  3663. },
  3664. },
  3665. itemStyle: {
  3666. normal: {
  3667. color: 'yellow',
  3668. shadowBlur: 10,
  3669. shadowColor: 'yellow',
  3670. },
  3671. },
  3672. zlevel: 1000,
  3673. },
  3674. // {
  3675. // name: '线路',
  3676. // type: 'lines',
  3677. // zlevel: 2,
  3678. // effect: {
  3679. // show: true,
  3680. // period: 4, //箭头指向速度,值越小速度越快
  3681. // trailLength: 0.02, //特效尾迹长度[0,1]值越大,尾迹越长重
  3682. // symbol: 'arrow', //箭头图标
  3683. // symbolSize: 5, //图标大小
  3684. // },
  3685. // lineStyle: {
  3686. // normal: {
  3687. // color: '#00FFFF',
  3688. // width: 1,
  3689. // type: 'dashed',
  3690. // opacity: 0.5, //尾迹线条透明度
  3691. // curveness: -0.3, //尾迹线条曲直度
  3692. // },
  3693. // },
  3694. // data: moveLine.normal,
  3695. // },
  3696. ],
  3697. }
  3698. let that = this
  3699. this.mapChart.on('click', function (params) {
  3700. if (params.name == '太原市') {
  3701. that.showChartLTipDouble('太原市')
  3702. }
  3703. })
  3704. tools.loopShowTooltip(this.mapChart, option, {
  3705. interval: 2000,
  3706. loopSeries: false,
  3707. });
  3708. this.mapChart.setOption(option)
  3709. },
  3710. initChinaChart () {
  3711. var data = []
  3712. this.geoCoordMap = []
  3713. // var moveLine = {
  3714. // normal: [
  3715. // {
  3716. // fromName: '太原市',
  3717. // toName: '吕梁市',
  3718. // coords: [
  3719. // [112.3352, 37.9413],
  3720. // [111.3574, 37.7325],
  3721. // ],
  3722. // },
  3723. // {
  3724. // fromName: '太原市',
  3725. // toName: '忻州市',
  3726. // coords: [
  3727. // [112.3352, 37.9413],
  3728. // [112.4561, 38.8971],
  3729. // ],
  3730. // },
  3731. // {
  3732. // fromName: '太原市',
  3733. // toName: '临汾市',
  3734. // coords: [
  3735. // [112.3352, 37.9413],
  3736. // [111.4783, 36.1615],
  3737. // ],
  3738. // },
  3739. // {
  3740. // fromName: '太原市',
  3741. // toName: '阳泉市',
  3742. // coords: [
  3743. // [112.3352, 37.9413],
  3744. // [113.4778, 38.0951],
  3745. // ],
  3746. // },
  3747. // {
  3748. // fromName: '太原市',
  3749. // toName: '晋中市',
  3750. // coords: [
  3751. // [112.3352, 37.9413],
  3752. // [112.7747, 37.37],
  3753. // ],
  3754. // },
  3755. // {
  3756. // fromName: '太原市',
  3757. // toName: '运城市',
  3758. // coords: [
  3759. // [112.3352, 37.9413],
  3760. // [111.1487, 35.2002],
  3761. // ],
  3762. // },
  3763. // {
  3764. // fromName: '太原市',
  3765. // toName: '大同市',
  3766. // coords: [
  3767. // [112.3352, 37.9413],
  3768. // [113.7854, 39.8035],
  3769. // ],
  3770. // },
  3771. // {
  3772. // fromName: '太原市',
  3773. // toName: '晋城市',
  3774. // coords: [
  3775. // [112.3352, 37.9413],
  3776. // [112.7856, 35.6342],
  3777. // ],
  3778. // },
  3779. // {
  3780. // fromName: '太原市',
  3781. // toName: '长治市',
  3782. // coords: [
  3783. // [112.3352, 37.9413],
  3784. // [112.8625, 36.4746],
  3785. // ],
  3786. // },
  3787. // {
  3788. // fromName: '太原市',
  3789. // toName: '朔州市',
  3790. // coords: [
  3791. // [112.3352, 37.9413],
  3792. // [113.0713, 39.6991],
  3793. // ],
  3794. // },
  3795. // ],
  3796. // }
  3797. /*获取地图数据*/
  3798. this.mapChart = echarts.init(this.$refs['echarts-map'])
  3799. echarts.registerMap('shanxi', china)
  3800. var mapFeatures = echarts.getMap('shanxi').geoJson.features
  3801. mapFeatures.forEach(v => {
  3802. // 地区名称
  3803. var name = v.properties.name
  3804. // 地区经纬度
  3805. this.geoCoordMap[name] = v.properties.cp
  3806. data.push({ name: v.properties.name, value: v.properties.cp[0], value2: v.properties.cp[1] })
  3807. })
  3808. let option = {
  3809. tooltip: {
  3810. padding: 15,
  3811. enterable: true,
  3812. transitionDuration: 1,
  3813. formatter: (params, ticket, callback) => {
  3814. // 清空所有轮播
  3815. for (var k in this.geoCoordMap) {
  3816. this.mapChart.dispatchAction({
  3817. // type: 'geoUnSelect',
  3818. type: 'downplay',
  3819. name: k,
  3820. })
  3821. }
  3822. // 如果鼠标滑动到线线上面,则返回空
  3823. this.mapChart.dispatchAction({
  3824. // type: 'geoSelect',
  3825. type: 'highlight',
  3826. name: params.name,
  3827. })
  3828. // if (params.componentSubType == 'lines') {
  3829. // return
  3830. // }
  3831. // if (params.componentSubType == 'scatter') {
  3832. // let tipHtml = `
  3833. // <div class="tooltip-cont">
  3834. // <p>项目数量:<span>${data[params.dataIndex].value2}个</span></p>
  3835. // <p>总投资额:<span>${params.data.value[2]}亿</span></p>
  3836. // </div>`
  3837. // callback(ticket, tipHtml)
  3838. // return tipHtml
  3839. // }
  3840. // if (params.componentSubType == 'map') {
  3841. // let tipHtml = `
  3842. // <div class="tooltip-cont">
  3843. // <p>项目数量:<span>${data[params.dataIndex].value2}个</span></p>
  3844. // <p>总投资额:<span>${params.data.value}亿</span></p>
  3845. // </div>`
  3846. // callback(ticket, tipHtml)
  3847. // return tipHtml
  3848. // }
  3849. },
  3850. },
  3851. visualMap: {
  3852. show: false,
  3853. min: 0,
  3854. max: 300,
  3855. right: 0,
  3856. bottom: 0,
  3857. text: ['高', '低'],
  3858. textStyle: {
  3859. color: '#f1f1f1'
  3860. },
  3861. realtime: false,
  3862. calculable: false,
  3863. inRange: {
  3864. color: ['lightskyblue', '#2754b7']
  3865. }
  3866. },
  3867. geo: {
  3868. show: true,
  3869. map: 'shanxi',
  3870. layoutCenter: ['50%', '50%'], //地图位置
  3871. layoutSize: '65%',
  3872. zoom: 1.5,
  3873. label: {
  3874. normal: {
  3875. show: false,
  3876. },
  3877. emphasis: {
  3878. show: false,
  3879. },
  3880. },
  3881. roam: false,
  3882. itemStyle: {
  3883. normal: {
  3884. areaColor: '#1946a8',
  3885. shadowColor: '#1946a8',
  3886. borderWidth: 1, //设置外层边框
  3887. borderColor: '#1946a8',
  3888. shadowOffsetX: 5,
  3889. shadowOffsetY: 2,
  3890. shadowBlur: 1,
  3891. },
  3892. emphasis: {
  3893. areaColor: '#1946a8',
  3894. borderColor: '#d4bc1d',
  3895. borderWidth: 2, //设置外层边框
  3896. },
  3897. },
  3898. },
  3899. series: [
  3900. {
  3901. name: '散点',
  3902. type: 'scatter',
  3903. coordinateSystem: 'geo',
  3904. data: this.convertData(data),
  3905. symbolSize: function (val) {
  3906. return 10
  3907. },
  3908. label: {
  3909. normal: {
  3910. formatter: '{b}',
  3911. position: [10, 10],
  3912. fontSize: 20,
  3913. fontFamily: 'Microsoft YaHei',
  3914. fontWeight: 600,
  3915. // fontStyle: 'italic',
  3916. color: '#fff',
  3917. show: true,
  3918. },
  3919. emphasis: {
  3920. show: true,
  3921. },
  3922. },
  3923. itemStyle: {
  3924. normal: {
  3925. color: '#000',
  3926. borderWidth: 2,
  3927. borderColor: '#fff',
  3928. },
  3929. },
  3930. },
  3931. {
  3932. type: 'map',
  3933. map: this.mapName,
  3934. geoIndex: 0,
  3935. aspectScale: 1.5, //长宽比
  3936. showLegendSymbol: true, // 存在legend时显示
  3937. label: {
  3938. normal: {
  3939. show: true,
  3940. },
  3941. emphasis: {
  3942. show: false,
  3943. textStyle: {
  3944. color: '#fff',
  3945. },
  3946. },
  3947. },
  3948. roam: true,
  3949. itemStyle: {
  3950. normal: {
  3951. areaColor: '#031525',
  3952. borderColor: '#3B5077',
  3953. },
  3954. emphasis: {
  3955. areaColor: '#2B91B7',
  3956. },
  3957. },
  3958. animation: false,
  3959. data: data,
  3960. },
  3961. // {
  3962. // name: '点',
  3963. // type: 'scatter',
  3964. // coordinateSystem: 'geo',
  3965. // zlevel: 6,
  3966. // },
  3967. // {
  3968. // name: 'Top 5',
  3969. // type: 'effectScatter',
  3970. // coordinateSystem: 'geo',
  3971. // data: this.convertData(
  3972. // data
  3973. // .sort(function (a, b) {
  3974. // return b.value - a.value
  3975. // })
  3976. // .slice(0, 5)
  3977. // ),
  3978. // symbolSize: function (val) {
  3979. // return 15
  3980. // },
  3981. // showEffectOn: 'render',
  3982. // rippleEffect: {
  3983. // brushType: 'stroke',
  3984. // },
  3985. // hoverAnimation: true,
  3986. // label: {
  3987. // normal: {
  3988. // formatter: '{b}',
  3989. // position: 'left',
  3990. // show: false,
  3991. // },
  3992. // },
  3993. // itemStyle: {
  3994. // normal: {
  3995. // color: 'yellow',
  3996. // shadowBlur: 10,
  3997. // shadowColor: 'yellow',
  3998. // },
  3999. // },
  4000. // zlevel: 1000,
  4001. // },
  4002. // {
  4003. // name: '线路',
  4004. // type: 'lines',
  4005. // zlevel: 2,
  4006. // effect: {
  4007. // show: true,
  4008. // period: 4, //箭头指向速度,值越小速度越快
  4009. // trailLength: 0.02, //特效尾迹长度[0,1]值越大,尾迹越长重
  4010. // symbol: 'arrow', //箭头图标
  4011. // symbolSize: 5, //图标大小
  4012. // },
  4013. // lineStyle: {
  4014. // normal: {
  4015. // color: '#00FFFF',
  4016. // width: 1,
  4017. // type: 'dashed',
  4018. // opacity: 0.5, //尾迹线条透明度
  4019. // curveness: -0.3, //尾迹线条曲直度
  4020. // },
  4021. // },
  4022. // data: moveLine.normal,
  4023. // },
  4024. ],
  4025. }
  4026. let that = this
  4027. this.mapChart.on('click', function (params) {
  4028. if (params.name == '山西') {
  4029. that.backShow = true
  4030. setTimeout(() => {
  4031. that.initProvinceChart()
  4032. })
  4033. }
  4034. })
  4035. tools.loopShowTooltip(this.mapChart, option, {
  4036. interval: 2000,
  4037. loopSeries: false,
  4038. });
  4039. this.mapChart.setOption(option)
  4040. },
  4041. initChartC3 () {
  4042. let myChart = echarts.init(this.$refs['echartC3'])
  4043. let option = {
  4044. tooltip: {
  4045. trigger: 'axis',
  4046. formatter: '{a0}:{c0}' + '亿元', //+ '<br/>'+ '{a1}:{c1}' + '%',
  4047. axisPointer: {
  4048. // type: 'cross',',
  4049. },
  4050. textStyle: {
  4051. color: '#FFF', // 文字的颜色
  4052. fontSize: '20', // 文字字体大小
  4053. fontFamily: 'Microsoft YaHei'
  4054. },
  4055. },
  4056. grid: {
  4057. top: '8%',
  4058. right: '3%',
  4059. left: '7%',
  4060. bottom: '10%',
  4061. },
  4062. // legend: {
  4063. // top: '1',
  4064. // textStyle: {
  4065. // color: 'rgba(250,250,250,0.6)',
  4066. // },
  4067. // },
  4068. xAxis: {
  4069. data: center6.map(item => item.name),
  4070. axisLine: {
  4071. show: true, //隐藏X轴轴线
  4072. lineStyle: {
  4073. color: '#005094',
  4074. width: 1,
  4075. },
  4076. },
  4077. axisTick: {
  4078. show: false, //隐藏X轴刻度
  4079. },
  4080. axisLabel: {
  4081. show: true,
  4082. rotate: 20,
  4083. textStyle: {
  4084. color: '#fff',//'rgba(255,255,255,0.6)', //X轴文字颜色
  4085. fontSize: '20',
  4086. fontFamily: 'Microsoft YaHei'
  4087. },
  4088. },
  4089. },
  4090. yAxis: [
  4091. {
  4092. type: 'value',
  4093. name: '亿元',
  4094. splitLine: {
  4095. show: true,
  4096. lineStyle: {
  4097. color: '#68b4dd66',
  4098. type: 'dashed',
  4099. },
  4100. },
  4101. axisLine: {
  4102. show: true,
  4103. lineStyle: {
  4104. color: '#3D7495',
  4105. },
  4106. },
  4107. axisLabel: {
  4108. show: true,
  4109. textStyle: {
  4110. color: '#fff',
  4111. fontSize: '20',
  4112. fontFamily: 'Microsoft YaHei'
  4113. },
  4114. },
  4115. nameTextStyle: {
  4116. color: '#fff',
  4117. fontSize: 20,
  4118. fontFamily: 'Microsoft YaHei'
  4119. },
  4120. },
  4121. {
  4122. type: 'value',
  4123. axisLine: {
  4124. show: false,
  4125. },
  4126. splitLine: {
  4127. show: false,
  4128. },
  4129. axisLabel: {
  4130. show: true,
  4131. formatter: '{value} %',
  4132. textStyle: {
  4133. color: 'rgba(250,250,250,0.6)',
  4134. },
  4135. },
  4136. },
  4137. ],
  4138. series: [
  4139. {
  4140. type: 'bar',
  4141. name: '投资金额',
  4142. barWidth: 15,
  4143. itemStyle: {
  4144. normal: {
  4145. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  4146. {
  4147. offset: 0,
  4148. color: '#69c0ff',
  4149. },
  4150. {
  4151. offset: 1,
  4152. color: '#082550',
  4153. },
  4154. ]),
  4155. },
  4156. },
  4157. data: center6.map(item => item.value),
  4158. },
  4159. ],
  4160. }
  4161. myChart.on('click', function (param) {
  4162. that.projectListTipShow = true
  4163. })
  4164. myChart.setOption(option)
  4165. tools.loopShowTooltip(myChart, option, {
  4166. nterval: 2000,
  4167. loopSeries: true,
  4168. })
  4169. },
  4170. initChartC4 () {
  4171. var chartData = []
  4172. var timer = null;
  4173. var timer2 = null;
  4174. var i = 0;
  4175. center7.forEach((item, index) => {
  4176. let obj = {
  4177. name: item.name,
  4178. y: item.value2,
  4179. num: item.value,
  4180. sliced: false,
  4181. selected: false,
  4182. color: index == 0 ? '#43ede3' : '#8ba2ff'
  4183. }
  4184. chartData.push(obj)
  4185. })
  4186. let that = this
  4187. var chart = Highcharts.chart('echartC4', {
  4188. chart: {
  4189. type: 'pie',
  4190. backgroundColor: 'rgba(0,0,0,0)',
  4191. options3d: {
  4192. enabled: true,
  4193. alpha: 45,
  4194. //beta: 0
  4195. },
  4196. events: {
  4197. // load,图表加载完成时触发
  4198. load: function () {
  4199. var chart = this;
  4200. var points = chart.series[0].points;
  4201. var len = points.length;
  4202. timer && clearInterval(timer);
  4203. timer = setInterval(function () {
  4204. autoTooltip(points[i]);
  4205. chartData.forEach((item, index) => {
  4206. item.sliced = false
  4207. item.selected = false
  4208. if (index == i) {
  4209. item.sliced = true
  4210. item.selected = true
  4211. }
  4212. })
  4213. chart.update({
  4214. series: [{
  4215. type: 'pie',
  4216. name: '占比',
  4217. point: {
  4218. events: {
  4219. click: function (e) {
  4220. that.showChartLTipDouble(e.point.name)
  4221. }
  4222. }
  4223. },
  4224. data: chartData
  4225. }]
  4226. })
  4227. i++;
  4228. if (i === len) {
  4229. i = 0;
  4230. chartData.forEach((item, index) => {
  4231. item.sliced = false
  4232. item.selected = false
  4233. })
  4234. chart.update({
  4235. series: [{
  4236. type: 'pie',
  4237. name: '占比',
  4238. point: {
  4239. events: {
  4240. click: function (e) {
  4241. that.showChartLTipDouble(e.point.name)
  4242. }
  4243. }
  4244. },
  4245. data: chartData
  4246. }]
  4247. })
  4248. }
  4249. }, 2000);
  4250. },
  4251. legendItemClick: function (event) {
  4252. console.log(event);
  4253. return true;
  4254. }
  4255. }
  4256. },
  4257. credits: {
  4258. enabled: false //去掉hightchats水印
  4259. },
  4260. title: {
  4261. text: null
  4262. },
  4263. tooltip: {
  4264. crosshairs: true,
  4265. backgroundColor: 'rgba(0,0,0,0.5)',
  4266. // positioner: function(e){
  4267. // console.log(e, this)
  4268. // },
  4269. useHTML: false, //开启html模式
  4270. style: {
  4271. color: '#fff',
  4272. fontSize: '20',
  4273. fontFamily: 'Microsoft YaHei'
  4274. },
  4275. formatter: function (e) {
  4276. //console.log(this)
  4277. let num = chartData[this.colorIndex].num
  4278. this.percentage = Math.round(this.percentage)
  4279. return `${this.key}:<b>${this.percentage}%</b><br/>投资完成额:<b>${this.y}</b>亿<br/>投资数量:<b>${num}个</b>`
  4280. },
  4281. //pointFormat:
  4282. },
  4283. legend: {
  4284. layout: 'vertical',
  4285. align: 'right',
  4286. y: -10,
  4287. verticalAlign: 'bottom',
  4288. itemStyle: {
  4289. fontSize: '20px',
  4290. color: '#fff',
  4291. fontWeight: 0,
  4292. fontFamily: 'Microsoft YaHei'
  4293. }
  4294. },
  4295. plotOptions: {
  4296. pie: {
  4297. allowPointSelect: true,
  4298. showInLegend: true, // 图例
  4299. cursor: 'pointer',
  4300. size: 500,
  4301. innerSize: 330, //环形图中间空白,0为饼图
  4302. depth: 50, //立体高度
  4303. slicedOffset: 40, //动画距离
  4304. dataLabels: {
  4305. enabled: false, // 是否展示指示线
  4306. format: '{point.name}: {point.percentage}'
  4307. }
  4308. },
  4309. },
  4310. series: [{
  4311. type: 'pie',
  4312. name: '占比',
  4313. center: ['60%', '45%'],
  4314. y: -10,
  4315. point: {
  4316. events: {
  4317. click: function (e) { //点击事件
  4318. that.showChartLTipDouble(e.point.name)
  4319. },
  4320. mouseOver: function (e) { //鼠标移入停止轮播并且找到移入的当前数据设为选中
  4321. //console.log(e)
  4322. chartData.forEach((item, index) => {
  4323. item.sliced = false
  4324. item.selected = false
  4325. })
  4326. chartData[e.target.index].sliced = true
  4327. chartData[e.target.index].selected = true
  4328. chart.update({
  4329. series: [{
  4330. type: 'pie',
  4331. name: '占比',
  4332. point: {
  4333. events: {
  4334. click: function (e) {
  4335. that.showChartLTipDouble(e.point.name)
  4336. }
  4337. }
  4338. },
  4339. data: chartData
  4340. }]
  4341. })
  4342. timer && clearInterval(timer);
  4343. },
  4344. mouseOut: function () { // 鼠标移出后需要继续执行轮播
  4345. var points = chart.series[0].points;
  4346. var len = points.length;
  4347. timer && clearInterval(timer);
  4348. timer = setInterval(function () {
  4349. autoTooltip(points[i]);
  4350. chartData.forEach((item, index) => {
  4351. item.sliced = false
  4352. item.selected = false
  4353. if (index == i) {
  4354. item.sliced = true
  4355. item.selected = true
  4356. }
  4357. })
  4358. chart.update({
  4359. series: [{
  4360. type: 'pie',
  4361. name: '占比',
  4362. point: {
  4363. events: {
  4364. click: function (e) {
  4365. that.showChartLTipDouble(e.point.name)
  4366. }
  4367. }
  4368. },
  4369. data: chartData
  4370. }]
  4371. })
  4372. i++;
  4373. if (i === len) {
  4374. i = 0;
  4375. chartData.forEach((item, index) => {
  4376. item.sliced = false
  4377. item.selected = false
  4378. })
  4379. chart.update({
  4380. series: [{
  4381. type: 'pie',
  4382. name: '占比',
  4383. point: {
  4384. events: {
  4385. click: function (e) {
  4386. that.showChartLTipDouble(e.point.name)
  4387. }
  4388. }
  4389. },
  4390. data: chartData
  4391. }]
  4392. })
  4393. }
  4394. }, 2000);
  4395. }
  4396. }
  4397. },
  4398. data: chartData
  4399. }]
  4400. });
  4401. function autoTooltip (point) {
  4402. chart.tooltip.refresh(point);
  4403. }
  4404. },
  4405. initProjectList () {
  4406. let dataList = []
  4407. center8.map(item => {
  4408. dataList.push([item.office, item.name, item.value + '亿'])
  4409. })
  4410. this.storageRecordConfig2.data = dataList
  4411. this.storageRecordConfig2 = { ...this.storageRecordConfig2 }
  4412. },
  4413. // 大屏三
  4414. initChartR1 () {
  4415. let that = this
  4416. let myChart = echarts.init(this.$refs['echartR1'])
  4417. myChart.on('showTip', (params) => {
  4418. // 如果是7或者15并且满足防抖则切换
  4419. if ((params.dataIndex == 5 || params.dataIndex == 11) && that.echartR1Fd) {
  4420. that.echartR1Fd = false
  4421. setTimeout(() => {
  4422. option.dataZoom[0].endValue = option.dataZoom[0].endValue + 6
  4423. option.dataZoom[0].startValue = option.dataZoom[0].startValue + 6
  4424. myChart.setOption(option);
  4425. // 防止勿刷新做的防抖
  4426. setTimeout(() => {
  4427. that.echartR1Fd = true
  4428. }, 2000)
  4429. }, 1900);
  4430. // 如果是17表示到了最后一个,那么重新来一遍
  4431. } else if (params.dataIndex == 17 && that.echartR1Fd) {
  4432. that.echartR1Fd = false
  4433. setTimeout(() => {
  4434. option.dataZoom[0].endValue = 0
  4435. option.dataZoom[0].startValue = 5
  4436. myChart.setOption(option);
  4437. // 防止勿刷新做的防抖
  4438. setTimeout(() => {
  4439. that.echartR1Fd = true
  4440. }, 2000)
  4441. }, 1900)
  4442. }
  4443. })
  4444. let option = {
  4445. tooltip: {
  4446. formatter: data => {
  4447. return `${data[0].name}<br /><span style="display:inline-block;border-radius:50%; width:7px;height:7px;background-color:${data[0].color.colorStops[0].color}"></span> ${data[0].seriesName}:${data[0].value}亿<br/><span style="display:inline-block;border-radius:50%; width:7px;height:7px;background-color:${data[1].color.colorStops[0].color}"></span> ${data[1].seriesName}:${data[1].value}亿<br/><span style="display:inline-block;border-radius:50%; width:7px;height:7px;background-color:${data[2].color.colorStops[0].color}"></span> ${data[2].seriesName}:${data[2].value}亿<br/><span style="display:inline-block;border-radius:50%; width:7px;height:7px;background-color:${data[3].color.colorStops[0].color}"></span> ${data[3].seriesName}:${data[3].value}亿<br/><span style="display:inline-block;border-radius:50%; width:7px;height:7px;background-color:${data[4].color.colorStops[0].color}"></span> ${data[4].seriesName}:${data[4].value}亿`
  4448. },
  4449. textStyle: {
  4450. color: '#FFF', // 文字的颜色
  4451. fontSize: '20', // 文字字体大小
  4452. fontFamily: 'Microsoft YaHei'
  4453. },
  4454. trigger: 'axis',
  4455. axisPointer: {
  4456. // type: 'cross',',
  4457. },
  4458. },
  4459. dataZoom: [
  4460. {
  4461. // start: 9,//默认为@
  4462. // end: 100,//黑认认为1@0
  4463. type: "slider",
  4464. show: false,
  4465. // xAxisIndex: [0]
  4466. handlesize: 0,//滑动条的 左右2个滑动条的大小
  4467. startValue: 5,// 初始显示值
  4468. endValue: 0,// 结束显示值
  4469. height: 10,//组件高度
  4470. left: "5%",
  4471. right: "4%",//右边的距离
  4472. bottom: "25%",//底边的距离
  4473. borderColor: "#939",
  4474. fillerColor: "#269cdb",
  4475. borderRadius: 5,
  4476. backgroundColor: "#33384b",//两边未选中的滑动条区域的额色
  4477. showDataShadow: false,//是否显示数据阴影
  4478. showDetail: false,//即拖拽时候是否显示详细数值信息
  4479. truerealtime: true,//是否实时更新
  4480. filterMode: "filter"
  4481. }, {
  4482. type: 'inside',
  4483. show: true,
  4484. start: 1,
  4485. end: 100,
  4486. zoomOnMouseWheel: false, //滚轮是否触发缩放
  4487. moveOnMouseMove: false, //鼠标滚轮触发滚动
  4488. }
  4489. ],
  4490. grid: {
  4491. top: '10%',
  4492. right: '3%',
  4493. left: '5%',
  4494. bottom: '5%',
  4495. },
  4496. legend: {
  4497. data: ["预算额", "已签合同额", '产值认定额', '结算额', '付款额'],
  4498. x: 'center',
  4499. y: '0px',
  4500. textStyle: {
  4501. color: '#fff',
  4502. fontSize: "20",
  4503. fontFamily: 'Microsoft YaHei'
  4504. },
  4505. },
  4506. xAxis: {
  4507. data: right4.map(item => item.name),
  4508. axisLine: {
  4509. show: true, //隐藏X轴轴线
  4510. lineStyle: {
  4511. color: '#005094',
  4512. width: 1,
  4513. },
  4514. },
  4515. axisTick: {
  4516. show: false, //隐藏X轴刻度
  4517. },
  4518. axisLabel: {
  4519. show: true,
  4520. // rotate: 40,
  4521. textStyle: {
  4522. color: '#fff',//'rgba(255,255,255,0.6)', //X轴文字颜色
  4523. fontSize: "20",
  4524. fontFamily: 'Microsoft YaHei'
  4525. },
  4526. },
  4527. },
  4528. yAxis: [
  4529. {
  4530. type: 'value',
  4531. name: '亿元',
  4532. nameTextStyle: {
  4533. color: 'rgba(255,255,255,0.6)',
  4534. },
  4535. splitLine: {
  4536. show: true,
  4537. lineStyle: {
  4538. color: '#68b4dd66',
  4539. type: 'dashed',
  4540. },
  4541. },
  4542. axisLine: {
  4543. show: true,
  4544. lineStyle: {
  4545. color: '#3D7495',
  4546. },
  4547. },
  4548. axisLabel: {
  4549. show: true,
  4550. textStyle: {
  4551. color: '#fff',
  4552. fontSize: "20",
  4553. fontFamily: 'Microsoft YaHei'
  4554. },
  4555. },
  4556. nameTextStyle: {
  4557. color: '#fff',
  4558. fontSize: 20,
  4559. fontFamily: 'Microsoft YaHei'
  4560. },
  4561. },
  4562. ],
  4563. series: [
  4564. {
  4565. name: '预算额',
  4566. type: 'bar',
  4567. barWidth: 10,
  4568. itemStyle: {
  4569. normal: {
  4570. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  4571. {
  4572. offset: 0,
  4573. color: '#71D5FF',
  4574. },
  4575. {
  4576. offset: 1,
  4577. color: '#082550',
  4578. },
  4579. ]),
  4580. },
  4581. },
  4582. data: right4.map(item => item.value),
  4583. },
  4584. {
  4585. name: '已签合同额',
  4586. type: 'bar',
  4587. barWidth: 10,
  4588. itemStyle: {
  4589. normal: {
  4590. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  4591. {
  4592. offset: 0,
  4593. color: '#4D6FF6',
  4594. },
  4595. {
  4596. offset: 1,
  4597. color: '#082550',
  4598. },
  4599. ]),
  4600. },
  4601. },
  4602. data: right4.map(item => item.value2),
  4603. },
  4604. {
  4605. name: '产值认定额',
  4606. type: 'bar',
  4607. barWidth: 10,
  4608. itemStyle: {
  4609. normal: {
  4610. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  4611. {
  4612. offset: 0,
  4613. color: '#877CFC',
  4614. },
  4615. {
  4616. offset: 1,
  4617. color: '#082550',
  4618. },
  4619. ]),
  4620. },
  4621. },
  4622. data: right4.map(item => item.value),
  4623. },
  4624. {
  4625. name: '结算额',
  4626. type: 'bar',
  4627. barWidth: 10,
  4628. itemStyle: {
  4629. normal: {
  4630. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  4631. {
  4632. offset: 0,
  4633. color: '#52BF80',
  4634. },
  4635. {
  4636. offset: 1,
  4637. color: '#082550',
  4638. },
  4639. ]),
  4640. },
  4641. },
  4642. data: right4.map(item => item.value2),
  4643. },
  4644. {
  4645. name: '付款额',
  4646. type: 'bar',
  4647. barWidth: 10,
  4648. itemStyle: {
  4649. normal: {
  4650. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  4651. {
  4652. offset: 0,
  4653. color: '#CADD62',
  4654. },
  4655. {
  4656. offset: 1,
  4657. color: '#082550',
  4658. },
  4659. ]),
  4660. },
  4661. },
  4662. data: right4.map(item => item.value),
  4663. },
  4664. ],
  4665. }
  4666. myChart.on('click', function (param) {
  4667. that.projectListTipShow = true
  4668. })
  4669. myChart.setOption(option)
  4670. tools.loopShowTooltip(myChart, option, {
  4671. interval: 2000,
  4672. loopSeries: true,
  4673. })
  4674. },
  4675. initChartR2 () {
  4676. let that = this
  4677. const itemStyle = {
  4678. // opacity: 0.8,
  4679. shadowBlur: 10,
  4680. shadowOffsetX: 0,
  4681. shadowOffsetY: 0,
  4682. shadowColor: 'rgba(0,0,0,0.3)'
  4683. };
  4684. let myChart = echarts.init(this.$refs['echartR2'])
  4685. myChart.on('showTip', (params) => {
  4686. // 如果是7或者15并且满足防抖则切换
  4687. if ((params.dataIndex == 5 || params.dataIndex == 11) && that.echartR2Fd) {
  4688. that.echartR2Fd = false
  4689. setTimeout(() => {
  4690. option.dataZoom[0].endValue = option.dataZoom[0].endValue + 6
  4691. option.dataZoom[0].startValue = option.dataZoom[0].startValue + 6
  4692. myChart.setOption(option);
  4693. // 防止勿刷新做的防抖
  4694. setTimeout(() => {
  4695. that.echartR2Fd = true
  4696. }, 2000)
  4697. }, 1900);
  4698. // 如果是17表示到了最后一个,那么重新来一遍
  4699. } else if (params.dataIndex == 17 && that.echartR2Fd) {
  4700. that.echartR2Fd = false
  4701. setTimeout(() => {
  4702. option.dataZoom[0].endValue = 0
  4703. option.dataZoom[0].startValue = 5
  4704. myChart.setOption(option);
  4705. // 防止勿刷新做的防抖
  4706. setTimeout(() => {
  4707. that.echartR2Fd = true
  4708. }, 2000)
  4709. }, 1900)
  4710. }
  4711. })
  4712. let option = {
  4713. color: ['#80F1BE', '#fec42c', '#dd4444'],
  4714. dataZoom: [
  4715. {
  4716. // start: 9,//默认为@
  4717. // end: 100,//黑认认为1@0
  4718. type: "slider",
  4719. show: false,
  4720. // xAxisIndex: [0]
  4721. handlesize: 0,//滑动条的 左右2个滑动条的大小
  4722. startValue: 5,// 初始显示值
  4723. endValue: 0,// 结束显示值
  4724. height: 10,//组件高度
  4725. left: "5%",
  4726. right: "4%",//右边的距离
  4727. bottom: "25%",//底边的距离
  4728. borderColor: "#939",
  4729. fillerColor: "#269cdb",
  4730. borderRadius: 5,
  4731. backgroundColor: "#33384b",//两边未选中的滑动条区域的额色
  4732. showDataShadow: false,//是否显示数据阴影
  4733. showDetail: false,//即拖拽时候是否显示详细数值信息
  4734. truerealtime: true,//是否实时更新
  4735. filterMode: "filter"
  4736. }, {
  4737. type: 'inside',
  4738. show: true,
  4739. start: 1,
  4740. end: 100,
  4741. zoomOnMouseWheel: false, //滚轮是否触发缩放
  4742. moveOnMouseMove: false, //鼠标滚轮触发滚动
  4743. }
  4744. ],
  4745. legend: {
  4746. top: 10,
  4747. data: ['正偏差', '容差', '负偏差'],
  4748. textStyle: {
  4749. fontSize: 20,
  4750. color: '#fff',
  4751. fontFamily: 'Microsoft YaHei'
  4752. }
  4753. },
  4754. textStyle: {
  4755. color: '#fff',
  4756. },
  4757. tooltip: {
  4758. show: true,
  4759. trigger: "axis",
  4760. textStyle: {
  4761. color: '#FFF', // 文字的颜色
  4762. fontSize: '20', // 文字字体大小
  4763. fontFamily: 'Microsoft YaHei'
  4764. },
  4765. formatter: data => {
  4766. return `${data[0].value[0]}<br /><span style="display:inline-block;border-radius:50%; width:7px;height:7px;background-color:${data[0].color}"></span> ${data[0].seriesName}:${data[0].data[1]}亿<br /><span style="display:inline-block;border-radius:50%; width:7px;height:7px;background-color:${data[1].color}"></span> ${data[1].seriesName}:${data[1].data[1]}亿<br /><span style="display:inline-block;border-radius:50%; width:7px;height:7px;background-color:${data[2].color}"></span> ${data[2].seriesName}:${data[2].data[1]}亿`
  4767. },
  4768. axisPointer: {
  4769. // // type: 'cross',',
  4770. },
  4771. },
  4772. grid: {
  4773. top: '10%',
  4774. right: '4%',
  4775. left: '5%',
  4776. bottom: '5%',
  4777. },
  4778. yAxis: {
  4779. name: '亿元',
  4780. splitLine: {
  4781. show: true,
  4782. lineStyle: {
  4783. color: '#68b4dd66',
  4784. type: 'dashed',
  4785. },
  4786. },
  4787. axisLine: {
  4788. show: false
  4789. },
  4790. axisLabel: {
  4791. show: true,
  4792. formatter: '{value}',
  4793. textStyle: {
  4794. color: '#fff',
  4795. fontSize: '20',
  4796. fontFamily: 'Microsoft YaHei'
  4797. },
  4798. },
  4799. nameTextStyle: {
  4800. color: '#fff',
  4801. fontSize: 20,
  4802. fontFamily: 'Microsoft YaHei'
  4803. },
  4804. },
  4805. xAxis: {
  4806. data: right5[0].map(item => item[0]),
  4807. axisLine: {
  4808. show: true, //隐藏X轴轴线
  4809. lineStyle: {
  4810. color: '#005094',
  4811. width: 1,
  4812. },
  4813. },
  4814. splitLine: {
  4815. show: true,
  4816. lineStyle: {
  4817. color: '#68b4dd66',
  4818. type: 'dashed',
  4819. },
  4820. },
  4821. axisTick: {
  4822. show: false, //隐藏X轴刻度
  4823. },
  4824. axisLabel: {
  4825. show: true,
  4826. // rotate: 40,
  4827. padding: [0, 0, 0, 0],
  4828. textStyle: {
  4829. color: '#fff', //X轴文字颜色
  4830. fontSize: 20,
  4831. fontFamily: 'Microsoft YaHei'
  4832. },
  4833. },
  4834. },
  4835. series: [
  4836. {
  4837. name: '正偏差',
  4838. type: 'scatter',
  4839. itemStyle: itemStyle,
  4840. data: right5[0],
  4841. symbolSize: function (data) {
  4842. return Math.sqrt(data[1]) * 9;
  4843. },
  4844. },
  4845. {
  4846. name: '容差',
  4847. type: 'scatter',
  4848. itemStyle: itemStyle,
  4849. data: right5[1],
  4850. symbolSize: function (data) {
  4851. return Math.sqrt(data[1]) * 8;
  4852. },
  4853. },
  4854. {
  4855. name: '负偏差',
  4856. type: 'scatter',
  4857. itemStyle: itemStyle,
  4858. data: right5[2],
  4859. symbolSize: function (data) {
  4860. return Math.sqrt(data[1]) * 7;
  4861. },
  4862. }
  4863. ]
  4864. }
  4865. myChart.on('click', function (param) {
  4866. // that.showChartLTipDouble(param.name)
  4867. that.projectListTipShow = true
  4868. })
  4869. myChart.setOption(option)
  4870. tools.loopShowTooltip(myChart, option, {
  4871. interval: 2000,
  4872. loopSeries: true,
  4873. })
  4874. },
  4875. initChartR3 () {
  4876. let that = this
  4877. let myChart = echarts.init(this.$refs['echartR3'])
  4878. myChart.on('showTip', (params) => {
  4879. this.echartR4Chart ? this.echartR4Chart.dispose() : ''
  4880. this.echartR5Chart ? this.echartR5Chart.dispose() : ''
  4881. that.initChartR4()
  4882. that.initChartR5()
  4883. // 如果是7或者15并且满足防抖则切换
  4884. if ((params.dataIndex == 5 || params.dataIndex == 11) && that.echartR3Fd) {
  4885. that.echartR3Fd = false
  4886. setTimeout(() => {
  4887. option.dataZoom[0].endValue = option.dataZoom[0].endValue + 6
  4888. option.dataZoom[0].startValue = option.dataZoom[0].startValue + 6
  4889. myChart.setOption(option);
  4890. // 防止勿刷新做的防抖
  4891. setTimeout(() => {
  4892. that.echartR3Fd = true
  4893. }, 2000)
  4894. }, 7900);
  4895. // 如果是17表示到了最后一个,那么重新来一遍
  4896. } else if (params.dataIndex == 17 && that.echartR3Fd) {
  4897. that.echartR3Fd = false
  4898. setTimeout(() => {
  4899. option.dataZoom[0].endValue = 0
  4900. option.dataZoom[0].startValue = 5
  4901. myChart.setOption(option);
  4902. // 防止勿刷新做的防抖
  4903. setTimeout(() => {
  4904. that.echartR3Fd = true
  4905. }, 2000)
  4906. }, 7900)
  4907. }
  4908. })
  4909. let option = {
  4910. tooltip: {
  4911. formatter: data => {
  4912. return `${data[0].name}<br /><span style="display:inline-block;border-radius:50%; width:7px;height:7px;background-color:${data[0].color.colorStops[0].color}"></span> ${data[0].seriesName}:${data[0].value}亿<br/><span style="display:inline-block;border-radius:50%; width:7px;height:7px;background-color:${data[1].color.colorStops[0].color}"></span> ${data[1].seriesName}:${data[1].value}亿<br/><span style="display:inline-block;border-radius:50%; width:7px;height:7px;background-color:${data[2].color.colorStops[0].color}"></span> ${data[2].seriesName}:${data[2].value}亿`
  4913. },
  4914. trigger: 'axis',
  4915. axisPointer: {
  4916. // type: 'cross',',
  4917. },
  4918. position: (params) => {
  4919. return [params[0] + 10, 60]
  4920. },
  4921. textStyle: {
  4922. color: '#FFF', // 文字的颜色
  4923. fontSize: '20', // 文字字体大小
  4924. fontFamily: 'Microsoft YaHei'
  4925. },
  4926. confine: true
  4927. },
  4928. dataZoom: [
  4929. {
  4930. // start: 9,//默认为@
  4931. // end: 100,//黑认认为1@0
  4932. type: "slider",
  4933. show: false,
  4934. // xAxisIndex: [0]
  4935. handlesize: 0,//滑动条的 左右2个滑动条的大小
  4936. startValue: 5,// 初始显示值
  4937. endValue: 0,// 结束显示值
  4938. height: 10,//组件高度
  4939. left: "5%",
  4940. right: "4%",//右边的距离
  4941. bottom: "25%",//底边的距离
  4942. borderColor: "#939",
  4943. fillerColor: "#269cdb",
  4944. borderRadius: 5,
  4945. backgroundColor: "#33384b",//两边未选中的滑动条区域的额色
  4946. showDataShadow: false,//是否显示数据阴影
  4947. showDetail: false,//即拖拽时候是否显示详细数值信息
  4948. truerealtime: true,//是否实时更新
  4949. filterMode: "filter"
  4950. }, {
  4951. type: 'inside',
  4952. show: true,
  4953. start: 1,
  4954. end: 100,
  4955. zoomOnMouseWheel: false, //滚轮是否触发缩放
  4956. moveOnMouseMove: false, //鼠标滚轮触发滚动
  4957. }
  4958. ],
  4959. grid: {
  4960. top: '25%',
  4961. right: '3%',
  4962. left: '10%',
  4963. bottom: '20%',
  4964. },
  4965. legend: {
  4966. data: ["高风险", "中风险", '低风险'],
  4967. x: 'center',
  4968. y: '15px',
  4969. textStyle: {
  4970. // color: 'rgba(250,250,250,0.6)',
  4971. color: '#fff',
  4972. fontSize: "20",
  4973. fontFamily: 'Microsoft YaHei'
  4974. },
  4975. },
  4976. xAxis: {
  4977. data: right4.map(item => item.name),
  4978. axisLine: {
  4979. show: true, //隐藏X轴轴线
  4980. lineStyle: {
  4981. color: '#005094',
  4982. width: 1,
  4983. },
  4984. },
  4985. axisTick: {
  4986. show: false, //隐藏X轴刻度
  4987. },
  4988. axisLabel: {
  4989. show: true,
  4990. rotate: 40,
  4991. textStyle: {
  4992. color: '#fff',//'rgba(255,255,255,0.6)', //X轴文字颜色
  4993. fontSize: '20',
  4994. fontFamily: 'Microsoft YaHei'
  4995. },
  4996. },
  4997. },
  4998. yAxis: [
  4999. {
  5000. type: 'value',
  5001. name: '亿元',
  5002. nameTextStyle: {
  5003. color: 'rgba(255,255,255,0.6)',
  5004. },
  5005. splitLine: {
  5006. show: true,
  5007. lineStyle: {
  5008. color: '#68b4dd66',
  5009. type: 'dashed',
  5010. },
  5011. },
  5012. axisLine: {
  5013. show: true,
  5014. lineStyle: {
  5015. color: '#3D7495',
  5016. },
  5017. },
  5018. axisLabel: {
  5019. show: true,
  5020. textStyle: {
  5021. color: '#fff',
  5022. fontSize: '20',
  5023. fontFamily: 'Microsoft YaHei'
  5024. },
  5025. },
  5026. nameTextStyle: {
  5027. color: '#fff',
  5028. fontSize: 20,
  5029. fontFamily: 'Microsoft YaHei'
  5030. },
  5031. },
  5032. ],
  5033. series: [
  5034. {
  5035. name: '高风险',
  5036. type: 'bar',
  5037. stack: 'Ad',
  5038. barWidth: 10,
  5039. itemStyle: {
  5040. normal: {
  5041. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  5042. {
  5043. offset: 0,
  5044. color: '#CADD62',
  5045. },
  5046. {
  5047. offset: 1,
  5048. color: '#082550',
  5049. },
  5050. ]),
  5051. },
  5052. },
  5053. data: right6.map(item => item.value),
  5054. },
  5055. {
  5056. name: '中风险',
  5057. type: 'bar',
  5058. stack: 'Ad',
  5059. barWidth: 10,
  5060. itemStyle: {
  5061. normal: {
  5062. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  5063. {
  5064. offset: 0,
  5065. color: '#4D6FF6',
  5066. },
  5067. {
  5068. offset: 1,
  5069. color: '#082550',
  5070. },
  5071. ]),
  5072. },
  5073. },
  5074. data: right6.map(item => item.value2),
  5075. },
  5076. {
  5077. name: '低风险',
  5078. type: 'bar',
  5079. stack: 'Ad',
  5080. barWidth: 10,
  5081. itemStyle: {
  5082. normal: {
  5083. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  5084. {
  5085. offset: 0,
  5086. color: '#52BF80',
  5087. },
  5088. {
  5089. offset: 1,
  5090. color: '#082550',
  5091. },
  5092. ]),
  5093. },
  5094. },
  5095. data: right6.map(item => item.value3),
  5096. },
  5097. ],
  5098. }
  5099. myChart.setOption(option)
  5100. tools.loopShowTooltip(myChart, option, {
  5101. interval: 8000,
  5102. loopSeries: true,
  5103. })
  5104. },
  5105. initChartR4 () {
  5106. this.echartR4Chart = echarts.init(this.$refs['echartR4'])
  5107. option = {
  5108. title: {
  5109. text: ''
  5110. },
  5111. radar: {
  5112. center: ['50%', '50%'],
  5113. radius: 135,
  5114. indicator: [
  5115. { name: '安全风险', max: 100000 },
  5116. { name: '付款风险', max: 100000 },
  5117. { name: '合同风险', max: 100000 },
  5118. { name: '结算风险', max: 100000 },
  5119. { name: '进度风险', max: 100000 },
  5120. { name: '质量风险', max: 100000 },
  5121. ],
  5122. axisLine: { // 设置雷达图中间射线的颜色
  5123. lineStyle: {
  5124. color: '#887d33',
  5125. },
  5126. },
  5127. splitLine: { //网格颜色设置
  5128. show: true,
  5129. lineStyle: {
  5130. width: 1,
  5131. color: ['#871b1a', '#638f41', '#d29e35', '#b6802b']
  5132. },
  5133. },
  5134. name: { //修改indicator文字的颜色
  5135. textStyle: {
  5136. color: "#fff",
  5137. fontSize: '20',
  5138. fontFamily: 'Microsoft YaHei'
  5139. }
  5140. },
  5141. splitNumber: 4, //有几个圈
  5142. splitArea: { //设置图表颜色,show的值为true
  5143. show: true,
  5144. areaStyle: {
  5145. // color:"#c1ddf8", //一般设置方式
  5146. //设置渐变背景色 new echarts.graphic.LinearGradient(a,b,c,d,arr)
  5147. //a ,b,c,d值可为0,1 a:1表示arr中的颜色右到左;c:1 arr中的颜色左到右
  5148. //b:1表示arr中的颜色下到上;d:1表示arr中的颜色上到下
  5149. // color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [
  5150. // { offset: 0, color: '#887D33' }, // 0% 处的颜色
  5151. // { offset: 0.75, color: '#7D4216' }, // 0% 处的颜色
  5152. // { offset: 1, color: '#430705' }// 100% 处的颜色
  5153. // ], false)
  5154. color: ['#638f41', '#887d33', '#7d4216', '#430705'],
  5155. }
  5156. }
  5157. },
  5158. series: [
  5159. {
  5160. name: '',
  5161. type: 'radar',
  5162. symbol: 'circle', // 单个数值点的样式,还可以取值'rect','angle'等
  5163. symbolSize: 0, // 数值点的大小
  5164. data: [
  5165. {
  5166. value: right7[0],
  5167. name: '安全风险',
  5168. itemStyle: { //该数值区域样式设置
  5169. normal: {
  5170. color: 'rgb(44,198,255,0.8)', //背景颜色,还需设置areaStyle
  5171. lineStyle: {
  5172. color: 'rgb(44,198,255,0.8)', //边框颜色
  5173. },
  5174. },
  5175. },
  5176. label: { //显示value中具体的数值
  5177. normal: {
  5178. show: false,
  5179. textStyle: { //更改数值样式
  5180. color: '#43EDE3'
  5181. }
  5182. },
  5183. },
  5184. areaStyle: { //设置区域背景颜色透明度
  5185. normal: {
  5186. width: 1,
  5187. opacity: 0.8,
  5188. },
  5189. },
  5190. }
  5191. ]
  5192. }
  5193. ]
  5194. };
  5195. // tools.loopShowTooltip(myChart, option, {
  5196. // interval: 2000,
  5197. // loopSeries: true,
  5198. // });
  5199. this.echartR4Chart.setOption(option)
  5200. },
  5201. initChartR5 () {
  5202. this.echartR5Chart = echarts.init(this.$refs['echartR5'])
  5203. let option = {
  5204. tooltip: {
  5205. formatter: data => {
  5206. return `${data[0].name}<br /><span style="display:inline-block;border-radius:预算额已50%; width:7px;height:7px;background-color:${data[0].color.colorStops[0].color}"></span> ${data[0].seriesName}:${data[0].value}亿<br/><span style="display:inline-block;border-radius:50%; width:7px;height:7px;background-color:${data[1].color.colorStops[0].color}"></span> ${data[1].seriesName}:${data[1].value}亿<br/><span style="display:inline-block;border-radius:50%; width:7px;height:7px;background-color:${data[2].color.colorStops[0].color}"></span> ${data[2].seriesName}:${data[2].value}亿<br/><span style="display:inline-block;border-radius:50%; width:7px;height:7px;background-color:${data[3].color.colorStops[0].color}"></span> ${data[3].seriesName}:${data[3].value}亿`
  5207. },
  5208. trigger: 'axis',
  5209. axisPointer: {
  5210. // type: 'cross',',
  5211. },
  5212. textStyle: {
  5213. color: '#FFF', // 文字的颜色
  5214. fontSize: '20', // 文字字体大小
  5215. fontFamily: 'Microsoft YaHei'
  5216. },
  5217. },
  5218. grid: {
  5219. top: '15%',
  5220. right: '3%',
  5221. left: '5%',
  5222. bottom: '35',
  5223. },
  5224. legend: {
  5225. data: ["预算额", "合同额", "结算额", "支付额"],
  5226. x: 'center',
  5227. y: '10px',
  5228. textStyle: {
  5229. // color: 'rgba(250,250,250,0.6)',
  5230. color: '#fff',
  5231. fontSize: "20",
  5232. fontFamily: 'Microsoft YaHei'
  5233. },
  5234. },
  5235. xAxis: {
  5236. data: ['设备费', '设计费', '施工费', '材料费'],
  5237. axisLine: {
  5238. show: true, //隐藏X轴轴线
  5239. lineStyle: {
  5240. color: '#005094',
  5241. width: 1,
  5242. },
  5243. },
  5244. axisTick: {
  5245. show: false, //隐藏X轴刻度
  5246. },
  5247. axisLabel: {
  5248. show: true,
  5249. // rotate: 40,
  5250. textStyle: {
  5251. color: '#fff',//'rgba(255,255,255,0.6)', //X轴文字颜色
  5252. fontSize: '20', // 文字字体大小
  5253. fontFamily: 'Microsoft YaHei'
  5254. },
  5255. },
  5256. },
  5257. yAxis: [
  5258. {
  5259. type: 'value',
  5260. name: '亿元',
  5261. nameTextStyle: {
  5262. color: 'rgba(255,255,255,0.6)',
  5263. },
  5264. splitLine: {
  5265. show: true,
  5266. lineStyle: {
  5267. color: '#68b4dd66',
  5268. type: 'dashed',
  5269. },
  5270. },
  5271. axisLine: {
  5272. show: true,
  5273. lineStyle: {
  5274. color: '#3D7495',
  5275. },
  5276. },
  5277. axisLabel: {
  5278. show: true,
  5279. textStyle: {
  5280. color: '#fff',
  5281. fontSize: '20', // 文字字体大小
  5282. fontFamily: 'Microsoft YaHei'
  5283. },
  5284. },
  5285. nameTextStyle: {
  5286. color: '#fff',
  5287. fontSize: 20,
  5288. fontFamily: 'Microsoft YaHei'
  5289. },
  5290. },
  5291. ],
  5292. series: [
  5293. {
  5294. name: '预算额',
  5295. type: 'bar',
  5296. barWidth: 10,
  5297. itemStyle: {
  5298. normal: {
  5299. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  5300. {
  5301. offset: 0,
  5302. color: '#71D5FF',
  5303. },
  5304. {
  5305. offset: 1,
  5306. color: '#082550',
  5307. },
  5308. ]),
  5309. },
  5310. },
  5311. data: right8.map(item => item.value),
  5312. },
  5313. {
  5314. name: '合同额',
  5315. type: 'bar',
  5316. barWidth: 10,
  5317. itemStyle: {
  5318. normal: {
  5319. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  5320. {
  5321. offset: 0,
  5322. color: '#4D6FF6',
  5323. },
  5324. {
  5325. offset: 1,
  5326. color: '#082550',
  5327. },
  5328. ]),
  5329. },
  5330. },
  5331. data: right8.map(item => item.value2),
  5332. },
  5333. {
  5334. name: '结算额',
  5335. type: 'bar',
  5336. barWidth: 10,
  5337. itemStyle: {
  5338. normal: {
  5339. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  5340. {
  5341. offset: 0,
  5342. color: '#877CFC',
  5343. },
  5344. {
  5345. offset: 1,
  5346. color: '#082550',
  5347. },
  5348. ]),
  5349. },
  5350. },
  5351. data: right8.map(item => item.value3),
  5352. },
  5353. {
  5354. name: '支付额',
  5355. type: 'bar',
  5356. barWidth: 10,
  5357. itemStyle: {
  5358. normal: {
  5359. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  5360. {
  5361. offset: 0,
  5362. color: '#52BF80',
  5363. },
  5364. {
  5365. offset: 1,
  5366. color: '#082550',
  5367. },
  5368. ]),
  5369. },
  5370. },
  5371. data: right8.map(item => item.value4),
  5372. },
  5373. ],
  5374. }
  5375. this.echartR5Chart.setOption(option)
  5376. tools.loopShowTooltip(this.echartR5Chart, option, {
  5377. interval: 2000,
  5378. loopSeries: true,
  5379. })
  5380. },
  5381. },
  5382. })