investHomeGroup.js 187 KB

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