index.js 144 KB

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