investHomeGroup.js 187 KB

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