index4.js 70 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270
  1. let barImg =
  2. 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAtCAYAAAA6GuKaAAAAAXNSR0IArs4c6QAADNRJREFUaEPNmXmQFNd9x9/Zr3u6Z2ZndzkiLeYwYhctJUtgC8GGQ46MBLYsjAURQnKSckWKkz+SkuWUnarElqtSsV2W/Kccq+Kq6EIFGAwpEEFSWIRYgQKSIrFiF3EsBskcuztX3+/oVPfMLMMesKxklbtq6tXMTk9/+rff/v6OB8HEDzjxU4fOjCbyGxO5cP05Ezm/xlkPfF3w13PRsWAhAMurfytX1nb/8ne79SpQurp2xutYwOOCHy907Xt1awxahkOAQQCBEJXX8IOQCMQvxipQyY3EN3HFDdSArwk+HuhRgBcgMLuIEgDXxcnKc5X3Mqis9QdmKnlL85U1lZLJeiKrADgSfzYc+Krg14IeBrwcgdnnKpAxbAwqPAyyCgJhonRKR5HkCXSkFIQIJReHmKqy6ytAHAWKKALEkMkNDMG3SAA6Kzc08gZGxOBq0MOAF+Akur6PAG9EILQJSJsIaISYIsRKEAyURJFGMIg0CKIIAggjAMMIhkIChBUiQjpEkyAUApQdBTRLADqogK6ratQr/4FrgI8FPTpwLbqmQyyc0ZTgWOEUBRLjyACUSoQjRumS9f94d+7G6evyH53ZtH/jz/4bBpxzrCT0AAdYSiRdjgiVtiyFwDHFUNSvlMuYGh8NenTgcooAJSEwEDVxpKkQ0chkmoowo4zSSEQUE4396YbHH043TbnvzNGDP50+b9EPiv0fb+168annpQgDSCDnAecIygA6QYg0xR0JQ+ApDhCOQNoVw3Q+Kvhw6LGB4wdMJzQFNV2JgERYY8RkRkR0hglkCGrGF1c/+qDVOGVl9/7tTwx+9OHFxhtvmty+5L4f2wO/33F4+zMvqSj0pIgCKPxAOIEHZRggwoQbhT7wBQfxA3sZfEypjOa91c+qGo4jHAMzqKWQwRTxqYpSBqVIR9S0EGM6xNi8ZcUD66zc1BU9Xbt/buc/LgJEAVAcZJpbsjctXPE9d+DCy//36sYtkZSOCgJfccfmXPkIuh4SOneVF4AgCscDPhy6+r7qEjUNM6AlEY6BlZEiFBpIT2cQoSlCdWvusq/fn8pN/fLJI3t/5dl5JwKYIIKgEiqCQAojkzM/f9udj7r5868d27dji+C+rQR3lV8uCR55CCoPSRgmEQ9AeFnjI1yl4kbVp7V+hWD2bJK4RJDFsYZTETGuAGZWFmKUJtSy5iz52loz27TsdHfX875jh5BQDSNMAYAQgCiSSvJI8FA309rM9kUPeYX+zp43dm4R3LYjqcoqsIsJOPLcJOJQeInGWVFWXOWEqLrJkL6vhE1uopo4YlkYJWpCi0lfMcWMFCEghWJgRDPY0LOti7+6xsg0L+072rWZ81AiTFNIIwwBTJNwRAAoILkKRaAkdzVNw59rX/SAn+//n95Du7ZJzy9GipcScAFcFHgu1lHgRHaQuEo24KM8mFH80/WpuZI8Yll4OrUaY2CgKYgMYlATMrMBIpjButkw546V9xsNzUvOvH9oq+AcQMbShFIDE8KYmbWmzV3Y9rsPDh0P3WJJChEIzr0oCMpE0+D0eQu/6eUv7j1+aPdW6TuFSEWlKHAKwuMOipSHdRDag3YADJ8nCejEkEyG5FEHXn34iowmsoBCV8wyMEQWwkYGajSDsd4wp+OedXpD87IzR9/6rRQBgkzPYspMhDRDT2esGfMWtxHKmAiDsK+765hfLtlKhZ7kgRMFfpFSpqa1L1wTR/x418ubpfQLUchLSnolGSkbBbbnRsRPZHI52kNuUgOurO3tGOTzJI4yaMpqukKGwtQkGrOopmcx0Rpv6vjaeiPTuKyv+81tkocEa0YDpCyDCU3p6YZsS9uXZhLKtFruFTzgZ3v/93RQKhSk4G4k/LIM/DwmTMYRD4uDr/V27XxJhn6BizCPwsAWkjs+Uh4YKIZJtHM5Abq7Y+ikQqyDXo5A+yWUQGuaZgJTl5Fp4DRLI4wzmKaa2pev2cDMhrtOHz2wmQeCIIM1YaJnscYsZmUz0+YsmIkppcOLBSk4P3f8SF9ol0uce2UZ+kXlBQOUaWLmvEVrg3L+1e7Xt70guTugpCzJclDG0PEc4PjAy3DQLDnonqSq9ckw6FjPsTQY0AxADGUxEwMtTfVU462rHv6WZjasPPFO54th4BOkGc2EsRzGWoZlcg0tc+bPxFSjcSxyKQ38RcdM8J9dp0HeCZOnRgouPzp+5JRfzOelDEsiCPIq9Pp1zZCz5i97MCwXdr27+7lngQjzvnBLyA4cDwgvscBEIpd1XRfpBRjMGMCgRLR0c1YTdmBg07IgS+Vu/+bffptZma/3HNr9jOfYGmGpZqIbTYjoOSPT0NzS+sVZiFIaRRHIpRj47t1toNliYMAOwZN7joFBJwAQQqAEl2d7D5/0i4VLSvh5GXqD3HMvGak0b7vjnkcCJ7/trS2//HUUuHmppI2h8O3BcgAyIgR9TRKAI4lEroRuuUCAq1Mrl9KFRClspTNL13//O1o6u6b79d8+5ZQGCGSpKdQwJlHNaGLpxsnT5i6ciwnRogiAhpQ2BFyTSAL+yjGQt8PEuaUU/OwHhz4IioMXufAGpOv2y9A7n840qZuXrn7MLRc2Hdj403+XdrlEsHLtvOuDlM/BuSliJHR7OwHFIh6CFrq57NF/XpttvvGxt1/Z+ETp0tkIadYUaqSmEmZMSuUm3TDjliXzISIsimQC/NiKSoSHHzH4U68cA4N2CBDGIBIiPP3e/ne8wqVzIvAucc89r0L7QsOUz6Fb73rgX0oXzv6s85l/3UaI7wxBZ7MSdHcnieZypGvQjqbF/iw4s9b8+NebTx7ufPbDt187R/T0JKIbUzE1phJdb25ddO+XWcrKSSnjvAf+/q5W0Do1MwK49sGHF8vgF3t6AIQYYExA4NulngM7XpW+f0ly77zw7QvCdy+2fenuGdO/0LF224++/SDGnuMUXB+YYQgq0LE81EjomjyGIn3DP7yz54Univ0fw/pIGw2TWmbesuQ2iGNpVCL93RVzQZM15HZDNzDohOCpPT1gwA6GIt33/oF33PyFKyKdmXQDnP+Vh35YujjeSIMFGIym6Q0/+I5mZr7x/t7Nv/Cc0miavhkTQmNN58yREomBn9zTA+IEV9P0uWNvHfOKAxcF9/prmjYzTaJ96erHw3Jxy+sbf/L0+DQdQ4/lHvf/3V8zM72q9+DuZ1zX1q9wj2yuuaV1wSxEKu7RaLIhbdeAB2y/zj2OnPTL+UsqrHMP0wpbF658JLQL29/6zdP/cR3uUS1Hx/DpW1Y+/Fe6lV1x8vDe5wMRavU+radzuRtb58/CVMOJT5sa+MuOmeDZrr5EEpd9+u1TXjFfUDIo1nxaY7qYfdvyDaFT2PXuruv26WpG7Mc0qe5Gz4gPMyt356n33tgiwrqMyIy0bqUzLXMWzMDkckaMJZNIQnB57vjbp0K7NJQRpe8Pahrls+Z1rPWd/KvdnRPKiOOrPVqX3LtesxqW/u7owW1ChBQzPQeJnq6rPWYRjSWZMY5wUnv0HD4dlPIFqXhc55dlEOQxpWJG+6JvBKX8vt4D/7VxgrVH/LCPr8pr7Vj5AGto7jhz9OAOKcKRVV774rlE0zUR+mHfB2/2+HaxrEStyguKlGpqWvvtq/3C4L7jb+7cLHmQn0iVV+1i6tqsa9TTbXesWssamhfHEechhyPq6fZFN589eqgnsPMlqerqaUbB9LgsLfTv6z348oTr6VrbVfXs8XcubXesur8S8Te3DO9coigxjCjuXOIMKDl3KNXwjHmL13qF/td7D+7c+kk6l+G94nX1iG3L7l1rZBqX9r1/4DnPdcTwHjGSQkgpgrhHnNW+6CG3PLivZ/+OLSJwyp+0R6yPNgBgjG48HtJEyBjZjd+3LpWbvPzEkb1P+3bBH9GNWznz8wvufMTJX+js2bd906fVjY/SmV/f3OMLX1n/52Zu6p/1du18slw4X6rNPazcDdm2xSsft/O/3/Penpc2RZx7inP305p7XBv8GhOm21f/zYZU4+R7jnZu/WH+/Kn+xj+ZNbl92Zof2QPndx3e/qsX/xATplqBM2ysUPdgjjLLIxFm8dCxNstb8uD3vmU1T763790D/zbj1o5/Kg9c2P7GCz9/DgEVCiDDeBgpPuVZ3tXBxzs1fej7q3JTp6/Lnz+zaf/zP9n1WUxNRwO/nHhqk6d4mD58Ps20eKg+cj6NqQRBOHI+HQ/XhyZJya7AJ5pPjwF+9Z0AS48LJpnIq34nAEAc2X4oP4udgDHA60Zn8TdiychmmMyu6/dbIgUBrGxfJEc8xo1n0Lg/+kPvuVwF/I97d2s4eL011mqWquP8ce0j1jesow3iR2toq3PTMXvdz2THdvjVr7YzNibpsD9cc6NztB/6f4ffQsan0xs3AAAAAElFTkSuQmCC'
  3. let app = new Vue({
  4. el: '#app',
  5. data () {
  6. return {
  7. touch: true,
  8. timeCommon: '',
  9. echartC1:{
  10. national:'',
  11. province:''
  12. },
  13. echartC2:{
  14. national:'',
  15. province:''
  16. },
  17. titleName: '',
  18. twinkle7: [],
  19. twinkle8: [],
  20. twinkleR6: [],
  21. showTip: false,
  22. tipNum: '',
  23. time: '',
  24. year: '2022',
  25. config1: {
  26. number: [100],
  27. content: '{nt}个',
  28. },
  29. centerData: '',
  30. storageRecordConfig: {
  31. header: ['', '公司名称', '工作情况'],
  32. headerBGC: '#05507b33',
  33. oddRowBGC: '#69c0ff0f',
  34. evenRowBGC: '',
  35. headerHeight: '50',
  36. rowNum: 4,
  37. align: ['center', 'center', 'center', 'center'],
  38. data: [],
  39. },
  40. storageRecordConfig2: {
  41. header: ['企业名称', '预警内容', '数据抓取日期', '累计未获取数据日期'],
  42. headerBGC: '#05507b33',
  43. oddRowBGC: '#05507b33',
  44. evenRowBGC: '',
  45. headerHeight: '50',
  46. rowNum: 4,
  47. align: ['center', 'center', 'center', 'center'],
  48. data: [],
  49. },
  50. companyList: companyList,
  51. commonOption: []
  52. }
  53. },
  54. beforeMount () {
  55. },
  56. mounted () {
  57. this.getUrlParams()
  58. this.time = formatDate()
  59. this.timer = setInterval(() => {
  60. this.time = formatDate()
  61. }, 1000)
  62. this.centerData = data
  63. // 左侧图表
  64. this.initChartL1()
  65. // this.initChartL2()
  66. this.initChartL3()
  67. // this.initChartL4()
  68. // this.initChartL5()
  69. this.initChartL6()
  70. // this.initChartL7()
  71. // this.initChartL8()
  72. // 中间图表
  73. this.initChartC1()
  74. this.initChartC2()
  75. // 右侧图表
  76. // this.initChartR1()
  77. // this.initChartR2()
  78. // this.initChartR3()
  79. this.initChartR4()
  80. this.initChartR5()
  81. // this.initChartR6()
  82. this.initChartR7()
  83. // this.initChartR8()
  84. },
  85. beforeDestroy () {
  86. clearInterval(this.timer);
  87. clearInterval(this.timeCommon);
  88. },
  89. methods: {
  90. judgeCarousel () {
  91. let a = {
  92. title: {
  93. text: 'xxx',
  94. x: 'center',
  95. y: '3%',
  96. textStyle: {
  97. color: '#69C0FF',
  98. fontSize: 24,
  99. },
  100. },
  101. tooltip: {
  102. trigger: 'axis',
  103. axisPointer: {
  104. type: 'shadow',
  105. },
  106. },
  107. grid: {
  108. top: '22%',
  109. right: '5%',
  110. left: '8%',
  111. bottom: '25%',
  112. },
  113. legend: {
  114. data: '',
  115. top: '12%',
  116. right: '5%',
  117. textStyle: {
  118. color: 'rgba(250,250,250,0.6)',
  119. fontSize: 16,
  120. },
  121. },
  122. xAxis: {
  123. // data: companyList.map(item => item.name),
  124. data: '',
  125. axisLine: {
  126. show: true, //隐藏X轴轴线
  127. lineStyle: {
  128. color: '#005094',
  129. width: 1,
  130. },
  131. },
  132. axisTick: {
  133. show: false, //隐藏X轴刻度
  134. },
  135. axisLabel: {
  136. show: true,
  137. rotate: 15,
  138. textStyle: {
  139. color: 'rgba(255,255,255,0.6)', //X轴文字颜色
  140. fontSize: 16,
  141. },
  142. },
  143. },
  144. yAxis: [
  145. {
  146. type: 'value',
  147. nameTextStyle: {
  148. color: '#ebf8ac',
  149. fontSize: 16,
  150. },
  151. splitLine: {
  152. show: true,
  153. lineStyle: {
  154. color: '#68b4dd66',
  155. type: 'dashed',
  156. },
  157. },
  158. axisLine: {
  159. show: false,
  160. },
  161. axisLabel: {
  162. show: true,
  163. textStyle: {
  164. color: 'rgba(250,250,250,0.6)',
  165. fontSize: 16,
  166. },
  167. },
  168. },
  169. ],
  170. }
  171. a.xAxis.data = this.companyList.map(item => item.name)
  172. if (this.companyList.length > 18) {
  173. a.dataZoom = [
  174. {
  175. // start: 9,//默认为@
  176. // end: 100,//黑认认为1@0
  177. type: "slider",
  178. show: false,
  179. // xAxisIndex: [0]
  180. handlesize: 0,//滑动条的 左右2个滑动条的大小
  181. startValue: 17,// 初始显示值
  182. endValue: 0,// 结束显示值
  183. height: 10,//组件高度
  184. left: "5%",
  185. right: "4%",//右边的距离
  186. bottom: "25%",//底边的距离
  187. borderColor: "#939",
  188. fillerColor: "#269cdb",
  189. borderRadius: 5,
  190. backgroundColor: "#33384b",//两边未选中的滑动条区域的额色
  191. showDataShadow: false,//是否显示数据阴影
  192. showDetail: false,//即拖拽时候是否显示详细数值信息
  193. truerealtime: true,//是否实时更新
  194. filterMode: "filter"
  195. }, {
  196. type: 'inside',
  197. show: true,
  198. start: 1,
  199. end: 100
  200. }
  201. ]
  202. }
  203. this.commonOption = a
  204. },
  205. // 获取地址栏参数
  206. getUrlParams (id) {
  207. let url = window.location.href
  208. // 通过 ? 分割获取后面的参数字符串
  209. let urlStr = url.split('?')[1]
  210. // 创建空对象存储参数
  211. let obj = {};
  212. // 再通过 & 将每一个参数单独分割出来
  213. let paramsArr = urlStr.split('&')
  214. for (let i = 0, len = paramsArr.length; i < len; i++) {
  215. // 再通过 = 将每一个参数分割为 key:value 的形式
  216. let arr = paramsArr[i].split('=')
  217. obj[arr[0]] = arr[1];
  218. }
  219. this.access_token = obj.access_token
  220. this.orgNumber = obj.id
  221. this.titleName = decodeURIComponent(obj.name)
  222. this.getData()
  223. this.judgeCarousel()
  224. },
  225. getData () {
  226. return new Promise((resolve, err) => {
  227. let value = {
  228. access_token: this.access_token,
  229. "Data": {
  230. "paramType": "DATA",
  231. "orgNumber": this.orgNumber
  232. }
  233. }
  234. post('/ierp/kapi/v2/mdnb/mdnb_das/Data/CockpitScreen', value).then(res => {
  235. // res.orgData = res.data[0]
  236. // 定机构
  237. // 弹窗
  238. // return
  239. // 左侧图表
  240. tipData.analysis[0] = res.orgData.area1.intAnalysis.map(item => item.analysis)
  241. //各二级企业本部机构数
  242. dataL1[0] = []
  243. dataL1[1] = []
  244. dataL1[2] = []
  245. res.orgData.area1.card1.forEach(item => {
  246. dataL1[0].push(item['ZBPZ0010'])
  247. dataL1[1].push(item['ZBPZ0088'])
  248. dataL1[2].push(item['ZBPZ0089'])
  249. })
  250. // 各二级企业所属架构数
  251. dataL2[0] = []
  252. res.orgData.area1.card2.forEach(item => {
  253. dataL2[0].push(item['ZBPZ0024'])
  254. })
  255. // 定职数
  256. // 弹窗
  257. // 左侧图表
  258. tipData.analysis[2] = res.orgData.area2.intAnalysis.map(item => item.analysis)
  259. //各二级企业本部中层管理人数
  260. dataL3[0] = []
  261. res.orgData.area2.card1.forEach(item => {
  262. dataL3[0].push(item['ZBPZ0091'])
  263. })
  264. // 各二级企业管理人员数
  265. dataL4[1] = []
  266. dataL4[0] = []
  267. dataL4[2] = []
  268. res.orgData.area2.card1.forEach(item => {
  269. dataL4[1].push(item['ZBPZ0091'])
  270. dataL4[0].push(item['ZBPZ0093'])
  271. dataL4[2].push(item['ZBPZ0092'])
  272. })
  273. // 定员额
  274. // 弹窗
  275. tipData.analysis[1] = res.orgData.area3.intAnalysis.map(item => item.analysis)
  276. // 各二级企业总人数
  277. dataL5[0] = []
  278. dataL5[1] = []
  279. dataL5[2] = []
  280. res.orgData.area3.card1.forEach(item => {
  281. dataL5[0].push(item['ZBPZ0006'])
  282. dataL5[1].push(item['ZBPZ0050'])
  283. dataL5[2].push(item['ZBPZ0051'])
  284. })
  285. // 各二级企业本部员额数
  286. dataL6[0] = []
  287. res.orgData.area3.card2.forEach(item => {
  288. dataL6[0].push(item['ZBPZ0031'])
  289. })
  290. // 人数变化和全员劳动生产率变化率分析
  291. dataL7[0] = []
  292. dataL7[1] = []
  293. res.orgData.area3.card3.forEach(item => {
  294. dataL7[0].push(item['ZBPZ0050'])
  295. dataL7[1].push(item['ZBPZ0039'])
  296. })
  297. // 人数变化和人工利润率变化分析
  298. dataL8[0] = []
  299. dataL8[1] = []
  300. res.orgData.area3.card4.forEach(item => {
  301. dataL8[0].push(item['ZBPZ0050'])
  302. dataL8[1].push(item['ZBPZ0041'])
  303. })
  304. // 定机制
  305. // 弹窗
  306. tipData.analysis[6] = res.orgData.area4.intAnalysis.map(item => item.analysis)
  307. // 各二级企业招聘需求公告人次情况
  308. dataR1[0] = []
  309. dataR1[1] = []
  310. res.orgData.area4.card1.forEach(item => {
  311. dataR1[0].push(item['ZBPZ0057'])
  312. dataR1[1].push(item['ZBPZ0058'])
  313. })
  314. // 各二级企业录用结果公示人次
  315. dataR2[0] = []
  316. dataR2[1] = []
  317. res.orgData.area4.card2.forEach(item => {
  318. dataR2[0].push(item['ZBPZ0059'])
  319. dataR2[1].push(item['ZBPZ0060'])
  320. })
  321. // 各二级企业年利润与招聘情况分析
  322. dataR3[0] = []
  323. dataR3[1] = []
  324. res.orgData.area4.card3.forEach(item => {
  325. dataR3[0].push(item['ZBPZ0054'])
  326. dataR3[1].push(item['ZBPZ0055'])
  327. })
  328. // 各二级企业"退二进一"完成情况
  329. dataR4[0] = []
  330. dataR4[1] = []
  331. res.orgData.area4.card4.forEach(item => {
  332. dataR4[0].push(item['ZBPZ0056'])
  333. dataR4[1].push(item['ZBPZ0055'])
  334. })
  335. // 定薪酬
  336. // 弹窗
  337. tipData.analysis[5] = res.orgData.area5.intAnalysis.map(item => item.analysis)
  338. // 各二级企业在岗职工平均薪酬
  339. dataR5[0] = []
  340. dataR5[1] = []
  341. res.orgData.area5.card1.forEach(item => {
  342. dataR5[0].push(item['ZBPZ0063'])
  343. dataR5[1].push(item['ZBPZ0064'])
  344. })
  345. // 各二级企业利润与薪酬变动情况
  346. dataR6[0] = []
  347. dataR6[1] = []
  348. res.orgData.area5.card2.forEach(item => {
  349. dataR6[0].push(item['ZBPZ0061'])
  350. dataR6[1].push(item['ZBPZ0062'])
  351. })
  352. // 定任期
  353. // 弹窗
  354. tipData.analysis[6] = res.orgData.area6.intAnalysis.map(item => item.analysis)
  355. // 各二级企业全员绩效考核
  356. dataR7[0] = []
  357. res.orgData.area6.card1.forEach(item => {
  358. dataR7[0].push(item['ZBPZ0066'])
  359. })
  360. // 各二级企业任期制契约化完成率
  361. dataR8[0] = []
  362. res.orgData.area6.card2.forEach(item => {
  363. dataR8[0].push(item['ZBPZ0065'])
  364. })
  365. // 中间
  366. // 架岗人员
  367. this.centerData.info.value1 = res.orgData.area7.ZBPZ0037
  368. this.centerData.info.value2 = res.orgData.area7.ZBPZ0038
  369. this.centerData.info.value3 = res.orgData.area7.ZBPZ0006
  370. // 六定改革成效
  371. this.centerData.changeInfo[0].value1 = res.orgData.area8.ZBPZ0067
  372. this.centerData.changeInfo[0].value2 = res.orgData.area8.ZBPZ0068
  373. this.centerData.changeInfo[0].value3 = res.orgData.area8.ZBPZ0069
  374. this.centerData.changeInfo[2].value1 = res.orgData.area8.ZBPZ0074
  375. this.centerData.changeInfo[2].value2 = res.orgData.area8.ZBPZ0075
  376. this.centerData.changeInfo[2].value3 = res.orgData.area8.ZBPZ0076
  377. this.centerData.changeInfo[1].value1 = res.orgData.area8.ZBPZ0071
  378. this.centerData.changeInfo[1].value2 = res.orgData.area8.ZBPZ0072
  379. this.centerData.changeInfo[1].value3 = res.orgData.area8.ZBPZ0073
  380. // 核心指标监测
  381. // 弹窗
  382. tipData.analysis[3] = res.orgData.area9.intAnalysis.map(item => item.analysis)
  383. // 各二级企业全员劳动生产率
  384. dataC1[0] = []
  385. dataC1[1] = []
  386. res.orgData.area9.card1.forEach(item => {
  387. dataC1[0].push(item['ZBPZ0035'])
  388. dataC1[1].push(item['ZBPZ0039'])
  389. })
  390. // 各二级企业人工成本利润率
  391. dataC2[1] = []
  392. dataC2[0] = []
  393. res.orgData.area9.card2.forEach(item => {
  394. dataC2[1].push(item['ZBPZ0040'])
  395. dataC2[0].push(item['ZBPZ0041'])
  396. })
  397. this.echartC1.national = res.orgData.area9.card1[0].ZBPZ0097
  398. this.echartC1.province = res.orgData.area9.card1[0].ZBPZ0096
  399. this.echartC2.national = res.orgData.area9.card2[0].ZBPZ0099
  400. this.echartC2.province = res.orgData.area9.card2[0].ZBPZ0098
  401. // 分析预警中心
  402. // 工作台分析
  403. this.storageRecordConfig.data = []
  404. res.orgData.area10.card1.forEach(item => {
  405. this.storageRecordConfig.data.push(['<span class="lightOut"><span class="light ' + (item.lightsup === '0' ? 'red' : item.lightsup === '1' ? 'yellow' : 'green') + '"></span></span>', item.enterprise, item.work])
  406. })
  407. this.storageRecordConfig = { ...this.storageRecordConfig }
  408. // 数据库预警
  409. // this.storageRecordConfig2.data = []
  410. // res.orgData.area10.card2.forEach(item => {
  411. // this.storageRecordConfig.data.push(['<span class="lightOut"><span class="light ' + (item.lightsup === '0' ? 'red' : item.lightsup === '1' ? 'yellow' : 'green') + '"></span></span>', item.warning, item.date])
  412. // })
  413. dataL7[0].forEach((item, index) => {
  414. if (dataL7[1][index] < 0 && dataL7[0][index] > 0) {
  415. let obj = { value: [this.companyList[index].name, dataL7[0][index]], symbolSize: 15 }
  416. this.twinkle7.push(obj)
  417. }
  418. })
  419. // if (dataL8[1][params.dataIndex] < 0 && params.value > 0) {
  420. dataL8[0].forEach((item, index) => {
  421. if (dataL8[1][index] < 0 && dataL8[0][index] > 0) {
  422. let obj = { value: [this.companyList[index].name, dataL8[0][index]], symbolSize: 15 }
  423. this.twinkle8.push(obj)
  424. }
  425. })
  426. //params.value > 0 && dataR6[0][params.dataIndex] < 0
  427. // params.value > 0 && fjxdataL2[0][params.dataIndex] < 0
  428. dataR6[0].forEach((item, index) => {
  429. if (dataR6[1][index] > 0 && dataR6[0][index] < 0) {
  430. let obj = { value: [this.companyList[index].name, dataR6[1][index]], symbolSize: 15 }
  431. this.twinkleR6.push(obj)
  432. }
  433. })
  434. this.generateEcharts()
  435. if (this.companyList.length > 18) {
  436. this.timeCommon = setInterval(() => {
  437. if (that.touch) {
  438. if (that.commonOption.dataZoom[0].startValue < that.companyList.length) {
  439. that.commonOption.dataZoom[0].endValue += 18
  440. that.commonOption.dataZoom[0].startValue += 18
  441. } else {
  442. that.commonOption.dataZoom[0].endValue = 0
  443. that.commonOption.dataZoom[0].startValue = 18
  444. }
  445. that.generateEcharts()
  446. }
  447. }, 15000)
  448. }
  449. resolve(1)
  450. })
  451. });
  452. },
  453. handleShowTip (index) {
  454. this.showTip = true
  455. this.tipNum = index
  456. },
  457. handleGoPage (url) {
  458. window.location.href = './index4.html?id=' + id + `&access_token=${this.access_token}`
  459. },
  460. handleGoIndex () {
  461. window.location.href = './index.html'
  462. },
  463. handleGoBack () {
  464. window.history.go(-1)
  465. },
  466. numFormat (value) {
  467. if (!value) return '0'
  468. // var intPart = Number(value).toFixed(0) // 获取整数部分
  469. var intPart = parseInt(value)// 获取整数部分
  470. var intPartFormat = intPart.toString().replace(/(\d)(?=(?:\d{3})+$)/g, '$1,') // 将整数部分逢三一断
  471. var floatPart = '.00' // 预定义小数部分
  472. var value2Array = value.toString().split('.')
  473. // =2表示数据有小数位
  474. if (value2Array.length === 2) {
  475. floatPart = value2Array[1].toString() // 拿到小数部分
  476. if (floatPart.length === 1) {
  477. // 补0
  478. return intPartFormat + '.' + floatPart + '0'
  479. } else {
  480. return intPartFormat + '.' + floatPart
  481. }
  482. } else {
  483. return intPartFormat
  484. }
  485. },
  486. initChartL1 () {
  487. let myChart = echarts.init(this.$refs['echartL1'])
  488. let option = {
  489. ..._.cloneDeep(this.commonOption),
  490. color: [
  491. {
  492. x: 0,
  493. y: 0,
  494. x2: 0,
  495. y2: 1,
  496. colorStops: [{
  497. offset: 0,
  498. color: '#5e7ae9',
  499. },
  500. {
  501. offset: 1,
  502. color: '#082550',
  503. },],
  504. }
  505. ],
  506. series: [
  507. {
  508. name: '六个四级企业本部机构数核定上限',
  509. type: 'line',
  510. // yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  511. smooth: true, //平滑曲线显示
  512. showAllSymbol: true, //显示所有图形。
  513. symbol: 'circle', //标记的图形为实心圆
  514. symbolSize: 8, //标记的大小
  515. smooth: false,
  516. itemStyle: {
  517. //折线拐点标志的样式
  518. color: '#fbe138',
  519. borderColor: '#fbe138',
  520. width: 2,
  521. shadowColor: '#fbe138',
  522. shadowBlur: 4,
  523. },
  524. lineStyle: {
  525. color: '#fbe138',
  526. width: 2,
  527. },
  528. data: dataL1[2],
  529. },
  530. {
  531. name: '六定改革前各四级企业本部机构数',
  532. type: 'bar',
  533. barWidth: 15,
  534. itemStyle: {
  535. normal: {
  536. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  537. {
  538. offset: 0,
  539. color: '#43ede3',
  540. },
  541. {
  542. offset: 1,
  543. color: '#082550',
  544. },
  545. ]),
  546. },
  547. },
  548. data: dataL1[0],
  549. },
  550. {
  551. name: '当前各四级企业本部机构数',
  552. type: 'bar',
  553. barWidth: 15,
  554. itemStyle: {
  555. normal: {
  556. color: params => {
  557. if (params.value > dataL1[2][params.dataIndex]) {
  558. return 'yellow'
  559. } else {
  560. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  561. {
  562. offset: 0,
  563. color: '#5e7ae9',
  564. },
  565. {
  566. offset: 1,
  567. color: '#082550',
  568. },
  569. ])
  570. }
  571. },
  572. },
  573. },
  574. data: dataL1[1],
  575. },
  576. ],
  577. // tooltip: {
  578. // trigger: 'item',
  579. // position: 'top'
  580. // },
  581. }
  582. option.title.text = '本部机构数'
  583. option.legend.data = ['六定改革前各四级企业本部机构数', '当前各四级企业本部机构数', '六个四级企业本部机构数核定上限']
  584. option.yAxis.push({
  585. splitLine: {
  586. show: false,
  587. },
  588. axisLine: {
  589. show: false,
  590. },
  591. })
  592. myChart.setOption(option)
  593. },
  594. initChartL2 () {
  595. let myChart = echarts.init(this.$refs['echartL2'])
  596. let option = {
  597. ..._.cloneDeep(this.commonOption),
  598. color: [
  599. {
  600. x: 0,
  601. y: 0,
  602. x2: 0,
  603. y2: 1,
  604. colorStops: [{
  605. offset: 0,
  606. color: '#69c0ff',
  607. },
  608. {
  609. offset: 1,
  610. color: '#082550',
  611. },],
  612. }
  613. ],
  614. series: [
  615. {
  616. name: '当前各四级企业所属架构数',
  617. type: 'bar',
  618. barWidth: 15,
  619. itemStyle: {
  620. normal: {
  621. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  622. {
  623. offset: 0,
  624. color: '#69c0ff',
  625. },
  626. {
  627. offset: 1,
  628. color: '#082550',
  629. },
  630. ]),
  631. },
  632. },
  633. data: dataL2[0]
  634. }
  635. ],
  636. }
  637. option.title.text = '各四级企业所属架构数'
  638. option.legend.data = ['当前各四级企业所属架构数']
  639. option.yAxis.push({
  640. splitLine: {
  641. show: false,
  642. },
  643. axisLine: {
  644. show: false,
  645. },
  646. })
  647. myChart.setOption(option)
  648. },
  649. initChartL3 () {
  650. let myChart = echarts.init(this.$refs['echartL3'])
  651. console.log(this.commonOption, "this.commonOption")
  652. let option = {
  653. ..._.cloneDeep(this.commonOption),
  654. series: [
  655. {
  656. name: '当前本部中层管理人数',
  657. type: 'bar',
  658. barWidth: 15,
  659. itemStyle: {
  660. normal: {
  661. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  662. {
  663. offset: 0,
  664. color: '#5e7ae9',
  665. },
  666. {
  667. offset: 1,
  668. color: '#082550',
  669. },
  670. ]),
  671. },
  672. },
  673. data: dataL3[0],
  674. },
  675. ],
  676. }
  677. option.title.text = '各四级企业本部中层管理人数'
  678. option.legend.data = ['当前本部中层管理人数']
  679. option.yAxis.push({
  680. type: 'value',
  681. axisLine: {
  682. show: false,
  683. },
  684. splitLine: {
  685. show: false,
  686. },
  687. })
  688. myChart.setOption(option)
  689. },
  690. initChartL4 () {
  691. let myChart = echarts.init(this.$refs['echartL4'])
  692. let option = {
  693. ..._.cloneDeep(this.commonOption),
  694. color: [
  695. {
  696. x: 0,
  697. y: 0,
  698. x2: 0,
  699. y2: 1,
  700. colorStops: [{
  701. offset: 0,
  702. color: '#6480f3',
  703. },
  704. {
  705. offset: 1,
  706. color: '#082550',
  707. },],
  708. }
  709. ],
  710. series: [
  711. {
  712. name: '六定改革前各四级中层管理人数',
  713. type: 'bar',
  714. barWidth: 15,
  715. label: {
  716. normal: {
  717. show: true,
  718. position: 'top',
  719. textStyle: {
  720. color: '#69c0ff',
  721. fontStyle: 'normal',
  722. textAlign: 'left',
  723. fontSize: 16,
  724. },
  725. formatter: function (data) {
  726. if (data.name == '云时代') {
  727. return data.value
  728. } else {
  729. return ''
  730. }
  731. }
  732. }
  733. },
  734. itemStyle: {
  735. normal: {
  736. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  737. {
  738. offset: 0,
  739. color: '#6480f3',
  740. },
  741. {
  742. offset: 1,
  743. color: '#082550',
  744. },
  745. ]),
  746. },
  747. },
  748. data: dataL4[0],
  749. },
  750. {
  751. name: '当前各四级中层管理人数',
  752. type: 'bar',
  753. barWidth: 15,
  754. label: {
  755. normal: {
  756. show: true,
  757. position: 'top',
  758. textStyle: {
  759. color: '#6480f3',
  760. fontStyle: 'normal',
  761. textAlign: 'left',
  762. fontSize: 16,
  763. },
  764. formatter: function (data) {
  765. if (data.name == '云时代') {
  766. return data.value
  767. } else {
  768. return ''
  769. }
  770. }
  771. }
  772. },
  773. itemStyle: {
  774. normal: {
  775. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  776. {
  777. offset: 0,
  778. color: '#43ede3',
  779. },
  780. {
  781. offset: 1,
  782. color: '#082550',
  783. },
  784. ]),
  785. },
  786. },
  787. data: dataL4[1],
  788. },
  789. {
  790. name: '各四级中层管理人数核定上限',
  791. type: 'line',
  792. // yAxisIndex: 1,
  793. smooth: true, //平滑曲线显示
  794. showAllSymbol: true, //显示所有图形。
  795. symbol: 'circle', //标记的图形为实心圆
  796. symbolSize: 8, //标记的大小
  797. smooth: false,
  798. label: {
  799. normal: {
  800. show: true,
  801. position: 'top',
  802. textStyle: {
  803. color: '#fbe138',
  804. fontStyle: 'normal',
  805. textAlign: 'left',
  806. fontSize: 16,
  807. },
  808. formatter: function (data) {
  809. if (data.name == '云时代') {
  810. return data.value
  811. } else {
  812. return ''
  813. }
  814. }
  815. }
  816. },
  817. itemStyle: {
  818. //折线拐点标志的样式
  819. color: '#fbe138',
  820. borderColor: '#fbe138',
  821. width: 2,
  822. shadowColor: '#fbe138',
  823. shadowBlur: 4,
  824. },
  825. lineStyle: {
  826. color: '#fbe138',
  827. width: 2,
  828. },
  829. data: dataL4[2],
  830. },
  831. ],
  832. }
  833. option.title.text = '各四级企业本部中层管理人数'
  834. option.legend.data = ['六定改革前各四级中层管理人数', '当前各四级中层管理人数', '各四级中层管理人数核定上限']
  835. option.legend.show = true
  836. // option.yAxis.push({
  837. // splitLine: {
  838. // show: false,
  839. // },
  840. // axisLine: {
  841. // show: false,
  842. // },
  843. // })
  844. myChart.setOption(option)
  845. },
  846. initChartL5 () {
  847. let myChart = echarts.init(this.$refs['echartL5'])
  848. let option = {
  849. ..._.cloneDeep(this.commonOption),
  850. color: [
  851. {
  852. x: 0,
  853. y: 0,
  854. x2: 0,
  855. y2: 1,
  856. colorStops: [{
  857. offset: 0,
  858. color: '#69c0ff',
  859. },
  860. {
  861. offset: 1,
  862. color: '#082550',
  863. },],
  864. }
  865. ],
  866. series: [
  867. {
  868. name: '各四级企业总人数',
  869. type: 'bar',
  870. barWidth: 15,
  871. itemStyle: {
  872. normal: {
  873. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  874. {
  875. offset: 0,
  876. color: '#69c0ff',
  877. },
  878. {
  879. offset: 1,
  880. color: '#082550',
  881. },
  882. ]),
  883. },
  884. },
  885. data: dataL5[0],
  886. },
  887. {
  888. name: '去年同期人数变化率',
  889. type: 'line',
  890. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  891. smooth: true, //平滑曲线显示
  892. showAllSymbol: true, //显示所有图形。
  893. symbol: 'circle', //标记的图形为实心圆
  894. symbolSize: 8, //标记的大小
  895. smooth: false,
  896. itemStyle: {
  897. //折线拐点标志的样式
  898. color: '#b889ea',
  899. borderColor: '#b889ea',
  900. width: 2,
  901. shadowColor: '#b889ea',
  902. shadowBlur: 4,
  903. },
  904. lineStyle: {
  905. color: '#b889ea',
  906. width: 2,
  907. },
  908. data: dataL5[1],
  909. },
  910. ],
  911. }
  912. option.title.text = '各四级企业总人数'
  913. option.legend.data = ['各四级企业总人数', '去年同期人数变化率']
  914. option.legend.show = true
  915. option.tooltip = {
  916. trigger: 'axis',
  917. formatter: '{a0}:{c0}' + '<br/>' + '{a1}:{c1}' + '%'
  918. }
  919. option.yAxis.push({
  920. type: 'value',
  921. axisLine: {
  922. show: false,
  923. },
  924. splitLine: {
  925. show: false,
  926. },
  927. axisLabel: {
  928. show: true,
  929. formatter: '{value} %',
  930. textStyle: {
  931. color: 'rgba(250,250,250,0.6)',
  932. },
  933. },
  934. })
  935. myChart.setOption(option)
  936. },
  937. initChartL6 () {
  938. let myChart = echarts.init(this.$refs['echartL6'])
  939. let option = {
  940. ..._.cloneDeep(this.commonOption),
  941. color: [
  942. {
  943. x: 0,
  944. y: 0,
  945. x2: 0,
  946. y2: 1,
  947. colorStops: [{
  948. offset: 0,
  949. color: '#43ede3',
  950. },
  951. {
  952. offset: 1,
  953. color: '#082550',
  954. },],
  955. }
  956. ],
  957. series: [
  958. {
  959. name: '各四级员额数',
  960. type: 'bar',
  961. barWidth: 15,
  962. itemStyle: {
  963. color: params => {
  964. if (params.value > dataL6[1][params.dataIndex]) {
  965. return 'red'
  966. } else {
  967. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  968. {
  969. offset: 0,
  970. color: '#43ede3',
  971. },
  972. {
  973. offset: 1,
  974. color: '#082550',
  975. },
  976. ])
  977. }
  978. },
  979. },
  980. data: dataL6[0],
  981. },
  982. {
  983. name: '六定改革前各四级员额数',
  984. type: 'bar',
  985. barWidth: 15,
  986. itemStyle: {
  987. normal: {
  988. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  989. {
  990. offset: 0,
  991. color: '#5e7ae9',
  992. },
  993. {
  994. offset: 1,
  995. color: '#082550',
  996. },
  997. ]),
  998. },
  999. },
  1000. data: dataL6[2],
  1001. },
  1002. {
  1003. name: '各四级员额数核定上限',
  1004. type: 'line',
  1005. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  1006. smooth: true, //平滑曲线显示
  1007. showAllSymbol: true, //显示所有图形。
  1008. symbol: 'circle', //标记的图形为实心圆
  1009. symbolSize: 8, //标记的大小
  1010. smooth: false,
  1011. itemStyle: {
  1012. //折线拐点标志的样式
  1013. color: '#fbe138',
  1014. borderColor: '#fbe138',
  1015. width: 2,
  1016. shadowColor: '#fbe138',
  1017. shadowBlur: 4,
  1018. },
  1019. lineStyle: {
  1020. color: '#fbe138',
  1021. width: 2,
  1022. },
  1023. data: dataL6[1],
  1024. },
  1025. ],
  1026. }
  1027. option.title.text = '各四级企业本部员额数'
  1028. option.legend.data = ['当前各四级企业本部员额数', '六定改革前各四级企业本部员额数','各四级企业本部员额数核定上限值']
  1029. option.legend.show = true
  1030. option.yAxis.push({
  1031. splitLine: {
  1032. show: false,
  1033. },
  1034. axisLine: {
  1035. show: false,
  1036. },
  1037. })
  1038. myChart.setOption(option)
  1039. },
  1040. initChartL7 () {
  1041. let myChart = echarts.init(this.$refs['echartL7'])
  1042. let option = {
  1043. ..._.cloneDeep(this.commonOption),
  1044. color: ['#43ede3'],
  1045. series: [
  1046. {
  1047. name: '人数变化',
  1048. type: 'line',
  1049. barWidth: 15,
  1050. showAllSymbol: true, //显示所有图形。
  1051. symbol: 'circle', //标记的图形为实心圆
  1052. symbolSize: 15, //标记的大小
  1053. smooth: false,
  1054. itemStyle: {
  1055. color: params => {
  1056. if (dataL7[1][params.dataIndex] < 0 && params.value > 0) {
  1057. return 'red'
  1058. } else {
  1059. return '#43ede3'
  1060. }
  1061. },
  1062. },
  1063. // markLine: {
  1064. // data: [{ type: 'average', name: 'Avg' }],
  1065. // },
  1066. data: dataL7[0],
  1067. },
  1068. {
  1069. name: '全员劳动生产率同比变化',
  1070. type: 'line',
  1071. barWidth: 15,
  1072. // yAxisIndex: 1,
  1073. showAllSymbol: true, //显示所有图形。
  1074. symbol: 'circle', //标记的图形为实心圆
  1075. symbolSize: 15, //标记的大小
  1076. smooth: false,
  1077. itemStyle: {
  1078. //折线拐点标志的样式
  1079. color: '#b889ea',
  1080. borderColor: '#b889ea',
  1081. width: 2,
  1082. shadowColor: '#b889ea',
  1083. shadowBlur: 4,
  1084. },
  1085. data: dataL7[1],
  1086. },
  1087. {
  1088. type: 'effectScatter',
  1089. coordinateSystem: 'cartesian2d',
  1090. showEffectOn: 'render',
  1091. rippleEffect: {
  1092. period: 10,
  1093. scale: 4,
  1094. brushType: 'stroke'
  1095. },
  1096. hoverAnimation: true,
  1097. itemStyle: {
  1098. color: 'red'
  1099. },
  1100. lineStyle: {
  1101. color: '#43ede3',
  1102. width: 2,
  1103. },
  1104. data: this.twinkle7,
  1105. },
  1106. ],
  1107. }
  1108. option.title.text = '人数变化和全员劳动生产率变化率分析'
  1109. option.legend.data = ['人数变化', '全员劳动生产率同比变化']
  1110. option.legend.show = true
  1111. option.tooltip = {
  1112. trigger: 'axis',
  1113. formatter: '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  1114. }
  1115. option.yAxis = [
  1116. {
  1117. type: 'value',
  1118. axisLine: {
  1119. show: false,
  1120. },
  1121. splitLine: {
  1122. show: true,
  1123. lineStyle: {
  1124. color: '#68b4dd66',
  1125. type: 'dashed',
  1126. },
  1127. },
  1128. axisLabel: {
  1129. show: true,
  1130. formatter: '{value} %',
  1131. textStyle: {
  1132. color: 'rgba(250,250,250,0.6)',
  1133. },
  1134. },
  1135. },
  1136. {
  1137. type: 'value',
  1138. axisLine: {
  1139. show: false,
  1140. },
  1141. splitLine: {
  1142. show: false,
  1143. },
  1144. axisLabel: {
  1145. show: true,
  1146. formatter: '{value} %',
  1147. textStyle: {
  1148. color: 'rgba(250,250,250,0.6)',
  1149. },
  1150. },
  1151. }
  1152. ]
  1153. myChart.setOption(option)
  1154. },
  1155. initChartL8 () {
  1156. let myChart = echarts.init(this.$refs['echartL8'])
  1157. let option = {
  1158. ..._.cloneDeep(this.commonOption),
  1159. color: ['#43ede3'],
  1160. series: [
  1161. {
  1162. name: '人数变化',
  1163. type: 'line',
  1164. barWidth: 15,
  1165. showAllSymbol: true, //显示所有图形。
  1166. symbol: 'circle', //标记的图形为实心圆
  1167. symbolSize: 15, //标记的大小
  1168. smooth: false,
  1169. itemStyle: {
  1170. color: params => {
  1171. if (dataL8[1][params.dataIndex] < 0 && params.value > 0) {
  1172. return 'red'
  1173. } else {
  1174. return '#43ede3'
  1175. }
  1176. },
  1177. },
  1178. lineStyle: {
  1179. color: '#43ede3',
  1180. width: 2,
  1181. },
  1182. // markLine: {
  1183. // data: [{ type: 'average', name: 'Avg' }],
  1184. // },
  1185. data: dataL8[0],
  1186. },
  1187. {
  1188. name: '人工成本利润率同比变化',
  1189. type: 'line',
  1190. barWidth: 15,
  1191. // yAxisIndex: 1,
  1192. showAllSymbol: true, //显示所有图形。
  1193. symbol: 'circle', //标记的图形为实心圆
  1194. symbolSize: 15, //标记的大小
  1195. smooth: false,
  1196. itemStyle: {
  1197. //折线拐点标志的样式
  1198. color: '#b889ea',
  1199. borderColor: '#b889ea',
  1200. width: 2,
  1201. shadowColor: '#b889ea',
  1202. shadowBlur: 4,
  1203. },
  1204. data: dataL8[1],
  1205. },
  1206. {
  1207. type: 'effectScatter',
  1208. coordinateSystem: 'cartesian2d',
  1209. showEffectOn: 'render',
  1210. rippleEffect: {
  1211. period: 10,
  1212. scale: 4,
  1213. brushType: 'stroke'
  1214. },
  1215. hoverAnimation: true,
  1216. itemStyle: {
  1217. color: 'red'
  1218. },
  1219. lineStyle: {
  1220. color: '#43ede3',
  1221. width: 2,
  1222. },
  1223. data: this.twinkle8,
  1224. },
  1225. ],
  1226. }
  1227. option.title.text = '人数变化和人工利润率变化分析'
  1228. option.legend.data = ['人数变化', '人工成本利润率同比变化']
  1229. option.legend.show = true
  1230. option.tooltip = {
  1231. trigger: 'axis',
  1232. formatter: '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  1233. }
  1234. option.yAxis = [
  1235. {
  1236. type: 'value',
  1237. axisLine: {
  1238. show: false,
  1239. },
  1240. splitLine: {
  1241. show: true,
  1242. lineStyle: {
  1243. color: '#68b4dd66',
  1244. type: 'dashed',
  1245. },
  1246. },
  1247. axisLabel: {
  1248. show: true,
  1249. formatter: '{value} %',
  1250. textStyle: {
  1251. color: 'rgba(250,250,250,0.6)',
  1252. },
  1253. },
  1254. },
  1255. {
  1256. type: 'value',
  1257. axisLine: {
  1258. show: false,
  1259. },
  1260. splitLine: {
  1261. show: false,
  1262. },
  1263. axisLabel: {
  1264. show: true,
  1265. formatter: '{value} %',
  1266. textStyle: {
  1267. color: 'rgba(250,250,250,0.6)',
  1268. },
  1269. },
  1270. }
  1271. ]
  1272. myChart.setOption(option)
  1273. },
  1274. // 中间图表---------------------------------------------开始
  1275. initChartC1 () {
  1276. let myChart = echarts.init(this.$refs['echartC1'])
  1277. let option = {
  1278. ..._.cloneDeep(this.commonOption),
  1279. color: [
  1280. {
  1281. x: 0,
  1282. y: 0,
  1283. x2: 0,
  1284. y2: 1,
  1285. colorStops: [{
  1286. offset: 0,
  1287. color: '#69c0ff',
  1288. },
  1289. {
  1290. offset: 1,
  1291. color: '#082550',
  1292. },],
  1293. }
  1294. ],
  1295. series: [
  1296. {
  1297. name: '全员劳动生产率(万/人)',
  1298. type: 'bar',
  1299. barWidth: 12,
  1300. smooth: true, //平滑曲线显示
  1301. showAllSymbol: true, //显示所有图形。
  1302. symbol: 'circle', //标记的图形为实心圆
  1303. symbolSize: 8, //标记的大小
  1304. smooth: false,
  1305. itemStyle: {
  1306. color: params => {
  1307. if (params.value < 0 && dataC1[1][params.dataIndex] < 0) {
  1308. return 'red'
  1309. } else if (params.value > this.echartC1.province) {
  1310. return 'green'
  1311. } else {
  1312. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1313. {
  1314. offset: 0,
  1315. color: '#69c0ff',
  1316. },
  1317. {
  1318. offset: 1,
  1319. color: '#082550',
  1320. },
  1321. ])
  1322. }
  1323. },
  1324. },
  1325. lineStyle: {
  1326. color: '#B889EA',
  1327. width: 2,
  1328. },
  1329. // data: [60, 50, 80, 80, 90, 55, 40, 60, 50, 80, 90, 55, 40, 60, 50, 90, 55, 40],
  1330. data: dataC1[0],
  1331. markLine: {
  1332. data: [
  1333. {
  1334. name: '省属企业平均水平',
  1335. yAxis: this.echartC1.national,
  1336. lineStyle: {
  1337. color: '#fff',
  1338. },
  1339. label: {
  1340. formatter: '{b}',
  1341. position: 'end',
  1342. padding: [20, 100, 10, 30],
  1343. color: '#fff',
  1344. },
  1345. },
  1346. {
  1347. name: '央企平均水平',
  1348. yAxis: this.echartC1.province,
  1349. lineStyle: {
  1350. color: '#fff',
  1351. },
  1352. label: {
  1353. formatter: '{b}',
  1354. position: 'end',
  1355. padding: [-4, 150, 10, 30],
  1356. color: '#fff',
  1357. },
  1358. },
  1359. ],
  1360. label: {
  1361. distance: [20, 8],
  1362. },
  1363. },
  1364. },
  1365. {
  1366. name: '全员劳动生产率同比变化',
  1367. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  1368. type: 'line',
  1369. itemStyle: {
  1370. normal: {
  1371. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1372. {
  1373. offset: 0,
  1374. color: '#69c0ff',
  1375. },
  1376. {
  1377. offset: 1,
  1378. color: '#082550',
  1379. },
  1380. ]),
  1381. },
  1382. },
  1383. data: dataC1[1],
  1384. },
  1385. ],
  1386. }
  1387. option.title.text = '各四级全员劳动生产率'
  1388. option.legend.data = ['全员劳动生产率同比变化', '全员劳动生产率(万/人)']
  1389. option.legend.show = true
  1390. option.grid.right = '15%'
  1391. option.tooltip = {
  1392. trigger: 'axis',
  1393. formatter: '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  1394. }
  1395. option.yAxis.push({
  1396. type: 'value',
  1397. axisLine: {
  1398. show: false,
  1399. },
  1400. splitLine: {
  1401. show: false,
  1402. },
  1403. axisLabel: {
  1404. show: true,
  1405. formatter: '{value} %',
  1406. textStyle: {
  1407. color: 'rgba(250,250,250,0.6)',
  1408. },
  1409. },
  1410. })
  1411. myChart.setOption(option)
  1412. tools.loopShowTooltip(myChart, option, {
  1413. nterval: 2000,
  1414. loopSeries: true,
  1415. });
  1416. },
  1417. initChartC2 () {
  1418. let myChart = echarts.init(this.$refs['echartC2'])
  1419. let option = {
  1420. ..._.cloneDeep(this.commonOption),
  1421. color: [
  1422. {
  1423. x: 0,
  1424. y: 0,
  1425. x2: 0,
  1426. y2: 1,
  1427. colorStops: [{
  1428. offset: 0,
  1429. color: '#69c0ff',
  1430. },
  1431. {
  1432. offset: 1,
  1433. color: '#082550',
  1434. },],
  1435. }
  1436. ],
  1437. series: [
  1438. {
  1439. name: '人工成本利润率同比变化',
  1440. type: 'line',
  1441. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  1442. smooth: true, //平滑曲线显示
  1443. showAllSymbol: true, //显示所有图形。
  1444. symbol: 'circle', //标记的图形为实心圆
  1445. symbolSize: 8, //标记的大小
  1446. smooth: false,
  1447. itemStyle: {
  1448. //折线拐点标志的样式
  1449. color: '#B889EA',
  1450. borderColor: '#B889EA',
  1451. width: 2,
  1452. shadowColor: '#B889EA',
  1453. shadowBlur: 4,
  1454. },
  1455. lineStyle: {
  1456. color: '#B889EA',
  1457. width: 2,
  1458. },
  1459. data: dataC2[0],
  1460. },
  1461. {
  1462. name: '人工成本利润率',
  1463. type: 'bar',
  1464. barWidth: 15,
  1465. itemStyle: {
  1466. color: params => {
  1467. if (params.value < 0 && dataC2[1][params.dataIndex] < 0) {
  1468. return 'red'
  1469. } else if (params.value > this.echartC2.province) {
  1470. return 'green'
  1471. } else {
  1472. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1473. {
  1474. offset: 0,
  1475. color: '#69c0ff',
  1476. },
  1477. {
  1478. offset: 1,
  1479. color: '#082550',
  1480. },
  1481. ])
  1482. }
  1483. },
  1484. },
  1485. data: dataC2[1],
  1486. markLine: {
  1487. data: [
  1488. {
  1489. name: '省属企业平均水平',
  1490. yAxis: this.echartC2.province,
  1491. lineStyle: {
  1492. color: '#fff',
  1493. },
  1494. label: {
  1495. formatter: '{b}',
  1496. position: 'end',
  1497. padding: [24, 100, 10, 30],
  1498. color: '#fff',
  1499. },
  1500. },
  1501. {
  1502. name: '央企平均水平',
  1503. yAxis: this.echartC2.national,
  1504. lineStyle: {
  1505. color: '#fff',
  1506. },
  1507. label: {
  1508. formatter: '{b}',
  1509. position: 'end',
  1510. padding: [-24, 200, 10, 30],
  1511. color: '#fff',
  1512. },
  1513. },
  1514. ],
  1515. label: {
  1516. distance: [20, 8],
  1517. },
  1518. },
  1519. },
  1520. ],
  1521. }
  1522. option.title.text = '各四级人工成本利润率'
  1523. option.legend.data = ['人工成本利润率同比变化', '人工成本利润率']
  1524. option.legend.show = true
  1525. option.tooltip = {
  1526. trigger: 'axis',
  1527. formatter: '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  1528. }
  1529. option.grid.right = '15%'
  1530. option.yAxis = [
  1531. {
  1532. splitLine: {
  1533. show: true,
  1534. lineStyle: {
  1535. color: '#68b4dd66',
  1536. type: 'dashed',
  1537. },
  1538. },
  1539. axisLine: {
  1540. show: false,
  1541. },
  1542. axisLabel: {
  1543. show: true,
  1544. formatter: '{value} %',
  1545. textStyle: {
  1546. color: 'rgba(250,250,250,0.6)',
  1547. },
  1548. },
  1549. },
  1550. {
  1551. splitLine: {
  1552. show: false,
  1553. },
  1554. axisLine: {
  1555. show: false,
  1556. },
  1557. axisLabel: {
  1558. show: true,
  1559. formatter: '{value} %',
  1560. textStyle: {
  1561. color: 'rgba(250,250,250,0.6)',
  1562. },
  1563. },
  1564. }
  1565. ]
  1566. myChart.setOption(option)
  1567. tools.loopShowTooltip(myChart, option, {
  1568. nterval: 2000,
  1569. loopSeries: true,
  1570. });
  1571. },
  1572. // 右侧图表---------------------------------------------开始
  1573. initChartR1 () {
  1574. let myChart = echarts.init(this.$refs['echartR1'])
  1575. let commonOptions = this.commonOption
  1576. commonOptions.yAxis[0].splitNumber = 2
  1577. let option = {
  1578. ..._.cloneDeep(commonOptions),
  1579. series: [
  1580. {
  1581. name: '招聘需求公告次数',
  1582. type: 'bar',
  1583. barWidth: 15,
  1584. itemStyle: {
  1585. normal: {
  1586. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1587. {
  1588. offset: 0,
  1589. color: '#69c0ff',
  1590. },
  1591. {
  1592. offset: 1,
  1593. color: '#082550',
  1594. },
  1595. ]),
  1596. },
  1597. },
  1598. data: dataR1[0],
  1599. },
  1600. {
  1601. name: '招聘需求公告累计招聘人次',
  1602. type: 'bar',
  1603. barWidth: 15,
  1604. itemStyle: {
  1605. normal: {
  1606. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1607. {
  1608. offset: 0,
  1609. color: '#43ede3',
  1610. },
  1611. {
  1612. offset: 1,
  1613. color: '#082550',
  1614. },
  1615. ]),
  1616. },
  1617. },
  1618. data: dataR1[1],
  1619. },
  1620. ],
  1621. }
  1622. option.title.text = '各四级企业招聘需求公告人次情况'
  1623. option.legend.data = ['招聘需求公告次数', '招聘需求公告累计招聘人次']
  1624. option.legend.show = true
  1625. option.yAxis.push({
  1626. splitLine: {
  1627. show: false,
  1628. },
  1629. axisLine: {
  1630. show: false,
  1631. },
  1632. })
  1633. myChart.setOption(option)
  1634. },
  1635. initChartR2 () {
  1636. let myChart = echarts.init(this.$refs['echartR2'])
  1637. let commonOptions = this.commonOption
  1638. commonOptions.yAxis[0].splitNumber = 2
  1639. let option = {
  1640. ..._.cloneDeep(commonOptions),
  1641. series: [
  1642. {
  1643. name: '录用结果公示次数',
  1644. type: 'bar',
  1645. barWidth: 15,
  1646. itemStyle: {
  1647. normal: {
  1648. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1649. {
  1650. offset: 0,
  1651. color: '#69c0ff',
  1652. },
  1653. {
  1654. offset: 1,
  1655. color: '#082550',
  1656. },
  1657. ]),
  1658. },
  1659. },
  1660. data: dataR2[0],
  1661. },
  1662. {
  1663. name: '录用结果公示累计公示人数',
  1664. type: 'bar',
  1665. barWidth: 15,
  1666. itemStyle: {
  1667. normal: {
  1668. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1669. {
  1670. offset: 0,
  1671. color: '#45DAD1',
  1672. },
  1673. {
  1674. offset: 1,
  1675. color: '#082550',
  1676. },
  1677. ]),
  1678. },
  1679. },
  1680. data: dataR2[1],
  1681. },
  1682. ],
  1683. }
  1684. option.title.text = '各四级企业录用结果公示人次'
  1685. option.legend.data = ['录用结果公示次数', '录用结果公示累计公示人数']
  1686. option.legend.show = true
  1687. option.yAxis.push({
  1688. splitLine: {
  1689. show: false,
  1690. },
  1691. axisLine: {
  1692. show: false,
  1693. },
  1694. })
  1695. myChart.setOption(option)
  1696. },
  1697. initChartR3 () {
  1698. let myChart = echarts.init(this.$refs['echartR3'])
  1699. let commonOptions = this.commonOption
  1700. commonOptions.yAxis[0].splitNumber = 2
  1701. let option = {
  1702. ..._.cloneDeep(commonOptions),
  1703. color: [
  1704. {
  1705. x: 0,
  1706. y: 0,
  1707. x2: 0,
  1708. y2: 1,
  1709. colorStops: [ {
  1710. offset: 0,
  1711. color: '#45DAD1',
  1712. },
  1713. {
  1714. offset: 1,
  1715. color: '#082550',
  1716. },],
  1717. }
  1718. ],
  1719. series: [
  1720. {
  1721. name: '2022年利润(万)',
  1722. type: 'bar',
  1723. barWidth: 15,
  1724. itemStyle: {
  1725. normal: {
  1726. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1727. {
  1728. offset: 0,
  1729. color: '#69c0ff',
  1730. },
  1731. {
  1732. offset: 1,
  1733. color: '#082550',
  1734. },
  1735. ]),
  1736. },
  1737. },
  1738. data: dataR3[0],
  1739. },
  1740. {
  1741. name: '2022年累计招聘数',
  1742. type: 'bar',
  1743. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  1744. barWidth: 15,
  1745. itemStyle: {
  1746. color: params => {
  1747. if (params.value > 0 && dataR3[0][params.dataIndex] < 0) {
  1748. return 'red'
  1749. } else {
  1750. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1751. {
  1752. offset: 0,
  1753. color: '#45DAD1',
  1754. },
  1755. {
  1756. offset: 1,
  1757. color: '#082550',
  1758. },
  1759. ])
  1760. }
  1761. },
  1762. },
  1763. data: dataR3[1],
  1764. },
  1765. ],
  1766. }
  1767. option.title.text = '各四级企业年利润与招聘情况分析'
  1768. option.legend.data = ['2022年利润(万)', '2022年累计招聘数']
  1769. option.legend.show = true
  1770. option.yAxis[0].max = function (value) {
  1771. if (Math.abs(value.max) > Math.abs(value.min)) {
  1772. return (Math.abs(value.max) * 1.2).toFixed(2);
  1773. } else {
  1774. return (Math.abs(value.min) * 1.2).toFixed(2);
  1775. }
  1776. }
  1777. option.yAxis[0].min = function (value) {
  1778. if (Math.abs(value.max) > Math.abs(value.min)) {
  1779. return (-Math.abs(value.max) * 1.2).toFixed(2);
  1780. } else {
  1781. return (-Math.abs(value.min) * 1.2).toFixed(2);
  1782. }
  1783. }
  1784. option.yAxis.push({
  1785. max: function (val) {
  1786. if (Math.abs(val.max) > Math.abs(val.min)) {
  1787. return (Math.abs(val.max) * 1.2).toFixed(0)
  1788. } else {
  1789. return (Math.abs(val.min) * 1.2).toFixed(0)
  1790. }
  1791. },
  1792. min: function (val) {
  1793. if (Math.abs(val.max) > Math.abs(val.min)) {
  1794. return (-Math.abs(val.max) * 1.2).toFixed(0)
  1795. } else {
  1796. return (Math.abs(val.min) * 1.2).toFixed(0)
  1797. }
  1798. },
  1799. splitLine: {
  1800. show: false,
  1801. },
  1802. axisLine: {
  1803. show: false,
  1804. },
  1805. axisLabel: {
  1806. show: true,
  1807. formatter: '{value}',
  1808. textStyle: {
  1809. color: 'rgba(250,250,250,0.6)',
  1810. },
  1811. },
  1812. })
  1813. myChart.setOption(option)
  1814. },
  1815. initChartR4 () {
  1816. let myChart = echarts.init(this.$refs['echartR4'])
  1817. let commonOptions = this.commonOption
  1818. commonOptions.yAxis[0].splitNumber = 2
  1819. let option = {
  1820. ..._.cloneDeep(commonOptions),
  1821. color: [
  1822. {
  1823. x: 0,
  1824. y: 0,
  1825. x2: 0,
  1826. y2: 1,
  1827. colorStops: [{
  1828. offset: 0,
  1829. color: '#6480f3',
  1830. },
  1831. {
  1832. offset: 1,
  1833. color: '#082550',
  1834. },],
  1835. }
  1836. ],
  1837. series: [
  1838. {
  1839. name: '2022年退出人数和2023年当前累计退出人数之和',
  1840. type: 'bar',
  1841. barWidth: 15,
  1842. itemStyle: {
  1843. normal: {
  1844. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1845. {
  1846. offset: 0,
  1847. color: '#69c0ff',
  1848. },
  1849. {
  1850. offset: 1,
  1851. color: '#082550',
  1852. },
  1853. ]),
  1854. },
  1855. },
  1856. data: dataR4[0],
  1857. },
  1858. {
  1859. name: '2022年招聘人数和2023年当前累计招聘人数之和',
  1860. type: 'bar',
  1861. barWidth: 15,
  1862. itemStyle: {
  1863. normal: {
  1864. color: params => {
  1865. if (dataR4[0][params.dataIndex] / 2 < params.value) {
  1866. return 'red'
  1867. }
  1868. else {
  1869. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1870. {
  1871. offset: 0,
  1872. color: '#6480f3',
  1873. },
  1874. {
  1875. offset: 1,
  1876. color: '#082550',
  1877. },
  1878. ])
  1879. }
  1880. },
  1881. },
  1882. },
  1883. data: dataR4[1],
  1884. },
  1885. ],
  1886. }
  1887. option.title.text = '各省属企业"退二进一"完成情况'
  1888. option.legend.data = ['2022年退出人数和2023年当前累计退出人数之和', '2022年招聘人数和2023年当前累计招聘人数之和']
  1889. option.legend.show = true
  1890. option.yAxis[0] = {
  1891. //type: 'log',
  1892. //min: 1,
  1893. //logBase: 3,
  1894. axisLine: {
  1895. show: false,
  1896. },
  1897. splitLine: {
  1898. show: true,
  1899. lineStyle: {
  1900. color: '#68b4dd66',
  1901. type: 'dashed',
  1902. },
  1903. },
  1904. axisLabel: {
  1905. show: true,
  1906. formatter: function (value) {
  1907. return value === 1 ? 0 : value
  1908. },
  1909. textStyle: {
  1910. color: 'rgba(250,250,250,0.6)',
  1911. },
  1912. },
  1913. }
  1914. myChart.setOption(option)
  1915. },
  1916. initChartR5 () {
  1917. let myChart = echarts.init(this.$refs['echartR5'])
  1918. let option = {
  1919. ..._.cloneDeep(this.commonOption),
  1920. series: [
  1921. {
  1922. name: '在岗职工平均薪酬',
  1923. type: 'bar',
  1924. barWidth: 15,
  1925. itemStyle: {
  1926. normal: {
  1927. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1928. {
  1929. offset: 0,
  1930. color: '#6682F5',
  1931. },
  1932. {
  1933. offset: 1,
  1934. color: '#082550',
  1935. },
  1936. ]),
  1937. },
  1938. },
  1939. data: dataR5[0],
  1940. },
  1941. {
  1942. name: '去年同期在岗职工平均薪酬',
  1943. type: 'bar',
  1944. barWidth: 15,
  1945. itemStyle: {
  1946. normal: {
  1947. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1948. {
  1949. offset: 0,
  1950. color: '#69c0ff',
  1951. },
  1952. {
  1953. offset: 1,
  1954. color: '#082550',
  1955. },
  1956. ]),
  1957. },
  1958. },
  1959. data: dataR5[1],
  1960. }
  1961. ],
  1962. }
  1963. option.title.text = '各四级企业在岗职工平均薪酬'
  1964. option.legend.data = ['在岗职工平均薪酬', '去年同期在岗职工平均薪酬']
  1965. option.legend.show = true
  1966. option.yAxis.push({
  1967. splitLine: {
  1968. show: false,
  1969. },
  1970. axisLine: {
  1971. show: false,
  1972. },
  1973. })
  1974. myChart.setOption(option)
  1975. },
  1976. initChartR6 () {
  1977. let myChart = echarts.init(this.$refs['echartR6'])
  1978. let option = {
  1979. ..._.cloneDeep(this.commonOption),
  1980. color: ['#69c0ff'],
  1981. series: [
  1982. {
  1983. name: '2022年利润累计涨幅率',
  1984. type: 'line',
  1985. smooth: true, //平滑曲线显示
  1986. showAllSymbol: true, //显示所有图形。
  1987. symbol: 'circle', //标记的图形为实心圆
  1988. symbolSize: 8, //标记的大小
  1989. smooth: false,
  1990. itemStyle: {
  1991. //折线拐点标志的样式
  1992. color: '#B889EA',
  1993. borderColor: '#B889EA',
  1994. width: 2,
  1995. shadowColor: '#B889EA',
  1996. shadowBlur: 4,
  1997. },
  1998. lineStyle: {
  1999. color: '#B889EA',
  2000. width: 2,
  2001. },
  2002. data: dataR6[0],
  2003. },
  2004. {
  2005. name: '2022年薪酬累计涨幅率',
  2006. type: 'line',
  2007. barWidth: 15,
  2008. yAxisIndex: 1,
  2009. showAllSymbol: true, //显示所有图形。
  2010. symbol: 'circle', //标记的图形为实心圆
  2011. symbolSize: 12, //标记的大小
  2012. smooth: false,
  2013. itemStyle: {
  2014. color: params => {
  2015. if (params.value > 0 && dataR6[0][params.dataIndex] < 0) {
  2016. return 'yellow'
  2017. } else {
  2018. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2019. {
  2020. offset: 0,
  2021. color: '#69c0ff',
  2022. },
  2023. {
  2024. offset: 1,
  2025. color: '#082550',
  2026. },
  2027. ])
  2028. }
  2029. },
  2030. },
  2031. lineStyle: {
  2032. color: '#69C0FF',
  2033. width: 2,
  2034. },
  2035. data: dataR6[1],
  2036. },
  2037. {
  2038. yAxisIndex: 1,
  2039. type: 'effectScatter',
  2040. coordinateSystem: 'cartesian2d',
  2041. showEffectOn: 'render',
  2042. rippleEffect: {
  2043. period: 10,
  2044. scale: 4,
  2045. brushType: 'stroke'
  2046. },
  2047. hoverAnimation: true,
  2048. itemStyle: {
  2049. color: 'yellow'
  2050. },
  2051. lineStyle: {
  2052. color: '#43ede3',
  2053. width: 2,
  2054. },
  2055. data: this.twinkleR6,
  2056. },
  2057. ],
  2058. }
  2059. option.title.text = '各四级企业利润与薪酬变动情况'
  2060. option.legend.data = ['2022年利润累计涨幅率', '2022年薪酬累计涨幅率']
  2061. option.tooltip = {
  2062. trigger: 'axis',
  2063. formatter: '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  2064. }
  2065. option.yAxis = [
  2066. {
  2067. max: function (value) {
  2068. if (Math.abs(value.max) > Math.abs(value.min)) {
  2069. return (Math.abs(value.max) * 1.2).toFixed(2);
  2070. } else {
  2071. return (Math.abs(value.min) * 1.2).toFixed(2);
  2072. }
  2073. },
  2074. min: function (value) {
  2075. if (Math.abs(value.max) > Math.abs(value.min)) {
  2076. return (-Math.abs(value.max) * 1.2).toFixed(2);
  2077. } else {
  2078. return (-Math.abs(value.min) * 1.2).toFixed(2);
  2079. }
  2080. },
  2081. splitLine: {
  2082. show: true,
  2083. lineStyle: {
  2084. color: '#68b4dd66',
  2085. type: 'dashed',
  2086. },
  2087. },
  2088. axisLine: {
  2089. show: false,
  2090. },
  2091. axisLabel: {
  2092. show: true,
  2093. formatter: '{value} %',
  2094. textStyle: {
  2095. color: 'rgba(250,250,250,0.6)',
  2096. },
  2097. },
  2098. },
  2099. {
  2100. max: function (value) {
  2101. if (Math.abs(value.max) > Math.abs(value.min)) {
  2102. return (Math.abs(value.max) * 1.2).toFixed(2);
  2103. } else {
  2104. return (Math.abs(value.min) * 1.2).toFixed(2);
  2105. }
  2106. },
  2107. min: function (value) {
  2108. if (Math.abs(value.max) > Math.abs(value.min)) {
  2109. return (-Math.abs(value.max) * 1.2).toFixed(2);
  2110. } else {
  2111. return (-Math.abs(value.min) * 1.2).toFixed(2);
  2112. }
  2113. },
  2114. splitLine: {
  2115. show: false,
  2116. },
  2117. axisLine: {
  2118. show: false,
  2119. },
  2120. axisLabel: {
  2121. show: true,
  2122. formatter: '{value} %',
  2123. textStyle: {
  2124. color: 'rgba(250,250,250,0.6)',
  2125. },
  2126. },
  2127. }
  2128. ]
  2129. myChart.setOption(option)
  2130. },
  2131. initChartR7 () {
  2132. let myChart = echarts.init(this.$refs['echartR7'])
  2133. let option = {
  2134. ..._.cloneDeep(this.commonOption),
  2135. color: [
  2136. {
  2137. x: 0,
  2138. y: 0,
  2139. x2: 0,
  2140. y2: 1,
  2141. colorStops: [{
  2142. offset: 0,
  2143. color: '#B889EA',
  2144. },
  2145. {
  2146. offset: 1,
  2147. color: '#082550',
  2148. },],
  2149. }
  2150. ],
  2151. series: [
  2152. {
  2153. name: '全员绩效考核完成率',
  2154. type: 'bar',
  2155. barWidth: 15,
  2156. itemStyle: {
  2157. normal: {
  2158. color: params => {
  2159. if (params.value < 50) {
  2160. return 'yellow'
  2161. }
  2162. else {
  2163. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2164. {
  2165. offset: 0,
  2166. color: '#B889EA',
  2167. },
  2168. {
  2169. offset: 1,
  2170. color: '#082550',
  2171. },
  2172. ])
  2173. }
  2174. },
  2175. },
  2176. },
  2177. data: dataR7[0],
  2178. },
  2179. ],
  2180. }
  2181. option.title.text = '各四级企业全员绩效考核'
  2182. // option.legend.data = ['劳动合同签约完成率', '目标值']
  2183. option.tooltip = {
  2184. trigger: 'axis',
  2185. formatter: '{a0}:{c0}' + '%'
  2186. }
  2187. option.yAxis[0].axisLabel = {
  2188. show: true,
  2189. formatter: '{value} %',
  2190. textStyle: {
  2191. color: 'rgba(250,250,250,0.6)',
  2192. },
  2193. }
  2194. myChart.setOption(option)
  2195. },
  2196. initChartR8 () {
  2197. let myChart = echarts.init(this.$refs['echartR8'])
  2198. let option = {
  2199. ..._.cloneDeep(this.commonOption),
  2200. color: [
  2201. {
  2202. x: 0,
  2203. y: 0,
  2204. x2: 0,
  2205. y2: 1,
  2206. colorStops: [{
  2207. offset: 0,
  2208. color: '#43ede3',
  2209. },
  2210. {
  2211. offset: 1,
  2212. color: '#082550',
  2213. },],
  2214. }
  2215. ],
  2216. series: [
  2217. {
  2218. name: '任期制契约化完成率',
  2219. type: 'bar',
  2220. barWidth: 15,
  2221. itemStyle: {
  2222. normal: {
  2223. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2224. {
  2225. offset: 0,
  2226. color: '#43ede3',
  2227. },
  2228. {
  2229. offset: 1,
  2230. color: '#082550',
  2231. },
  2232. ]),
  2233. },
  2234. },
  2235. data: dataR8[0],
  2236. },
  2237. ],
  2238. }
  2239. option.title.text = '各四级企业任期制契约化完成率'
  2240. option.tooltip = {
  2241. trigger: 'axis',
  2242. formatter: '{a0}:{c0}' + '%'
  2243. }
  2244. option.yAxis[0].axisLabel = {
  2245. show: true,
  2246. formatter: '{value} %',
  2247. textStyle: {
  2248. color: 'rgba(250,250,250,0.6)',
  2249. },
  2250. }
  2251. myChart.setOption(option)
  2252. },
  2253. },
  2254. })