investHomeGroup.js 192 KB

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