investHomeGroup.js 184 KB

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