index.js 109 KB

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