index.js 105 KB

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