index.js 119 KB

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