investHomeGroup.js 164 KB

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