investHomeGroup.js 176 KB

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