investHomeGroup.js 188 KB

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