index.js 123 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268
  1. let app = new Vue({
  2. el: "#app",
  3. data () {
  4. return {
  5. count: 0, //重点项目两线指标轮到哪个
  6. list: [], //重点项目两线指标数组
  7. countType: 0, //重点项目两线指标数组
  8. leftEcharts1: "",
  9. leftEcharts2: "",
  10. leftEcharts3: "",
  11. leftEcharts4: "",
  12. leftEcharts5: "",
  13. leftEcharts6: "",
  14. leftEcharts7: "",
  15. leftEcharts8: "",
  16. leftEcharts9: "",
  17. leftEcharts10: "",
  18. leftEcharts11: "",
  19. leftEcharts12: '',
  20. leftEcharts13: '',
  21. shanxiMap: "", // 山西地图
  22. industryProportion: 1, // 主辅业占比轮播
  23. industryLayout: 0, //产业布局分析
  24. time1: "", // 4秒定时器
  25. time2: "", // 针对投前产业布局分析的定时器
  26. storageRecordConfig: {
  27. waitTime: "2000",
  28. hoverPause: true,
  29. header: ["企业集团", "项目名 ", "投资总额"],
  30. headerHeight: 80,
  31. headerBGC: "#092853",
  32. oddRowBGC: "#001c42",
  33. evenRowBGC: "#001c42",
  34. // oddRowBGC: '#05507b33',
  35. rowNum: 6,
  36. columnWidth: [150, 450, 150],
  37. align: ["center", "center", "center"],
  38. data: [
  39. ["国际能源", "娄烦县120MW智慧光伏发电项目+10%储能", "6.78亿元"],
  40. ["国际能源", "平朔矿区150MW农光储氢一体化项目", "7.84亿元"],
  41. ["汾酒集团", "汾酒2030技改原酒产储能扩建项目(一期)", "91.02亿元"],
  42. [
  43. "大地控股",
  44. "山西大地控股忻州新店矿业有限公司投资建设年产800万吨精品砂石骨料项目",
  45. "8.67亿元",
  46. ],
  47. ["潞安化工", "分布式光伏发电项目", "2.01亿元"],
  48. ["太重集团", "设立太重(大同)新能源产业投资公司", "0.30亿元"],
  49. [
  50. "大地控股",
  51. "山西大地宏翔环保科技有限公司电厂固废资源化综合利用建设项目",
  52. "3.60亿元",
  53. ],
  54. [
  55. "大地控股",
  56. "山西大地海科环保科技有限公司电厂固废资源化综合利用建设项目",
  57. "3.11亿元",
  58. ],
  59. ["汾酒集团", "保健酒园区新增原酒产能项目", "4.98亿元"],
  60. ["汾酒集团", "白玉酒厂改扩建项目", "4.96亿元"],
  61. ["华阳新材", "5GW高效光伏组件制造项目", "4.82亿元"],
  62. ["华新燃气", "吉县—延长输气管道项目(一期工程)", "3.54亿元"],
  63. ["太重集团", "建设液压挖掘机配套油缸项目", "2.60亿元"],
  64. [
  65. "华远陆港",
  66. "物产集团参股设立项目公司投资建设山西物产万科(太原)综合物流产业园项目",
  67. "6.60亿元",
  68. ],
  69. ["太重集团", "设立昔阳县晶能新能源有限公司", "0.50亿元"],
  70. ["山西建投", "设立山西低碳环保产业集团有限公司", "30.00亿元"],
  71. [
  72. "山西建投",
  73. "设立山西省太忻经济一体化发展投资集团有限公司",
  74. "30.00亿元",
  75. ],
  76. ["华新燃气", "设立山西华新液化天然气集团有限公司", "3.00亿元"],
  77. ["交控集团", "设立山西交控新能源发展有限公司", "3.00亿元"],
  78. ],
  79. },
  80. meansList: [
  81. {
  82. label: "初步设计",
  83. value: "106",
  84. },
  85. {
  86. label: "详细设计",
  87. value: "103",
  88. },
  89. {
  90. label: "施工",
  91. value: "62",
  92. },
  93. {
  94. label: "完工",
  95. value: "35",
  96. },
  97. {
  98. label: "验收",
  99. value: "42",
  100. },
  101. {
  102. label: "结算",
  103. value: "33",
  104. },
  105. ],
  106. stockRightList: [
  107. {
  108. label: "前期准备",
  109. value: "66",
  110. },
  111. {
  112. label: "变更登记",
  113. value: "77",
  114. },
  115. ],
  116. costList: [
  117. {
  118. num: 160,
  119. value: 284,
  120. status: "正偏差",
  121. },
  122. {
  123. num: 280,
  124. value: 129,
  125. status: "容差内",
  126. },
  127. {
  128. num: 103,
  129. value: 1082,
  130. status: "负偏差",
  131. },
  132. ],
  133. investData: {
  134. investList: [
  135. {
  136. name: "大地控股",
  137. yse: "26.79",
  138. yqhte: "9.64",
  139. czrde: "121.59",
  140. jse: "120.13",
  141. fke: "36.4",
  142. url: "./img/logos/logo15.png",
  143. },
  144. {
  145. name: "云时代",
  146. yse: "21.79",
  147. yqhte: "9.64",
  148. czrde: "121.59",
  149. jse: "120.13",
  150. fke: "36.4",
  151. url: "./img/logos/logo16.png",
  152. },
  153. {
  154. name: "华舰体育",
  155. yse: "26.79",
  156. yqhte: "9.64",
  157. czrde: "121.59",
  158. jse: "120.13",
  159. fke: "36.4",
  160. url: "./img/logos/logo17.png",
  161. },
  162. {
  163. name: "神农科技",
  164. yse: "26.79",
  165. yqhte: "9.64",
  166. czrde: "121.59",
  167. jse: "120.13",
  168. fke: "36.4",
  169. url: "./img/logos/logo18.png",
  170. },
  171. {
  172. name: "山西焦煤",
  173. yse: "26.79",
  174. yqhte: "9.64",
  175. czrde: "121.59",
  176. jse: "120.13",
  177. fke: "36.4",
  178. url: "./img/logos/logo1.png",
  179. },
  180. {
  181. name: "晋能控股",
  182. yse: "26.79",
  183. yqhte: "9.64",
  184. czrde: "121.59",
  185. jse: "120.13",
  186. fke: "36.4",
  187. url: "./img/logos/logo2.png",
  188. },
  189. {
  190. name: "华阳新材",
  191. yse: "26.79",
  192. yqhte: "9.64",
  193. czrde: "121.59",
  194. jse: "120.13",
  195. fke: "36.4",
  196. url: "./img/logos/logo3.png",
  197. },
  198. {
  199. name: "潞安化工",
  200. yse: "26.79",
  201. yqhte: "9.64",
  202. czrde: "121.59",
  203. jse: "120.13",
  204. fke: "36.4",
  205. url: "./img/logos/logo4.png",
  206. },
  207. {
  208. name: "华新燃气",
  209. yse: "26.79",
  210. yqhte: "9.64",
  211. czrde: "121.59",
  212. jse: "120.13",
  213. fke: "36.4",
  214. url: "./img/logos/logo5.png",
  215. },
  216. {
  217. name: "太重集团",
  218. yse: "26.79",
  219. yqhte: "9.64",
  220. czrde: "121.59",
  221. jse: "120.13",
  222. fke: "36.4",
  223. url: "./img/logos/logo6.png",
  224. },
  225. {
  226. name: "国际能源",
  227. yse: "26.79",
  228. yqhte: "9.64",
  229. czrde: "121.59",
  230. jse: "120.13",
  231. fke: "36.4",
  232. url: "./img/logos/logo7.png",
  233. },
  234. {
  235. name: "华远陆港",
  236. yse: "26.79",
  237. yqhte: "9.64",
  238. czrde: "121.59",
  239. jse: "120.13",
  240. fke: "36.4",
  241. url: "./img/logos/logo8.png",
  242. },
  243. {
  244. name: "水控集团",
  245. yse: "26.79",
  246. yqhte: "9.64",
  247. czrde: "121.59",
  248. jse: "120.13",
  249. fke: "36.4",
  250. url: "./img/logos/logo9.png",
  251. },
  252. {
  253. name: "文旅集团",
  254. yse: "26.79",
  255. yqhte: "9.64",
  256. czrde: "121.59",
  257. jse: "120.13",
  258. fke: "36.4",
  259. url: "./img/logos/logo10.png",
  260. },
  261. {
  262. name: "交控集团",
  263. yse: "26.79",
  264. yqhte: "9.64",
  265. czrde: "121.59",
  266. jse: "120.13",
  267. fke: "36.4",
  268. url: "./img/logos/logo11.png",
  269. },
  270. {
  271. name: "航产集团",
  272. yse: "26.79",
  273. yqhte: "9.64",
  274. czrde: "121.59",
  275. jse: "120.13",
  276. fke: "36.4",
  277. url: "./img/logos/logo12.png",
  278. },
  279. {
  280. name: "山西建投",
  281. yse: "26.79",
  282. yqhte: "9.64",
  283. czrde: "121.59",
  284. jse: "120.13",
  285. fke: "36.4",
  286. url: "./img/logos/logo13.png",
  287. },
  288. {
  289. name: "汾酒集团",
  290. yse: "26.79",
  291. yqhte: "9.64",
  292. czrde: "121.59",
  293. jse: "120.13",
  294. fke: "36.4",
  295. url: "./img/logos/logo14.png",
  296. },
  297. ],
  298. },
  299. riskData: {
  300. x: [
  301. { name: "大地控股", value: [14, 13, 6, 15, 13, 4] },
  302. { name: "云时代", value: [15, 12, 12, 10, 24, 6] },
  303. { name: "华舰体育", value: [14, 13, 6, 15, 13, 4] },
  304. { name: "神农科技", value: [14, 13, 6, 15, 13, 4] },
  305. { name: "山西焦煤", value: [14, 13, 6, 15, 13, 4] },
  306. { name: "晋能控股", value: [14, 13, 6, 15, 13, 4] },
  307. { name: "华阳新材", value: [14, 13, 6, 15, 13, 4] },
  308. { name: "潞安化工", value: [14, 13, 6, 15, 13, 4] },
  309. { name: "华新燃气", value: [14, 13, 6, 15, 13, 4] },
  310. { name: "太重集团", value: [14, 13, 6, 15, 13, 4] },
  311. { name: "国际能源", value: [14, 13, 6, 15, 13, 4] },
  312. { name: "华远陆港", value: [14, 13, 6, 15, 13, 4] },
  313. { name: "水控集团", value: [14, 13, 6, 15, 13, 4] },
  314. { name: "文旅集团", value: [14, 13, 6, 15, 13, 4] },
  315. { name: "交控集团", value: [14, 13, 6, 15, 13, 4] },
  316. { name: "航产集团", value: [14, 13, 6, 15, 13, 4] },
  317. { name: "山西建投", value: [14, 13, 6, 15, 13, 4] },
  318. { name: "汾酒集团", value: [14, 13, 6, 15, 13, 4] },
  319. ],
  320. y1: [
  321. 120, 110, 200, 220, 123, 345, 323, 123, 233, 234, 123, 143, 120, 110,
  322. 20, 220, 123, 345,
  323. ],
  324. y2: [
  325. 120, 110, 210, 220, 123, 345, 323, 123, 233, 234, 123, 143, 120, 110,
  326. 20, 220, 123, 345,
  327. ],
  328. y3: [
  329. 120, 110, 230, 220, 123, 345, 323, 123, 233, 234, 123, 143, 120, 110,
  330. 20, 220, 123, 345,
  331. ],
  332. },
  333. inner: 0,
  334. innerDeg: 0,
  335. timer: null,
  336. witchs: 0,
  337. topIndex: 0,
  338. echartR1Fd1: true,
  339. echartR2Fd2: true,
  340. r3Index: 0,
  341. riskData1: {
  342. x: [
  343. "大地控股",
  344. "云时代",
  345. "华舰体育",
  346. "神农科技",
  347. "山西焦煤",
  348. "晋能控股",
  349. "华阳新材",
  350. "潞安化工",
  351. "华新燃气",
  352. "太重集团",
  353. "国际能源",
  354. "华远陆港",
  355. "水控集团",
  356. "文旅集团",
  357. "交控集团",
  358. "航产集团",
  359. "山西建投",
  360. "汾酒集团",
  361. ],
  362. y1: [
  363. 100, 45, 67, 110, 108, 120, 110, 45, 67, 110, 108, 34, 100, 45, 67,
  364. 110, 108, 34,
  365. ],
  366. y2: [
  367. 120, 50, 67, 130, 56, 233, 100, 78, 98, 100, 120, 78, 120, 90, 56,
  368. 120, 110, 78,
  369. ],
  370. y3: [
  371. 130, 76, 67, 120, 89, 111, 87, 123, 56, 65, 45, 98, 230, 78, 99, 130,
  372. 56, 98,
  373. ],
  374. y4: [
  375. 90, 100, 67, 90, 110, 120, 34, 231, 34, 78, 78, 100, 110, 120, 67, 89,
  376. 78, 110,
  377. ],
  378. y5: [
  379. 110, 110, 67, 110, 120, 95, 78, 45, 120, 110, 98, 233, 100, 45, 67,
  380. 98, 98, 34,
  381. ],
  382. },
  383. };
  384. },
  385. created () { },
  386. beforeDestroy () {
  387. clearInterval(this.timer);
  388. clearInterval(this.time1);
  389. clearInterval(this.time2);
  390. },
  391. mounted () {
  392. this.time4s();
  393. this.timeNs();
  394. this.filterLpData();
  395. this.lpRotate();
  396. setTimeout(() => {
  397. this.leftEcharts1Fun();
  398. this.leftEcharts2Fun();
  399. this.leftEcharts3Fun();
  400. this.leftEcharts4Fun();
  401. this.leftEcharts5Fun();
  402. this.leftEcharts6Fun();
  403. this.leftEcharts7Fun();
  404. this.leftEcharts8Fun();
  405. this.leftEcharts9Fun();
  406. this.leftEcharts10Fun();
  407. this.leftEcharts11Fun();
  408. this.leftEcharts12Fun();
  409. this.leftEcharts13Fun();
  410. this.chinaEchartsFun();
  411. this.initChartR1();
  412. this.initChartR2();
  413. this.initChartR4();
  414. });
  415. },
  416. methods: {
  417. initChartR1 () {
  418. let right5 = [
  419. [
  420. ["山西焦煤", 43.8],
  421. ["晋能控股", 49.8],
  422. ["华阳新材", 46],
  423. ["潞安化工", 53.8],
  424. ["华新燃气", 59],
  425. ["太重集团", 57],
  426. ["国际能源", 44],
  427. ["华远陆港", 46],
  428. ["万家寨水控", 57],
  429. ["文旅集团", 62.8],
  430. ["山西交控", 55.8],
  431. ["航产集团", 44.2],
  432. ["山西建投", 49.6],
  433. ["汾酒集团", 66.65],
  434. ["大地控股", 45.6],
  435. ["云时代", 63.9],
  436. ["华舰体育", 70.6],
  437. ["神农科技", 45.6],
  438. ],
  439. [
  440. ["山西焦煤", 25.8],
  441. ["晋能控股", 25.8],
  442. ["华阳新材", 38],
  443. ["潞安化工", 37.8],
  444. ["华新燃气", 28],
  445. ["太重集团", 38],
  446. ["国际能源", 28],
  447. ["华远陆港", 38],
  448. ["万家寨水控", 35.8],
  449. ["文旅集团", 22.8],
  450. ["山西交控", 25.8],
  451. ["航产集团", 24.2],
  452. ["山西建投", 23.6],
  453. ["汾酒集团", 26.65],
  454. ["大地控股", 25.6],
  455. ["云时代", 30.9],
  456. ["华舰体育", 38.6],
  457. ["神农科技", 35.6],
  458. ],
  459. [
  460. ["山西焦煤", 15.8],
  461. ["晋能控股", 15.8],
  462. ["华阳新材", 8],
  463. ["潞安化工", 17.8],
  464. ["华新燃气", 18],
  465. ["太重集团", 18],
  466. ["国际能源", 8],
  467. ["华远陆港", 5.8],
  468. ["万家寨水控", 5.8],
  469. ["文旅集团", 2.8],
  470. ["山西交控", 5.8],
  471. ["航产集团", 12.2],
  472. ["山西建投", 13.6],
  473. ["汾酒集团", 16.65],
  474. ["大地控股", 15.6],
  475. ["云时代", 13.9],
  476. ["华舰体育", 18.6],
  477. ["神农科技", 15.6],
  478. ],
  479. ];
  480. let that = this;
  481. let sumA = 42;
  482. // 所有在100范围外的全部变成0,其他值相应增加/减少sumA
  483. right5.forEach((item) => {
  484. item.forEach((item2) => {
  485. if (Number(item2[1]) < 0) {
  486. item2[1] = that.$set(item2, 1, Number(that.numSub(item2[1], sumA)));
  487. } else if (Number(item2[1]) > 0) {
  488. item2[1] = that.$set(item2, 1, Number(item2[1]) + sumA);
  489. }
  490. if (Number(item2[1]) < -100 - sumA) {
  491. item2[1] = that.$set(item2, 1, 0);
  492. item2[1] = that.$set(item2, 2, 0);
  493. } else if (Number(item2[1]) > 100 + sumA) {
  494. item2[1] = that.$set(item2, 1, 0);
  495. item2[1] = that.$set(item2, 2, 0);
  496. }
  497. });
  498. });
  499. const itemStyle = {
  500. // opacity: 0.8,
  501. shadowBlur: 10,
  502. shadowOffsetX: 0,
  503. shadowOffsetY: 0,
  504. shadowColor: "rgba(0,0,0,0.3)",
  505. };
  506. let echartR1d1 = echarts.init(this.$refs["echartR1"]);
  507. echartR1d1.on("showTip", (params) => {
  508. // 如果是7或者15并且满足防抖则切换
  509. if (
  510. (params.dataIndex == 5 || params.dataIndex == 11) &&
  511. that.echartR2Fd
  512. ) {
  513. that.echartR2Fd = false;
  514. setTimeout(() => {
  515. option.dataZoom[0].endValue = option.dataZoom[0].endValue + 6;
  516. option.dataZoom[0].startValue = option.dataZoom[0].startValue + 6;
  517. echartR1d1.setOption(option);
  518. // 防止勿刷新做的防抖
  519. setTimeout(() => {
  520. that.echartR2Fd = true;
  521. }, 2000);
  522. }, 1900);
  523. // 如果是17表示到了最后一个,那么重新来一遍
  524. } else if (params.dataIndex == 17 && that.echartR2Fd) {
  525. that.echartR2Fd = false;
  526. setTimeout(() => {
  527. option.dataZoom[0].endValue = 0;
  528. option.dataZoom[0].startValue = 5;
  529. echartR1d1.setOption(option);
  530. // 防止勿刷新做的防抖
  531. setTimeout(() => {
  532. that.echartR2Fd = true;
  533. }, 2000);
  534. }, 1900);
  535. }
  536. });
  537. let option = {
  538. color: ["#74a55d", "#cea446", "#b84b4b"],
  539. dataZoom: [
  540. {
  541. // start: 9,//默认为@
  542. // end: 100,//黑认认为1@0
  543. type: "slider",
  544. show: false,
  545. // xAxisIndex: [0]
  546. handlesize: 0, //滑动条的 左右2个滑动条的大小
  547. startValue: 5, // 初始显示值
  548. endValue: 0, // 结束显示值
  549. height: 10, //组件高度
  550. left: "5%",
  551. right: "4%", //右边的距离
  552. bottom: "25%", //底边的距离
  553. borderColor: "#939",
  554. fillerColor: "#269cdb",
  555. borderRadius: 5,
  556. backgroundColor: "#33384b", //两边未选中的滑动条区域的额色
  557. showDataShadow: false, //是否显示数据阴影
  558. showDetail: false, //即拖拽时候是否显示详细数值信息
  559. truerealtime: true, //是否实时更新
  560. filterMode: "filter",
  561. },
  562. {
  563. type: "inside",
  564. show: true,
  565. start: 1,
  566. end: 100,
  567. zoomOnMouseWheel: false, //滚轮是否触发缩放
  568. moveOnMouseMove: false, //鼠标滚轮触发滚动
  569. },
  570. ],
  571. legend: {
  572. top: 10,
  573. data: ["正偏差", "容差", "负偏差"],
  574. textStyle: {
  575. fontSize: 20,
  576. color: "#fff",
  577. fontFamily: "Microsoft YaHei",
  578. },
  579. },
  580. textStyle: {
  581. color: "#fff",
  582. },
  583. tooltip: {
  584. show: true,
  585. trigger: "axis",
  586. backgroundColor: "rgba(50,50,50,0.7)", // 提示框浮层的背景颜色
  587. textStyle: {
  588. color: "#FFF", // 文字的颜色
  589. fontSize: "20", // 文字字体大小
  590. fontFamily: "Microsoft YaHei",
  591. },
  592. formatter: (data) => {
  593. return `${
  594. data[0].value[0]
  595. }<br /><span style="display:inline-block;border-radius:50%; width:7px;height:7px;background-color:${
  596. data[0].color
  597. }"></span> ${data[0].seriesName}:${that.numFormat(
  598. data[0].data[2]
  599. )}亿<br /><span style="display:inline-block;border-radius:50%; width:7px;height:7px;background-color:${
  600. data[1].color
  601. }"></span> ${data[1].seriesName}:${that.numFormat(
  602. data[1].data[2]
  603. )}亿<br /><span style="display:inline-block;border-radius:50%; width:7px;height:7px;background-color:${
  604. data[2].color
  605. }"></span> ${data[2].seriesName}:${that.numFormat(
  606. data[2].data[2]
  607. )}亿`;
  608. },
  609. axisPointer: {
  610. // // type: 'cross',',
  611. },
  612. },
  613. grid: {
  614. top: "10%",
  615. right: "4%",
  616. left: "5%",
  617. bottom: "5%",
  618. },
  619. yAxis: {
  620. min: -101 - sumA,
  621. max: 101 + sumA,
  622. maxInterval: 1,
  623. splitLine: {
  624. show: false,
  625. // interval:,
  626. lineStyle: {
  627. color: "#68b4dd66",
  628. type: "dashed",
  629. },
  630. },
  631. axisLine: {
  632. show: false,
  633. },
  634. axisTick: {
  635. show: false,
  636. },
  637. axisLabel: {
  638. show: true,
  639. // formatter: '{value}',
  640. formatter(data) {
  641. if (data == 100 + sumA) {
  642. return "100%";
  643. } else if (data == -100 - sumA) {
  644. return "-100%";
  645. } else if (data == -5 - sumA) {
  646. return "-5%";
  647. } else if (data == 5 + sumA) {
  648. return "5%";
  649. }
  650. },
  651. textStyle: {
  652. color: "#fff",
  653. fontSize: "20",
  654. fontFamily: "Microsoft YaHei",
  655. },
  656. },
  657. nameTextStyle: {
  658. color: "#fff",
  659. fontSize: 20,
  660. fontFamily: "Microsoft YaHei",
  661. },
  662. },
  663. xAxis: {
  664. data: commonCompany,
  665. axisLine: {
  666. show: false, //隐藏X轴轴线
  667. lineStyle: {
  668. color: "#005094",
  669. width: 1,
  670. },
  671. },
  672. splitLine: {
  673. show: true,
  674. lineStyle: {
  675. color: "#68b4dd66",
  676. type: "dashed",
  677. },
  678. },
  679. axisTick: {
  680. show: true, //隐藏X轴刻度
  681. },
  682. axisLabel: {
  683. show: true,
  684. // rotate: 40,
  685. padding: [0, 0, 0, 0],
  686. textStyle: {
  687. color: "#fff", //X轴文字颜色
  688. fontSize: 20,
  689. fontFamily: "Microsoft YaHei",
  690. },
  691. },
  692. },
  693. series: [
  694. {
  695. name: "正偏差",
  696. type: "scatter",
  697. itemStyle: itemStyle,
  698. data: right5[0],
  699. symbolSize: function (data) {
  700. if ((data[2] > 0 && data[2] < 50) || data[2] == 50) {
  701. return 40;
  702. } else if ((data[2] > 50 && data[2] < 100) || data[2] == 100) {
  703. return 70;
  704. } else if (data[2] > 100) {
  705. return 100;
  706. }
  707. },
  708. markLine: {
  709. symbol: "none",
  710. data: [
  711. {
  712. name: "100%",
  713. yAxis: 100 + sumA,
  714. lineStyle: {
  715. // color: '#fff',
  716. },
  717. label: {
  718. show: false,
  719. formatter: "{b}",
  720. position: "right",
  721. color: "#fff",
  722. fontSize: 20,
  723. label: {
  724. show: false,
  725. },
  726. },
  727. },
  728. {
  729. name: "5%",
  730. yAxis: 5 + sumA,
  731. lineStyle: {
  732. // color: '#fff',
  733. },
  734. label: {
  735. show: false,
  736. formatter: "{b}",
  737. position: "right",
  738. color: "#fff",
  739. fontSize: 20,
  740. },
  741. },
  742. {
  743. name: "-5%",
  744. yAxis: -5 - sumA,
  745. lineStyle: {
  746. // color: '#fff',
  747. },
  748. label: {
  749. show: false,
  750. formatter: "{b}",
  751. position: "right",
  752. color: "#fff",
  753. fontSize: 20,
  754. },
  755. },
  756. {
  757. name: "100%",
  758. yAxis: -100 - sumA,
  759. lineStyle: {
  760. // color: '#fff',
  761. },
  762. label: {
  763. show: false,
  764. formatter: "{b}",
  765. position: "right",
  766. color: "#fff",
  767. fontSize: 20,
  768. },
  769. },
  770. ],
  771. },
  772. },
  773. {
  774. name: "容差",
  775. type: "scatter",
  776. itemStyle: itemStyle,
  777. data: right5[1],
  778. symbolSize: function (data) {
  779. if ((data[1] > 0 && data[1] < 50) || data[1] == 50) {
  780. return 40;
  781. } else if ((data[1] > 50 && data[1] < 100) || data[1] == 100) {
  782. return 70;
  783. } else if (data[1] > 100) {
  784. return 100;
  785. }
  786. },
  787. },
  788. {
  789. name: "负偏差",
  790. type: "scatter",
  791. itemStyle: itemStyle,
  792. data: right5[2],
  793. symbolSize: function (data) {
  794. if ((data[1] > 0 && data[1] < 50) || data[1] == 50) {
  795. return 40;
  796. } else if ((data[1] > 50 && data[1] < 100) || data[1] == 100) {
  797. return 70;
  798. } else if (data[1] > 100) {
  799. return 100;
  800. }
  801. },
  802. },
  803. ],
  804. };
  805. echartR1d1.on("click", function (param) {
  806. // that.showChartLTipDouble(param.name)
  807. that.projectListTipShow = true;
  808. });
  809. echartR1d1.setOption(option);
  810. tools.loopShowTooltip(echartR1d1, option, {
  811. interval: 2000,
  812. loopSeries: true,
  813. });
  814. },
  815. initChartR2 () {
  816. let that = this;
  817. that.right1Chart = echarts.init(this.$refs["echartR2"]);
  818. that.right1Chart.on("showTip", (params) => {
  819. that.r3Index = params.dataIndex;
  820. that.initChartR3();
  821. console.log(that.r3Index);
  822. // 如果是7或者15并且满足防抖则切换
  823. if (
  824. (params.dataIndex == 5 || params.dataIndex == 11) &&
  825. that.echartR1Fd1
  826. ) {
  827. that.echartR1Fd1 = false;
  828. setTimeout(() => {
  829. option.dataZoom[0].endValue = option.dataZoom[0].endValue + 6;
  830. option.dataZoom[0].startValue = option.dataZoom[0].startValue + 6;
  831. that.right1Chart.setOption(option);
  832. // 防止勿刷新做的防抖
  833. setTimeout(() => {
  834. that.echartR1Fd1 = true;
  835. }, 2000);
  836. }, 1900);
  837. // 如果是17表示到了最后一个,那么重新来一遍
  838. } else if (params.dataIndex == 17 && that.echartR1Fd1) {
  839. that.echartR1Fd1 = false;
  840. setTimeout(() => {
  841. option.dataZoom[0].endValue = 0;
  842. option.dataZoom[0].startValue = 5;
  843. that.right1Chart.setOption(option);
  844. // 防止勿刷新做的防抖
  845. setTimeout(() => {
  846. that.echartR1Fd1 = true;
  847. }, 2000);
  848. }, 1900);
  849. }
  850. });
  851. let option = {
  852. color: [
  853. {
  854. type: "linear",
  855. x: 0,
  856. y: 0,
  857. x2: 0,
  858. y2: 1,
  859. colorStops: [
  860. {
  861. offset: 0,
  862. color: "#91231F", // 0% 处的颜色
  863. },
  864. {
  865. offset: 1,
  866. color: "#F98784", // 100% 处的颜色
  867. },
  868. ],
  869. global: false, // 缺省为 false
  870. },
  871. {
  872. type: "linear",
  873. x: 0,
  874. y: 0,
  875. x2: 0,
  876. y2: 1,
  877. colorStops: [
  878. {
  879. offset: 0,
  880. color: "#9F7F00", // 0% 处的颜色
  881. },
  882. {
  883. offset: 1,
  884. color: "#FBE463", // 100% 处的颜色
  885. },
  886. ],
  887. global: false, // 缺省为 false
  888. },
  889. {
  890. type: "linear",
  891. x: 0,
  892. y: 0,
  893. x2: 0,
  894. y2: 1,
  895. colorStops: [
  896. {
  897. offset: 0,
  898. color: "#07806E", // 0% 处的颜色
  899. },
  900. {
  901. offset: 1,
  902. color: "#79FFEB", // 100% 处的颜色
  903. },
  904. ],
  905. global: false, // 缺省为 false
  906. },
  907. ],
  908. dataZoom: [
  909. {
  910. // start: 9,//默认为@
  911. // end: 100,//黑认认为1@0
  912. type: "slider",
  913. show: false,
  914. // xAxisIndex: [0]
  915. handlesize: 0, //滑动条的 左右2个滑动条的大小
  916. startValue: 5, // 初始显示值
  917. endValue: 0, // 结束显示值
  918. height: 10, //组件高度
  919. left: "5%",
  920. right: "4%", //右边的距离
  921. bottom: "25%", //底边的距离
  922. borderColor: "#939",
  923. fillerColor: "#269cdb",
  924. borderRadius: 5,
  925. backgroundColor: "#33384b", //两边未选中的滑动条区域的额色
  926. showDataShadow: false, //是否显示数据阴影
  927. showDetail: false, //即拖拽时候是否显示详细数值信息
  928. truerealtime: true, //是否实时更新
  929. filterMode: "filter",
  930. },
  931. {
  932. type: "inside",
  933. show: true,
  934. start: 1,
  935. end: 100,
  936. zoomOnMouseWheel: false, //滚轮是否触发缩放
  937. moveOnMouseMove: false, //鼠标滚轮触发滚动
  938. },
  939. ],
  940. legend: {
  941. top: 10,
  942. right: 10,
  943. textStyle: {
  944. fontSize: 20,
  945. color: "#fff",
  946. fontFamily: "Microsoft YaHei",
  947. },
  948. itemStyle: {
  949. borderCap: "round",
  950. },
  951. },
  952. tooltip: {
  953. trigger: "item",
  954. show: true,
  955. position: "top",
  956. backgroundColor: "rgba(50,50,50,0.7)", // 提示框浮层的背景颜色
  957. textStyle: {
  958. color: "#fff",
  959. fontStyle: "normal", // 文字字体的风格('normal',无样式;'italic',斜体;'oblique',倾斜字体)
  960. fontWeight: "normal", // 文字字体的粗细('normal',无样式;'bold',加粗;'bolder',加粗的基础上再加粗;'lighter',变细;数字定义粗细也可以,取值范围100至700)
  961. fontSize: "28", // 文字字体大小
  962. },
  963. formatter: function (p) {
  964. console.log(p);
  965. return p.name + "<br/>" + p.marker + p.seriesName + ": " + p.value;
  966. },
  967. },
  968. grid: {
  969. left: "3%",
  970. right: "4%",
  971. bottom: "3%",
  972. containLabel: true,
  973. },
  974. xAxis: [
  975. {
  976. type: "category",
  977. data: that.riskData.x.map((item) => item.name),
  978. axisLine: {
  979. show: true,
  980. lineStyle: {
  981. color: "rgba(0, 80, 148, .8)",
  982. },
  983. },
  984. axisTick: {
  985. show: false,
  986. },
  987. axisLabel: {
  988. color: "#fff",
  989. rotate: 20,
  990. fontSize: 22,
  991. },
  992. },
  993. ],
  994. yAxis: [
  995. {
  996. type: "value",
  997. axisLabel: {
  998. color: "#fff",
  999. fontSize: 22,
  1000. },
  1001. splitLine: {
  1002. show: true,
  1003. lineStyle: {
  1004. color: "rgba(104, 180, 221, .2)",
  1005. type: "dashed",
  1006. },
  1007. },
  1008. },
  1009. ],
  1010. series: [
  1011. {
  1012. name: "低风险",
  1013. type: "bar",
  1014. stack: "Ad",
  1015. barWidth: 14,
  1016. emphasis: {
  1017. focus: "series",
  1018. },
  1019. itemStyle: {
  1020. barBorderRadius: [15, 15, 15, 15],
  1021. },
  1022. data: that.riskData.y1,
  1023. },
  1024. {
  1025. name: "中风险",
  1026. type: "bar",
  1027. barWidth: 14,
  1028. stack: "Ad",
  1029. itemStyle: {
  1030. barBorderRadius: [15, 15, 15, 15],
  1031. },
  1032. emphasis: {
  1033. focus: "series",
  1034. },
  1035. data: that.riskData.y2,
  1036. },
  1037. {
  1038. name: "高风险",
  1039. type: "bar",
  1040. barWidth: 14,
  1041. stack: "Ad",
  1042. itemStyle: {
  1043. barBorderRadius: [15, 15, 15, 15],
  1044. },
  1045. emphasis: {
  1046. focus: "series",
  1047. },
  1048. data: that.riskData.y3,
  1049. },
  1050. ],
  1051. };
  1052. that.right1Chart.setOption(option);
  1053. tools.loopShowTooltip(that.right1Chart, option, {
  1054. interval: 2000,
  1055. loopSeries: true,
  1056. });
  1057. },
  1058. initChartR3 () {
  1059. let that = this;
  1060. that.right3Chart = echarts.init(this.$refs["echartR3"]);
  1061. let option = {
  1062. radar: {
  1063. // shape: 'circle',
  1064. splitNumber: 3,
  1065. splitLine: {
  1066. lineStyle: {
  1067. color: ["#DD5955", "#39e1d0", "#2e3d45"],
  1068. },
  1069. },
  1070. splitArea: {
  1071. areaStyle: {
  1072. color: [
  1073. "rgba(88,247,223,0.2)",
  1074. "rgba(255, 224, 54, 0.2)",
  1075. "rgba(221,89,85,0.3)",
  1076. ],
  1077. },
  1078. },
  1079. indicator: [
  1080. { name: "安全风险", max: 25 },
  1081. { name: "付款风险", max: 25 },
  1082. { name: "合同风险", max: 25 },
  1083. { name: "结算风险", max: 25 },
  1084. { name: "进度风险", max: 25 },
  1085. { name: "质量风险", max: 25 },
  1086. ],
  1087. },
  1088. series: [
  1089. {
  1090. name: "风险",
  1091. type: "radar",
  1092. symbol: "circle",
  1093. label: {
  1094. show: true,
  1095. formatter: function (params) {
  1096. return params.value;
  1097. },
  1098. fontSize: 24,
  1099. color: "#68BDFF",
  1100. },
  1101. data: [
  1102. {
  1103. value: that.riskData.x[that.r3Index].value,
  1104. areaStyle: {
  1105. color: "#112b75",
  1106. },
  1107. lineStyle: {
  1108. width: 4,
  1109. color: "#60C1FF",
  1110. },
  1111. label: {
  1112. fontSize: 22,
  1113. },
  1114. },
  1115. ],
  1116. },
  1117. ],
  1118. };
  1119. that.right3Chart.setOption(option);
  1120. },
  1121. initChartR4 () {
  1122. let that = this;
  1123. that.right4Chart = echarts.init(this.$refs["echartR4"]);
  1124. that.right4Chart.on("showTip", (params) => {
  1125. // 如果是7或者15并且满足防抖则切换
  1126. if (
  1127. (params.dataIndex == 5 || params.dataIndex == 11) &&
  1128. that.echartR2Fd2
  1129. ) {
  1130. that.echartR2Fd2 = false;
  1131. setTimeout(() => {
  1132. option.dataZoom[0].endValue = option.dataZoom[0].endValue + 6;
  1133. option.dataZoom[0].startValue = option.dataZoom[0].startValue + 6;
  1134. that.right4Chart.setOption(option);
  1135. // 防止勿刷新做的防抖
  1136. setTimeout(() => {
  1137. that.echartR2Fd2 = true;
  1138. }, 2000);
  1139. }, 1900);
  1140. // 如果是17表示到了最后一个,那么重新来一遍
  1141. } else if (params.dataIndex == 17 && that.echartR2Fd2) {
  1142. that.echartR2Fd2 = false;
  1143. setTimeout(() => {
  1144. option.dataZoom[0].endValue = 0;
  1145. option.dataZoom[0].startValue = 5;
  1146. that.right4Chart.setOption(option);
  1147. // 防止勿刷新做的防抖
  1148. setTimeout(() => {
  1149. that.echartR2Fd2 = true;
  1150. }, 2000);
  1151. }, 1900);
  1152. }
  1153. });
  1154. let option = {
  1155. dataZoom: [
  1156. {
  1157. // start: 9,//默认为@
  1158. // end: 100,//黑认认为1@0
  1159. type: "slider",
  1160. show: false,
  1161. // xAxisIndex: [0]
  1162. handlesize: 0, //滑动条的 左右2个滑动条的大小
  1163. startValue: 5, // 初始显示值
  1164. endValue: 0, // 结束显示值
  1165. height: 10, //组件高度
  1166. left: "5%",
  1167. right: "4%", //右边的距离
  1168. bottom: "25%", //底边的距离
  1169. borderColor: "#939",
  1170. fillerColor: "#269cdb",
  1171. borderRadius: 5,
  1172. backgroundColor: "#33384b", //两边未选中的滑动条区域的额色
  1173. showDataShadow: false, //是否显示数据阴影
  1174. showDetail: false, //即拖拽时候是否显示详细数值信息
  1175. truerealtime: true, //是否实时更新
  1176. filterMode: "filter",
  1177. },
  1178. {
  1179. type: "inside",
  1180. show: true,
  1181. start: 1,
  1182. end: 100,
  1183. zoomOnMouseWheel: false, //滚轮是否触发缩放
  1184. moveOnMouseMove: false, //鼠标滚轮触发滚动
  1185. },
  1186. ],
  1187. title: {
  1188. text: "企业后评价执行情况",
  1189. left: "center",
  1190. textStyle: {
  1191. color: "#fff",
  1192. fontSize: 32,
  1193. },
  1194. },
  1195. tooltip: {
  1196. trigger: "item",
  1197. show: true,
  1198. position: "top",
  1199. backgroundColor: "rgba(50,50,50,0.7)", // 提示框浮层的背景颜色
  1200. textStyle: {
  1201. color: "#fff",
  1202. fontStyle: "normal", // 文字字体的风格('normal',无样式;'italic',斜体;'oblique',倾斜字体)
  1203. fontWeight: "normal", // 文字字体的粗细('normal',无样式;'bold',加粗;'bolder',加粗的基础上再加粗;'lighter',变细;数字定义粗细也可以,取值范围100至700)
  1204. fontSize: "28", // 文字字体大小
  1205. },
  1206. formatter: function (p) {
  1207. console.log(p);
  1208. return p.name + "<br/>" + p.marker + p.seriesName + ": " + p.value;
  1209. },
  1210. },
  1211. legend: {
  1212. show: true,
  1213. textStyle: {
  1214. fontSize: 24,
  1215. color: "rgba(255, 255, 255, .6)",
  1216. },
  1217. inactiveColor: "#fff",
  1218. itemHeight: 20,
  1219. top: "15%",
  1220. backgroundColor: "transparent",
  1221. data: [
  1222. {
  1223. name: "应首评项目数",
  1224. icon: "image://data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAUCAYAAAC58NwRAAAAAXNSR0IArs4c6QAAAWdJREFUOE+N0k8og3EYB/Dvs8P8CSlTxJGD8u+yTYmNm0gJQznIQRxMoV2cXWSKCznIQdk7SkmOEomNg41y4EjURkLZFI/ed3vX+5v82nt4357n9/s8Pe/v9xCST6+fzVHGKAMDAKqT6WsCNi2ElS0Xfak5Ul+tfi77YewBqNcLpH0vTYSOAxc9kFo5wghINus2lJMPOzl8PE6EpX8qC2lmuMmp8CmABn3FVgJ4bIloLggEnwRzRg6F4wSY9fR2J1CUnYieY0DPrgDiUvASA7pF8PGnJXsp4LEC3wx4L4DAY1pLLQq7GVjM5KcJmKC2fc76fNeOtU6GmBDOzYMt04sLmQjt2sUZRyMCjAEYBKNKyxNuAGwUA8vCaBhbcSrMxviwj1JFU7Nk3NC49iqAk+FCObAu3AngfLJCDmpmjgVwNdskB5UjPgHcrvbLQXmXVwD3O1NyYGmeFkD0aF4OCmqHBPAWXhfAL4WqeuKVsFKCAAAAAElFTkSuQmCC",
  1225. },
  1226. {
  1227. name: "已完成首评项目数",
  1228. icon: "image://data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAUCAYAAAC58NwRAAAAAXNSR0IArs4c6QAAAXFJREFUOE+V0kFLAkEUB/D/G9eW3UN1sFPYNaJAu2R0Coog8mq0fQH1kEVBhz5Ah6CoLhrdE/LqKQo6VZ7SKCKChKRTBRmhbq47oabsZC22h1nem/k93jCP8P0F+E2HQ1dD4NAAGqqn+TUI8YpciCVo8LOaoeoSKOR6GTOSxOFtFLD+OSFtmpI/obqfqFqZ6Wrqr8NNyJHJK4aPtNLDAue0+1vlnzkiHqG5YvYcwGhj08MUhJyuWhgrvyBjFq3uogp0AB2NbFR2o5sctfCNVxDWc1ag/xPQR0tLXqYg6HTBBMd++RXplpZK2Qg4dtq5NAiLNM3v5a6ilALBY4s4rvKKMdLWw4EjU4E0U3s462gwXQ3DMLeJsfpgmCYgsSVTLkSF0bC24r9NcWucHPA1izZnyXpg8vRIAMfjU/ZgLH4ogDNt1h4Mb8YEcLkSsgf9y+sCuNtaswd92qoAHuMb9qBnIiiA55M9e9DpnRfAe/pAAF9gqJXUYWdYUwAAAABJRU5ErkJggg==",
  1229. },
  1230. {
  1231. name: "应再评项目数",
  1232. icon: "image://data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAUCAYAAAC58NwRAAAAAXNSR0IArs4c6QAAAV5JREFUOE+V0j8oxGEYwPHvo/wMjgyUslAWcTFhMRiEsHLKYDzFKZRBSskgR7mUG29QjpX86QaDwdlwLotiUYpB/gyHPDru9HsPP+c3vL+e530/T8/b+wipb31KrYJ8vAi9QE0qfYqy+vBEsHtKnpM5SS4bC1qW+8amQl26gP0vcPSSQ2fXiFxJsnKhi8PfDtvgsVo0yJZfhwQCP1XOzCn4ZNuvB0BjerO4HNxtn1FsB24vDRZNggRgpdPNXsjL/4wST7AXNEDiv+DxW0slFVDTCvoG8QjcXGS2NKc+hMVsLo0yLFsBzZNnDoHaP9CJWtRn9XDA8WsOHR8PZx+NQhcDqvQhVH3klTMRVu4fWTZGw97Ktl/VHrePyVfRr1myHwhP3xnAM1nkDJbGzw0wOFvpDCa8+waYCTY5g/6esAFCax5n0NI6b4DI7qgzcDeOGSAW9TuD0up+A1zHQwZ4B2JrgI9r4uMDAAAAAElFTkSuQmCC",
  1233. },
  1234. {
  1235. name: "已完成再评项目数",
  1236. icon: "image://data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAUCAYAAAC58NwRAAAAAXNSR0IArs4c6QAAAWBJREFUOE9jZICC/1e12Rh4uDIY/jNGMjAw6ECFrzAw/l/O8OXbDEbtq79AYowg4v9jS2mGv3+3MDAwGMAMQKMvMDAz+zDKHn/KCDaZm/skHsUwvRcZfr8zZ/z/0CyX4T/DJBwmowozMuQx/n9gdpyBgcECLsNpycAgXAPhvm1hYPgOkoaDEyANPxkYGNjgQjJbGRiYRSDcv28YGJ54I2v4SUDDWwaGJ17IGr5gcZIV1El/GRjetjMwfD+G5qSHpnkM/xknEufp//mM/2+rsDOwCoGCVZ+ApksMv9+ZERtxFxmYmb3BEYeaNHgyGf7/j2FgYNCEil9nYGRcwvDly3SUpIHslP8PzP4j8xkVTsENhaclZAWvLligaBAzOIFfw9ld1igajN2O4tewar49ioawxIP4NbQ0OqNoqKnfi19DXIoHioZFc3bg12Dt6YOi4ej2Lfg1yBn7o2h4dHYjigYAb0t88hVwEBYAAAAASUVORK5CYII=",
  1237. },
  1238. {
  1239. name: "再评达标项目数",
  1240. icon: "image://data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAUCAYAAAC58NwRAAAAAXNSR0IArs4c6QAAAWBJREFUOE+V0k8og2EcwPHvkzVZLLm6KItEzWlclIPbdhGKcsCJwzZFdtgOK+8OimIXTjgoSrisXByUgz8nE4mmXFwlZmuaPXr3r/eZ9sZ7eN9+v/f5/J6n3/MTFJ9wWFpTFqYFjAFdxfSthF1blo1wWHzpOaG/gppszkIM6C4VqPheW8ATCYkXoVdOW7g0WVyy8ZSdHhFYlF4E0SqV1bTEJwKaPAd6S3/aWmHEU4j2Y/D4pJgLHWQAaykd9ENDfSH6SEJkTQGZ/4LkryO1O2DYDbkcHB7DQ6LiSAua9AlQN67SAQl+4Y3KWtt7vq1Os04JuPm04/rrxcUt4M5fnHE00jXMIBgHOor5eyQ7dd+sK6NhPEpAk9IYL4VEuWh5lowLfKE3BUS1RnMwOZtQwNaqwxwMTp0p4Gizzxz0D+0p4PRg1Bw4B1YUED+ZMwctrnkFPF8tm4OmzgkFvN5tK+AHKZh4TU8krdoAAAAASUVORK5CYII=",
  1241. },
  1242. ],
  1243. },
  1244. grid: {
  1245. top: "30%",
  1246. left: "3%",
  1247. right: "4%",
  1248. bottom: "3%",
  1249. containLabel: true,
  1250. },
  1251. xAxis: {
  1252. data: that.riskData1.x,
  1253. type: "category",
  1254. splitLine: {
  1255. show: false,
  1256. },
  1257. alignTicks: true,
  1258. axisLine: {
  1259. show: true,
  1260. lineStyle: {
  1261. color: "rgba(0, 80, 148, .8)",
  1262. },
  1263. },
  1264. axisTick: {
  1265. show: false,
  1266. },
  1267. axisLabel: {
  1268. color: "#fff",
  1269. fontSize: 22,
  1270. rotate: 20,
  1271. },
  1272. },
  1273. yAxis: {
  1274. type: "value",
  1275. splitLine: {
  1276. show: true,
  1277. lineStyle: {
  1278. color: "rgba(104, 180, 221, .2)",
  1279. type: "dashed",
  1280. },
  1281. },
  1282. axisLine: {
  1283. show: false,
  1284. },
  1285. axisTick: {
  1286. show: false,
  1287. },
  1288. axisLabel: {
  1289. color: "#fff",
  1290. fontSize: 22,
  1291. },
  1292. },
  1293. series: [
  1294. {
  1295. type: "bar",
  1296. name: "应首评项目数",
  1297. barWidth: 4,
  1298. barGap: "600%",
  1299. data: that.riskData1.y1,
  1300. label: {
  1301. show: true,
  1302. position: "top",
  1303. formatter: " ",
  1304. width: 6,
  1305. height: 6,
  1306. borderRadius: 50,
  1307. borderWidth: 6,
  1308. borderColor: "#40A9FF",
  1309. backgroundColor: "#fff",
  1310. },
  1311. itemStyle: {
  1312. color: {
  1313. x: 0,
  1314. y: 0,
  1315. x2: 0,
  1316. y2: 1,
  1317. colorStops: [
  1318. {
  1319. offset: 0,
  1320. color: "#40A9FF", // 0% 处的颜色
  1321. },
  1322. {
  1323. offset: 1,
  1324. color: "#092351", // 100% 处的颜色
  1325. },
  1326. ],
  1327. },
  1328. },
  1329. },
  1330. {
  1331. type: "bar",
  1332. name: "已完成首评项目数",
  1333. barGap: "600%",
  1334. barWidth: 4,
  1335. data: that.riskData1.y2,
  1336. label: {
  1337. show: true,
  1338. position: "top",
  1339. formatter: " ",
  1340. width: 6,
  1341. height: 6,
  1342. borderRadius: 50,
  1343. borderWidth: 6,
  1344. borderColor: "#58F7DF",
  1345. backgroundColor: "#fff",
  1346. },
  1347. itemStyle: {
  1348. color: {
  1349. x: 0,
  1350. y: 0,
  1351. x2: 0,
  1352. y2: 1,
  1353. colorStops: [
  1354. {
  1355. offset: 0,
  1356. color: "#58F7DF", // 0% 处的颜色
  1357. },
  1358. {
  1359. offset: 1,
  1360. color: "#092351", // 100% 处的颜色
  1361. },
  1362. ],
  1363. },
  1364. },
  1365. },
  1366. {
  1367. type: "bar",
  1368. name: "应再评项目数",
  1369. barGap: "600%",
  1370. barWidth: 4,
  1371. data: that.riskData1.y3,
  1372. label: {
  1373. show: true,
  1374. position: "top",
  1375. formatter: " ",
  1376. width: 6,
  1377. height: 6,
  1378. borderRadius: 50,
  1379. borderWidth: 6,
  1380. borderColor: "#B78CFF",
  1381. backgroundColor: "#fff",
  1382. },
  1383. itemStyle: {
  1384. color: {
  1385. x: 0,
  1386. y: 0,
  1387. x2: 0,
  1388. y2: 1,
  1389. colorStops: [
  1390. {
  1391. offset: 0,
  1392. color: "#B78CFF", // 0% 处的颜色
  1393. },
  1394. {
  1395. offset: 1,
  1396. color: "#092351", // 100% 处的颜色
  1397. },
  1398. ],
  1399. },
  1400. },
  1401. },
  1402. {
  1403. type: "bar",
  1404. name: "已完成再评项目数",
  1405. barGap: "600%",
  1406. barWidth: 4,
  1407. data: that.riskData1.y4,
  1408. label: {
  1409. show: true,
  1410. position: "top",
  1411. formatter: " ",
  1412. width: 6,
  1413. height: 6,
  1414. borderRadius: 50,
  1415. borderWidth: 6,
  1416. borderColor: "#FFE036",
  1417. backgroundColor: "#fff",
  1418. },
  1419. itemStyle: {
  1420. color: {
  1421. x: 0,
  1422. y: 0,
  1423. x2: 0,
  1424. y2: 1,
  1425. colorStops: [
  1426. {
  1427. offset: 0,
  1428. color: "#FFE036", // 0% 处的颜色
  1429. },
  1430. {
  1431. offset: 1,
  1432. color: "#092351", // 100% 处的颜色
  1433. },
  1434. ],
  1435. },
  1436. },
  1437. },
  1438. {
  1439. type: "bar",
  1440. name: "再评达标项目数",
  1441. barGap: "600%",
  1442. barWidth: 4,
  1443. data: that.riskData1.y5,
  1444. label: {
  1445. show: true,
  1446. position: "top",
  1447. formatter: " ",
  1448. width: 6,
  1449. height: 6,
  1450. borderRadius: 50,
  1451. borderWidth: 6,
  1452. borderColor: "#7784FF",
  1453. backgroundColor: "#fff",
  1454. },
  1455. itemStyle: {
  1456. color: {
  1457. x: 0,
  1458. y: 0,
  1459. x2: 0,
  1460. y2: 1,
  1461. colorStops: [
  1462. {
  1463. offset: 0,
  1464. color: "#7784FF", // 0% 处的颜色
  1465. },
  1466. {
  1467. offset: 1,
  1468. color: "#092351", // 100% 处的颜色
  1469. },
  1470. ],
  1471. },
  1472. },
  1473. },
  1474. ],
  1475. };
  1476. that.right4Chart.setOption(option);
  1477. tools.loopShowTooltip(that.right4Chart, option, {
  1478. interval: 2000,
  1479. loopSeries: true,
  1480. });
  1481. },
  1482. clickItem (index) {
  1483. const angle = 360 / this.investData.investList.length;
  1484. this.witchs = index;
  1485. this.inner = index;
  1486. this.innerDeg = this.witchs * angle;
  1487. this.lpRotate();
  1488. },
  1489. lpRotate () {
  1490. const angle = 360 / this.investData.investList.length;
  1491. clearInterval(this.timer);
  1492. this.timer = setInterval(() => {
  1493. this.inner++;
  1494. this.topIndex++;
  1495. this.topIndex = this.topIndex % 8;
  1496. this.witchs = this.inner % this.investData.investList.length;
  1497. this.innerDeg = this.inner * angle;
  1498. }, 2000);
  1499. },
  1500. filterLpData () {
  1501. const angle = 360 / this.investData.investList.length;
  1502. for (let i in this.investData.investList) {
  1503. this.investData.investList[i].deg = i * angle;
  1504. this.$set(this.investData.investList, i, {
  1505. ...this.investData.investList[i],
  1506. deg: i * angle,
  1507. });
  1508. }
  1509. },
  1510. // 4秒定时器
  1511. time4s () {
  1512. let that = this;
  1513. // 4秒定时器
  1514. this.time1 = setInterval(() => {
  1515. that.industryProportion == 1
  1516. ? (that.industryProportion = 2)
  1517. : (that.industryProportion = 1);
  1518. that.leftEcharts1.dispose();
  1519. that.leftEcharts2.dispose();
  1520. that.leftEcharts3.dispose();
  1521. that.leftEcharts4.dispose();
  1522. that.leftEcharts1Fun();
  1523. that.leftEcharts2Fun();
  1524. that.leftEcharts3Fun();
  1525. that.leftEcharts4Fun();
  1526. }, 4000);
  1527. },
  1528. // 针对投前产业布局分析的定时器
  1529. timeNs () {
  1530. let that = this;
  1531. this.time2 = setInterval(() => {
  1532. if (that.industryLayout < 3) {
  1533. that.industryLayout = that.industryLayout + 1;
  1534. } else {
  1535. that.industryLayout = 0;
  1536. }
  1537. this.time2 && clearInterval(this.time2);
  1538. this.timeNs();
  1539. that.leftEcharts5.dispose();
  1540. that.leftEcharts5Fun();
  1541. }, left1[that.industryLayout].length * 2000);
  1542. },
  1543. // 主辅业占比点击方法
  1544. industryProportionChange (e) {
  1545. let that = this;
  1546. this.industryProportion = e;
  1547. this.time1 && clearInterval(this.time1);
  1548. that.leftEcharts1.dispose();
  1549. that.leftEcharts2.dispose();
  1550. that.leftEcharts3.dispose();
  1551. that.leftEcharts4.dispose();
  1552. that.leftEcharts1Fun();
  1553. that.leftEcharts2Fun();
  1554. that.leftEcharts3Fun();
  1555. that.leftEcharts4Fun();
  1556. this.time4s();
  1557. },
  1558. // 产业布局分析点击方法
  1559. industryLayoutChange (e) {
  1560. this.industryLayout = e;
  1561. this.time2 && clearInterval(this.time2);
  1562. this.leftEcharts5.dispose();
  1563. this.timeNs();
  1564. this.leftEcharts5Fun();
  1565. },
  1566. yuanChange (value) {
  1567. return Number((value / 100000000).toFixed(2));
  1568. },
  1569. // 逢三折断
  1570. numFormat (value) {
  1571. if (!value) return "0";
  1572. // var intPart = Number(value).toFixed(0) // 获取整数部分
  1573. var intPart = parseInt(value); // 获取整数部分
  1574. var intPartFormat = intPart
  1575. .toString()
  1576. .replace(/(\d)(?=(?:\d{3})+$)/g, "$1,"); // 将整数部分逢三一断
  1577. var floatPart = ".00"; // 预定义小数部分
  1578. var value2Array = value.toString().split(".");
  1579. // =2表示数据有小数位
  1580. if (value2Array.length === 2) {
  1581. floatPart = value2Array[1].toString(); // 拿到小数部分
  1582. if (floatPart.length === 1) {
  1583. // 补0
  1584. return intPartFormat + "." + floatPart + "0";
  1585. } else {
  1586. floatPart = floatPart.slice(0, 2);
  1587. return intPartFormat + "." + floatPart;
  1588. }
  1589. } else {
  1590. return intPartFormat;
  1591. }
  1592. },
  1593. leftEcharts1Fun () {
  1594. let that = this;
  1595. this.leftEcharts1 = echarts.init(this.$refs["leftEcharts1"]);
  1596. option = {
  1597. title: {
  1598. text: that.industryProportion == 1 ? "30%" : "70%",
  1599. x: "center",
  1600. y: "center",
  1601. textStyle: {
  1602. fontWeight: "normal",
  1603. color: "#68BDFF",
  1604. fontSize: "20",
  1605. },
  1606. },
  1607. color: ["#68BDFF", "#254F7F"],
  1608. series: [
  1609. {
  1610. name: "Line 1",
  1611. type: "pie",
  1612. clockWise: true,
  1613. radius: ["80%", "100%"],
  1614. itemStyle: {
  1615. normal: {
  1616. label: {
  1617. show: false,
  1618. },
  1619. labelLine: {
  1620. show: false,
  1621. },
  1622. },
  1623. },
  1624. hoverAnimation: false,
  1625. data: [
  1626. {
  1627. value: 80,
  1628. name: "01",
  1629. itemStyle: {
  1630. normal: {
  1631. label: {
  1632. show: false,
  1633. },
  1634. labelLine: {
  1635. show: false,
  1636. },
  1637. },
  1638. },
  1639. },
  1640. {
  1641. name: "02",
  1642. value: 20,
  1643. },
  1644. ],
  1645. },
  1646. ],
  1647. };
  1648. //轮播
  1649. // tools.loopShowTooltip(leftEcharts1, option, {
  1650. // interval: 2000,
  1651. // loopSeries: true,
  1652. // });
  1653. //注册
  1654. that.leftEcharts1.setOption(option);
  1655. },
  1656. leftEcharts2Fun () {
  1657. let that = this;
  1658. this.leftEcharts2 = echarts.init(this.$refs["leftEcharts2"]);
  1659. let nameList = ["a"];
  1660. let valueList = that.industryProportion == 1 ? [30] : [70];
  1661. let total = 100; // 数据总数
  1662. var category = nameList.map((item, index) => {
  1663. return {
  1664. value: valueList[index],
  1665. itemStyle: {
  1666. color: new echarts.graphic.LinearGradient(
  1667. 1,
  1668. 0,
  1669. 0,
  1670. 1,
  1671. [
  1672. {
  1673. offset: 0,
  1674. color: "#40A9FF50",
  1675. },
  1676. {
  1677. offset: 1,
  1678. color: "#40A9FF",
  1679. },
  1680. ],
  1681. false
  1682. ),
  1683. },
  1684. };
  1685. });
  1686. var totalList = [];
  1687. var totalBorderList = [];
  1688. nameList.map((item, index) => {
  1689. totalList.push({
  1690. value: total,
  1691. itemStyle: {
  1692. color: "rgba(51, 147, 236, 0.29)",
  1693. },
  1694. });
  1695. totalBorderList.push({
  1696. value: total,
  1697. itemStyle: {
  1698. borderColor: "rgba(51, 147, 236, 0.29)",
  1699. color: "transparent",
  1700. },
  1701. });
  1702. });
  1703. var datas = [];
  1704. category.forEach((value) => {
  1705. datas.push(value.value);
  1706. });
  1707. option = {
  1708. // backgroundColor: 'rgb(231,238,249)',
  1709. xAxis: {
  1710. max: total,
  1711. splitLine: {
  1712. show: false,
  1713. },
  1714. axisLine: {
  1715. show: false,
  1716. },
  1717. axisLabel: {
  1718. show: false,
  1719. },
  1720. axisTick: {
  1721. show: false,
  1722. },
  1723. },
  1724. grid: {
  1725. left: "0%",
  1726. top: "15%", // 设置条形图的边距
  1727. right: "15%",
  1728. bottom: "5%",
  1729. },
  1730. yAxis: [
  1731. {
  1732. type: "category",
  1733. inverse: false,
  1734. data: nameList,
  1735. axisLine: {
  1736. show: false,
  1737. },
  1738. axisTick: {
  1739. show: false,
  1740. },
  1741. axisLabel: {
  1742. show: false,
  1743. },
  1744. },
  1745. ],
  1746. series: [
  1747. {
  1748. // 内
  1749. type: "bar",
  1750. barWidth: 16,
  1751. barGap: "20%",
  1752. silent: true,
  1753. // label: {
  1754. // normal: {
  1755. // formatter: (item) => {
  1756. // return `${item['name']}:${item['value']} `;
  1757. // },
  1758. // textStyle: {
  1759. // color: 'rgba(105, 120, 136, 1)',
  1760. // fontSize: 14,
  1761. // },
  1762. // position: [0, '-25px'],
  1763. // show: true,
  1764. // },
  1765. // },
  1766. data: category,
  1767. z: 1,
  1768. itemStyle: {
  1769. normal: {
  1770. color: new echarts.graphic.LinearGradient(
  1771. 1,
  1772. 0,
  1773. 0,
  1774. 1,
  1775. [
  1776. {
  1777. offset: 0,
  1778. color: "rgba(81, 193, 156, 1)",
  1779. },
  1780. {
  1781. offset: 1,
  1782. color: "rgba(234, 177, 100, 1)",
  1783. },
  1784. ],
  1785. false
  1786. ),
  1787. },
  1788. },
  1789. animationEasing: "elasticOut",
  1790. },
  1791. {
  1792. // 分隔
  1793. type: "pictorialBar",
  1794. itemStyle: {
  1795. normal: {
  1796. color: "#143362",
  1797. },
  1798. },
  1799. symbolRepeat: "fixed",
  1800. symbolMargin: 8,
  1801. symbol: "rect",
  1802. symbolClip: false,
  1803. symbolSize: [4, 20],
  1804. symbolPosition: "start",
  1805. symbolOffset: [0, -2],
  1806. symbolBoundingData: total,
  1807. data: [total, total, total, total],
  1808. z: 2,
  1809. animationEasing: "elasticOut",
  1810. },
  1811. {
  1812. // label
  1813. type: "pictorialBar",
  1814. symbolBoundingData: total,
  1815. itemStyle: {
  1816. normal: {
  1817. color: "none",
  1818. },
  1819. },
  1820. label: {
  1821. normal: {
  1822. formatter: (params) => {
  1823. var text;
  1824. text = `${((params["data"] * 100) / total).toFixed(2)}亿`;
  1825. return text;
  1826. },
  1827. textStyle: {
  1828. // 图列内容样式
  1829. fontSize: "20",
  1830. fontWeight: 800,
  1831. },
  1832. position: "right",
  1833. offset: [0, -3],
  1834. distance: 10, // 向右偏移位置
  1835. show: true,
  1836. color: "#68BDFF",
  1837. },
  1838. },
  1839. data: datas,
  1840. z: 0,
  1841. },
  1842. {
  1843. name: "外框",
  1844. type: "bar",
  1845. barGap: "-130%", // 设置外框粗细
  1846. data: totalBorderList,
  1847. barWidth: 26,
  1848. itemStyle: {
  1849. normal: {
  1850. // barBorderRadius: [5, 5, 5, 5],
  1851. borderWidth: 1, // 边框宽度
  1852. borderColor: "rgb(51, 147, 236)", // 边框色
  1853. color: "rgb(231,238,249)",
  1854. },
  1855. },
  1856. z: 0,
  1857. },
  1858. ],
  1859. };
  1860. //轮播
  1861. // tools.loopShowTooltip(leftEcharts1, option, {
  1862. // interval: 2000,
  1863. // loopSeries: true,
  1864. // });
  1865. //注册
  1866. that.leftEcharts2.setOption(option);
  1867. },
  1868. leftEcharts3Fun () {
  1869. let that = this;
  1870. this.leftEcharts3 = echarts.init(this.$refs["leftEcharts3"]);
  1871. option = {
  1872. title: {
  1873. text: that.industryProportion == 1 ? "70%" : "30%",
  1874. x: "center",
  1875. y: "center",
  1876. textStyle: {
  1877. fontWeight: "normal",
  1878. color: "#68BDFF",
  1879. fontSize: "20",
  1880. },
  1881. },
  1882. color: ["#5BDCC8", "#254F7F"],
  1883. series: [
  1884. {
  1885. name: "Line 1",
  1886. type: "pie",
  1887. clockWise: true,
  1888. radius: ["80%", "100%"],
  1889. itemStyle: {
  1890. normal: {
  1891. label: {
  1892. show: false,
  1893. },
  1894. labelLine: {
  1895. show: false,
  1896. },
  1897. },
  1898. },
  1899. hoverAnimation: false,
  1900. data: [
  1901. {
  1902. value: 80,
  1903. name: "01",
  1904. itemStyle: {
  1905. normal: {
  1906. label: {
  1907. show: false,
  1908. },
  1909. labelLine: {
  1910. show: false,
  1911. },
  1912. },
  1913. },
  1914. },
  1915. {
  1916. name: "02",
  1917. value: 20,
  1918. },
  1919. ],
  1920. },
  1921. ],
  1922. };
  1923. //轮播
  1924. // tools.loopShowTooltip(leftEcharts1, option, {
  1925. // interval: 2000,
  1926. // loopSeries: true,
  1927. // });
  1928. //注册
  1929. that.leftEcharts3.setOption(option);
  1930. },
  1931. leftEcharts4Fun () {
  1932. let that = this;
  1933. this.leftEcharts4 = echarts.init(this.$refs["leftEcharts4"]);
  1934. let nameList = ["a"];
  1935. let valueList = that.industryProportion == 1 ? [70] : [30];
  1936. let total = 100; // 数据总数
  1937. var category = nameList.map((item, index) => {
  1938. return {
  1939. value: valueList[index],
  1940. itemStyle: {
  1941. color: new echarts.graphic.LinearGradient(
  1942. 1,
  1943. 0,
  1944. 0,
  1945. 1,
  1946. [
  1947. {
  1948. offset: 0,
  1949. color: "#5BDCC850",
  1950. },
  1951. {
  1952. offset: 1,
  1953. color: "#5BDCC8",
  1954. },
  1955. ],
  1956. false
  1957. ),
  1958. },
  1959. };
  1960. });
  1961. var totalList = [];
  1962. var totalBorderList = [];
  1963. nameList.map((item, index) => {
  1964. totalList.push({
  1965. value: total,
  1966. itemStyle: {
  1967. color: "rgba(51, 147, 236, 0.29)",
  1968. },
  1969. });
  1970. totalBorderList.push({
  1971. value: total,
  1972. itemStyle: {
  1973. borderColor: "rgba(51, 147, 236, 0.29)",
  1974. color: "transparent",
  1975. },
  1976. });
  1977. });
  1978. var datas = [];
  1979. category.forEach((value) => {
  1980. datas.push(value.value);
  1981. });
  1982. option = {
  1983. // backgroundColor: 'rgb(231,238,249)',
  1984. xAxis: {
  1985. max: total,
  1986. splitLine: {
  1987. show: false,
  1988. },
  1989. axisLine: {
  1990. show: false,
  1991. },
  1992. axisLabel: {
  1993. show: false,
  1994. },
  1995. axisTick: {
  1996. show: false,
  1997. },
  1998. },
  1999. grid: {
  2000. left: "0%",
  2001. top: "15%", // 设置条形图的边距
  2002. right: "15%",
  2003. bottom: "5%",
  2004. },
  2005. yAxis: [
  2006. {
  2007. type: "category",
  2008. inverse: false,
  2009. data: nameList,
  2010. axisLine: {
  2011. show: false,
  2012. },
  2013. axisTick: {
  2014. show: false,
  2015. },
  2016. axisLabel: {
  2017. show: false,
  2018. },
  2019. },
  2020. ],
  2021. series: [
  2022. {
  2023. // 内
  2024. type: "bar",
  2025. barWidth: 16,
  2026. barGap: "20%",
  2027. silent: true,
  2028. // label: {
  2029. // normal: {
  2030. // formatter: (item) => {
  2031. // return `${item['name']}:${item['value']} `;
  2032. // },
  2033. // textStyle: {
  2034. // color: 'rgba(105, 120, 136, 1)',
  2035. // fontSize: 14,
  2036. // },
  2037. // position: [0, '-25px'],
  2038. // show: true,
  2039. // },
  2040. // },
  2041. data: category,
  2042. z: 1,
  2043. itemStyle: {
  2044. normal: {
  2045. color: new echarts.graphic.LinearGradient(
  2046. 1,
  2047. 0,
  2048. 0,
  2049. 1,
  2050. [
  2051. {
  2052. offset: 0,
  2053. color: "rgba(81, 193, 156, 1)",
  2054. },
  2055. {
  2056. offset: 1,
  2057. color: "rgba(234, 177, 100, 1)",
  2058. },
  2059. ],
  2060. false
  2061. ),
  2062. },
  2063. },
  2064. animationEasing: "elasticOut",
  2065. },
  2066. {
  2067. // 分隔
  2068. type: "pictorialBar",
  2069. itemStyle: {
  2070. normal: {
  2071. color: "#143362",
  2072. },
  2073. },
  2074. symbolRepeat: "fixed",
  2075. symbolMargin: 8,
  2076. symbol: "rect",
  2077. symbolClip: false,
  2078. symbolSize: [4, 20],
  2079. symbolPosition: "start",
  2080. symbolOffset: [0, -2],
  2081. symbolBoundingData: total,
  2082. data: [total, total, total, total],
  2083. z: 2,
  2084. animationEasing: "elasticOut",
  2085. },
  2086. {
  2087. // label
  2088. type: "pictorialBar",
  2089. symbolBoundingData: total,
  2090. itemStyle: {
  2091. normal: {
  2092. color: "none",
  2093. },
  2094. },
  2095. label: {
  2096. normal: {
  2097. formatter: (params) => {
  2098. var text;
  2099. text = `${((params["data"] * 100) / total).toFixed(2)}亿`;
  2100. return text;
  2101. },
  2102. textStyle: {
  2103. // 图列内容样式
  2104. fontSize: "20",
  2105. fontWeight: 800,
  2106. },
  2107. position: "right",
  2108. offset: [0, -3],
  2109. distance: 10, // 向右偏移位置
  2110. show: true,
  2111. color: "#68BDFF",
  2112. },
  2113. },
  2114. data: datas,
  2115. z: 0,
  2116. },
  2117. {
  2118. name: "外框",
  2119. type: "bar",
  2120. barGap: "-130%", // 设置外框粗细
  2121. data: totalBorderList,
  2122. barWidth: 26,
  2123. itemStyle: {
  2124. normal: {
  2125. // barBorderRadius: [5, 5, 5, 5],
  2126. borderWidth: 1, // 边框宽度
  2127. borderColor: "rgb(51, 147, 236)", // 边框色
  2128. color: "rgb(231,238,249)",
  2129. },
  2130. },
  2131. z: 0,
  2132. },
  2133. ],
  2134. };
  2135. //轮播
  2136. // tools.loopShowTooltip(leftEcharts1, option, {
  2137. // interval: 2000,
  2138. // loopSeries: true,
  2139. // });
  2140. //注册
  2141. that.leftEcharts4.setOption(option);
  2142. },
  2143. leftEcharts5Fun () {
  2144. let that = this;
  2145. this.leftEcharts5 = echarts.init(this.$refs["leftEcharts5"]);
  2146. let dataList = [];
  2147. left1[that.industryLayout].forEach((item, index) => {
  2148. dataList[index] = {
  2149. value: item.y,
  2150. name: item.name,
  2151. itemStyle: {
  2152. normal: {
  2153. color: new echarts.graphic.LinearGradient(1, 0, 0, 1, [
  2154. {
  2155. offset: 0,
  2156. color: commonColor2[index], //顶部颜色
  2157. },
  2158. {
  2159. offset: 1,
  2160. color: commonColor[index], // 底部颜色
  2161. },
  2162. ]),
  2163. borderColor: commonColor[index],
  2164. borderWidth: 3,
  2165. },
  2166. },
  2167. };
  2168. });
  2169. let option = {
  2170. tooltip: {
  2171. trigger: "item",
  2172. formatter: function (e) {
  2173. return `<span style="display:inline-block;margin-right:15px;border-radius:10px;width:20px;height:20px;background-color:${e.borderColor
  2174. };"></span>${e.name} ${e.percent}%<br>${e.value}亿 ${left1[that.industryLayout][e.seriesIndex].num
  2175. }个`;
  2176. },
  2177. backgroundColor: "rgba(50,50,50,0.7)", // 提示框浮层的背景颜色
  2178. textStyle: {
  2179. color: "#fff",
  2180. fontStyle: "normal", // 文字字体的风格('normal',无样式;'italic',斜体;'oblique',倾斜字体)
  2181. fontWeight: "normal", // 文字字体的粗细('normal',无样式;'bold',加粗;'bolder',加粗的基础上再加粗;'lighter',变细;数字定义粗细也可以,取值范围100至700)
  2182. fontSize: "28", // 文字字体大小
  2183. },
  2184. },
  2185. legend: {
  2186. top: "center",
  2187. orient: "vertical",
  2188. left: "75%",
  2189. textStyle: {
  2190. color: "#fff",
  2191. fontSize: 20,
  2192. padding: [0, 20],
  2193. },
  2194. },
  2195. graphic: {
  2196. elements: [
  2197. {
  2198. type: "image", //需要填充图片,配置image,如果不需要图片可以配置其他的, text, circle, sector, ring, polygon, polyline, rect, line, bezierCurve, arc, group,
  2199. style: {
  2200. image: "./img/whiteCircle.png", //这里添加图片地址
  2201. width: 80,
  2202. height: 80,
  2203. },
  2204. left: "center", //
  2205. top: "middle", //配置图片居中
  2206. },
  2207. ],
  2208. },
  2209. series: [
  2210. {
  2211. name: "",
  2212. type: "pie",
  2213. radius: ["20%", "80%"],
  2214. labelLine: {
  2215. normal: {
  2216. lineStyle: {
  2217. width: 1,
  2218. },
  2219. },
  2220. },
  2221. label: {
  2222. normal: {
  2223. show: false,
  2224. textStyle: {
  2225. fontSize: 28,
  2226. color: "#fff",
  2227. },
  2228. },
  2229. },
  2230. roseType: "area",
  2231. data: dataList,
  2232. },
  2233. {
  2234. tooltip: {
  2235. show: false,
  2236. },
  2237. type: "pie",
  2238. radius: ["80%", "82%"],
  2239. hoverAnimation: false,
  2240. name: "",
  2241. data: [
  2242. {
  2243. name: "",
  2244. value: 0,
  2245. itemStyle: {
  2246. normal: {
  2247. color: "#345189",
  2248. },
  2249. },
  2250. },
  2251. ],
  2252. },
  2253. ],
  2254. };
  2255. //轮播
  2256. tools.loopShowTooltip(that.leftEcharts5, option, {
  2257. interval: 2000,
  2258. loopSeries: true,
  2259. });
  2260. //注册
  2261. that.leftEcharts5.setOption(option);
  2262. },
  2263. leftEcharts6Fun () {
  2264. let that = this;
  2265. this.leftEcharts6 = echarts.init(this.$refs["leftEcharts6"]);
  2266. var dataArr = 44;
  2267. var colorSet = {
  2268. color: "#22B95E",
  2269. };
  2270. var color1 = {
  2271. type: "linear",
  2272. x: 0,
  2273. y: 0,
  2274. x2: 1,
  2275. y2: 1,
  2276. colorStops: [
  2277. {
  2278. offset: 0,
  2279. color: "rgba(255,255,255,0.1)",
  2280. },
  2281. {
  2282. offset: 1,
  2283. color: "rgba(255,255,255,0.3)",
  2284. },
  2285. ],
  2286. global: false,
  2287. };
  2288. var color2 = {
  2289. type: "linear",
  2290. x: 0,
  2291. y: 0,
  2292. x2: 1,
  2293. y2: 1,
  2294. colorStops: [
  2295. {
  2296. offset: 0,
  2297. color: "#30DBBA",
  2298. },
  2299. {
  2300. offset: 1,
  2301. color: "#2DE696",
  2302. },
  2303. ],
  2304. global: false,
  2305. };
  2306. option = {
  2307. tooltip: {
  2308. formatter: "{a} <br/>{b} : {c}%",
  2309. },
  2310. series: [
  2311. {
  2312. name: "内部进度条",
  2313. type: "gauge",
  2314. // center: ['20%', '50%'],
  2315. radius: "50%",
  2316. splitNumber: 10,
  2317. axisLine: {
  2318. lineStyle: {
  2319. color: [
  2320. [dataArr / 100, "rgba(0,0,0,0)"],
  2321. [1, "rgba(0,0,0,0)"],
  2322. ],
  2323. width: 1,
  2324. },
  2325. },
  2326. axisLabel: {
  2327. show: false,
  2328. },
  2329. axisTick: {
  2330. show: false,
  2331. },
  2332. splitLine: {
  2333. show: false,
  2334. },
  2335. itemStyle: {
  2336. color: "#ffffff",
  2337. },
  2338. detail: {
  2339. formatter: function (value) {
  2340. if (value !== 0) {
  2341. var num = Math.round(value);
  2342. return parseInt(num).toFixed(0) + "%";
  2343. } else {
  2344. return 0;
  2345. }
  2346. },
  2347. offsetCenter: [0, 117],
  2348. textStyle: {
  2349. padding: [0, 0, 0, 0],
  2350. fontSize: 60,
  2351. color: "#58F7DF",
  2352. },
  2353. },
  2354. title: {
  2355. //标题
  2356. show: true,
  2357. offsetCenter: [0, 220], // x, y,单位px
  2358. textStyle: {
  2359. color: "#40A9FF",
  2360. fontSize: 34, //表盘上的标题文字大小
  2361. fontWeight: 400,
  2362. fontFamily: "MicrosoftYaHei",
  2363. },
  2364. },
  2365. data: [
  2366. {
  2367. name: "总额度:1,323.85亿",
  2368. value: dataArr,
  2369. itemStyle: {
  2370. fontSize: "50", //y轴上方单位的大小
  2371. color: "#FFF666",
  2372. fontFamily: "MicrosoftYaHei",
  2373. },
  2374. },
  2375. ],
  2376. pointer: {
  2377. show: true,
  2378. length: "100%",
  2379. radius: "20%",
  2380. width: 3, //指针粗细
  2381. },
  2382. animationDuration: 4000,
  2383. },
  2384. {
  2385. name: "内部阴影",
  2386. type: "gauge",
  2387. radius: "75%",
  2388. splitNumber: 10,
  2389. axisLine: {
  2390. lineStyle: {
  2391. color: [
  2392. [
  2393. dataArr / 100,
  2394. new echarts.graphic.LinearGradient(0, 1, 0, 0, [
  2395. {
  2396. offset: 0,
  2397. color: "#081947",
  2398. },
  2399. {
  2400. offset: 0.5,
  2401. color: "#5DF5A9",
  2402. },
  2403. {
  2404. offset: 1,
  2405. color: "#F6F16A",
  2406. },
  2407. ]),
  2408. ],
  2409. [1, "#0E4889"],
  2410. ],
  2411. width: 70,
  2412. },
  2413. },
  2414. axisLabel: {
  2415. show: false,
  2416. },
  2417. axisTick: {
  2418. show: false,
  2419. },
  2420. splitLine: {
  2421. show: false,
  2422. },
  2423. itemStyle: {
  2424. show: false,
  2425. },
  2426. },
  2427. {
  2428. name: "外部刻度",
  2429. type: "gauge",
  2430. // center: ['20%', '50%'],
  2431. radius: "90%",
  2432. min: 0, //最小刻度
  2433. max: 100, //最大刻度
  2434. splitNumber: 5, //刻度数量
  2435. startAngle: 225,
  2436. endAngle: -45,
  2437. axisLine: {
  2438. show: true,
  2439. lineStyle: {
  2440. width: 1,
  2441. color: [[1, "rgba(0,0,0,0)"]],
  2442. },
  2443. }, //仪表盘轴线
  2444. axisLabel: {
  2445. show: false,
  2446. color: "#ffffff",
  2447. fontSize: 28,
  2448. fontFamily: "SourceHanSansSC-Regular",
  2449. fontWeight: "bold",
  2450. // position: "top",
  2451. distance: -45,
  2452. formatter: function (v) {
  2453. switch (v + "") {
  2454. case "0":
  2455. return "0";
  2456. case "10":
  2457. return "10";
  2458. case "20":
  2459. return "20";
  2460. case "30":
  2461. return "30";
  2462. case "40":
  2463. return "40";
  2464. case "50":
  2465. return "50";
  2466. case "60":
  2467. return "60";
  2468. case "70":
  2469. return "70";
  2470. case "80":
  2471. return "80";
  2472. case "90":
  2473. return "90";
  2474. case "100":
  2475. return "100";
  2476. }
  2477. },
  2478. }, //刻度标签。
  2479. axisTick: {
  2480. show: true,
  2481. splitNumber: 10,
  2482. lineStyle: {
  2483. color: "#3798D7", //用颜色渐变函数不起作用
  2484. width: 1,
  2485. },
  2486. length: -6,
  2487. }, //刻度样式
  2488. splitLine: {
  2489. show: true,
  2490. length: -12,
  2491. lineStyle: {
  2492. color: "#3798D7", //用颜色渐变函数不起作用
  2493. },
  2494. }, //分隔线样式
  2495. detail: {
  2496. show: false,
  2497. },
  2498. },
  2499. {
  2500. //指针上的圆
  2501. type: "pie",
  2502. tooltip: {
  2503. show: false,
  2504. },
  2505. hoverAnimation: false,
  2506. legendHoverLink: false,
  2507. radius: ["0%", "4%"],
  2508. center: ["50%", "50%"],
  2509. label: {
  2510. normal: {
  2511. show: false,
  2512. },
  2513. },
  2514. labelLine: {
  2515. normal: {
  2516. show: false,
  2517. },
  2518. },
  2519. data: [
  2520. {
  2521. value: 120,
  2522. itemStyle: {
  2523. normal: {
  2524. color: "#ffffff",
  2525. },
  2526. },
  2527. },
  2528. ],
  2529. },
  2530. ],
  2531. };
  2532. //轮播
  2533. // tools.loopShowTooltip(leftEcharts1, option, {
  2534. // interval: 2000,
  2535. // loopSeries: true,
  2536. // });
  2537. //注册
  2538. that.leftEcharts6.setOption(option);
  2539. },
  2540. leftEcharts7Fun () {
  2541. let that = this;
  2542. this.leftEcharts7 = echarts.init(this.$refs["leftEcharts7"]);
  2543. let option = {
  2544. title: {
  2545. text: "固定资产进度分布",
  2546. textStyle: {
  2547. color: "#fff",
  2548. fontSize: 28,
  2549. fontWeight: 500,
  2550. fontFamily: "Microsoft YaHei",
  2551. },
  2552. top: "20",
  2553. left: "220",
  2554. },
  2555. textStyle: {
  2556. color: "#fff",
  2557. },
  2558. tooltip: {
  2559. show: false,
  2560. trigger: "axis",
  2561. formatter: function (params) {
  2562. var tip =
  2563. params[0].axisValue +
  2564. "<br/>" +
  2565. params[0].marker +
  2566. params[0].data[1] +
  2567. ":" +
  2568. params[0].data[2] +
  2569. "个," +
  2570. params[0].data[3] +
  2571. "亿元" +
  2572. "<br/>" +
  2573. params[1].marker +
  2574. params[1].data[1] +
  2575. ":" +
  2576. params[1].data[2] +
  2577. "个," +
  2578. params[1].data[3] +
  2579. "亿元";
  2580. return tip;
  2581. },
  2582. textStyle: {
  2583. color: "#ffffff", // 文字的颜色
  2584. fontSize: "20", // 文字字体大小
  2585. fontFamily: "Microsoft YaHei",
  2586. },
  2587. axisPointer: {
  2588. // lineStyle: {
  2589. // type: 'dashed',
  2590. // width: 2,
  2591. // color: 'rgba(255,255,255,0.6)'
  2592. // },
  2593. animation: false,
  2594. },
  2595. },
  2596. grid: {
  2597. top: "0%",
  2598. right: "5%",
  2599. left: "15%",
  2600. bottom: "-10%",
  2601. },
  2602. yAxis: {
  2603. data: ["备案", "特别监管"],
  2604. splitLine: {
  2605. show: false,
  2606. lineStyle: {
  2607. color: "#68b4dd66",
  2608. type: "dashed",
  2609. },
  2610. },
  2611. axisLine: {
  2612. show: false,
  2613. },
  2614. axisLabel: {
  2615. show: true,
  2616. formatter: "{value}",
  2617. textStyle: {
  2618. color: function (data) {
  2619. if (data == "特别监管") {
  2620. return "#40A9FF";
  2621. } else if (data == "备案") {
  2622. return "#5BDCC8";
  2623. }
  2624. },
  2625. fontSize: 20,
  2626. padding: [0, -10, 0, 0],
  2627. fontFamily: "Microsoft YaHei",
  2628. },
  2629. },
  2630. nameTextStyle: {
  2631. color: "#ebf8ac",
  2632. fontSize: 16,
  2633. fontFamily: "Microsoft YaHei",
  2634. },
  2635. },
  2636. xAxis: {
  2637. data: ["项目储备", "项目立项", "可研论证", "投资决策"],
  2638. axisLine: {
  2639. show: true, //隐藏X轴轴线
  2640. lineStyle: {
  2641. color: "red",
  2642. width: 1,
  2643. },
  2644. },
  2645. axisTick: {
  2646. show: false, //隐藏X轴刻度
  2647. },
  2648. axisLabel: {
  2649. show: true,
  2650. textStyle: {
  2651. color: "#fff", //X轴文字颜色
  2652. fontSize: 20,
  2653. padding: [-80, 0, 0, 0],
  2654. fontFamily: "Microsoft YaHei",
  2655. },
  2656. },
  2657. },
  2658. series: [
  2659. {
  2660. name: "特别监管",
  2661. type: "scatter",
  2662. symbol: "circle", //'circle', 'rect', 'roundRect', 'triangle', 'diamond', 'pin', 'arrow'
  2663. symbolSize: function (data) {
  2664. return Math.sqrt(data[2]) * 5;
  2665. },
  2666. // label: {
  2667. // emphasis: {
  2668. // show: true,
  2669. // formatter: function (param) {
  2670. // return param.data[2];
  2671. // },
  2672. // position: 'top'
  2673. // }
  2674. // },
  2675. itemStyle: {
  2676. normal: {
  2677. color: "#69c0ff",
  2678. },
  2679. },
  2680. // data: left13[0]
  2681. },
  2682. {
  2683. name: "备案",
  2684. type: "scatter",
  2685. symbol: "circle", //'circle', 'rect', 'roundRect', 'triangle', 'diamond', 'pin', 'arrow'
  2686. symbolSize: function (data) {
  2687. return Math.sqrt(data[2]) * 5;
  2688. },
  2689. // label: {
  2690. // emphasis: {
  2691. // show: true,
  2692. // formatter: function (param) {
  2693. // return param.data[2];
  2694. // },
  2695. // position: 'top'
  2696. // }
  2697. // },
  2698. itemStyle: {
  2699. normal: {
  2700. color: "#957DFF",
  2701. },
  2702. },
  2703. // data: left13[1]
  2704. },
  2705. ],
  2706. };
  2707. //轮播
  2708. // tools.loopShowTooltip(leftEcharts1, option, {
  2709. // interval: 2000,
  2710. // loopSeries: true,
  2711. // });
  2712. //注册
  2713. that.leftEcharts7.setOption(option);
  2714. },
  2715. leftEcharts8Fun () {
  2716. let that = this;
  2717. this.leftEcharts8 = echarts.init(this.$refs["leftEcharts8"]);
  2718. let option = {
  2719. title: {
  2720. text: "固定资产进度分布",
  2721. textStyle: {
  2722. color: "#fff",
  2723. fontSize: 28,
  2724. fontWeight: 500,
  2725. fontFamily: "Microsoft YaHei",
  2726. },
  2727. top: "20",
  2728. left: "220",
  2729. },
  2730. textStyle: {
  2731. color: "#fff",
  2732. },
  2733. tooltip: {
  2734. show: false,
  2735. trigger: "axis",
  2736. formatter: function (params) {
  2737. var tip =
  2738. params[0].axisValue +
  2739. "<br/>" +
  2740. params[0].marker +
  2741. params[0].data[1] +
  2742. ":" +
  2743. params[0].data[2] +
  2744. "个," +
  2745. params[0].data[3] +
  2746. "亿元" +
  2747. "<br/>" +
  2748. params[1].marker +
  2749. params[1].data[1] +
  2750. ":" +
  2751. params[1].data[2] +
  2752. "个," +
  2753. params[1].data[3] +
  2754. "亿元";
  2755. return tip;
  2756. },
  2757. textStyle: {
  2758. color: "#ffffff", // 文字的颜色
  2759. fontSize: "20", // 文字字体大小
  2760. fontFamily: "Microsoft YaHei",
  2761. },
  2762. axisPointer: {
  2763. // lineStyle: {
  2764. // type: 'dashed',
  2765. // width: 2,
  2766. // color: 'rgba(255,255,255,0.6)'
  2767. // },
  2768. animation: false,
  2769. },
  2770. },
  2771. grid: {
  2772. top: "0%",
  2773. right: "5%",
  2774. left: "15%",
  2775. bottom: "-10%",
  2776. },
  2777. yAxis: {
  2778. data: ["备案", "特别监管"],
  2779. splitLine: {
  2780. show: false,
  2781. lineStyle: {
  2782. color: "#68b4dd66",
  2783. type: "dashed",
  2784. },
  2785. },
  2786. axisLine: {
  2787. show: false,
  2788. },
  2789. axisLabel: {
  2790. show: false,
  2791. formatter: "{value}",
  2792. textStyle: {
  2793. color: "#fff",
  2794. fontSize: 20,
  2795. padding: [0, -10, 0, 0],
  2796. fontFamily: "Microsoft YaHei",
  2797. },
  2798. },
  2799. nameTextStyle: {
  2800. color: "#ebf8ac",
  2801. fontSize: 16,
  2802. fontFamily: "Microsoft YaHei",
  2803. },
  2804. },
  2805. xAxis: {
  2806. data: ["项目储备", "项目立项", "可研论证", "投资决策"],
  2807. axisLine: {
  2808. show: true, //隐藏X轴轴线
  2809. lineStyle: {
  2810. color: "red",
  2811. width: 1,
  2812. },
  2813. },
  2814. axisTick: {
  2815. show: false, //隐藏X轴刻度
  2816. },
  2817. axisLabel: {
  2818. show: true,
  2819. textStyle: {
  2820. color: "#fff", //X轴文字颜色
  2821. fontSize: 20,
  2822. padding: [-80, 0, 0, 0],
  2823. fontFamily: "Microsoft YaHei",
  2824. },
  2825. },
  2826. },
  2827. series: [
  2828. {
  2829. name: "特别监管",
  2830. type: "scatter",
  2831. symbol: "circle", //'circle', 'rect', 'roundRect', 'triangle', 'diamond', 'pin', 'arrow'
  2832. symbolSize: function (data) {
  2833. return Math.sqrt(data[2]) * 5;
  2834. },
  2835. // label: {
  2836. // emphasis: {
  2837. // show: true,
  2838. // formatter: function (param) {
  2839. // return param.data[2];
  2840. // },
  2841. // position: 'top'
  2842. // }
  2843. // },
  2844. itemStyle: {
  2845. normal: {
  2846. color: "#69c0ff",
  2847. },
  2848. },
  2849. // data: left13[0]
  2850. },
  2851. {
  2852. name: "备案",
  2853. type: "scatter",
  2854. symbol: "circle", //'circle', 'rect', 'roundRect', 'triangle', 'diamond', 'pin', 'arrow'
  2855. symbolSize: function (data) {
  2856. return Math.sqrt(data[2]) * 5;
  2857. },
  2858. // label: {
  2859. // emphasis: {
  2860. // show: true,
  2861. // formatter: function (param) {
  2862. // return param.data[2];
  2863. // },
  2864. // position: 'top'
  2865. // }
  2866. // },
  2867. itemStyle: {
  2868. normal: {
  2869. color: "#957DFF",
  2870. },
  2871. },
  2872. // data: left13[1]
  2873. },
  2874. ],
  2875. };
  2876. //轮播
  2877. // tools.loopShowTooltip(leftEcharts1, option, {
  2878. // interval: 2000,
  2879. // loopSeries: true,
  2880. // });
  2881. //注册
  2882. that.leftEcharts8.setOption(option);
  2883. },
  2884. chinaEchartsFun () {
  2885. let that = this;
  2886. this.geoCoordMap = [];
  2887. /*获取地图数据*/
  2888. this.shanxiMap = echarts.init(this.$refs["shanxi"]);
  2889. // echarts.registerMap('china', china)
  2890. echarts.registerMap("china", shanxi);
  2891. // var mapFeatures = echarts.getMap('china').geoJson.features
  2892. // mapFeatures.forEach(v => {
  2893. // // 地区名称
  2894. // var name = v.properties.name
  2895. // // 地区经纬度
  2896. // this.geoCoordMap[name] = v.properties.cp
  2897. // data.push({ name: v.properties.name, value: v.properties.cp[0], value2: v.properties.cp[1] })
  2898. // })
  2899. // var data = [
  2900. // { "name": "新疆", value: 29780 },
  2901. // { "name": "西藏", value: 2186 },
  2902. // { "name": "内蒙古", value: 1135 },
  2903. // { "name": "青海", value: 29780 },
  2904. // { "name": "四川", value: 2568 },
  2905. // { "name": "黑龙江", value: 29780 },
  2906. // { "name": "甘肃", value: 6959 },
  2907. // { "name": "云南", value: 5632 },
  2908. // { "name": "广西", value: 6707 },
  2909. // { "name": "湖南", value: 29780 },
  2910. // { "name": "陕西", value: 1894 },
  2911. // { "name": "广东", value: 15769 },
  2912. // { "name": "吉林", value: 8259 },
  2913. // { "name": "河北", value: 5741 },
  2914. // { "name": "湖北", value: 3030 },
  2915. // { "name": "贵州", value: 4542 },
  2916. // { "name": "山东", value: 19780 },
  2917. // { "name": "江西", value: 3157 },
  2918. // { "name": "河南", value: 6690 },
  2919. // { "name": "辽宁", value: 8678 },
  2920. // { "name": "山西", value: 5303 },
  2921. // { "name": "安徽", value: 29780 },
  2922. // { "name": "福建", value: 10259 },
  2923. // { "name": "浙江", value: 3016 },
  2924. // { "name": "江苏", value: 3202 },
  2925. // { "name": "重庆", value: 4540 },
  2926. // { "name": "宁夏", value: 19780 },
  2927. // { "name": "海南", value: 8626 },
  2928. // { "name": "台湾", value: 4361 },
  2929. // { "name": "北京", value: 20000 },
  2930. // { "name": "天津", value: 4080 },
  2931. // { "name": "上海", value: 19780 },
  2932. // { "name": "香港", value: 6991 },
  2933. // { "name": "澳门", value: 13873 },
  2934. // { "name": "南海诸岛", value: 0 }
  2935. // ];
  2936. // var geoCoordMap = {
  2937. // "新疆": [86.9023, 41.148],
  2938. // "西藏": [87.8695, 31.6846],
  2939. // "内蒙古": [110.5977, 41.3408],
  2940. // "青海": [95.2402, 35.4199],
  2941. // "四川": [102.9199, 30.1904],
  2942. // "黑龙江": [128.1445, 46.7156],
  2943. // "甘肃": [102.7129, 38.166],
  2944. // "云南": [101.0652, 24.6807],
  2945. // "广西": [108.7813, 23.6426],
  2946. // "湖南": [111.5332, 27.3779],
  2947. // "陕西": [108.5996, 33.7396],
  2948. // "广东": [113.8668, 22.8076],
  2949. // "吉林": [126.1746, 43.5938],
  2950. // "河北": [115.4004, 38.1688],
  2951. // "湖北": [112.2363, 30.8572],
  2952. // "贵州": [106.6113, 26.6385],
  2953. // "山东": [118.2402, 36.2307],
  2954. // "江西": [115.7156, 27.99],
  2955. // "河南": [113.0668, 33.8818],
  2956. // "辽宁": [123.0438, 41.0889],
  2957. // "山西": [112.44, 37.73],
  2958. // "安徽": [117.2461, 31.0361],
  2959. // "福建": [118.3008, 25.9277],
  2960. // "浙江": [120.498, 29.0918],
  2961. // "江苏": [119.8586, 32.915],
  2962. // "重庆": [107.7539, 29.8904],
  2963. // "宁夏": [105.9961, 37.1096],
  2964. // "海南": [109.9512, 19.2041],
  2965. // "台湾": [120.8254, 23.5986],
  2966. // "北京": [116.4551, 40.2539],
  2967. // "天津": [117.4219, 39.4189],
  2968. // "上海": [121.4648, 31.2891],
  2969. // "香港": [114.6178, 22.3242],
  2970. // "澳门": [113.5547, 21.6484],
  2971. // '南海诸岛': [128.8254, 21.5986]
  2972. // };
  2973. var data = [
  2974. { name: "大同市", value: 6035, value2: 28 },
  2975. { name: "朔州市", value: 3361, value2: 13 },
  2976. { name: "忻州市", value: 7335, value2: 25 },
  2977. { name: "吕梁市", value: 10904, value2: 45 },
  2978. { name: "太原市", value: 25167, value2: 113 },
  2979. { name: "阳泉市", value: 2512, value2: 28 },
  2980. { name: "晋中市", value: 14857, value2: 52 },
  2981. { name: "临汾市", value: 13055, value2: 30 },
  2982. { name: "长治市", value: 10300, value2: 23 },
  2983. { name: "运城市", value: 4106, value2: 23 },
  2984. { name: "晋城市", value: 4543, value2: 31 },
  2985. ];
  2986. var geoCoordMap = {
  2987. 太原市: [112.53, 37.87],
  2988. 大同市: [113.3, 40.12],
  2989. 阳泉市: [113.57, 37.85],
  2990. 长治市: [113.08, 36.18],
  2991. 晋城市: [112.83, 35.52],
  2992. 朔州市: [112.43, 39.33],
  2993. 晋中市: [112.94, 37.4],
  2994. 运城市: [110.97, 35.03],
  2995. 忻州市: [112.53, 38.72],
  2996. 临汾市: [111.5, 36.08],
  2997. 吕梁市: [111.13, 37.52],
  2998. };
  2999. var convertData = function (data) {
  3000. var res = [];
  3001. for (var i = 0; i < data.length; i++) {
  3002. var geoCoord = geoCoordMap[data[i].name];
  3003. if (geoCoord) {
  3004. res.push({
  3005. name: data[i].name,
  3006. value: geoCoord.concat(data[i].value, data[i].value2),
  3007. });
  3008. }
  3009. }
  3010. return res;
  3011. };
  3012. var convertedData = [
  3013. convertData(data),
  3014. convertData(
  3015. data
  3016. .sort(function (a, b) {
  3017. return b.value - a.value;
  3018. })
  3019. .slice(0, 6)
  3020. ),
  3021. ];
  3022. data.sort(function (a, b) {
  3023. return a.value - b.value;
  3024. });
  3025. option = {
  3026. backgroundColor: "#404a5900",
  3027. animation: true,
  3028. animationDuration: 1000,
  3029. animationEasing: "cubicInOut",
  3030. animationDurationUpdate: 1000,
  3031. animationEasingUpdate: "cubicInOut",
  3032. geo: {
  3033. map: "china",
  3034. center: [112.53, 37.67],
  3035. zoom: 4.5,
  3036. label: {
  3037. emphasis: {
  3038. show: false,
  3039. },
  3040. },
  3041. roam: false,
  3042. itemStyle: {
  3043. normal: {
  3044. borderColor: "#7fb3ff",
  3045. borderWidth: 3,
  3046. areaColor: {
  3047. type: "radial",
  3048. x: 0.5,
  3049. y: 0.5,
  3050. r: 0.8,
  3051. colorStops: [
  3052. {
  3053. offset: 0,
  3054. color: "#468ff8", // 0% 处的颜色
  3055. },
  3056. {
  3057. offset: 1,
  3058. color: "#0a2c6d", // 100% 处的颜色
  3059. },
  3060. ],
  3061. globalCoord: false, // 缺省为 false
  3062. },
  3063. // shadowColor: 'rgba(128, 217, 248, 1)',
  3064. shadowColor: "#468ff8",
  3065. shadowOffsetX: -2,
  3066. shadowOffsetY: 2,
  3067. shadowBlur: 20,
  3068. },
  3069. emphasis: {
  3070. areaColor: {
  3071. colorStops: [
  3072. {
  3073. offset: 0,
  3074. color: "#3844aa", // 0% 处的颜色
  3075. },
  3076. {
  3077. offset: 1,
  3078. color: "#7284fc", // 100% 处的颜色
  3079. },
  3080. ],
  3081. },
  3082. borderColor: "#b3baff",
  3083. borderWidth: 5,
  3084. },
  3085. },
  3086. tooltip: {
  3087. trigger: "item",
  3088. className: "custom-tooltip-box",
  3089. confine: true, // 不超出当前表
  3090. formatter: (params, ticket, callback) => {
  3091. // 清空所有轮播
  3092. for (var k in geoCoordMap) {
  3093. that.shanxiMap.dispatchAction({
  3094. // type: 'geoUnSelect',
  3095. type: "downplay",
  3096. name: k,
  3097. geoIndex: 0,
  3098. });
  3099. that.shanxiMap.dispatchAction({
  3100. // type: 'geoUnSelect',
  3101. type: "downplay",
  3102. name: k,
  3103. seriesName: params.seriesName,
  3104. });
  3105. that.shanxiMap.dispatchAction({
  3106. // type: 'geoUnSelect',
  3107. type: "downplay",
  3108. name: k,
  3109. seriesName: "series\u00001",
  3110. });
  3111. }
  3112. that.shanxiMap.dispatchAction({
  3113. // type: 'geoSelect',
  3114. type: "highlight",
  3115. name: params.name,
  3116. geoIndex: 0,
  3117. });
  3118. that.shanxiMap.dispatchAction({
  3119. // type: 'geoSelect',
  3120. type: "highlight",
  3121. name: params.name,
  3122. seriesName: params.seriesName,
  3123. });
  3124. that.shanxiMap.dispatchAction({
  3125. // type: 'geoSelect',
  3126. type: "highlight",
  3127. name: params.name,
  3128. seriesName: "series\u00001",
  3129. });
  3130. return `<div class="bgTooltip" style="background: url('../img/shanxi/${params.name}.png') no-repeat center center;background-size: 100% 100%;font-size:36px">
  3131. <div class="flex items-center">
  3132. <img src="./img/yellowArrow.png" style="width: 12px;height: 22px;margin-right:10px" alt=""><span class="fb">${params.name}</span>
  3133. </div>
  3134. <div class="blueIcon flex items-center">项目数量:<span class="fb" style="color:#68BDFF;">${params.value[3]}<span style="font-size:20px" class="fn">个</span></span></div>
  3135. <div class="blueIcon flex items-center">投资总额:<span class="fb" style="color:#68BDFF">${params.value[2]}<span style="font-size:20px" class="fn">亿</span></span></div>
  3136. </div>`;
  3137. },
  3138. },
  3139. regions: [
  3140. {
  3141. name: "太原市",
  3142. value: 2000,
  3143. itemStyle: {
  3144. emphasis: {
  3145. borderColor: "#ffe036",
  3146. borderWidth: 5,
  3147. areaColor: {
  3148. type: "radial",
  3149. x: 0.5,
  3150. y: 0.5,
  3151. r: 0.8,
  3152. colorStops: [
  3153. {
  3154. offset: 0,
  3155. color: "#ffe036", // 0% 处的颜色
  3156. },
  3157. {
  3158. offset: 1,
  3159. color: "#7c732a", // 100% 处的颜色
  3160. },
  3161. ],
  3162. globalCoord: false, // 缺省为 false
  3163. },
  3164. },
  3165. },
  3166. },
  3167. {
  3168. name: "南海诸岛",
  3169. itemStyle: {
  3170. // 隐藏地图
  3171. normal: {
  3172. opacity: 0, // 为 0 时不绘制该图形
  3173. },
  3174. },
  3175. label: {
  3176. show: false, // 隐藏文字
  3177. },
  3178. },
  3179. ],
  3180. },
  3181. tooltip: {
  3182. trigger: "item",
  3183. className: "custom-tooltip-box",
  3184. confine: true, // 不超出当前表
  3185. },
  3186. xAxis: {
  3187. type: "value",
  3188. scale: true,
  3189. position: "top",
  3190. boundaryGap: false,
  3191. splitLine: {
  3192. show: false,
  3193. },
  3194. axisLine: {
  3195. show: false,
  3196. },
  3197. axisTick: {
  3198. show: false,
  3199. },
  3200. axisLabel: {
  3201. margin: 2,
  3202. textStyle: {
  3203. color: "#aaa",
  3204. },
  3205. },
  3206. },
  3207. yAxis: {
  3208. type: "category",
  3209. nameGap: 16,
  3210. axisLine: {
  3211. show: false,
  3212. lineStyle: {
  3213. color: "#ddd",
  3214. },
  3215. },
  3216. axisTick: {
  3217. show: false,
  3218. lineStyle: {
  3219. color: "#ddd",
  3220. },
  3221. },
  3222. axisLabel: {
  3223. interval: 0,
  3224. textStyle: {
  3225. color: "#ddd",
  3226. },
  3227. },
  3228. data: categoryData,
  3229. },
  3230. series: [
  3231. {
  3232. type: "effectScatter",
  3233. colorBy: "data",
  3234. coordinateSystem: "geo",
  3235. data: convertedData[0],
  3236. symbolSize: function (val) {
  3237. return Math.max(val[2] / 500, 8);
  3238. },
  3239. showEffectOn: "emphasis",
  3240. rippleEffect: {
  3241. brushType: "stroke",
  3242. color: "#58F7DF",
  3243. },
  3244. hoverAnimation: true,
  3245. label: {
  3246. normal: {
  3247. formatter: "{b}",
  3248. position: "right",
  3249. show: true,
  3250. fontSize: "30",
  3251. color: "#fff",
  3252. },
  3253. },
  3254. itemStyle: {
  3255. normal: {
  3256. color: "#ffc809",
  3257. shadowBlur: 50,
  3258. shadowColor: "#ffc809",
  3259. },
  3260. emphasis: {
  3261. color: "#58F7DF",
  3262. shadowBlur: 50,
  3263. shadowColor: "#58F7DF",
  3264. },
  3265. },
  3266. zlevel: 99,
  3267. },
  3268. {
  3269. type: "effectScatter",
  3270. colorBy: "data",
  3271. coordinateSystem: "geo",
  3272. data: [
  3273. {
  3274. name: "太原市",
  3275. value: [112.53, 37.87, 25167, 113],
  3276. },
  3277. ],
  3278. symbolSize: function (val) {
  3279. return Math.max(val[2] / 500, 8);
  3280. },
  3281. showEffectOn: "emphasis",
  3282. rippleEffect: {
  3283. brushType: "stroke",
  3284. color: "#DF62F2",
  3285. },
  3286. hoverAnimation: true,
  3287. label: {
  3288. normal: {
  3289. formatter: "{b}",
  3290. position: "right",
  3291. show: true,
  3292. fontSize: "30",
  3293. color: "#fff",
  3294. },
  3295. },
  3296. itemStyle: {
  3297. normal: {
  3298. color: "#ffc809",
  3299. shadowBlur: 50,
  3300. shadowColor: "#ffc809",
  3301. },
  3302. emphasis: {
  3303. color: "#DF62F2",
  3304. shadowBlur: 50,
  3305. shadowColor: "#DF62F2",
  3306. },
  3307. },
  3308. zlevel: 999,
  3309. },
  3310. ],
  3311. };
  3312. var categoryData = [];
  3313. var barData = [];
  3314. var sum = 0;
  3315. for (var i = 0; i < data.length; i++) {
  3316. categoryData.push(data[i].name);
  3317. barData.push(data[i].value);
  3318. sum += data[i].value;
  3319. }
  3320. // this.shanxiMap.on('click', function (params) {
  3321. // if (params.name == '山西') {
  3322. // that.shanxiMap.dispose()
  3323. // that.centerShow = true
  3324. // setTimeout(() => {
  3325. // })
  3326. // }
  3327. // })
  3328. tools.loopShowTooltip(this.shanxiMap, option, {
  3329. interval: 2000,
  3330. loopSeries: false,
  3331. seriesIndex: 0,
  3332. });
  3333. this.shanxiMap.setOption(option);
  3334. },
  3335. leftEcharts9Fun () {
  3336. let that = this;
  3337. this.leftEcharts9 = echarts.init(this.$refs["leftEcharts9"]);
  3338. // var ROOT_PATH = 'https://echarts.apache.org/examples';
  3339. let option = {
  3340. backgroundColor: "#00000000",
  3341. globe: {
  3342. globeRadius: 55,
  3343. baseTexture: "./img/3D/world1.jpg",
  3344. heightTexture: "./img/3D/world1.jpg",
  3345. displacementScale: 0.04,
  3346. shading: "realistic",
  3347. // environment: './img/3D/world2.jpg',
  3348. realisticMaterial: {
  3349. roughness: 0.9,
  3350. },
  3351. postEffect: {
  3352. enable: true,
  3353. },
  3354. light: {
  3355. main: {
  3356. intensity: 3,
  3357. shadow: true,
  3358. },
  3359. },
  3360. },
  3361. };
  3362. that.leftEcharts9.setOption(option);
  3363. },
  3364. leftEcharts10Fun () {
  3365. let that = this;
  3366. this.leftEcharts10 = echarts.init(this.$refs["leftEcharts10"]);
  3367. option = {
  3368. grid: {
  3369. top: 45,
  3370. right: 0,
  3371. left: 80,
  3372. bottom: 80,
  3373. },
  3374. tooltip: {
  3375. show: true,
  3376. trigger: "axis",
  3377. formatter: (data) => {
  3378. return `${data[0].name
  3379. }<br /><span style="display:inline-block;border-radius:50%; width:20px;height:20px;background-color:${data[0].color
  3380. }"></span> ${data[0].seriesName}:${that.numFormat(
  3381. data[0].value
  3382. )}亿<br/><span style="display:inline-block;border-radius:50%; width:20px;height:20px;background-color:${data[1].color.colorStops[0].color
  3383. }"></span> ${data[1].seriesName}:${that.numFormat(
  3384. data[1].value
  3385. )}亿`;
  3386. },
  3387. axisPointer: {
  3388. // 坐标轴指示器,坐标轴触发有效
  3389. type: "shadow", // 默认为直线,可选为:'line' | 'shadow'
  3390. },
  3391. backgroundColor: "rgba(50,50,50,0.7)", // 提示框浮层的背景颜色
  3392. borderColor: "rgba(50,50,50,0.7)",
  3393. textStyle: {
  3394. color: "#fff",
  3395. fontStyle: "normal", // 文字字体的风格('normal',无样式;'italic',斜体;'oblique',倾斜字体)
  3396. fontWeight: "normal", // 文字字体的粗细('normal',无样式;'bold',加粗;'bolder',加粗的基础上再加粗;'lighter',变细;数字定义粗细也可以,取值范围100至700)
  3397. fontSize: "28", // 文字字体大小
  3398. },
  3399. },
  3400. xAxis: {
  3401. data: commonCompany,
  3402. axisTick: {
  3403. show: false,
  3404. },
  3405. // x轴的字体颜色
  3406. axisLabel: {
  3407. rotate: 40,
  3408. textStyle: {
  3409. color: "white",
  3410. fontSize: "20",
  3411. fontFamily: "Microsoft YaHei",
  3412. },
  3413. },
  3414. //y轴线的颜色以及宽度
  3415. axisLine: {
  3416. show: true,
  3417. lineStyle: {
  3418. color: "#1E5389",
  3419. width: 1,
  3420. type: "solid",
  3421. },
  3422. },
  3423. },
  3424. yAxis: {
  3425. name: "亿",
  3426. axisTick: {
  3427. lineStyle: {
  3428. color: "#18416F",
  3429. },
  3430. },
  3431. // y轴的字体颜色
  3432. axisLabel: {
  3433. textStyle: {
  3434. color: "white",
  3435. fontSize: "20",
  3436. fontFamily: "Microsoft YaHei",
  3437. },
  3438. },
  3439. splitLine: {
  3440. show: true,
  3441. lineStyle: {
  3442. color: "#68b4dd66",
  3443. width: 1,
  3444. type: "dashed",
  3445. },
  3446. },
  3447. //y轴线的颜色以及宽度
  3448. axisLine: {
  3449. show: true,
  3450. lineStyle: {
  3451. color: "#1E5389",
  3452. width: 1,
  3453. type: "solid",
  3454. },
  3455. },
  3456. nameTextStyle: {
  3457. color: "#fff",
  3458. fontSize: 20,
  3459. fontFamily: "Microsoft YaHei",
  3460. },
  3461. },
  3462. series: [
  3463. {
  3464. name: "已用额度",
  3465. type: "pictorialBar",
  3466. symbol: "fixed",
  3467. symbolSize: [20, 5],
  3468. symbolMargin: 2,
  3469. symbolRepeat: "repeat",
  3470. data: [
  3471. 26, 36, 16, 46, 26, 36, 16, 46, 26, 36, 16, 46, 26, 36, 16, 46,
  3472. 26, 36,
  3473. ],
  3474. showBackground: false,
  3475. barWidth: "15",
  3476. itemStyle: {
  3477. color: "#40A9FF",
  3478. },
  3479. zlevel: 1,
  3480. },
  3481. {
  3482. name: "总额度",
  3483. type: "pictorialBar",
  3484. symbol: "fixed",
  3485. symbolSize: [30, 5],
  3486. symbolMargin: 2,
  3487. symbolRepeat: "repeat",
  3488. data: [
  3489. 390, 390, 390, 200, 390, 390, 390, 200, 390, 390, 390, 200, 390,
  3490. 390, 390, 200, 390, 200,
  3491. ],
  3492. barGap: "-130%",
  3493. barWidth: "25",
  3494. itemStyle: {
  3495. color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [
  3496. {
  3497. offset: 0,
  3498. color: "#b9b7c030",
  3499. },
  3500. {
  3501. offset: 1,
  3502. color: "#b9b7c030",
  3503. },
  3504. ]),
  3505. },
  3506. },
  3507. ],
  3508. };
  3509. //轮播
  3510. tools.loopShowTooltip(that.leftEcharts10, option, {
  3511. interval: 2000,
  3512. loopSeries: true,
  3513. });
  3514. //注册
  3515. that.leftEcharts10.setOption(option);
  3516. },
  3517. // 重点项目两线指标轮播方法
  3518. scrollChange (index) {
  3519. if (index == 18) {
  3520. this.count = -1;
  3521. } else {
  3522. this.count = index;
  3523. }
  3524. if (this.count > 12 && this.count != 18) {
  3525. this.countType = 1;
  3526. } else {
  3527. this.countType = 0;
  3528. }
  3529. for (var i = 0; i < this.list.length; i++) {
  3530. if (i == 2) {
  3531. this.list[i].classList.add("light");
  3532. } else {
  3533. this.list[i].classList.remove("light");
  3534. }
  3535. }
  3536. this.leftEcharts11 ? this.leftEcharts11.dispose() : "";
  3537. this.leftEcharts11Fun();
  3538. },
  3539. leftEcharts11Fun () {
  3540. let that = this;
  3541. this.leftEcharts11 = echarts.init(this.$refs["leftEcharts11"]);
  3542. option = {
  3543. tooltip: {
  3544. trigger: "axis",
  3545. formatter:
  3546. "指标:" +
  3547. "{c0}" +
  3548. "<br/>" +
  3549. "发展线:" +
  3550. "{c1}" +
  3551. "<br/>" +
  3552. "生存线:" +
  3553. "{c2}", //+ '<br/>'+ '{a1}:{c1}' + '%',
  3554. axisPointer: {
  3555. type: "shadow",
  3556. },
  3557. backgroundColor: "rgba(50,50,50,0.7)",
  3558. borderColor: "rgba(50,50,50,0.7)",
  3559. textStyle: {
  3560. color: "#fff",
  3561. fontStyle: "normal", // 文字字体的风格('normal',无样式;'italic',斜体;'oblique',倾斜字体)
  3562. fontWeight: "normal", // 文字字体的粗细('normal',无样式;'bold',加粗;'bolder',加粗的基础上再加粗;'lighter',变细;数字定义粗细也可以,取值范围100至700)
  3563. fontSize: "28", // 文字字体大小
  3564. }
  3565. },
  3566. grid: {
  3567. top: "10%",
  3568. right: "5%",
  3569. left: "15%",
  3570. bottom: "20%",
  3571. },
  3572. xAxis: {
  3573. data: [
  3574. "总投资收益率",
  3575. "销售利润率",
  3576. "成本费用利润率",
  3577. "总资产周转率",
  3578. "财务内部收益率",
  3579. ],
  3580. // data: left15[this.countType],
  3581. axisLine: {
  3582. show: true, //隐藏X轴轴线
  3583. lineStyle: {
  3584. color: "#005094",
  3585. width: 1,
  3586. },
  3587. },
  3588. axisTick: {
  3589. show: true, //隐藏X轴刻度
  3590. },
  3591. axisLabel: {
  3592. show: true,
  3593. rotate: 30,
  3594. textStyle: {
  3595. color: "#fff", //X轴文字颜色
  3596. fontSize: 20,
  3597. fontFamily: "Microsoft YaHei",
  3598. },
  3599. },
  3600. },
  3601. yAxis: [
  3602. {
  3603. type: "value",
  3604. splitLine: {
  3605. show: true,
  3606. lineStyle: {
  3607. color: "#68b4dd66",
  3608. type: "dashed",
  3609. },
  3610. },
  3611. axisLine: {
  3612. show: false,
  3613. },
  3614. axisLabel: {
  3615. show: true,
  3616. formatter: "{value}%",
  3617. textStyle: {
  3618. color: "#fff",
  3619. fontSize: 20,
  3620. fontFamily: "Microsoft YaHei",
  3621. },
  3622. },
  3623. nameTextStyle: {
  3624. color: "#ebf8ac",
  3625. fontSize: 16,
  3626. fontFamily: "Microsoft YaHei",
  3627. },
  3628. },
  3629. ],
  3630. series: [
  3631. {
  3632. name: "实际值",
  3633. type: "bar",
  3634. barWidth: 20,
  3635. itemStyle: {
  3636. normal: {
  3637. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  3638. {
  3639. offset: 0,
  3640. color: "#69c0ff",
  3641. },
  3642. {
  3643. offset: 1,
  3644. color: "#082550",
  3645. },
  3646. ]),
  3647. },
  3648. },
  3649. data: [70, 52, 33, 41, 52],
  3650. // data: this.storageRecordConfig.data.length == 0 ? [] : this.storageRecordConfig.data.length == 1 ? left12[this.count][2] : left12[this.count + 1][2]
  3651. },
  3652. {
  3653. name: "",
  3654. type: "line",
  3655. barWidth: 15,
  3656. itemStyle: {
  3657. normal: {
  3658. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  3659. {
  3660. offset: 0,
  3661. color: "#69c0ff",
  3662. },
  3663. {
  3664. offset: 1,
  3665. color: "green",
  3666. },
  3667. ]),
  3668. },
  3669. },
  3670. data: [20, 30, 15, 28, 36],
  3671. // data: this.storageRecordConfig.data.length == 0 ? [] : this.storageRecordConfig.data.length == 1 ? left12[this.count][1] : left12[this.count + 1][1]
  3672. },
  3673. {
  3674. name: "",
  3675. type: "line",
  3676. barWidth: 15,
  3677. itemStyle: {
  3678. normal: {
  3679. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  3680. {
  3681. offset: 0,
  3682. color: "#69c0ff",
  3683. },
  3684. {
  3685. offset: 1,
  3686. color: "yellow",
  3687. },
  3688. ]),
  3689. },
  3690. },
  3691. data: [15, 22, 17, 33, 14],
  3692. // data: this.storageRecordConfig.data.length == 0 ? [] : this.storageRecordConfig.data.length == 1 ? left12[this.count][0] : left12[this.count + 1][0]
  3693. },
  3694. ],
  3695. };
  3696. //轮播
  3697. tools.loopShowTooltip(that.leftEcharts11, option, {
  3698. interval: 2000,
  3699. loopSeries: true,
  3700. });
  3701. //注册
  3702. that.leftEcharts11.setOption(option);
  3703. },
  3704. leftEcharts12Fun () {
  3705. let that = this;
  3706. this.leftEcharts12 = echarts.init(this.$refs["leftEcharts12"]);
  3707. var totalData = [{
  3708. name: '传统产业',
  3709. value: 12,
  3710. radio: 0.13
  3711. }, {
  3712. name: '公共基础产业',
  3713. value: 52,
  3714. radio: 0.01
  3715. }, {
  3716. name: '战略性新兴产业',
  3717. value: 15,
  3718. radio: 3.9
  3719. }, {
  3720. name: '特色优势产业',
  3721. value: 56,
  3722. radio: 10.5
  3723. }];
  3724. var data = [];
  3725. for (var i = 0; i < totalData.length; i++) {
  3726. data.push({
  3727. value: totalData[i].value,
  3728. name: totalData[i].name,
  3729. itemStyle: {
  3730. normal: {
  3731. borderWidth: 8,
  3732. shadowBlur: 0,
  3733. borderColor: commonColor[i],
  3734. shadowColor: commonColor[i]
  3735. }
  3736. }
  3737. },
  3738. {
  3739. value: 5,
  3740. name: '',
  3741. itemStyle: {
  3742. normal: {
  3743. label: {
  3744. show: false
  3745. },
  3746. labelLine: {
  3747. show: false
  3748. },
  3749. color: 'rgba(0, 0, 0, 0)',
  3750. borderColor: 'rgba(0, 0, 0, 0)',
  3751. borderWidth: 0
  3752. }
  3753. }
  3754. }
  3755. );
  3756. }
  3757. var seriesOption = [
  3758. {
  3759. name: '',
  3760. type: 'pie',
  3761. clockWise: false,
  3762. radius: [170, 160],
  3763. center: [260, 250],
  3764. hoverAnimation: false,
  3765. itemStyle: {
  3766. normal: {
  3767. label: {
  3768. show: false,
  3769. }
  3770. }
  3771. },
  3772. data: data
  3773. },
  3774. {
  3775. type: 'pie',
  3776. radius: [120, 120],
  3777. center: [260, 250],
  3778. zlevel: 3,
  3779. silent: true,
  3780. label: {
  3781. normal: {
  3782. show: false
  3783. },
  3784. },
  3785. labelLine: {
  3786. normal: {
  3787. show: false
  3788. }
  3789. },
  3790. data: _pie3()
  3791. },
  3792. {
  3793. type: "liquidFill",
  3794. radius: "40%",
  3795. data: [left2[0], left2[0] + 0.05, left2[0] - 0.05],
  3796. center: [260, 250],
  3797. backgroundStyle: {
  3798. color: {
  3799. type: "radial",
  3800. x: 0.5,
  3801. y: 0.5,
  3802. r: 0.5,
  3803. // 水球体颜色
  3804. colorStops: [
  3805. {
  3806. offset: 0,
  3807. color: "#010a11",
  3808. },
  3809. {
  3810. offset: 0.75,
  3811. // color: "#203852",
  3812. color: "#1a2f45",
  3813. },
  3814. {
  3815. offset: 1,
  3816. // color: "#354e6d",
  3817. color: "#2b405a",
  3818. // color: "#314967",
  3819. },
  3820. ],
  3821. globalCoord: false,
  3822. },
  3823. },
  3824. outline: {
  3825. borderDistance: 0,
  3826. itemStyle: {
  3827. borderWidth: 0,
  3828. borderColor: {
  3829. type: "linear",
  3830. x: 0,
  3831. y: 0,
  3832. x2: 0,
  3833. y2: 1,
  3834. colorStops: [
  3835. ],
  3836. globalCoord: false,
  3837. },
  3838. },
  3839. },
  3840. color: [
  3841. {
  3842. x: 0,
  3843. y: 0,
  3844. x2: 0,
  3845. y2: 1,
  3846. colorStops: [{
  3847. offset: 0,
  3848. color: '#237386',
  3849. },
  3850. {
  3851. offset: 1,
  3852. color: '#0078C8',
  3853. },],
  3854. },
  3855. {
  3856. x: 0,
  3857. y: 0,
  3858. x2: 0,
  3859. y2: 1,
  3860. colorStops: [{
  3861. offset: 0,
  3862. color: '#2F97A9',
  3863. },
  3864. {
  3865. offset: 1,
  3866. color: '#0078C8',
  3867. },],
  3868. },
  3869. {
  3870. x: 0,
  3871. y: 0,
  3872. x2: 0,
  3873. y2: 1,
  3874. colorStops: [{
  3875. offset: 0,
  3876. color: '#48E0ED',
  3877. },
  3878. {
  3879. offset: 1,
  3880. color: '#0078C8',
  3881. },],
  3882. }
  3883. ],
  3884. label: {
  3885. normal: {
  3886. textStyle: {
  3887. color: "#58E6F7", // x轴文字颜色
  3888. },
  3889. },
  3890. },
  3891. },
  3892. ];
  3893. option = {
  3894. color: commonColor,
  3895. title: {
  3896. show: false,
  3897. text: '风险类型123',
  3898. top: '48%',
  3899. textAlign: "center",
  3900. left: "49%",
  3901. textStyle: {
  3902. color: '#fff',
  3903. fontSize: 18,
  3904. fontWeight: '400'
  3905. }
  3906. },
  3907. tooltip: {
  3908. show: false
  3909. },
  3910. legend: {
  3911. icon: "circle",
  3912. orient: 'vertical',
  3913. formatter: function (name) {
  3914. let num
  3915. for (let i = 0; i < totalData.length; i++) {
  3916. if (totalData[i].name === name) {
  3917. num = name + ':' + totalData[i].value + '(' + totalData[i].radio + '%' + ')'
  3918. }
  3919. }
  3920. return num
  3921. },
  3922. data: ['传统产业', '公共基础产业', '战略性新兴产业', '特色优势产业'],
  3923. right: 0,
  3924. bottom: 0,
  3925. align: 'left',
  3926. textStyle: {
  3927. color: '#FFF', // 文字的颜色
  3928. fontSize: '20', // 文字字体大小
  3929. fontFamily: 'Microsoft YaHei'
  3930. },
  3931. itemGap: 20
  3932. },
  3933. toolbox: {
  3934. show: false
  3935. },
  3936. series: seriesOption
  3937. }
  3938. function _pie3 () {
  3939. let dataArr = [];
  3940. for (var i = 0; i < 100; i++) {
  3941. if (i % 2 === 0) {
  3942. dataArr.push({
  3943. name: (i + 1).toString(),
  3944. value: 25,
  3945. itemStyle: {
  3946. normal: {
  3947. color: "#5A5DE0",
  3948. borderWidth: 1,
  3949. borderColor: "#5A5DE0"
  3950. }
  3951. }
  3952. })
  3953. } else {
  3954. dataArr.push({
  3955. name: (i + 1).toString(),
  3956. value: 20,
  3957. itemStyle: {
  3958. normal: {
  3959. color: "rgba(0,0,0,0)",
  3960. borderWidth: 0,
  3961. borderColor: "rgba(0,0,0,0)"
  3962. }
  3963. }
  3964. })
  3965. }
  3966. }
  3967. return dataArr
  3968. }
  3969. //轮播
  3970. tools.loopShowTooltip(that.leftEcharts12, option, {
  3971. interval: 2000,
  3972. loopSeries: true,
  3973. });
  3974. //注册
  3975. that.leftEcharts12.setOption(option);
  3976. },
  3977. leftEcharts13Fun () {
  3978. let that = this;
  3979. this.leftEcharts13 = echarts.init(this.$refs["leftEcharts13"]);
  3980. var totalData = [{
  3981. name: '传统产业',
  3982. value: 12,
  3983. radio: 0.13
  3984. }, {
  3985. name: '公共基础产业',
  3986. value: 52,
  3987. radio: 0.01
  3988. }, {
  3989. name: '战略性新兴产业',
  3990. value: 15,
  3991. radio: 3.9
  3992. }, {
  3993. name: '特色优势产业',
  3994. value: 56,
  3995. radio: 10.5
  3996. }];
  3997. var data = [];
  3998. for (var i = 0; i < totalData.length; i++) {
  3999. data.push({
  4000. value: totalData[i].value,
  4001. name: totalData[i].name,
  4002. itemStyle: {
  4003. normal: {
  4004. borderWidth: 8,
  4005. shadowBlur: 0,
  4006. borderColor: commonColor[i],
  4007. shadowColor: commonColor[i]
  4008. }
  4009. }
  4010. },
  4011. {
  4012. value: 5,
  4013. name: '',
  4014. itemStyle: {
  4015. normal: {
  4016. label: {
  4017. show: false
  4018. },
  4019. labelLine: {
  4020. show: false
  4021. },
  4022. color: 'rgba(0, 0, 0, 0)',
  4023. borderColor: 'rgba(0, 0, 0, 0)',
  4024. borderWidth: 0
  4025. }
  4026. }
  4027. }
  4028. );
  4029. }
  4030. var seriesOption = [
  4031. {
  4032. name: '',
  4033. type: 'pie',
  4034. clockWise: false,
  4035. radius: [170, 160],
  4036. center: [260, 250],
  4037. hoverAnimation: false,
  4038. itemStyle: {
  4039. normal: {
  4040. label: {
  4041. show: false,
  4042. }
  4043. }
  4044. },
  4045. data: data
  4046. },
  4047. {
  4048. type: 'pie',
  4049. radius: [120, 120],
  4050. center: [260, 250],
  4051. zlevel: 3,
  4052. silent: true,
  4053. label: {
  4054. normal: {
  4055. show: false
  4056. },
  4057. },
  4058. labelLine: {
  4059. normal: {
  4060. show: false
  4061. }
  4062. },
  4063. data: _pie3()
  4064. },
  4065. {
  4066. type: "liquidFill",
  4067. radius: "40%",
  4068. data: [left2[0], left2[0] + 0.05, left2[0] - 0.05],
  4069. center: [260, 250],
  4070. backgroundStyle: {
  4071. color: {
  4072. type: "radial",
  4073. x: 0.5,
  4074. y: 0.5,
  4075. r: 0.5,
  4076. // 水球体颜色
  4077. colorStops: [
  4078. {
  4079. offset: 0,
  4080. color: "#010a11",
  4081. },
  4082. {
  4083. offset: 0.75,
  4084. // color: "#203852",
  4085. color: "#1a2f45",
  4086. },
  4087. {
  4088. offset: 1,
  4089. // color: "#354e6d",
  4090. color: "#2b405a",
  4091. // color: "#314967",
  4092. },
  4093. ],
  4094. globalCoord: false,
  4095. },
  4096. },
  4097. outline: {
  4098. borderDistance: 0,
  4099. itemStyle: {
  4100. borderWidth: 0,
  4101. borderColor: {
  4102. type: "linear",
  4103. x: 0,
  4104. y: 0,
  4105. x2: 0,
  4106. y2: 1,
  4107. colorStops: [
  4108. ],
  4109. globalCoord: false,
  4110. },
  4111. },
  4112. },
  4113. color: [
  4114. {
  4115. x: 0,
  4116. y: 0,
  4117. x2: 0,
  4118. y2: 1,
  4119. colorStops: [{
  4120. offset: 0,
  4121. color: '#237386',
  4122. },
  4123. {
  4124. offset: 1,
  4125. color: '#0078C8',
  4126. },],
  4127. },
  4128. {
  4129. x: 0,
  4130. y: 0,
  4131. x2: 0,
  4132. y2: 1,
  4133. colorStops: [{
  4134. offset: 0,
  4135. color: '#2F97A9',
  4136. },
  4137. {
  4138. offset: 1,
  4139. color: '#0078C8',
  4140. },],
  4141. },
  4142. {
  4143. x: 0,
  4144. y: 0,
  4145. x2: 0,
  4146. y2: 1,
  4147. colorStops: [{
  4148. offset: 0,
  4149. color: '#48E0ED',
  4150. },
  4151. {
  4152. offset: 1,
  4153. color: '#0078C8',
  4154. },],
  4155. }
  4156. ],
  4157. label: {
  4158. normal: {
  4159. textStyle: {
  4160. color: "#58E6F7", // x轴文字颜色
  4161. },
  4162. },
  4163. },
  4164. },
  4165. ];
  4166. option = {
  4167. color: commonColor,
  4168. title: {
  4169. show: false,
  4170. text: '风险类型123',
  4171. top: '48%',
  4172. textAlign: "center",
  4173. left: "49%",
  4174. textStyle: {
  4175. color: '#fff',
  4176. fontSize: 18,
  4177. fontWeight: '400'
  4178. }
  4179. },
  4180. tooltip: {
  4181. show: false
  4182. },
  4183. legend: {
  4184. icon: "circle",
  4185. orient: 'vertical',
  4186. formatter: function (name) {
  4187. let num
  4188. for (let i = 0; i < totalData.length; i++) {
  4189. if (totalData[i].name === name) {
  4190. num = name + ':' + totalData[i].value + '(' + totalData[i].radio + '%' + ')'
  4191. }
  4192. }
  4193. return num
  4194. },
  4195. data: ['传统产业', '公共基础产业', '战略性新兴产业', '特色优势产业'],
  4196. right: 0,
  4197. bottom: 0,
  4198. align: 'left',
  4199. textStyle: {
  4200. color: '#FFF', // 文字的颜色
  4201. fontSize: '20', // 文字字体大小
  4202. fontFamily: 'Microsoft YaHei'
  4203. },
  4204. itemGap: 20
  4205. },
  4206. toolbox: {
  4207. show: false
  4208. },
  4209. series: seriesOption
  4210. }
  4211. function _pie3 () {
  4212. let dataArr = [];
  4213. for (var i = 0; i < 100; i++) {
  4214. if (i % 2 === 0) {
  4215. dataArr.push({
  4216. name: (i + 1).toString(),
  4217. value: 25,
  4218. itemStyle: {
  4219. normal: {
  4220. color: "#5A5DE0",
  4221. borderWidth: 1,
  4222. borderColor: "#5A5DE0"
  4223. }
  4224. }
  4225. })
  4226. } else {
  4227. dataArr.push({
  4228. name: (i + 1).toString(),
  4229. value: 20,
  4230. itemStyle: {
  4231. normal: {
  4232. color: "rgba(0,0,0,0)",
  4233. borderWidth: 0,
  4234. borderColor: "rgba(0,0,0,0)"
  4235. }
  4236. }
  4237. })
  4238. }
  4239. }
  4240. return dataArr
  4241. }
  4242. //轮播
  4243. tools.loopShowTooltip(that.leftEcharts13, option, {
  4244. interval: 2000,
  4245. loopSeries: true,
  4246. });
  4247. //注册
  4248. that.leftEcharts13.setOption(option);
  4249. },
  4250. },
  4251. });