investHomeGroup.js 194 KB

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