investHomeGroup.js 194 KB

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