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. fontFamily: 'Microsoft YaHei'
  1174. },
  1175. formatter: function (e) {
  1176. let num = chartData[this.colorIndex].num
  1177. this.percentage = this.percentage.toFixed(2) //Math.round(this.percentage)
  1178. return `${this.key}:<b>${this.percentage}%</b><br/><b>${this.y}</b>亿,<b>${num}个</b>`
  1179. },
  1180. //pointFormat:
  1181. },
  1182. plotOptions: {
  1183. pie: {
  1184. allowPointSelect: true,
  1185. showInLegend: true, // 图例
  1186. cursor: 'pointer',
  1187. size: 220,
  1188. innerSize: 150, //环形图中间空白,0为饼图
  1189. depth: 25, //立体高度
  1190. slicedOffset: 21, //动画距离
  1191. dataLabels: {
  1192. enabled: false, // 是否展示指示线
  1193. format: '{point.name}: {point.percentage}'
  1194. }
  1195. },
  1196. },
  1197. series: [{
  1198. type: 'pie',
  1199. name: '占比',
  1200. center: ['50%', '50%'],
  1201. point: {
  1202. events: {
  1203. click: function (e) { //点击事件
  1204. that.showChartLTipDouble(e.point.name)
  1205. },
  1206. mouseOver: function (e) { //鼠标移入停止轮播并且找到移入的当前数据设为选中
  1207. //console.log(e)
  1208. chartData.forEach((item, index) => {
  1209. item.sliced = false
  1210. item.selected = false
  1211. })
  1212. chartData[e.target.index].sliced = true
  1213. chartData[e.target.index].selected = true
  1214. chart.update({
  1215. series: [{
  1216. type: 'pie',
  1217. name: '占比',
  1218. point: {
  1219. events: {
  1220. click: function (e) {
  1221. that.showChartLTipDouble(e.point.name)
  1222. }
  1223. }
  1224. },
  1225. data: chartData
  1226. }]
  1227. })
  1228. timer && clearInterval(timer);
  1229. },
  1230. mouseOut: function () { // 鼠标移出后需要继续执行轮播
  1231. var points = chart.series[0].points;
  1232. var len = points.length;
  1233. timer && clearInterval(timer);
  1234. timer = setInterval(function () {
  1235. autoTooltip(points[i]);
  1236. chartData.forEach((item, index) => {
  1237. item.sliced = false
  1238. item.selected = false
  1239. if (index == i) {
  1240. item.sliced = true
  1241. item.selected = true
  1242. }
  1243. })
  1244. chart.update({
  1245. series: [{
  1246. type: 'pie',
  1247. name: '占比',
  1248. point: {
  1249. events: {
  1250. click: function (e) {
  1251. that.showChartLTipDouble(e.point.name)
  1252. }
  1253. }
  1254. },
  1255. data: chartData
  1256. }]
  1257. })
  1258. i++;
  1259. if (i === len) {
  1260. i = 0;
  1261. chartData.forEach((item, index) => {
  1262. item.sliced = false
  1263. item.selected = false
  1264. })
  1265. chart.update({
  1266. series: [{
  1267. type: 'pie',
  1268. name: '占比',
  1269. point: {
  1270. events: {
  1271. click: function (e) {
  1272. that.showChartLTipDouble(e.point.name)
  1273. }
  1274. }
  1275. },
  1276. data: chartData
  1277. }]
  1278. })
  1279. }
  1280. }, 2000);
  1281. }
  1282. }
  1283. },
  1284. data: chartData
  1285. }]
  1286. }
  1287. var chart = Highcharts.chart('echartL2', option);
  1288. function autoTooltip (point) {
  1289. chart.tooltip.refresh(point);
  1290. }
  1291. },
  1292. initChartL3 () {
  1293. var chartData = left6
  1294. var timer = null;
  1295. var i = 0;
  1296. let that = this
  1297. var chart = Highcharts.chart('echartL3', {
  1298. colors: ['#74a55d', '#cea446', '#b84b4b', '#5593ab', '#2a7652', '#c3643c', '#714585', '#b75d9f'],
  1299. chart: {
  1300. type: 'pie',
  1301. backgroundColor: 'rgba(0,0,0,0)',
  1302. options3d: {
  1303. enabled: true,
  1304. alpha: 45,
  1305. //beta: 0
  1306. },
  1307. events: {
  1308. // load,图表加载完成时触发
  1309. load: function () {
  1310. var chart = this;
  1311. var points = chart.series[0].points;
  1312. var len = points.length;
  1313. timer && clearInterval(timer);
  1314. timer = setInterval(function () {
  1315. autoTooltip(points[i]);
  1316. chartData.forEach((item, index) => {
  1317. item.sliced = false
  1318. item.selected = false
  1319. if (index == i) {
  1320. item.sliced = true
  1321. item.selected = true
  1322. }
  1323. })
  1324. chart.update({
  1325. series: [{
  1326. type: 'pie',
  1327. name: '占比',
  1328. point: {
  1329. events: {
  1330. click: function (e) {
  1331. that.showChartLTipDouble(e.point.name)
  1332. }
  1333. }
  1334. },
  1335. data: chartData
  1336. }]
  1337. })
  1338. i++;
  1339. if (i === len) {
  1340. i = 0;
  1341. chartData.forEach((item, index) => {
  1342. item.sliced = false
  1343. item.selected = false
  1344. })
  1345. chart.update({
  1346. series: [{
  1347. type: 'pie',
  1348. name: '占比',
  1349. point: {
  1350. events: {
  1351. click: function (e) {
  1352. that.showChartLTipDouble(e.point.name)
  1353. }
  1354. }
  1355. },
  1356. data: chartData
  1357. }]
  1358. })
  1359. }
  1360. }, 2000);
  1361. },
  1362. legendItemClick: function (event) {
  1363. that.showChartLTipDouble(e.point.name)
  1364. return true;
  1365. }
  1366. }
  1367. },
  1368. credits: {
  1369. enabled: false //去掉hightchats水印
  1370. },
  1371. legend: {
  1372. // labelFormatter: function() {
  1373. // return 123;
  1374. // },
  1375. align: 'right',//横向位置
  1376. verticalAlign: 'middle', // 纵向位置
  1377. layout: "vertical",//横排还是竖排
  1378. x: -70,
  1379. y: 90,
  1380. symbolWidth: 50,
  1381. itemStyle: {
  1382. fontSize: '20px',
  1383. color: '#fff',
  1384. x: 20,
  1385. fontWeight: 0,
  1386. fontFamily: 'Microsoft YaHei'
  1387. },
  1388. },
  1389. title: {
  1390. text: '项目管理类型',
  1391. style: {
  1392. color: '#fff',
  1393. fontSize: 24,
  1394. fontFamily: 'Microsoft YaHei'
  1395. },
  1396. align: 'center',
  1397. verticalAlign: "bottom",
  1398. x: -120
  1399. },
  1400. tooltip: {
  1401. crosshairs: true,
  1402. backgroundColor: 'rgba(0,0,0,0.5)',
  1403. // positioner: function(e){
  1404. // console.log(e, this)
  1405. // },
  1406. useHTML: false, //开启html模式
  1407. style: {
  1408. color: '#fff',
  1409. fontSize: '20',
  1410. fontFamily: 'Microsoft YaHei'
  1411. },
  1412. formatter: function (e) {
  1413. //console.log(this)
  1414. let num = chartData[this.colorIndex].num
  1415. this.percentage = this.percentage.toFixed(2) //Math.round(this.percentage)
  1416. return `${this.key}:<b>${this.percentage}%</b><br/><b>${this.y}</b>亿,<b>${num}个</b>`
  1417. },
  1418. //pointFormat:
  1419. },
  1420. plotOptions: {
  1421. pie: {
  1422. allowPointSelect: true,
  1423. showInLegend: true, // 图例
  1424. cursor: 'pointer',
  1425. size: 220,
  1426. innerSize: 150, //环形图中间空白,0为饼图
  1427. depth: 25, //立体高度
  1428. slicedOffset: 21, //动画距离
  1429. dataLabels: {
  1430. enabled: false, // 是否展示指示线
  1431. format: '{point.name}: {point.percentage}'
  1432. }
  1433. },
  1434. },
  1435. series: [{
  1436. type: 'pie',
  1437. name: '占比',
  1438. // center: ['70%', '50%'],
  1439. point: {
  1440. events: {
  1441. click: function (e) { //点击事件
  1442. that.showChartLTipDouble(e.point.name)
  1443. },
  1444. mouseOver: function (e) { //鼠标移入停止轮播并且找到移入的当前数据设为选中
  1445. //console.log(e)
  1446. chartData.forEach((item, index) => {
  1447. item.sliced = false
  1448. item.selected = false
  1449. })
  1450. chartData[e.target.index].sliced = true
  1451. chartData[e.target.index].selected = true
  1452. chart.update({
  1453. series: [{
  1454. type: 'pie',
  1455. name: '占比',
  1456. point: {
  1457. events: {
  1458. click: function (e) {
  1459. that.showChartLTipDouble(e.point.name)
  1460. }
  1461. }
  1462. },
  1463. data: chartData
  1464. }]
  1465. })
  1466. timer && clearInterval(timer);
  1467. },
  1468. mouseOut: function () { // 鼠标移出后需要继续执行轮播
  1469. var points = chart.series[0].points;
  1470. var len = points.length;
  1471. timer && clearInterval(timer);
  1472. timer = setInterval(function () {
  1473. autoTooltip(points[i]);
  1474. chartData.forEach((item, index) => {
  1475. item.sliced = false
  1476. item.selected = false
  1477. if (index == i) {
  1478. item.sliced = true
  1479. item.selected = true
  1480. }
  1481. })
  1482. chart.update({
  1483. series: [{
  1484. type: 'pie',
  1485. name: '占比',
  1486. point: {
  1487. events: {
  1488. click: function (e) {
  1489. that.showChartLTipDouble(e.point.name)
  1490. }
  1491. }
  1492. },
  1493. data: chartData
  1494. }]
  1495. })
  1496. i++;
  1497. if (i === len) {
  1498. i = 0;
  1499. chartData.forEach((item, index) => {
  1500. item.sliced = false
  1501. item.selected = false
  1502. })
  1503. chart.update({
  1504. series: [{
  1505. type: 'pie',
  1506. name: '占比',
  1507. point: {
  1508. events: {
  1509. click: function (e) {
  1510. console.log(e)
  1511. }
  1512. }
  1513. },
  1514. data: chartData
  1515. }]
  1516. })
  1517. }
  1518. }, 2000);
  1519. }
  1520. }
  1521. },
  1522. data: chartData
  1523. }]
  1524. });
  1525. function autoTooltip (point) {
  1526. chart.tooltip.refresh(point);
  1527. }
  1528. },
  1529. initChartL4 () {
  1530. let myChart = echarts.init(document.getElementById("echartL4"));
  1531. let option = {
  1532. grid: {
  1533. top: 45,
  1534. right: 0,
  1535. left: 60,
  1536. bottom: 80,
  1537. },
  1538. tooltip: {
  1539. show: true,
  1540. trigger: "axis",
  1541. axisPointer: {
  1542. // 坐标轴指示器,坐标轴触发有效
  1543. type: "shadow", // 默认为直线,可选为:'line' | 'shadow'
  1544. },
  1545. textStyle: {
  1546. color: '#FFF', // 文字的颜色
  1547. fontSize: '20', // 文字字体大小
  1548. fontFamily: 'Microsoft YaHei'
  1549. },
  1550. },
  1551. xAxis: {
  1552. data: commonCompany,
  1553. axisTick: {
  1554. show: false,
  1555. },
  1556. // x轴的字体颜色
  1557. axisLabel: {
  1558. rotate: 40,
  1559. textStyle: {
  1560. color: "white",
  1561. fontSize: '20',
  1562. fontFamily: 'Microsoft YaHei'
  1563. },
  1564. },
  1565. //y轴线的颜色以及宽度
  1566. axisLine: {
  1567. show: true,
  1568. lineStyle: {
  1569. color: "#1E5389",
  1570. width: 1,
  1571. type: "solid",
  1572. },
  1573. },
  1574. },
  1575. yAxis: {
  1576. name: '亿元',
  1577. axisTick: {
  1578. lineStyle: {
  1579. color: "#18416F",
  1580. },
  1581. },
  1582. // y轴的字体颜色
  1583. axisLabel: {
  1584. textStyle: {
  1585. color: "white",
  1586. fontSize: '20',
  1587. fontFamily: 'Microsoft YaHei'
  1588. },
  1589. },
  1590. splitLine: {
  1591. show: true,
  1592. lineStyle: {
  1593. color: "#204561",
  1594. width: 1,
  1595. type: "dotted",
  1596. },
  1597. },
  1598. //y轴线的颜色以及宽度
  1599. axisLine: {
  1600. show: true,
  1601. lineStyle: {
  1602. color: "#1E5389",
  1603. width: 1,
  1604. type: "solid",
  1605. },
  1606. },
  1607. nameTextStyle: {
  1608. color: '#fff',
  1609. fontSize: 20,
  1610. fontFamily: 'Microsoft YaHei'
  1611. },
  1612. },
  1613. series: [
  1614. {
  1615. name: "2023年额度",
  1616. type: "bar",
  1617. data: left3[0],
  1618. showBackground: true,
  1619. backgroundStyle: {
  1620. color: "#18416F",
  1621. },
  1622. barWidth: "30%",
  1623. itemStyle: {
  1624. // barBorderRadius: [10, 10, 0, 0],
  1625. color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [
  1626. {
  1627. offset: 0,
  1628. color: '#082550',
  1629. },
  1630. {
  1631. offset: 1,
  1632. color: '#957DFF',
  1633. },
  1634. ]),
  1635. },
  1636. },
  1637. ],
  1638. legend: {
  1639. // data: ["2022年额度", "2023年额度"],
  1640. data: ["2023年额度"],
  1641. textStyle: {
  1642. // 图列内容样式
  1643. color: "#fff", // 字体颜色
  1644. fontSize: "20",
  1645. fontFamily: 'Microsoft YaHei'
  1646. },
  1647. right: 'center',
  1648. y: 5,
  1649. // icon: "roundRect",
  1650. // 小图标的宽高
  1651. },
  1652. };
  1653. tools.loopShowTooltip(myChart, option, {
  1654. nterval: 2000,
  1655. loopSeries: true,
  1656. })
  1657. let that = this
  1658. myChart.on('click', function (param) {
  1659. that.titleName = param.name
  1660. that.echartEnterpriseShow = true
  1661. setTimeout(() => {
  1662. that.initChartBall()
  1663. });
  1664. })
  1665. myChart.setOption(option);
  1666. },
  1667. initChartL5 () {
  1668. var chartData = left7
  1669. var timer = null;
  1670. var i = 0;
  1671. let that = this
  1672. var option = {
  1673. colors: ['#74a55d', '#cea446', '#b84b4b', '#5593ab', '#2a7652', '#c3643c', '#714585', '#b75d9f'],
  1674. chart: {
  1675. type: 'pie',
  1676. backgroundColor: 'rgba(0,0,0,0)',
  1677. options3d: {
  1678. enabled: true,
  1679. alpha: 45,
  1680. //beta: 0
  1681. },
  1682. events: {
  1683. // load,图表加载完成时触发
  1684. load: function () {
  1685. var chart = this;
  1686. var points = chart.series[0].points;
  1687. var len = points.length;
  1688. timer && clearInterval(timer);
  1689. timer = setInterval(function () {
  1690. autoTooltip(points[i]);
  1691. chartData.forEach((item, index) => {
  1692. item.sliced = false
  1693. item.selected = false
  1694. if (index == i) {
  1695. item.sliced = true
  1696. item.selected = true
  1697. }
  1698. })
  1699. chart.update({
  1700. series: [{
  1701. type: 'pie',
  1702. name: '占比',
  1703. point: {
  1704. events: {
  1705. click: function (e) {
  1706. that.showChartLTipDouble(e.point.name)
  1707. }
  1708. }
  1709. },
  1710. data: chartData
  1711. }]
  1712. })
  1713. i++;
  1714. if (i === len) {
  1715. i = 0;
  1716. }
  1717. }, 2000);
  1718. },
  1719. legendItemClick: function (event) {
  1720. console.log(event);
  1721. return true;
  1722. }
  1723. }
  1724. },
  1725. credits: {
  1726. enabled: false //去掉hightchats水印
  1727. },
  1728. legend: {
  1729. // labelFormatter: function() {
  1730. // return 123;
  1731. // },
  1732. align: 'right',//横向位置
  1733. verticalAlign: 'middle', // 纵向位置
  1734. layout: "vertical",//横排还是竖排
  1735. x: -110,
  1736. y: 50,
  1737. symbolWidth: 50,
  1738. itemDistance: 50,
  1739. itemStyle: {
  1740. fontSize: '20px',
  1741. color: '#fff',
  1742. x: 20,
  1743. fontWeight: 0,
  1744. fontFamily: 'Microsoft YaHei'
  1745. },
  1746. },
  1747. title: {
  1748. text: '传统产业分析',
  1749. style: {
  1750. color: '#fff',
  1751. fontSize: 24,
  1752. fontFamily: 'Microsoft YaHei'
  1753. },
  1754. align: 'center',
  1755. verticalAlign: "bottom",
  1756. x: -120
  1757. },
  1758. tooltip: {
  1759. crosshairs: true,
  1760. backgroundColor: 'rgba(0,0,0,0.5)',
  1761. // positioner: function(e){
  1762. // console.log(e, this)
  1763. // },
  1764. useHTML: false, //开启html模式
  1765. style: {
  1766. color: '#fff',
  1767. fontSize: '20',
  1768. fontFamily: 'Microsoft YaHei'
  1769. },
  1770. formatter: function (e) {
  1771. //console.log(this)
  1772. let num = chartData[this.colorIndex].num
  1773. this.percentage = this.percentage.toFixed(2) //Math.round(this.percentage)
  1774. return `${this.key}:<b>${this.percentage}%</b><br/><b>${this.y}</b>亿,<b>${num}个</b>`
  1775. },
  1776. //pointFormat:
  1777. },
  1778. plotOptions: {
  1779. pie: {
  1780. allowPointSelect: true,
  1781. showInLegend: true, // 图例
  1782. cursor: 'pointer',
  1783. size: 220,
  1784. innerSize: 150, //环形图中间空白,0为饼图
  1785. depth: 25, //立体高度
  1786. slicedOffset: 21, //动画距离
  1787. dataLabels: {
  1788. enabled: false, // 是否展示指示线
  1789. format: '{point.name}: {point.percentage}'
  1790. }
  1791. },
  1792. },
  1793. series: [{
  1794. type: 'pie',
  1795. name: '占比',
  1796. //center: ['35%','50%'],
  1797. point: {
  1798. events: {
  1799. click: function (e) { //点击事件
  1800. that.showChartLTipDouble(e.point.name)
  1801. },
  1802. mouseOver: function (e) { //鼠标移入停止轮播并且找到移入的当前数据设为选中
  1803. //console.log(e)
  1804. chartData.forEach((item, index) => {
  1805. item.sliced = false
  1806. item.selected = false
  1807. })
  1808. chartData[e.target.index].sliced = true
  1809. chartData[e.target.index].selected = true
  1810. chart.update({
  1811. series: [{
  1812. type: 'pie',
  1813. name: '占比',
  1814. point: {
  1815. events: {
  1816. click: function (e) {
  1817. that.showChartLTipDouble(e.point.name)
  1818. }
  1819. }
  1820. },
  1821. data: chartData
  1822. }]
  1823. })
  1824. timer && clearInterval(timer);
  1825. },
  1826. mouseOut: function () { // 鼠标移出后需要继续执行轮播
  1827. var points = chart.series[0].points;
  1828. var len = points.length;
  1829. timer && clearInterval(timer);
  1830. timer = setInterval(function () {
  1831. autoTooltip(points[i]);
  1832. chartData.forEach((item, index) => {
  1833. item.sliced = false
  1834. item.selected = false
  1835. if (index == i) {
  1836. item.sliced = true
  1837. item.selected = true
  1838. }
  1839. })
  1840. chart.update({
  1841. series: [{
  1842. type: 'pie',
  1843. name: '占比',
  1844. point: {
  1845. events: {
  1846. click: function (e) {
  1847. that.showChartLTipDouble(e.point.name)
  1848. }
  1849. }
  1850. },
  1851. data: chartData
  1852. }]
  1853. })
  1854. i++;
  1855. if (i === len) {
  1856. i = 0;
  1857. }
  1858. }, 2000);
  1859. }
  1860. }
  1861. },
  1862. data: chartData
  1863. }]
  1864. }
  1865. var chart = Highcharts.chart('echartL5', option);
  1866. function autoTooltip (point) {
  1867. chart.tooltip.refresh(point);
  1868. }
  1869. },
  1870. initChartL6 () {
  1871. var chartData = left8
  1872. var timer = null;
  1873. var i = 0;
  1874. let that = this
  1875. var option = {
  1876. colors: ['#74a55d', '#cea446', '#b84b4b', '#5593ab', '#2a7652', '#c3643c', '#714585', '#b75d9f'],
  1877. chart: {
  1878. type: 'pie',
  1879. backgroundColor: 'rgba(0,0,0,0)',
  1880. options3d: {
  1881. enabled: true,
  1882. alpha: 45,
  1883. //beta: 0
  1884. },
  1885. events: {
  1886. // load,图表加载完成时触发
  1887. load: function () {
  1888. var chart = this;
  1889. var points = chart.series[0].points;
  1890. var len = points.length;
  1891. timer && clearInterval(timer);
  1892. timer = setInterval(function () {
  1893. autoTooltip(points[i]);
  1894. chartData.forEach((item, index) => {
  1895. item.sliced = false
  1896. item.selected = false
  1897. if (index == i) {
  1898. item.sliced = true
  1899. item.selected = true
  1900. }
  1901. })
  1902. chart.update({
  1903. series: [{
  1904. type: 'pie',
  1905. name: '占比',
  1906. point: {
  1907. events: {
  1908. click: function (e) {
  1909. that.showChartLTipDouble(e.point.name)
  1910. }
  1911. }
  1912. },
  1913. data: chartData
  1914. }]
  1915. })
  1916. i++;
  1917. if (i === len) {
  1918. i = 0;
  1919. }
  1920. }, 2000);
  1921. },
  1922. legendItemClick: function (event) {
  1923. console.log(event);
  1924. return true;
  1925. }
  1926. }
  1927. },
  1928. credits: {
  1929. enabled: false //去掉hightchats水印
  1930. },
  1931. legend: {
  1932. // labelFormatter: function() {
  1933. // return 123;
  1934. // },
  1935. align: 'right',//横向位置
  1936. verticalAlign: 'middle', // 纵向位置
  1937. layout: "vertical",//横排还是竖排
  1938. x: -30,
  1939. y: 30,
  1940. symbolWidth: 50,
  1941. itemDistance: 50,
  1942. itemStyle: {
  1943. fontSize: '20px',
  1944. color: '#fff',
  1945. x: 20,
  1946. fontWeight: 0,
  1947. fontFamily: 'Microsoft YaHei'
  1948. },
  1949. },
  1950. title: {
  1951. text: '战略性新兴产业',
  1952. style: {
  1953. color: '#fff',
  1954. fontSize: 24,
  1955. fontFamily: 'Microsoft YaHei'
  1956. },
  1957. align: 'center',
  1958. verticalAlign: "bottom",
  1959. x: -120
  1960. },
  1961. tooltip: {
  1962. crosshairs: true,
  1963. backgroundColor: 'rgba(0,0,0,0.5)',
  1964. // positioner: function(e){
  1965. // console.log(e, this)
  1966. // },
  1967. useHTML: false, //开启html模式
  1968. style: {
  1969. color: '#fff',
  1970. fontSize: '20',
  1971. fontFamily: 'Microsoft YaHei'
  1972. },
  1973. formatter: function (e) {
  1974. //console.log(this)
  1975. let num = chartData[this.colorIndex].num
  1976. this.percentage = this.percentage.toFixed(2) //Math.round(this.percentage)
  1977. return `${this.key}:<b>${this.percentage}%</b><br/><b>${this.y}</b>亿,<b>${num}个</b>`
  1978. },
  1979. //pointFormat:
  1980. },
  1981. plotOptions: {
  1982. pie: {
  1983. allowPointSelect: true,
  1984. showInLegend: true, // 图例
  1985. cursor: 'pointer',
  1986. size: 220,
  1987. innerSize: 150, //环形图中间空白,0为饼图
  1988. depth: 25, //立体高度
  1989. slicedOffset: 21, //动画距离
  1990. dataLabels: {
  1991. enabled: false, // 是否展示指示线
  1992. format: '{point.name}: {point.percentage}'
  1993. }
  1994. },
  1995. },
  1996. series: [{
  1997. type: 'pie',
  1998. name: '占比',
  1999. //center: ['35%','50%'],
  2000. point: {
  2001. events: {
  2002. click: function (e) { //点击事件
  2003. that.showChartLTipDouble(e.point.name)
  2004. },
  2005. mouseOver: function (e) { //鼠标移入停止轮播并且找到移入的当前数据设为选中
  2006. //console.log(e)
  2007. chartData.forEach((item, index) => {
  2008. item.sliced = false
  2009. item.selected = false
  2010. })
  2011. chartData[e.target.index].sliced = true
  2012. chartData[e.target.index].selected = true
  2013. chart.update({
  2014. series: [{
  2015. type: 'pie',
  2016. name: '占比',
  2017. point: {
  2018. events: {
  2019. click: function (e) {
  2020. that.showChartLTipDouble(e.point.name)
  2021. }
  2022. }
  2023. },
  2024. data: chartData
  2025. }]
  2026. })
  2027. timer && clearInterval(timer);
  2028. },
  2029. mouseOut: function () { // 鼠标移出后需要继续执行轮播
  2030. var points = chart.series[0].points;
  2031. var len = points.length;
  2032. timer && clearInterval(timer);
  2033. timer = setInterval(function () {
  2034. autoTooltip(points[i]);
  2035. chartData.forEach((item, index) => {
  2036. item.sliced = false
  2037. item.selected = false
  2038. if (index == i) {
  2039. item.sliced = true
  2040. item.selected = true
  2041. }
  2042. })
  2043. chart.update({
  2044. series: [{
  2045. type: 'pie',
  2046. name: '占比',
  2047. point: {
  2048. events: {
  2049. click: function (e) {
  2050. that.showChartLTipDouble(e.point.name)
  2051. }
  2052. }
  2053. },
  2054. data: chartData
  2055. }]
  2056. })
  2057. i++;
  2058. if (i === len) {
  2059. i = 0;
  2060. }
  2061. }, 2000);
  2062. }
  2063. }
  2064. },
  2065. data: chartData
  2066. }]
  2067. }
  2068. var chart = Highcharts.chart('echartL6', option);
  2069. function autoTooltip (point) {
  2070. chart.tooltip.refresh(point);
  2071. }
  2072. },
  2073. initChartL7 () {
  2074. var chartData = left9
  2075. var timer = null;
  2076. var i = 0;
  2077. let that = this
  2078. var option = {
  2079. colors: ['#74a55d', '#cea446', '#b84b4b', '#5593ab', '#2a7652', '#c3643c', '#714585', '#b75d9f'],
  2080. chart: {
  2081. type: 'pie',
  2082. backgroundColor: 'rgba(0,0,0,0)',
  2083. options3d: {
  2084. enabled: true,
  2085. alpha: 45,
  2086. //beta: 0
  2087. },
  2088. events: {
  2089. // load,图表加载完成时触发
  2090. load: function () {
  2091. var chart = this;
  2092. var points = chart.series[0].points;
  2093. var len = points.length;
  2094. timer && clearInterval(timer);
  2095. timer = setInterval(function () {
  2096. autoTooltip(points[i]);
  2097. chartData.forEach((item, index) => {
  2098. item.sliced = false
  2099. item.selected = false
  2100. if (index == i) {
  2101. item.sliced = true
  2102. item.selected = true
  2103. }
  2104. })
  2105. chart.update({
  2106. series: [{
  2107. type: 'pie',
  2108. name: '占比',
  2109. point: {
  2110. events: {
  2111. click: function (e) {
  2112. that.showChartLTipDouble(e.point.name)
  2113. }
  2114. }
  2115. },
  2116. data: chartData
  2117. }]
  2118. })
  2119. i++;
  2120. if (i === len) {
  2121. i = 0;
  2122. }
  2123. }, 2000);
  2124. },
  2125. legendItemClick: function (event) {
  2126. console.log(event);
  2127. return true;
  2128. }
  2129. }
  2130. },
  2131. credits: {
  2132. enabled: false //去掉hightchats水印
  2133. },
  2134. title: {
  2135. text: '特色优势产业',
  2136. style: {
  2137. color: '#fff',
  2138. fontSize: 24,
  2139. fontFamily: 'Microsoft YaHei'
  2140. },
  2141. align: 'center',
  2142. verticalAlign: "bottom",
  2143. x: -120
  2144. },
  2145. legend: {
  2146. // labelFormatter: function() {
  2147. // return 123;
  2148. // },
  2149. align: 'right',//横向位置
  2150. verticalAlign: 'middle', // 纵向位置
  2151. layout: "vertical",//横排还是竖排
  2152. x: -50,
  2153. y: 30,
  2154. symbolWidth: 50,
  2155. itemDistance: 50,
  2156. itemStyle: {
  2157. fontSize: '20px',
  2158. color: '#fff',
  2159. x: 20,
  2160. fontWeight: 0,
  2161. fontFamily: 'Microsoft YaHei'
  2162. },
  2163. },
  2164. tooltip: {
  2165. crosshairs: true,
  2166. backgroundColor: 'rgba(0,0,0,0.5)',
  2167. // positioner: function(e){
  2168. // console.log(e, this)
  2169. // },
  2170. useHTML: false, //开启html模式
  2171. style: {
  2172. color: '#fff',
  2173. fontSize: '20',
  2174. fontFamily: 'Microsoft YaHei'
  2175. },
  2176. formatter: function (e) {
  2177. //console.log(this)
  2178. let num = chartData[this.colorIndex].num
  2179. this.percentage = this.percentage.toFixed(2) //Math.round(this.percentage)
  2180. return `${this.key}:<b>${this.percentage}%</b><br/><b>${this.y}</b>亿,<b>${num}个</b>`
  2181. },
  2182. //pointFormat:
  2183. },
  2184. plotOptions: {
  2185. pie: {
  2186. allowPointSelect: true,
  2187. showInLegend: true, // 图例
  2188. cursor: 'pointer',
  2189. size: 220,
  2190. innerSize: 150, //环形图中间空白,0为饼图
  2191. depth: 25, //立体高度
  2192. slicedOffset: 21, //动画距离
  2193. dataLabels: {
  2194. enabled: false, // 是否展示指示线
  2195. format: '{point.name}: {point.percentage}'
  2196. }
  2197. },
  2198. },
  2199. series: [{
  2200. type: 'pie',
  2201. name: '占比',
  2202. //center: ['35%','50%'],
  2203. point: {
  2204. events: {
  2205. click: function (e) { //点击事件
  2206. that.showChartLTipDouble(e.point.name)
  2207. },
  2208. mouseOver: function (e) { //鼠标移入停止轮播并且找到移入的当前数据设为选中
  2209. //console.log(e)
  2210. chartData.forEach((item, index) => {
  2211. item.sliced = false
  2212. item.selected = false
  2213. })
  2214. chartData[e.target.index].sliced = true
  2215. chartData[e.target.index].selected = true
  2216. chart.update({
  2217. series: [{
  2218. type: 'pie',
  2219. name: '占比',
  2220. point: {
  2221. events: {
  2222. click: function (e) {
  2223. that.showChartLTipDouble(e.point.name)
  2224. }
  2225. }
  2226. },
  2227. data: chartData
  2228. }]
  2229. })
  2230. timer && clearInterval(timer);
  2231. },
  2232. mouseOut: function () { // 鼠标移出后需要继续执行轮播
  2233. var points = chart.series[0].points;
  2234. var len = points.length;
  2235. timer && clearInterval(timer);
  2236. timer = setInterval(function () {
  2237. autoTooltip(points[i]);
  2238. chartData.forEach((item, index) => {
  2239. item.sliced = false
  2240. item.selected = false
  2241. if (index == i) {
  2242. item.sliced = true
  2243. item.selected = true
  2244. }
  2245. })
  2246. chart.update({
  2247. series: [{
  2248. type: 'pie',
  2249. name: '占比',
  2250. point: {
  2251. events: {
  2252. click: function (e) {
  2253. that.showChartLTipDouble(e.point.name)
  2254. }
  2255. }
  2256. },
  2257. data: chartData
  2258. }]
  2259. })
  2260. i++;
  2261. if (i === len) {
  2262. i = 0;
  2263. }
  2264. }, 2000);
  2265. }
  2266. }
  2267. },
  2268. data: chartData
  2269. }]
  2270. }
  2271. var chart = Highcharts.chart('echartL7', option);
  2272. function autoTooltip (point) {
  2273. chart.tooltip.refresh(point);
  2274. }
  2275. },
  2276. initChartL8 () {
  2277. var chartData = left10
  2278. var timer = null;
  2279. var i = 0;
  2280. let that = this
  2281. var option = {
  2282. colors: ['#74a55d', '#cea446', '#b84b4b', '#5593ab', '#2a7652', '#c3643c', '#714585', '#b75d9f'],
  2283. chart: {
  2284. type: 'pie',
  2285. backgroundColor: 'rgba(0,0,0,0)',
  2286. options3d: {
  2287. enabled: true,
  2288. alpha: 45,
  2289. //beta: 0
  2290. },
  2291. events: {
  2292. // load,图表加载完成时触发
  2293. load: function () {
  2294. var chart = this;
  2295. var points = chart.series[0].points;
  2296. var len = points.length;
  2297. timer && clearInterval(timer);
  2298. timer = setInterval(function () {
  2299. autoTooltip(points[i]);
  2300. chartData.forEach((item, index) => {
  2301. item.sliced = false
  2302. item.selected = false
  2303. if (index == i) {
  2304. item.sliced = true
  2305. item.selected = true
  2306. }
  2307. })
  2308. chart.update({
  2309. series: [{
  2310. type: 'pie',
  2311. name: '占比',
  2312. point: {
  2313. events: {
  2314. click: function (e) {
  2315. that.showChartLTipDouble(e.point.name)
  2316. }
  2317. }
  2318. },
  2319. data: chartData
  2320. }]
  2321. })
  2322. i++;
  2323. if (i === len) {
  2324. i = 0;
  2325. }
  2326. }, 2000);
  2327. },
  2328. legendItemClick: function (event) {
  2329. console.log(event);
  2330. return true;
  2331. }
  2332. }
  2333. },
  2334. credits: {
  2335. enabled: false //去掉hightchats水印
  2336. },
  2337. title: {
  2338. text: '公共基础等产业',
  2339. style: {
  2340. color: '#fff',
  2341. fontSize: 24,
  2342. fontFamily: 'Microsoft YaHei'
  2343. },
  2344. align: 'center',
  2345. verticalAlign: "bottom",
  2346. x: -120
  2347. },
  2348. legend: {
  2349. // labelFormatter: function() {
  2350. // return 123;
  2351. // },
  2352. align: 'right',//横向位置
  2353. verticalAlign: 'middle', // 纵向位置
  2354. layout: "vertical",//横排还是竖排
  2355. x: -70,
  2356. y: 50,
  2357. symbolWidth: 50,
  2358. itemDistance: 50,
  2359. itemStyle: {
  2360. fontSize: '20px',
  2361. color: '#fff',
  2362. x: 20,
  2363. fontWeight: 0,
  2364. fontFamily: 'Microsoft YaHei'
  2365. },
  2366. },
  2367. tooltip: {
  2368. crosshairs: true,
  2369. backgroundColor: 'rgba(0,0,0,0.5)',
  2370. // positioner: function(e){
  2371. // console.log(e, this)
  2372. // },
  2373. useHTML: false, //开启html模式
  2374. style: {
  2375. color: '#fff',
  2376. fontSize: '20',
  2377. fontFamily: 'Microsoft YaHei'
  2378. },
  2379. formatter: function (e) {
  2380. //console.log(this)
  2381. let num = chartData[this.colorIndex].num
  2382. this.percentage = this.percentage.toFixed(2) //Math.round(this.percentage)
  2383. return `${this.key}:<b>${this.percentage}%</b><br/><b>${this.y}</b>亿,<b>${num}个</b>`
  2384. },
  2385. //pointFormat:
  2386. },
  2387. plotOptions: {
  2388. pie: {
  2389. allowPointSelect: true,
  2390. showInLegend: true, // 图例
  2391. cursor: 'pointer',
  2392. size: 220,
  2393. innerSize: 150, //环形图中间空白,0为饼图
  2394. depth: 25, //立体高度
  2395. slicedOffset: 21, //动画距离
  2396. dataLabels: {
  2397. enabled: false, // 是否展示指示线
  2398. format: '{point.name}: {point.percentage}'
  2399. }
  2400. },
  2401. },
  2402. series: [{
  2403. type: 'pie',
  2404. name: '占比',
  2405. //center: ['35%','50%'],
  2406. point: {
  2407. events: {
  2408. click: function (e) { //点击事件
  2409. that.showChartLTipDouble(e.point.name)
  2410. },
  2411. mouseOver: function (e) { //鼠标移入停止轮播并且找到移入的当前数据设为选中
  2412. //console.log(e)
  2413. chartData.forEach((item, index) => {
  2414. item.sliced = false
  2415. item.selected = false
  2416. })
  2417. chartData[e.target.index].sliced = true
  2418. chartData[e.target.index].selected = true
  2419. chart.update({
  2420. series: [{
  2421. type: 'pie',
  2422. name: '占比',
  2423. point: {
  2424. events: {
  2425. click: function (e) {
  2426. that.showChartLTipDouble(e.point.name)
  2427. }
  2428. }
  2429. },
  2430. data: chartData
  2431. }]
  2432. })
  2433. timer && clearInterval(timer);
  2434. },
  2435. mouseOut: function () { // 鼠标移出后需要继续执行轮播
  2436. var points = chart.series[0].points;
  2437. var len = points.length;
  2438. timer && clearInterval(timer);
  2439. timer = setInterval(function () {
  2440. autoTooltip(points[i]);
  2441. chartData.forEach((item, index) => {
  2442. item.sliced = false
  2443. item.selected = false
  2444. if (index == i) {
  2445. item.sliced = true
  2446. item.selected = true
  2447. }
  2448. })
  2449. chart.update({
  2450. series: [{
  2451. type: 'pie',
  2452. name: '占比',
  2453. point: {
  2454. events: {
  2455. click: function (e) {
  2456. that.showChartLTipDouble(e.point.name)
  2457. }
  2458. }
  2459. },
  2460. data: chartData
  2461. }]
  2462. })
  2463. i++;
  2464. if (i === len) {
  2465. i = 0;
  2466. }
  2467. }, 2000);
  2468. }
  2469. }
  2470. },
  2471. data: chartData
  2472. }]
  2473. }
  2474. var chart = Highcharts.chart('echartL8', option);
  2475. function autoTooltip (point) {
  2476. chart.tooltip.refresh(point);
  2477. }
  2478. },
  2479. initChartL9 () {
  2480. this.chartCarousel = echarts.init(document.getElementById("echartL9"));
  2481. option = {
  2482. tooltip: {
  2483. trigger: 'axis',
  2484. formatter: '指标:' + '{c0}' + '<br/>' + '发展线:' + '{c1}' + '<br/>' + '生存线:' + '{c2}', //+ '<br/>'+ '{a1}:{c1}' + '%',
  2485. axisPointer: {
  2486. type: 'shadow',
  2487. },
  2488. },
  2489. grid: {
  2490. top: '10%',
  2491. right: '5%',
  2492. left: '12%',
  2493. bottom: '15%',
  2494. },
  2495. xAxis: {
  2496. // data: ['总投资收益率', '销售利润率', '成本费用利润率', '总资产周转率', '财务内部收益率'],
  2497. data: left15[this.countType],
  2498. axisLine: {
  2499. show: true, //隐藏X轴轴线
  2500. lineStyle: {
  2501. color: '#005094',
  2502. width: 1,
  2503. },
  2504. },
  2505. axisTick: {
  2506. show: true, //隐藏X轴刻度
  2507. },
  2508. axisLabel: {
  2509. show: true,
  2510. rotate: 30,
  2511. textStyle: {
  2512. color: '#fff', //X轴文字颜色
  2513. fontSize: 20,
  2514. fontFamily: 'Microsoft YaHei'
  2515. },
  2516. },
  2517. },
  2518. yAxis: [
  2519. {
  2520. type: 'value',
  2521. splitLine: {
  2522. show: true,
  2523. lineStyle: {
  2524. color: '#68b4dd66',
  2525. type: 'dashed',
  2526. },
  2527. },
  2528. axisLine: {
  2529. show: false
  2530. },
  2531. axisLabel: {
  2532. show: true,
  2533. formatter: '{value}%',
  2534. textStyle: {
  2535. color: '#fff',
  2536. fontSize: 20,
  2537. fontFamily: 'Microsoft YaHei'
  2538. },
  2539. },
  2540. nameTextStyle: {
  2541. color: '#ebf8ac',
  2542. fontSize: 16,
  2543. fontFamily: 'Microsoft YaHei'
  2544. },
  2545. },
  2546. ],
  2547. series: [
  2548. {
  2549. name: '实际值',
  2550. type: 'bar',
  2551. barWidth: 15,
  2552. itemStyle: {
  2553. normal: {
  2554. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2555. {
  2556. offset: 0,
  2557. color: '#69c0ff',
  2558. },
  2559. {
  2560. offset: 1,
  2561. color: '#082550',
  2562. },
  2563. ]),
  2564. },
  2565. },
  2566. // data: [70, 52, 33, 41, 52],
  2567. data: left12[this.count + 1][2]
  2568. },
  2569. {
  2570. name: '',
  2571. type: 'line',
  2572. barWidth: 15,
  2573. itemStyle: {
  2574. normal: {
  2575. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2576. {
  2577. offset: 0,
  2578. color: '#69c0ff',
  2579. },
  2580. {
  2581. offset: 1,
  2582. color: 'green',
  2583. },
  2584. ]),
  2585. },
  2586. },
  2587. // data: [20, 30, 15, 28, 36],
  2588. data: left12[this.count + 1][1]
  2589. },
  2590. {
  2591. name: '',
  2592. type: 'line',
  2593. barWidth: 15,
  2594. itemStyle: {
  2595. normal: {
  2596. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2597. {
  2598. offset: 0,
  2599. color: '#69c0ff',
  2600. },
  2601. {
  2602. offset: 1,
  2603. color: 'yellow',
  2604. },
  2605. ]),
  2606. },
  2607. },
  2608. // data: [15, 22, 17, 33, 14],
  2609. data: left12[this.count + 1][0]
  2610. },
  2611. ],
  2612. }
  2613. let that = this
  2614. this.chartCarousel.on('click', function (param) {
  2615. that.titleName = param.name
  2616. that.echartSingleTipShow = true
  2617. setTimeout(() => {
  2618. that.initChartLTip()
  2619. });
  2620. })
  2621. this.chartCarousel.setOption(option)
  2622. // tools.loopShowTooltip(myChart, option, {
  2623. // nterval: 2000,
  2624. // loopSeries: true,
  2625. // })
  2626. },
  2627. initChartL10 () {
  2628. let myChart = echarts.init(document.getElementById("echartL10"));
  2629. let option = {
  2630. title: {
  2631. text: '固定资产进度分布',
  2632. textStyle: {
  2633. color: '#69C0FF',
  2634. fontSize: 30,
  2635. fontWeight: 500,
  2636. fontFamily: 'Microsoft YaHei'
  2637. },
  2638. top: '20',
  2639. left: '20'
  2640. },
  2641. textStyle: {
  2642. color: '#fff',
  2643. },
  2644. tooltip: {
  2645. trigger: "axis",
  2646. formatter: function (params) {
  2647. 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] + '亿元';
  2648. return tip
  2649. },
  2650. textStyle: {
  2651. color: '#ffffff', // 文字的颜色
  2652. fontSize: '20', // 文字字体大小
  2653. fontFamily: 'Microsoft YaHei'
  2654. },
  2655. axisPointer: {
  2656. lineStyle: {
  2657. type: 'dashed',
  2658. width: 2,
  2659. color: 'rgba(255,255,255,0.6)'
  2660. },
  2661. animation: true
  2662. }
  2663. },
  2664. grid: {
  2665. top: '0%',
  2666. right: '5%',
  2667. left: '15%',
  2668. bottom: '-10%',
  2669. },
  2670. yAxis: {
  2671. data: ['备案', '特别监管'],
  2672. splitLine: {
  2673. show: false,
  2674. lineStyle: {
  2675. color: '#68b4dd66',
  2676. type: 'dashed',
  2677. },
  2678. },
  2679. axisLine: {
  2680. show: false
  2681. },
  2682. axisLabel: {
  2683. show: true,
  2684. formatter: '{value}',
  2685. textStyle: {
  2686. color: '#fff',
  2687. fontSize: 20,
  2688. padding: [0, -10, 0, 0],
  2689. fontFamily: 'Microsoft YaHei',
  2690. },
  2691. },
  2692. nameTextStyle: {
  2693. color: '#ebf8ac',
  2694. fontSize: 16,
  2695. fontFamily: 'Microsoft YaHei'
  2696. },
  2697. },
  2698. xAxis: {
  2699. data: ['项目储备', '项目立项', '可研论证', '投资决策'],
  2700. axisLine: {
  2701. show: true, //隐藏X轴轴线
  2702. lineStyle: {
  2703. color: '#005094',
  2704. width: 1,
  2705. },
  2706. },
  2707. axisTick: {
  2708. show: false, //隐藏X轴刻度
  2709. },
  2710. axisLabel: {
  2711. show: true,
  2712. textStyle: {
  2713. color: '#fff', //X轴文字颜色
  2714. fontSize: 20,
  2715. padding: [-320, 0, 0, 0],
  2716. fontFamily: 'Microsoft YaHei'
  2717. },
  2718. }
  2719. },
  2720. series: [
  2721. {
  2722. name: '特别监管',
  2723. type: 'scatter',
  2724. symbol: 'circle',//'circle', 'rect', 'roundRect', 'triangle', 'diamond', 'pin', 'arrow'
  2725. symbolSize: function (data) {
  2726. return Math.sqrt(data[2]) * 3;
  2727. },
  2728. label: {
  2729. emphasis: {
  2730. show: true,
  2731. formatter: function (param) {
  2732. return param.data[2];
  2733. },
  2734. position: 'top'
  2735. }
  2736. },
  2737. itemStyle: {
  2738. normal: {
  2739. color: '#40A9FF'
  2740. }
  2741. },
  2742. data: left13[0]
  2743. },
  2744. {
  2745. name: '备案',
  2746. type: 'scatter',
  2747. symbol: 'circle',//'circle', 'rect', 'roundRect', 'triangle', 'diamond', 'pin', 'arrow'
  2748. symbolSize: function (data) {
  2749. return Math.sqrt(data[2]) * 3;
  2750. },
  2751. label: {
  2752. emphasis: {
  2753. show: true,
  2754. formatter: function (param) {
  2755. return param.data[2];
  2756. },
  2757. position: 'top'
  2758. }
  2759. },
  2760. itemStyle: {
  2761. normal: {
  2762. color: '#45DAD1'
  2763. }
  2764. },
  2765. data: left13[1]
  2766. },
  2767. ]
  2768. }
  2769. let that = this
  2770. myChart.on('click', function (param) {
  2771. that.showChartLTipDouble('固定资产')
  2772. })
  2773. myChart.setOption(option)
  2774. tools.loopShowTooltip(myChart, option, {
  2775. nterval: 2000,
  2776. loopSeries: true,
  2777. })
  2778. },
  2779. initChartL11 () {
  2780. let myChart = echarts.init(document.getElementById("echartL11"));
  2781. let option = {
  2782. title: {
  2783. text: '股权类进度分布',
  2784. textStyle: {
  2785. color: '#69C0FF',
  2786. fontSize: 30,
  2787. fontWeight: 500,
  2788. fontFamily: 'Microsoft YaHei'
  2789. },
  2790. top: '20',
  2791. left: '20'
  2792. },
  2793. textStyle: {
  2794. color: '#fff',
  2795. },
  2796. tooltip: {
  2797. trigger: "axis",
  2798. formatter: function (params) {
  2799. 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] + '亿元';
  2800. return tip
  2801. },
  2802. textStyle: {
  2803. color: '#FFF', // 文字的颜色
  2804. fontSize: '20', // 文字字体大小
  2805. fontFamily: 'Microsoft YaHei'
  2806. },
  2807. axisPointer: {
  2808. lineStyle: {
  2809. type: 'dashed',
  2810. width: 2,
  2811. color: 'rgba(255,255,255,0.6)'
  2812. },
  2813. animation: true
  2814. }
  2815. },
  2816. grid: {
  2817. top: '0%',
  2818. right: '5%',
  2819. left: '15%',
  2820. bottom: '-10%',
  2821. },
  2822. yAxis: {
  2823. data: ['备案', '特别监管'],
  2824. splitLine: {
  2825. show: false,
  2826. lineStyle: {
  2827. color: '#68b4dd66',
  2828. type: 'dashed',
  2829. },
  2830. },
  2831. axisLine: {
  2832. show: false
  2833. },
  2834. axisLabel: {
  2835. show: true,
  2836. formatter: '{value}',
  2837. textStyle: {
  2838. fontSize: 20,
  2839. padding: [0, -10, 0, 0],
  2840. fontFamily: 'Microsoft YaHei'
  2841. },
  2842. },
  2843. nameTextStyle: {
  2844. color: '#ebf8ac',
  2845. fontSize: 16,
  2846. fontFamily: 'Microsoft YaHei'
  2847. },
  2848. },
  2849. xAxis: {
  2850. data: ['项目储备', '项目立项', '可研论证', '投资决策'],
  2851. axisLine: {
  2852. show: true, //隐藏X轴轴线
  2853. lineStyle: {
  2854. color: '#005094',
  2855. width: 1,
  2856. },
  2857. },
  2858. axisTick: {
  2859. show: true, //隐藏X轴刻度
  2860. },
  2861. axisLabel: {
  2862. show: true,
  2863. textStyle: {
  2864. color: '#fff', //X轴文字颜色
  2865. fontSize: 20,
  2866. padding: [-320, 0, 0, 0],
  2867. fontFamily: 'Microsoft YaHei'
  2868. },
  2869. },
  2870. },
  2871. series: [
  2872. {
  2873. name: '',
  2874. type: 'scatter',
  2875. symbol: 'circle',
  2876. symbolSize: function (data) {
  2877. return Math.sqrt(data[2]) * 3;
  2878. },
  2879. label: {
  2880. emphasis: {
  2881. show: true,
  2882. formatter: function (param) {
  2883. return param.data[2];
  2884. },
  2885. position: 'top'
  2886. }
  2887. },
  2888. itemStyle: {
  2889. normal: {
  2890. color: '#40A9FF'
  2891. }
  2892. },
  2893. data: left14[0]
  2894. },
  2895. {
  2896. name: '',
  2897. type: 'scatter',
  2898. symbol: 'circle',
  2899. symbolSize: function (data) {
  2900. return Math.sqrt(data[2]) * 3;
  2901. },
  2902. label: {
  2903. emphasis: {
  2904. show: true,
  2905. formatter: function (param) {
  2906. return param.data[2];
  2907. },
  2908. position: 'top'
  2909. }
  2910. },
  2911. itemStyle: {
  2912. normal: {
  2913. color: '#45DAD1'
  2914. }
  2915. },
  2916. data: left14[1]
  2917. },
  2918. ]
  2919. }
  2920. let that = this
  2921. myChart.on('click', function (param) {
  2922. that.showChartLTipDouble('股权类')
  2923. })
  2924. myChart.setOption(option)
  2925. tools.loopShowTooltip(myChart, option, {
  2926. nterval: 2000,
  2927. loopSeries: true,
  2928. })
  2929. },
  2930. // 大屏二
  2931. initChartC1 () {
  2932. var chartData = center2
  2933. var timer = null;
  2934. var i = 0;
  2935. let that = this
  2936. var option = {
  2937. colors: ['#74a55d', '#cea446', '#b84b4b', '#5593ab', '#2a7652', '#c3643c', '#714585', '#b75d9f'],
  2938. chart: {
  2939. type: 'pie',
  2940. backgroundColor: 'rgba(0,0,0,0)',
  2941. options3d: {
  2942. enabled: true,
  2943. alpha: 60,
  2944. //beta: 0
  2945. },
  2946. events: {
  2947. // load,图表加载完成时触发
  2948. load: function () {
  2949. var chart = this;
  2950. var points = chart.series[0].points;
  2951. var len = points.length;
  2952. timer && clearInterval(timer);
  2953. timer = setInterval(function () {
  2954. autoTooltip(points[i]);
  2955. chartData.forEach((item, index) => {
  2956. item.sliced = false
  2957. item.selected = false
  2958. if (index == i) {
  2959. item.sliced = true
  2960. item.selected = true
  2961. }
  2962. })
  2963. chart.update({
  2964. series: [{
  2965. type: 'pie',
  2966. name: '占比',
  2967. point: {
  2968. events: {
  2969. click: function (e) {
  2970. that.showChartLTipDouble(e.point.name)
  2971. }
  2972. }
  2973. },
  2974. data: chartData
  2975. }]
  2976. })
  2977. i++;
  2978. if (i === len) {
  2979. i = 0;
  2980. }
  2981. }, 2000);
  2982. },
  2983. legendItemClick: function (event) {
  2984. console.log(event);
  2985. return true;
  2986. }
  2987. }
  2988. },
  2989. credits: {
  2990. enabled: false //去掉hightchats水印
  2991. },
  2992. legend: {
  2993. layout: 'vertical',
  2994. align: 'right',
  2995. y: -10,
  2996. verticalAlign: 'bottom',
  2997. itemStyle: {
  2998. fontSize: '20px',
  2999. color: '#fff',
  3000. fontWeight: 0,
  3001. fontFamily: 'Microsoft YaHei'
  3002. }
  3003. },
  3004. tooltip: {
  3005. crosshairs: true,
  3006. backgroundColor: 'rgba(0,0,0,0.5)',
  3007. useHTML: false, //开启html模式
  3008. style: {
  3009. color: '#fff',
  3010. fontSize: '20',
  3011. fontFamily: 'Microsoft YaHei'
  3012. },
  3013. formatter: function (e) {
  3014. let num = chartData[this.colorIndex].num
  3015. this.percentage = this.percentage.toFixed(2) //Math.round(this.percentage)
  3016. return `${this.key}:<b>${this.percentage}%</b><br/>投资完成额:<b>${this.y}</b>亿<br/>投资数量:<b>${num}个</b>`
  3017. },
  3018. //pointFormat:
  3019. },
  3020. plotOptions: {
  3021. pie: {
  3022. allowPointSelect: true,
  3023. showInLegend: true, // 图例
  3024. cursor: 'pointer',
  3025. size: 500,
  3026. innerSize: 330, //环形图中间空白,0为饼图
  3027. depth: 75, //立体高度
  3028. slicedOffset: 40, //动画距离
  3029. dataLabels: {
  3030. enabled: false, // 是否展示指示线
  3031. format: '{point.name}: {point.percentage}'
  3032. }
  3033. },
  3034. },
  3035. title: {
  3036. text: '',
  3037. style: {
  3038. color: '#fff',
  3039. fontSize: 24,
  3040. fontFamily: 'Microsoft YaHei'
  3041. },
  3042. align: 'center',
  3043. verticalAlign: "bottom",
  3044. x: -120
  3045. },
  3046. series: [{
  3047. type: 'pie',
  3048. name: '占比',
  3049. center: ['74%', '50%'],
  3050. point: {
  3051. events: {
  3052. click: function (e) { //点击事件
  3053. that.showChartLTipDouble(e.point.name)
  3054. },
  3055. mouseOver: function (e) { //鼠标移入停止轮播并且找到移入的当前数据设为选中
  3056. //console.log(e)
  3057. chartData.forEach((item, index) => {
  3058. item.sliced = false
  3059. item.selected = false
  3060. })
  3061. chartData[e.target.index].sliced = true
  3062. chartData[e.target.index].selected = true
  3063. chart.update({
  3064. series: [{
  3065. type: 'pie',
  3066. name: '占比',
  3067. point: {
  3068. events: {
  3069. click: function (e) {
  3070. that.showChartLTipDouble(e.point.name)
  3071. }
  3072. }
  3073. },
  3074. data: chartData
  3075. }]
  3076. })
  3077. timer && clearInterval(timer);
  3078. },
  3079. mouseOut: function () { // 鼠标移出后需要继续执行轮播
  3080. var points = chart.series[0].points;
  3081. var len = points.length;
  3082. timer && clearInterval(timer);
  3083. timer = setInterval(function () {
  3084. autoTooltip(points[i]);
  3085. chartData.forEach((item, index) => {
  3086. item.sliced = false
  3087. item.selected = false
  3088. if (index == i) {
  3089. item.sliced = true
  3090. item.selected = true
  3091. }
  3092. })
  3093. chart.update({
  3094. series: [{
  3095. type: 'pie',
  3096. name: '占比',
  3097. point: {
  3098. events: {
  3099. click: function (e) {
  3100. that.showChartLTipDouble(e.point.name)
  3101. }
  3102. }
  3103. },
  3104. data: chartData
  3105. }]
  3106. })
  3107. i++;
  3108. if (i === len) {
  3109. i = 0;
  3110. }
  3111. }, 2000);
  3112. }
  3113. }
  3114. },
  3115. data: chartData
  3116. }]
  3117. }
  3118. var chart = Highcharts.chart('echartC1', option);
  3119. function autoTooltip (point) {
  3120. chart.tooltip.refresh(point);
  3121. }
  3122. },
  3123. initChartC2 () {
  3124. let that = this
  3125. let myChart = echarts.init(this.$refs['echartC2'])
  3126. myChart.on('showTip', (params) => {
  3127. // 如果是7或者15并且满足防抖则切换
  3128. if ((params.dataIndex == 5 || params.dataIndex == 11) && that.echartC2Fd) {
  3129. that.echartC2Fd = false
  3130. setTimeout(() => {
  3131. option.dataZoom[0].endValue = option.dataZoom[0].endValue + 6
  3132. option.dataZoom[0].startValue = option.dataZoom[0].startValue + 6
  3133. myChart.setOption(option);
  3134. // 防止勿刷新做的防抖
  3135. setTimeout(() => {
  3136. that.echartC2Fd = true
  3137. }, 2000)
  3138. }, 1900);
  3139. // 如果是17表示到了最后一个,那么重新来一遍
  3140. } else if (params.dataIndex == 17 && that.echartC2Fd) {
  3141. that.echartC2Fd = false
  3142. setTimeout(() => {
  3143. option.dataZoom[0].endValue = 0
  3144. option.dataZoom[0].startValue = 5
  3145. myChart.setOption(option);
  3146. // 防止勿刷新做的防抖
  3147. setTimeout(() => {
  3148. that.echartC2Fd = true
  3149. }, 2000)
  3150. }, 1900)
  3151. }
  3152. })
  3153. let option = {
  3154. tooltip: {
  3155. formatter: data => {
  3156. 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}亿`
  3157. },
  3158. trigger: 'axis',
  3159. axisPointer: {
  3160. // type: 'cross',',
  3161. },
  3162. textStyle: {
  3163. color: '#FFF', // 文字的颜色
  3164. fontSize: '20', // 文字字体大小
  3165. fontFamily: 'Microsoft YaHei'
  3166. },
  3167. },
  3168. dataZoom: [
  3169. {
  3170. // start: 9,//默认为@
  3171. // end: 100,//黑认认为1@0
  3172. type: "slider",
  3173. show: false,
  3174. // xAxisIndex: [0]
  3175. handlesize: 0,//滑动条的 左右2个滑动条的大小
  3176. startValue: 5,// 初始显示值
  3177. endValue: 0,// 结束显示值
  3178. height: 10,//组件高度
  3179. left: "5%",
  3180. right: "4%",//右边的距离
  3181. bottom: "25%",//底边的距离
  3182. borderColor: "#939",
  3183. fillerColor: "#269cdb",
  3184. borderRadius: 5,
  3185. backgroundColor: "#33384b",//两边未选中的滑动条区域的额色
  3186. showDataShadow: false,//是否显示数据阴影
  3187. showDetail: false,//即拖拽时候是否显示详细数值信息
  3188. truerealtime: true,//是否实时更新
  3189. filterMode: "filter"
  3190. }, {
  3191. type: 'inside',
  3192. show: true,
  3193. start: 1,
  3194. end: 100,
  3195. zoomOnMouseWheel: false, //滚轮是否触发缩放
  3196. moveOnMouseMove: false, //鼠标滚轮触发滚动
  3197. }
  3198. ],
  3199. grid: {
  3200. top: '10%',
  3201. right: '3%',
  3202. left: '7%',
  3203. bottom: '15%',
  3204. },
  3205. legend: {
  3206. top: '1',
  3207. right: 'center',
  3208. textStyle: {
  3209. color: '#fff',
  3210. fontSize: '20',
  3211. fontFamily: 'Microsoft YaHei'
  3212. },
  3213. },
  3214. xAxis: {
  3215. data: center3.map(item => item.name),
  3216. axisLine: {
  3217. show: true, //隐藏X轴轴线
  3218. lineStyle: {
  3219. color: '#005094',
  3220. width: 1,
  3221. },
  3222. },
  3223. axisTick: {
  3224. show: false, //隐藏X轴刻度
  3225. },
  3226. axisLabel: {
  3227. show: true,
  3228. rotate: 40,
  3229. textStyle: {
  3230. color: '#fff',//'rgba(255,255,255,0.6)', //X轴文字颜色
  3231. fontSize: '20',
  3232. fontFamily: 'Microsoft YaHei'
  3233. },
  3234. },
  3235. },
  3236. yAxis: [
  3237. {
  3238. type: 'value',
  3239. name: '亿元',
  3240. splitLine: {
  3241. show: true,
  3242. lineStyle: {
  3243. color: '#68b4dd66',
  3244. type: 'dashed',
  3245. },
  3246. },
  3247. axisLine: {
  3248. show: true,
  3249. lineStyle: {
  3250. color: '#3D7495',
  3251. },
  3252. },
  3253. axisLabel: {
  3254. show: true,
  3255. textStyle: {
  3256. color: '#fff',
  3257. fontSize: '20',
  3258. fontFamily: 'Microsoft YaHei'
  3259. },
  3260. },
  3261. nameTextStyle: {
  3262. color: '#fff',
  3263. fontSize: 20,
  3264. fontFamily: 'Microsoft YaHei'
  3265. },
  3266. },
  3267. ],
  3268. series: [
  3269. {
  3270. name: '计划投资',
  3271. type: 'bar',
  3272. barWidth: 10,
  3273. itemStyle: {
  3274. normal: {
  3275. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  3276. {
  3277. offset: 0,
  3278. color: '#69c0ff',
  3279. },
  3280. {
  3281. offset: 1,
  3282. color: '#082550',
  3283. },
  3284. ]),
  3285. },
  3286. },
  3287. data: center3.map(item => item.value),
  3288. },
  3289. {
  3290. name: '实际投资',
  3291. type: 'bar',
  3292. barWidth: 10,
  3293. itemStyle: {
  3294. normal: {
  3295. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  3296. {
  3297. offset: 0,
  3298. color: '#957DFF',
  3299. },
  3300. {
  3301. offset: 1,
  3302. color: '#082550',
  3303. },
  3304. ]),
  3305. },
  3306. },
  3307. data: center3.map(item => item.value2),
  3308. },
  3309. ],
  3310. }
  3311. myChart.on('click', function (param) {
  3312. that.projectListTipShow = true
  3313. })
  3314. myChart.setOption(option)
  3315. tools.loopShowTooltip(myChart, option, {
  3316. nterval: 2000,
  3317. loopSeries: true,
  3318. })
  3319. // let arr = center3.map(item => item.value2)
  3320. // this.timeOut = setInterval(function () {
  3321. // let startValue = myChart.getModel().option.dataZoom[0].startValue;
  3322. // let endValue = myChart.getModel().option.dataZoom[0].endValue;
  3323. // let start = myChart.getModel().option.xAxis[0].data[startValue];//起始X轴
  3324. // let end = myChart.getModel().option.xAxis[0].data[endValue];//结束X轴
  3325. // // 每次向后滚动一个,最后一个从头开始。
  3326. // // console.log(option.dataZoom[0].endValue);
  3327. // if (option.dataZoom[0].endValue >= 12) {
  3328. // option.dataZoom[0].endValue = 5
  3329. // option.dataZoom[0].startValue = 0
  3330. // } else {
  3331. // option.dataZoom[0].endValue = option.dataZoom[0].endValue + 6
  3332. // option.dataZoom[0].startValue = option.dataZoom[0].startValue + 6
  3333. // }
  3334. // // myChart.dispatchAction({
  3335. // // type: 'showTip',
  3336. // // seriesIndex: 0,
  3337. // // dataIndex: startValue +1,
  3338. // // });
  3339. // myChart.setOption(option);
  3340. // }, 12000);
  3341. },
  3342. convertData (data) {
  3343. var res = []
  3344. for (var i = 0; i < data.length; i++) {
  3345. var geoCoord = this.geoCoordMap[data[i].name]
  3346. if (geoCoord) {
  3347. res.push({
  3348. name: data[i].name,
  3349. value: geoCoord.concat(data[i].value),
  3350. })
  3351. }
  3352. }
  3353. return res
  3354. },
  3355. initProvinceChart () {
  3356. var data = [
  3357. { name: '大同市', value: 60.35, value2: 28 },
  3358. { name: '朔州市', value: 33.61, value2: 13 },
  3359. { name: '忻州市', value: 73.35, value2: 25 },
  3360. { name: '吕梁市', value: 109.04, value2: 45 },
  3361. { name: '太原市', value: 251.67, value2: 113 },
  3362. { name: '阳泉市', value: 25.12, value2: 28 },
  3363. { name: '晋中市', value: 148.57, value2: 52 },
  3364. { name: '临汾市', value: 130.55, value2: 30 },
  3365. { name: '长治市', value: 103.00, value2: 23 },
  3366. { name: '运城市', value: 41.06, value2: 23 },
  3367. { name: '晋城市', value: 45.43, value2: 31 }
  3368. ]
  3369. this.geoCoordMap = []
  3370. /*获取地图数据*/
  3371. this.mapChart = echarts.init(this.$refs['echarts-map'])
  3372. echarts.registerMap('shanxi', shanxi)
  3373. var mapFeatures = echarts.getMap('shanxi').geoJson.features
  3374. mapFeatures.forEach(v => {
  3375. // 地区名称
  3376. var name = v.properties.name
  3377. // 地区经纬度
  3378. this.geoCoordMap[name] = v.properties.centroid
  3379. // 按照地图乱序
  3380. // data.push({ name: v.properties.name, value: v.properties.centroid[0], value2: v.properties.centroid[1] })
  3381. })
  3382. let option = {
  3383. tooltip: {
  3384. padding: 15,
  3385. enterable: true,
  3386. transitionDuration: 1,
  3387. formatter: (params, ticket, callback) => {
  3388. // 清空所有轮播
  3389. for (var k in this.geoCoordMap) {
  3390. this.mapChart.dispatchAction({
  3391. // type: 'geoUnSelect',
  3392. type: 'downplay',
  3393. name: k,
  3394. })
  3395. }
  3396. // 如果鼠标滑动到线线上面,则返回空
  3397. this.mapChart.dispatchAction({
  3398. // type: 'geoSelect',
  3399. type: 'highlight',
  3400. name: params.name,
  3401. })
  3402. if (params.componentSubType == 'lines') {
  3403. return
  3404. }
  3405. if (params.componentSubType == 'scatter') {
  3406. let tipHtml = `
  3407. <div class="tooltip-cont">
  3408. <p>项目数量:<span>${data[params.dataIndex].value2}个</span></p>
  3409. <p>总投资额:<span>${params.data.value[2]}亿</span></p>
  3410. </div>`
  3411. callback(ticket, tipHtml)
  3412. return tipHtml
  3413. }
  3414. if (params.componentSubType == 'map') {
  3415. let tipHtml = `
  3416. <div class="tooltip-cont">
  3417. <p>项目数量:<span>${data[params.dataIndex].value2}个</span></p>
  3418. <p>总投资额:<span>${params.data.value}亿</span></p>
  3419. </div>`
  3420. callback(ticket, tipHtml)
  3421. return tipHtml
  3422. }
  3423. },
  3424. },
  3425. visualMap: {
  3426. show: false,
  3427. min: 0,
  3428. max: 300,
  3429. right: 0,
  3430. bottom: 0,
  3431. text: ['高', '低'],
  3432. textStyle: {
  3433. color: '#f1f1f1'
  3434. },
  3435. realtime: false,
  3436. calculable: false,
  3437. inRange: {
  3438. color: ['lightskyblue', '#2754b7']
  3439. }
  3440. },
  3441. geo: {
  3442. show: true,
  3443. map: 'shanxi',
  3444. layoutCenter: ['50%', '50%'], //地图位置
  3445. layoutSize: '140%',
  3446. label: {
  3447. normal: {
  3448. position: [100, 100],
  3449. fontSize: 25,
  3450. fontFamily: 'Microsoft YaHei',
  3451. fontWeight: 600,
  3452. color: '#fff',
  3453. show: true,
  3454. },
  3455. emphasis: {
  3456. show: true,
  3457. color: '#e7e1a0',
  3458. fontSize: 30,
  3459. },
  3460. },
  3461. roam: false,
  3462. itemStyle: {
  3463. normal: {
  3464. areaColor: '#1946a8',
  3465. shadowColor: '#1946a8',
  3466. borderWidth: 2, //设置外层边框
  3467. borderColor: '#1946a8',
  3468. shadowOffsetX: 0,
  3469. shadowOffsetY: 0,
  3470. shadowBlur: 0,
  3471. },
  3472. emphasis: {
  3473. areaColor: '#013d95',
  3474. borderColor: '#e7e1a0',
  3475. borderWidth: 4, //设置外层边框
  3476. },
  3477. },
  3478. },
  3479. series: [
  3480. {
  3481. type: 'map',
  3482. map: 'shanxi',
  3483. geoIndex: 0,
  3484. aspectScale: 1.5, //长宽比
  3485. data: data,
  3486. },
  3487. ],
  3488. }
  3489. let that = this
  3490. this.mapChart.on('click', function (params) {
  3491. if (params.name == '太原市') {
  3492. that.showChartLTipDouble('太原市')
  3493. }
  3494. })
  3495. tools.loopShowTooltip(this.mapChart, option, {
  3496. interval: 2000,
  3497. loopSeries: false,
  3498. });
  3499. this.mapChart.setOption(option)
  3500. },
  3501. initChinaChart () {
  3502. var data = [{ name: '河北', value: 60.35, value2: 28 },
  3503. { name: '山西', value: 160.35, value2: 29 },
  3504. { name: '辽宁', value: 260.35, value2: 30 },
  3505. { name: '吉林', value: 360.35, value2: 30 },
  3506. { name: '黑龙江', value: 460.35, value2: 30 },
  3507. { name: '江苏', value: 560.35, value2: 30 },
  3508. { name: '浙江', value: 60.35, value2: 28 },
  3509. { name: '安徽', value: 160.35, value2: 29 },
  3510. { name: '福建', value: 260.35, value2: 30 },
  3511. { name: '江西', value: 360.35, value2: 30 },
  3512. { name: '山东', value: 460.35, value2: 30 },
  3513. { name: '河南', value: 560.35, value2: 30 },
  3514. { name: '湖北', value: 60.35, value2: 28 },
  3515. { name: '湖南', value: 160.35, value2: 29 },
  3516. { name: '广东', value: 260.35, value2: 30 },
  3517. { name: '海南', value: 360.35, value2: 30 },
  3518. { name: '四川', value: 460.35, value2: 30 },
  3519. { name: '贵州', value: 560.35, value2: 30 },
  3520. { name: '云南', value: 60.35, value2: 28 },
  3521. { name: '陕西', value: 160.35, value2: 29 },
  3522. { name: '甘肃', value: 260.35, value2: 30 },
  3523. { name: '青海', value: 360.35, value2: 30 },
  3524. { name: '台湾', value: 460.35, value2: 30 },
  3525. { name: '内蒙古', value: 560.35, value2: 30 },
  3526. { name: '广西', value: 60.35, value2: 28 },
  3527. { name: '西藏', value: 160.35, value2: 29 },
  3528. { name: '宁夏', value: 260.35, value2: 30 },
  3529. { name: '新疆', value: 360.35, value2: 30 },
  3530. { name: '北京', value: 460.35, value2: 30 },
  3531. { name: '天津', value: 560.35, value2: 30 },
  3532. { name: '上海', value: 260.35, value2: 30 },
  3533. { name: '重庆', value: 360.35, value2: 30 },
  3534. { name: '香港', value: 460.35, value2: 30 },
  3535. { name: '澳门', value: 560.35, value2: 30 },]
  3536. this.geoCoordMap = []
  3537. /*获取地图数据*/
  3538. this.mapChart = echarts.init(this.$refs['chinaMap'])
  3539. echarts.registerMap('china', china)
  3540. var mapFeatures = echarts.getMap('china').geoJson.features
  3541. console.log(mapFeatures, '?????????')
  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. })