investHomeGroup.js 193 KB

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