investHomeGroup.js 178 KB

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