index.js 91 KB

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