investHomeGroup.js 175 KB

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