index2JNKG.js 73 KB

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