investHomeGroup.js 165 KB

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