investHomeGroup.js 176 KB

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