investHomeGroup.js 166 KB

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