investHomeGroup.js 190 KB

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