investHomeGroup.js 182 KB

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