index.js 109 KB

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