investHomeGroup.js 193 KB

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