investHomeGroup.js 157 KB

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