index2JNKG.js 73 KB

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