investHomeGroup.js 162 KB

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