investHomeGroup.js 178 KB

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