investHomeGroup.js 195 KB

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