index2JNKG.js 69 KB

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