index.js 93 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864
  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. // paymentShow:false, // 定薪酬弹窗
  8. echartC1: {
  9. national: 100,
  10. province: 200
  11. },
  12. echartC2: {
  13. national: 100,
  14. province: 200
  15. },
  16. app_token: '',
  17. twinkle7: [],
  18. twinkle8: [],
  19. twinkleR6: [],
  20. showTip: false,
  21. showTip2: false,
  22. showTip3: false,
  23. showTip4: false,
  24. titleShow: false,
  25. tipNum: '',
  26. tipData: tipData,
  27. titleData: titleData,
  28. time: '',
  29. year: '2022',
  30. config1: {
  31. number: [100],
  32. content: '{nt}个',
  33. },
  34. centerData: '',
  35. storageRecordConfig: {
  36. header: ['', '公司名称', '工作情况'],
  37. headerBGC: '#05507b33',
  38. oddRowBGC: '#69c0ff0f',
  39. // waitTime: '50000',
  40. evenRowBGC: '',
  41. headerHeight: '40',
  42. columnWidth: [150, 150],
  43. rowNum: 4,
  44. align: ['right', 'center', 'center', 'center'],
  45. data: [
  46. ['<span class="lightOut"><span class=" light green "></span></span>', ' 山西焦煤 ', ' “退二进一”完成情况表现优秀 '],
  47. ['<span class="lightOut"><span class=" light green "></span></span>', ' 山西焦煤 ', ' 总部机构压减成效明显 '],
  48. ['<span class="lightOut"><span class=" light green "></span></span>', ' 晋能控股 ', ' 总部人员压减成效突出 '],
  49. ['<span class="lightOut"><span class=" light green "></span></span>', ' 晋能控股 ', ' 中层管理人数改革成效显著 '],
  50. ['<span class="lightOut"><span class=" light green "></span></span>', ' 晋能控股 ', ' 管理级次压缩成效明显 '],
  51. ['<span class="lightOut"><span class=" light red "></span></span>', ' 华阳新材 ', ' 六定未按要求下穿到全级次企业 '],
  52. ['<span class="lightOut"><span class=" light green "></span></span>', ' 潞安化工 ', ' 全员劳动生产率提高明显 '],
  53. ['<span class="lightOut"><span class=" light green "></span></span>', ' 建投集团 ', ' 深入开展中层管理人员竞聘上岗 '],
  54. ['<span class="lightOut"><span class=" light green "></span></span>', ' 华舰体育 ', ' 集团人数增长速度较快 '],
  55. ['<span class="lightOut"><span class=" light green "></span></span>', ' 华舰体育 ', ' 人员增速显著高于全员劳动生产率增速 '],
  56. ['<span class="lightOut"><span class=" light green "></span></span>', ' 国际能源 ', ' 全员劳动生产率增速显著高于人员增速 '],
  57. ['<span class="lightOut"><span class=" light green "></span></span>', ' 山西焦煤 ', ' 人工成本利润率增长且总人数下降 '],
  58. ['<span class="lightOut"><span class=" light green "></span></span>', ' 晋能控股 ', ' 人工成本利润率增长且总人数下降 '],
  59. ['<span class="lightOut"><span class=" light green "></span></span>', ' 华阳新材 ', ' 人工成本利润率增长且总人数下降 '],
  60. ['<span class="lightOut"><span class=" light green "></span></span>', ' 太重集团 ', ' 人工成本利润率增长且总人数下降 '],
  61. ['<span class="lightOut"><span class=" light green "></span></span>', ' 国际能源 ', ' 人工成本利润率增长且总人数下降 '],
  62. ['<span class="lightOut"><span class=" light green "></span></span>', ' 华远陆港 ', ' 人工成本利润率增长且总人数下降 '],
  63. ['<span class="lightOut"><span class=" light green "></span></span>', ' 交控集团 ', ' 人工成本利润率增长且总人数下降 '],
  64. ['<span class="lightOut"><span class=" light green "></span></span>', ' 云时代 ', ' 人工成本利润率增长且总人数下降 '],
  65. ['<span class="lightOut"><span class=" light yellow "></span></span>', ' 文旅集团 ', ' 人工成本利润率显著降低 '],
  66. ['<span class="lightOut"><span class=" light yellow "></span></span>', ' 航产集团 ', ' 人工成本利润率显著降低 '],
  67. ['<span class="lightOut"><span class=" light red "></span></span>', ' 大地控股 ', ' 中层管理人员任命不符合六定要求 '],
  68. ['<span class="lightOut"><span class=" light green "></span></span>', ' 交控集团 ', ' “退二进一”完成情况表现优秀 '],
  69. ['<span class="lightOut"><span class=" light green "></span></span>', ' 太重集团 ', ' 开展管理人员末等调整和不胜任退出 '],
  70. ['<span class="lightOut"><span class=" light yellow "></span></span>', ' 华舰体育 ', ' 六定相关文件未按要求备案 '],
  71. ['<span class="lightOut"><span class=" light yellow "></span></span>', ' 文旅集团 ', ' 六定相关文件未按要求备案 '],
  72. ['<span class="lightOut"><span class=" light yellow "></span></span>', ' 水控集团 ', ' 六定相关文件未按要求备案 '],
  73. ],
  74. },
  75. storageRecordConfig2: {
  76. header: ['', '企业名称', '预警内容', '累计未获取数据日期'],
  77. headerBGC: '#05507b33',
  78. oddRowBGC: '#05507b33',
  79. evenRowBGC: '',
  80. headerHeight: '40',
  81. columnWidth: [150],
  82. rowNum: 4,
  83. align: ['center', 'center', 'center', 'center', 'center'],
  84. data: [
  85. ['<span class="lightOut"><span class=" light green "></span></span>', ' 华新燃气 ', ' 本季度数据更新及时准确 ', ' - '],
  86. ['<span class="lightOut"><span class=" light green "></span></span>', ' 云时代 ', ' 本季度数据更新及时准确 ', ' '],
  87. ['<span class="lightOut"><span class=" light red "></span></span>', ' 大地控股 ', ' 六定长效机制情况未更新 ', ' 30 '],
  88. ['<span class="lightOut"><span class=" light yellow "></span></span>', ' 建设投资 ', ' 六定长效机制12月数据未获取 ', ' 15 '],
  89. ['<span class="lightOut"><span class=" light yellow "></span></span>', ' 交控集团 ', ' 经营业绩考核12月数据未获取 ', ' 15 '],
  90. ['<span class="lightOut"><span class=" light yellow "></span></span>', ' 太重集团 ', ' 经营业绩考核12月数据未获取 ', ' 15 '],
  91. ['<span class="lightOut"><span class=" light yellow "></span></span>', ' 文旅集团 ', ' 经营业绩考核12月数据未获取 ', ' 15 '],
  92. ['<span class="lightOut"><span class=" light yellow "></span></span>', ' 水务集团 ', ' 经营业绩考核12月数据未获取 ', ' 15 '],
  93. ['<span class="lightOut"><span class=" light yellow "></span></span>', ' 航产集团 ', ' 经营业绩考核12月数据未获取 ', ' 15 '],
  94. ['<span class="lightOut"><span class=" light yellow "></span></span>', ' 华舰体育 ', ' 经营业绩考核12月数据未获取 ', ' 15 '],
  95. ['<span class="lightOut"><span class=" light yellow "></span></span>', ' 文旅集团 ', ' 六定长效机制情况数据更新错误 ', ' - '],
  96. ]
  97. },
  98. companyList: companyList,
  99. commonOption: {
  100. title: {
  101. text: 'xxx',
  102. x: 'center',
  103. y: '3%',
  104. textStyle: {
  105. color: '#69C0FF',
  106. fontSize: 24,
  107. },
  108. },
  109. tooltip: {
  110. trigger: 'axis',
  111. textStyle: { fontSize: 18 },
  112. axisPointer: {
  113. type: 'cross',
  114. label: {
  115. fontSize: 18,
  116. },
  117. },
  118. },
  119. grid: {
  120. top: '22%',
  121. right: '5%',
  122. left: '8%',
  123. bottom: '20%',
  124. },
  125. legend: {
  126. data: '',
  127. top: '12%',
  128. right: '5%',
  129. textStyle: {
  130. color: 'rgba(250,250,250,0.6)',
  131. fontSize: 16,
  132. },
  133. },
  134. xAxis: {
  135. data: companyList.map(item => item.name),
  136. axisLine: {
  137. show: false, //隐藏X轴轴线
  138. lineStyle: {
  139. color: '#005094',
  140. width: 1,
  141. },
  142. },
  143. axisTick: {
  144. show: false, //隐藏X轴刻度
  145. },
  146. axisLabel: {
  147. show: true,
  148. rotate: 50,
  149. textStyle: {
  150. color: 'rgba(255,255,255,0.6)', //X轴文字颜色
  151. fontSize: 16,
  152. },
  153. },
  154. },
  155. yAxis: [
  156. {
  157. type: 'value',
  158. nameTextStyle: {
  159. color: '#ebf8ac',
  160. fontSize: 16,
  161. },
  162. splitLine: {
  163. show: true,
  164. lineStyle: {
  165. color: '#68b4dd66',
  166. type: 'dashed',
  167. },
  168. },
  169. axisLine: {
  170. show: false,
  171. },
  172. axisLabel: {
  173. show: true,
  174. textStyle: {
  175. color: 'rgba(250,250,250,0.6)',
  176. fontSize: 16,
  177. },
  178. },
  179. },
  180. ],
  181. },
  182. }
  183. },
  184. beforeMount () {
  185. },
  186. mounted () {
  187. if (!sessionStorage.getItem('accounts', this.accounts)) {
  188. window.location.href = './login/login.html'
  189. return
  190. }
  191. this.getAppToken()
  192. this.time = formatDate()
  193. this.timer = setInterval(() => {
  194. this.time = formatDate()
  195. }, 1000)
  196. this.centerData = data
  197. this.generateEcharts()
  198. },
  199. beforeDestroy () {
  200. if (this.timer) {
  201. clearInterval(this.timer)
  202. }
  203. },
  204. methods: {
  205. // 获取token
  206. getAppToken () {
  207. let value = {
  208. // dev环境
  209. // "appId": "cockpitScreen",
  210. // "appSecuret": "JSCdpsjgl@123456",
  211. // "tenantid": "gydev",
  212. // "accountId": "1614416231203341312",
  213. // "language": "zh_CN"
  214. // SIT环境
  215. // "appId": "CockpitScreen",
  216. // "appSecuret": "JSCdpsjgl@539126",
  217. // "tenantid": "test",
  218. // "accountId": "1484008912330950656",
  219. // "language": "zh_CN"
  220. // UAT环境
  221. "appId": "CockpitScreen",
  222. "appSecuret": "JSCdpsjgl@539126",
  223. "tenantid": "uatierp",
  224. "accountId": "1490670568960163840",
  225. "language": "zh_CN"
  226. }
  227. post('/ierp/api/getAppToken.do', value).then(res => {
  228. this.app_token = res.data.app_token
  229. this.getAccessToken()
  230. })
  231. },
  232. // 获取AccessToken
  233. getAccessToken () {
  234. let value = {
  235. // dev环境
  236. // "user": "jiashicangjiekou",
  237. // "apptoken": this.app_token,
  238. // "tenantid": "gydev",
  239. // "accountId": "1614416231203341312",
  240. // "usertype": "UserName"
  241. // SIT环境
  242. // "user": "jiashicangjiekou",
  243. // "apptoken": this.app_token,
  244. // "tenantid": "test",
  245. // "accountId": "1484008912330950656",
  246. // "usertype": "UserName"
  247. // UAT环境
  248. "user": "jiashicangjiekou",
  249. "apptoken": this.app_token,
  250. "tenantid": "uatierp",
  251. "accountId": "1490670568960163840",
  252. "usertype": "UserName"
  253. }
  254. post('/ierp/api/login.do', value).then(res => {
  255. this.access_token = res.data.access_token
  256. // Promise.all([this.getData(), this.getInstitutional()])
  257. // .then((arr) => {
  258. // // 生成图表
  259. // this.generateEcharts()
  260. // })
  261. // .catch((err) => console.log(err));
  262. this.getInstitutional()
  263. })
  264. },
  265. // 获取组织机构
  266. getInstitutional () {
  267. return new Promise((resolve, err) => {
  268. let value = {
  269. access_token: this.access_token,
  270. "Data": {
  271. "paramType": "ORG",
  272. "orgNumber": "100000"
  273. }
  274. }
  275. post('/ierp/kapi/v2/mdnb/mdnb_das/Data/CockpitScreen', value).then(res => {
  276. this.companyList = res.data.map(item => {
  277. return { name: item.orgName, id: item.orgNumber, orgLogoNum: item.orgLogoNum }
  278. })
  279. this.commonOption.xAxis.data = this.companyList.map(item => item.name)
  280. this.getData()
  281. resolve(1);
  282. })
  283. });
  284. },
  285. generateEcharts () {
  286. this.initChartL1()
  287. this.initChartL2()
  288. this.initChartL3()
  289. this.initChartL4()
  290. this.initChartL5()
  291. this.initChartL6()
  292. this.initChartL7()
  293. this.initChartL8()
  294. // 中间图表
  295. this.initChartC1()
  296. this.initChartC2()
  297. // 右侧图表
  298. this.initChartR1()
  299. this.initChartR2()
  300. this.initChartR3()
  301. this.initChartR4()
  302. this.initChartR5()
  303. this.initChartR6()
  304. this.initChartR7()
  305. this.initChartR8()
  306. },
  307. getData () {
  308. return new Promise((resolve, err) => {
  309. let value = {
  310. access_token: this.access_token,
  311. "Data": {
  312. "paramType": "DATA",
  313. "orgNumber": "100000"
  314. }
  315. }
  316. post('/ierp/kapi/v2/mdnb/mdnb_das/Data/CockpitScreen', value).then(res => {
  317. res.orgData = res.data[0]
  318. // 定机构
  319. // 弹窗
  320. // return
  321. // 左侧图表
  322. // tipData.focus[0] = res.orgData.area1.keyPoint
  323. tipData.analysis[0] = res.orgData.area1.intAnalysis.map(item => item.analysis)
  324. //各省属企业总部机构数
  325. dataL1[1] = []
  326. dataL1[0] = []
  327. dataL1[2] = []
  328. res.orgData.area1.card1.forEach(item => {
  329. dataL1[1].push(item['ZBPZ0032'])
  330. dataL1[0].push(item['ZBPZ0042'])
  331. dataL1[2].push(item['ZBPZ0043'])
  332. })
  333. // 各省属企业共享服务中心/事业部数
  334. dataL2[0] = []
  335. dataL2[1] = []
  336. dataL2[2] = []
  337. res.orgData.area1.card2.forEach(item => {
  338. dataL2[1].push(item['ZBPZ0045'])
  339. dataL2[0].push(item['ZBPZ0024'])
  340. dataL2[2].push(item['ZBPZ0044'])
  341. })
  342. // 定职数
  343. // 弹窗
  344. // tipData.focus[1] = res.orgData.area2.keyPoint
  345. tipData.analysis[1] = res.orgData.area2.intAnalysis.map(item => item.analysis)
  346. // 各省属企业管理人员数
  347. dataL3[0] = []
  348. dataL3[1] = []
  349. res.orgData.area2.card1.forEach(item => {
  350. dataL3[0].push(item['ZBPZ0031'])
  351. dataL3[1].push(item['ZBPZ0049'])
  352. })
  353. // 各省属企业总部中层管理人数
  354. dataL4[1] = []
  355. dataL4[0] = []
  356. dataL4[2] = []
  357. res.orgData.area2.card2.forEach(item => {
  358. dataL4[1].push(item['ZBPZ0046'])
  359. dataL4[0].push(item['ZBPZ0047'])
  360. dataL4[2].push(item['ZBPZ0048'])
  361. })
  362. // 定员额
  363. // 弹窗
  364. // tipData.focus[2] = res.orgData.area3.keyPoint
  365. tipData.analysis[2] = res.orgData.area3.intAnalysis.map(item => item.analysis)
  366. // 各省属企业总人数
  367. dataL5[0] = []
  368. dataL5[1] = []
  369. res.orgData.area3.card1.forEach(item => {
  370. dataL5[0].push(item['ZBPZ0006'])
  371. dataL5[1].push(item['ZBPZ0050'])
  372. })
  373. // 各省属企业总部员额数
  374. dataL6[0] = []
  375. dataL6[1] = []
  376. dataL6[2] = []
  377. res.orgData.area3.card2.forEach(item => {
  378. dataL6[0].push(item['ZBPZ0033'])
  379. dataL6[1].push(item['ZBPZ0053'])
  380. })
  381. // 人数变化和全员劳动生产率变化分析
  382. dataL7[0] = []
  383. dataL7[1] = []
  384. res.orgData.area3.card3.forEach(item => {
  385. dataL7[0].push(item['ZBPZ0050'])
  386. dataL7[1].push(item['ZBPZ0039'])
  387. })
  388. // 人数变化和人工成本利润率变化分析
  389. dataL8[0] = []
  390. dataL8[1] = []
  391. res.orgData.area3.card4.forEach(item => {
  392. dataL8[0].push(item['ZBPZ0050'])
  393. dataL8[1].push(item['ZBPZ0041'])
  394. })
  395. // 中间
  396. // 架岗人
  397. this.centerData.info.value1 = res.orgData.area7.ZBPZ0037
  398. this.centerData.info.value2 = res.orgData.area7.ZBPZ0038
  399. this.centerData.info.value3 = res.orgData.area7.ZBPZ0006
  400. // 六定改革成效
  401. this.centerData.changeInfo[0].value1 = res.orgData.area8.ZBPZ0067
  402. this.centerData.changeInfo[0].value2 = res.orgData.area8.ZBPZ0068
  403. this.centerData.changeInfo[0].value3 = res.orgData.area8.ZBPZ0069
  404. this.centerData.changeInfo[2].value1 = res.orgData.area8.ZBPZ0074
  405. this.centerData.changeInfo[2].value2 = res.orgData.area8.ZBPZ0075
  406. this.centerData.changeInfo[2].value3 = res.orgData.area8.ZBPZ0076
  407. this.centerData.changeInfo[1].value1 = res.orgData.area8.ZBPZ0071
  408. this.centerData.changeInfo[1].value2 = res.orgData.area8.ZBPZ0072
  409. this.centerData.changeInfo[1].value3 = res.orgData.area8.ZBPZ0073
  410. // 核心指标监测
  411. // 弹窗
  412. // tipData.focus[3] = res.orgData.area9.keyPoint
  413. tipData.analysis[3] = res.orgData.area9.intAnalysis.map(item => item.analysis)
  414. // 劳动生产各省属企业全员率
  415. c1[0] = []
  416. c1[1] = []
  417. res.orgData.area9.card1.forEach(item => {
  418. c1[0].push(item['ZBPZ0035'])
  419. c1[1].push(item['ZBPZ0039'])
  420. })
  421. // 各省属企业人工成本利润率
  422. c2[1] = []
  423. c2[0] = []
  424. res.orgData.area9.card2.forEach(item => {
  425. c2[1].push(item['ZBPZ0040'])
  426. c2[0].push(item['ZBPZ0041'])
  427. })
  428. this.echartC1.national = res.orgData.area9.card1[0].ZBPZ0097
  429. this.echartC1.province = res.orgData.area9.card1[0].ZBPZ0096
  430. this.echartC2.national = res.orgData.area9.card2[0].ZBPZ0099
  431. this.echartC2.province = res.orgData.area9.card2[0].ZBPZ0098
  432. // 分析预警中心
  433. // 工作台分析
  434. this.storageRecordConfig.data = []
  435. res.orgData.area10.card1.forEach(item => {
  436. 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])
  437. })
  438. // 数据库预警
  439. this.storageRecordConfig2.data = []
  440. res.orgData.area10.card2.forEach(item => {
  441. this.storageRecordConfig2.data.push(['<span class="lightOut"><span class="light ' + (item.lightsup === '0' ? 'red' : item.lightsup === '1' ? 'yellow' : 'green') + '"></span></span>', item.enterprise, item.warning, item.date])
  442. })
  443. this.storageRecordConfig2 = { ...this.storageRecordConfig2 }
  444. // 左边
  445. // 定机制
  446. // 弹窗
  447. // tipData.focus[4] = res.orgData.area4.keyPoint
  448. tipData.analysis[4] = res.orgData.area4.intAnalysis.map(item => item.analysis)
  449. // 各省属企业招聘需求公示人次
  450. dataR1[0] = []
  451. dataR1[1] = []
  452. res.orgData.area4.card1.forEach(item => {
  453. dataR1[0].push(item['ZBPZ0057'])
  454. dataR1[1].push(item['ZBPZ0058'])
  455. })
  456. // 各省属企业录用结果公示人次
  457. dataR2[0] = []
  458. dataR2[1] = []
  459. res.orgData.area4.card2.forEach(item => {
  460. dataR2[0].push(item['ZBPZ0059'])
  461. dataR2[1].push(item['ZBPZ0060'])
  462. })
  463. // 各省属企业年利润与当年累计招聘人数
  464. dataR3[0] = []
  465. dataR3[1] = []
  466. res.orgData.area4.card3.forEach(item => {
  467. dataR3[0].push(item['ZBPZ0054'])
  468. dataR3[1].push(item['ZBPZ0055'])
  469. })
  470. // 各省属企业"退二进一"完成情况
  471. dataR4[0] = []
  472. dataR4[1] = []
  473. res.orgData.area4.card4.forEach(item => {
  474. dataR4[0].push(item['ZBPZ0056'])
  475. dataR4[0].push(item['ZBPZ0055'])
  476. })
  477. // 定薪酬
  478. // 弹窗
  479. // tipData.focus[5] = res.orgData.area5.keyPoint
  480. tipData.analysis[5] = res.orgData.area5.intAnalysis.map(item => item.analysis)
  481. // 各省属企业在岗职工平均薪酬
  482. fjxdataL1[0] = []
  483. fjxdataL1[1] = []
  484. res.orgData.area5.card1.forEach(item => {
  485. fjxdataL1[0].push(item['ZBPZ0063'])
  486. fjxdataL1[1].push(item['ZBPZ0064'])
  487. })
  488. // 各省属企业利润与薪酬变动情况
  489. fjxdataL2[0] = []
  490. fjxdataL2[1] = []
  491. res.orgData.area5.card2.forEach(item => {
  492. fjxdataL2[0].push(item['ZBPZ0061'])
  493. fjxdataL2[1].push(item['ZBPZ0062'])
  494. })
  495. // 定任期
  496. // 弹窗
  497. // tipData.focus[5] = res.orgData.area6.keyPoint
  498. tipData.analysis[5] = res.orgData.area6.intAnalysis.map(item => item.analysis)
  499. // 各省属企业全员绩效考核
  500. fjxdataL3[0] = []
  501. res.orgData.area6.card1.forEach(item => {
  502. fjxdataL3[0].push(item['ZBPZ0066'])
  503. })
  504. // 各省属企业全员绩效考核
  505. fjxdataL4[0] = []
  506. res.orgData.area6.card2.forEach(item => {
  507. fjxdataL4[0].push(item['ZBPZ0065'])
  508. })
  509. // 数据整理
  510. dataL7[0].forEach((item, index) => {
  511. if (dataL7[1][index] < 0 && dataL7[0][index] > 0) {
  512. let obj = { value: [this.companyList[index].name, dataL7[0][index]], symbolSize: 15 }
  513. this.twinkle7.push(obj)
  514. }
  515. })
  516. // if (dataL8[1][params.dataIndex] < 0 && params.value > 0) {
  517. dataL8[0].forEach((item, index) => {
  518. if (dataL8[1][index] < 0 && dataL8[0][index] > 0) {
  519. let obj = { value: [this.companyList[index].name, dataL8[0][index]], symbolSize: 15 }
  520. this.twinkle8.push(obj)
  521. }
  522. })
  523. // params.value > 0 && fjxdataL2[0][params.dataIndex] < 0
  524. fjxdataL2[0].forEach((item, index) => {
  525. if (fjxdataL2[1][index] > 0 && fjxdataL2[0][index] < 0) {
  526. let obj = { value: [this.companyList[index].name, fjxdataL2[1][index]], symbolSize: 15 }
  527. this.twinkleR6.push(obj)
  528. }
  529. })
  530. this.generateEcharts()
  531. resolve(1)
  532. })
  533. });
  534. },
  535. handleTitleShow () {
  536. this.titleShow = true
  537. this.showTip = false
  538. this.showTip2 = false
  539. // this.paymentShow = false
  540. },
  541. // handlepaymentShow () {
  542. // this.paymentShow = true
  543. // this.titleShow = false
  544. // this.showTip = false
  545. // this.showTip2 = false
  546. // },
  547. showTipClose () {
  548. // this.paymentShow = false
  549. this.showTip = false
  550. this.showTip2 = false
  551. this.titleShow = false
  552. },
  553. handleShowTip (index, type) {
  554. if (type == 'analysis') {
  555. this.tipData = tipData.analysis
  556. } else if (type == 'focus') {
  557. this.tipData = tipData.focus
  558. } else if (type == 'topThree') {
  559. this.tipData = tipData.topThree
  560. } else if (type == 'totlePeople') {
  561. this.tipData = tipData.totlePeople
  562. } else if (type == 'beforeReform') {
  563. this.tipData = tipData.beforeReform
  564. } else if (type == 'reformRegistered') {
  565. this.tipData = tipData.reformRegistered
  566. } else if (type == 'reforAveRemuneration') {
  567. this.tipData = tipData.reforAveRemuneration
  568. }
  569. this.showTip2 = false
  570. this.showTip = true
  571. this.titleShow = false
  572. this.tipNum = index
  573. },
  574. handleShowTip2 (index) {
  575. this.showTip = false
  576. this.showTip2 = true
  577. this.titleShow = false
  578. this.tipNum = index
  579. },
  580. handleGoPage (id, name) {
  581. if (name == '晋能控股') {
  582. window.location.href = './index2JNKG.html?id=' + id + `&access_token=${this.access_token}` + `&name=${name}`
  583. } else {
  584. window.location.href = './index2.html?id=' + id + `&access_token=${this.access_token}` + `&name=${name}`
  585. }
  586. },
  587. numFormat (value) {
  588. if (!value) return '0'
  589. // var intPart = Number(value).toFixed(0) // 获取整数部分
  590. var intPart = parseInt(value)// 获取整数部分
  591. var intPartFormat = intPart.toString().replace(/(\d)(?=(?:\d{3})+$)/g, '$1,') // 将整数部分逢三一断
  592. var floatPart = '.00' // 预定义小数部分
  593. var value2Array = value.toString().split('.')
  594. // =2表示数据有小数位
  595. if (value2Array.length === 2) {
  596. floatPart = value2Array[1].toString() // 拿到小数部分
  597. if (floatPart.length === 1) {
  598. // 补0
  599. return intPartFormat + '.' + floatPart + '0'
  600. } else {
  601. return intPartFormat + '.' + floatPart
  602. }
  603. } else {
  604. return intPartFormat
  605. }
  606. },
  607. initChartL1 () {
  608. let myChart = echarts.init(this.$refs['echartL1'])
  609. let option = {
  610. ..._.cloneDeep(this.commonOption),
  611. color: [
  612. {
  613. x: 0,
  614. y: 0,
  615. x2: 0,
  616. y2: 1,
  617. colorStops: [{
  618. offset: 0,
  619. color: '#5e7ae9',
  620. },
  621. {
  622. offset: 1,
  623. color: '#082550',
  624. },],
  625. }
  626. ],
  627. series: [
  628. {
  629. name: '本部机构数核定上限',
  630. type: 'line',
  631. // yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  632. smooth: true, //平滑曲线显示
  633. showAllSymbol: true, //显示所有图形。
  634. symbol: 'circle', //标记的图形为实心圆
  635. symbolSize: 8, //标记的大小
  636. smooth: false,
  637. itemStyle: {
  638. //折线拐点标志的样式
  639. color: '#fbe138',
  640. borderColor: '#fbe138',
  641. width: 2,
  642. shadowColor: '#fbe138',
  643. shadowBlur: 4,
  644. },
  645. lineStyle: {
  646. color: '#fbe138',
  647. width: 2,
  648. },
  649. data: dataL1[2],
  650. },
  651. {
  652. name: '六定改革前本部机构数',
  653. type: 'bar',
  654. barWidth: 15,
  655. itemStyle: {
  656. normal: {
  657. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  658. {
  659. offset: 0,
  660. color: '#43ede3',
  661. },
  662. {
  663. offset: 1,
  664. color: '#082550',
  665. },
  666. ]),
  667. },
  668. },
  669. data: dataL1[0],
  670. },
  671. {
  672. name: '当前各省属企业本部机构数',
  673. type: 'bar',
  674. barWidth: 15,
  675. itemStyle: {
  676. normal: {
  677. color: params => {
  678. if (params.value > dataL1[2][params.dataIndex]) {
  679. return 'red'
  680. } else {
  681. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  682. {
  683. offset: 0,
  684. color: '#5e7ae9',
  685. },
  686. {
  687. offset: 1,
  688. color: '#082550',
  689. },
  690. ])
  691. }
  692. },
  693. },
  694. },
  695. data: dataL1[1],
  696. },
  697. ],
  698. // tooltip: {
  699. // trigger: 'item',
  700. // position: 'top'
  701. // },
  702. }
  703. option.title.text = '各省属企业本部机构数'
  704. option.legend.data = ['六定改革前本部机构数', '当前各省属企业本部机构数', '本部机构数核定上限']
  705. option.yAxis.push({
  706. splitLine: {
  707. show: false,
  708. },
  709. axisLine: {
  710. show: false,
  711. },
  712. })
  713. myChart.setOption(option)
  714. },
  715. initChartL2 () {
  716. let myChart = echarts.init(this.$refs['echartL2'])
  717. let option = {
  718. ..._.cloneDeep(this.commonOption),
  719. color: [
  720. {
  721. x: 0,
  722. y: 0,
  723. x2: 0,
  724. y2: 1,
  725. colorStops: [{
  726. offset: 0,
  727. color: '#69c0ff',
  728. },
  729. {
  730. offset: 1,
  731. color: '#082550',
  732. },],
  733. }
  734. ],
  735. series: [
  736. {
  737. name: '当前本部共享服务中心/事业部数',
  738. type: 'bar',
  739. barWidth: 15,
  740. label: {
  741. normal: {
  742. show: true,
  743. position: 'top',
  744. textStyle: {
  745. color: '#69c0ff',
  746. fontStyle: 'normal',
  747. textAlign: 'left',
  748. fontSize: 16,
  749. },
  750. formatter: function (data) {
  751. if (data.name == '华阳新材') {
  752. return data.value
  753. } else {
  754. return ''
  755. }
  756. }
  757. }
  758. },
  759. itemStyle: {
  760. color: params => {
  761. if (params.value > dataL2[1][params.dataIndex]) {
  762. return 'red'
  763. } else {
  764. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  765. {
  766. offset: 0,
  767. color: '#69c0ff',
  768. },
  769. {
  770. offset: 1,
  771. color: '#082550',
  772. },
  773. ])
  774. }
  775. },
  776. },
  777. data: dataL2[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: '#69c0ff',
  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: '#5e7ae9',
  808. },
  809. {
  810. offset: 1,
  811. color: '#082550',
  812. },
  813. ]),
  814. },
  815. },
  816. data: dataL2[2],
  817. },
  818. {
  819. name: '本部共享服务中心/事业部核定上限',
  820. type: 'line',
  821. // yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  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: dataL2[1],
  859. },
  860. ],
  861. }
  862. option.title.text = '各省属企业本部共享服务中心/事业部数'
  863. option.legend.data = ['当前本部共享服务中心/事业部数', '本部共享服务中心/事业部核定上限', '六定改革前本部共享服务中心/事业部核定上限']
  864. option.yAxis.push({
  865. splitLine: {
  866. show: false,
  867. },
  868. axisLine: {
  869. show: false,
  870. },
  871. })
  872. myChart.setOption(option)
  873. },
  874. initChartL3 () {
  875. let myChart = echarts.init(this.$refs['echartL3'])
  876. let option = {
  877. ..._.cloneDeep(this.commonOption),
  878. series: [
  879. {
  880. name: '当前管理人员数',
  881. type: 'bar',
  882. barWidth: 15,
  883. itemStyle: {
  884. normal: {
  885. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  886. {
  887. offset: 0,
  888. color: '#5e7ae9',
  889. },
  890. {
  891. offset: 1,
  892. color: '#082550',
  893. },
  894. ]),
  895. },
  896. },
  897. data: dataL3[0],
  898. },
  899. {
  900. name: '管理人员数占总人数比值',
  901. type: 'line',
  902. yAxisIndex: 1,
  903. smooth: true, //平滑曲线显示
  904. showAllSymbol: true, //显示所有图形。
  905. symbol: 'circle', //标记的图形为实心圆
  906. symbolSize: 8, //标记的大小
  907. smooth: false,
  908. itemStyle: {
  909. //折线拐点标志的样式
  910. color: '#fbe138',
  911. borderColor: '#fbe138',
  912. width: 2,
  913. shadowColor: '#fbe138',
  914. shadowBlur: 4,
  915. },
  916. lineStyle: {
  917. color: '#fbe138',
  918. width: 2,
  919. },
  920. markLine: {
  921. data: [
  922. {
  923. name: '管理人员数占总人数的合理比值线',
  924. yAxis: 15,
  925. lineStyle: {
  926. color: '#fff',
  927. },
  928. label: {
  929. formatter: '{b}',
  930. position: 'middle',
  931. color: '#fff',
  932. fontSize: 16,
  933. },
  934. },
  935. ],
  936. label: {
  937. distance: [20, 8],
  938. },
  939. },
  940. data: dataL3[1],
  941. },
  942. ],
  943. }
  944. option.title.text = '各省属企业管理人员数'
  945. option.legend.data = ['当前管理人员数', '管理人员数占总人数比值']
  946. option.yAxis[0] = {
  947. type: 'log',
  948. min: 1,
  949. logBase: 10,
  950. axisLine: {
  951. show: false,
  952. },
  953. splitLine: {
  954. show: true,
  955. lineStyle: {
  956. color: '#68b4dd66',
  957. type: 'dashed',
  958. },
  959. },
  960. axisLabel: {
  961. show: true,
  962. formatter: function (value) {
  963. return value === 1 ? 0 : value
  964. },
  965. textStyle: {
  966. color: 'rgba(250,250,250,0.6)',
  967. },
  968. },
  969. }
  970. option.yAxis.push({
  971. type: 'value',
  972. max: 15,
  973. axisLine: {
  974. show: false,
  975. },
  976. splitLine: {
  977. show: false,
  978. },
  979. axisLabel: {
  980. show: true,
  981. formatter: '{value} %',
  982. textStyle: {
  983. color: 'rgba(250,250,250,0.6)',
  984. },
  985. },
  986. })
  987. option.tooltip.formatter = '{a0}:{c0}' + '<br/>' + '{a1}:{c1}' + '%'
  988. myChart.setOption(option)
  989. },
  990. initChartL4 () {
  991. let myChart = echarts.init(this.$refs['echartL4'])
  992. let option = {
  993. ..._.cloneDeep(this.commonOption),
  994. color: [
  995. {
  996. x: 0,
  997. y: 0,
  998. x2: 0,
  999. y2: 1,
  1000. colorStops: [{
  1001. offset: 0,
  1002. color: '#6480f3',
  1003. },
  1004. {
  1005. offset: 1,
  1006. color: '#082550',
  1007. },],
  1008. }
  1009. ],
  1010. series: [
  1011. {
  1012. name: '六定改革前本部中层管理人数',
  1013. type: 'bar',
  1014. barWidth: 15,
  1015. label: {
  1016. normal: {
  1017. show: true,
  1018. position: 'top',
  1019. textStyle: {
  1020. color: '#69c0ff',
  1021. fontStyle: 'normal',
  1022. textAlign: 'left',
  1023. fontSize: 16,
  1024. },
  1025. formatter: function (data) {
  1026. if (data.name == '云时代') {
  1027. return data.value
  1028. } else {
  1029. return ''
  1030. }
  1031. }
  1032. }
  1033. },
  1034. itemStyle: {
  1035. normal: {
  1036. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1037. {
  1038. offset: 0,
  1039. color: '#69c0ff',
  1040. },
  1041. {
  1042. offset: 1,
  1043. color: '#082550',
  1044. },
  1045. ]),
  1046. },
  1047. },
  1048. data: dataL4[0],
  1049. },
  1050. {
  1051. name: '当前本部中层管理人数',
  1052. type: 'bar',
  1053. barWidth: 15,
  1054. label: {
  1055. normal: {
  1056. show: true,
  1057. position: 'top',
  1058. textStyle: {
  1059. color: '#6480f3',
  1060. fontStyle: 'normal',
  1061. textAlign: 'left',
  1062. fontSize: 16,
  1063. },
  1064. formatter: function (data) {
  1065. if (data.name == '云时代') {
  1066. return data.value
  1067. } else {
  1068. return ''
  1069. }
  1070. }
  1071. }
  1072. },
  1073. itemStyle: {
  1074. normal: {
  1075. color: params => {
  1076. if (params.value > dataL4[2][params.dataIndex] || params.value > dataL4[0][params.dataIndex]) {
  1077. return 'red'
  1078. } else {
  1079. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1080. {
  1081. offset: 0,
  1082. color: '#6480f3',
  1083. },
  1084. {
  1085. offset: 1,
  1086. color: '#082550',
  1087. },
  1088. ])
  1089. }
  1090. },
  1091. },
  1092. },
  1093. data: dataL4[1],
  1094. },
  1095. {
  1096. name: '本部中层管理人数核定上限',
  1097. type: 'line',
  1098. // yAxisIndex: 1,
  1099. smooth: true, //平滑曲线显示
  1100. showAllSymbol: true, //显示所有图形。
  1101. symbol: 'circle', //标记的图形为实心圆
  1102. symbolSize: 8, //标记的大小
  1103. smooth: false,
  1104. label: {
  1105. normal: {
  1106. show: true,
  1107. position: 'top',
  1108. textStyle: {
  1109. color: '#fbe138',
  1110. fontStyle: 'normal',
  1111. textAlign: 'left',
  1112. fontSize: 16,
  1113. },
  1114. formatter: function (data) {
  1115. if (data.name == '云时代') {
  1116. return data.value
  1117. } else {
  1118. return ''
  1119. }
  1120. }
  1121. }
  1122. },
  1123. itemStyle: {
  1124. //折线拐点标志的样式
  1125. color: '#fbe138',
  1126. borderColor: '#fbe138',
  1127. width: 2,
  1128. shadowColor: '#fbe138',
  1129. shadowBlur: 4,
  1130. },
  1131. lineStyle: {
  1132. color: '#fbe138',
  1133. width: 2,
  1134. },
  1135. data: dataL4[2],
  1136. },
  1137. ],
  1138. }
  1139. option.title.text = '各省属企业本部中层管理人数'
  1140. option.legend.data = ['六定改革前本部中层管理人数', '当前本部中层管理人数', '本部中层管理人数核定上限']
  1141. option.legend.show = true
  1142. // option.yAxis.push({
  1143. // splitLine: {
  1144. // show: false,
  1145. // },
  1146. // axisLine: {
  1147. // show: false,
  1148. // },
  1149. // })
  1150. myChart.setOption(option)
  1151. },
  1152. initChartL5 () {
  1153. let myChart = echarts.init(this.$refs['echartL5'])
  1154. let option = {
  1155. ..._.cloneDeep(this.commonOption),
  1156. color: [
  1157. {
  1158. x: 0,
  1159. y: 0,
  1160. x2: 0,
  1161. y2: 1,
  1162. colorStops: [{
  1163. offset: 0,
  1164. color: '#69c0ff',
  1165. },
  1166. {
  1167. offset: 1,
  1168. color: '#082550',
  1169. },],
  1170. }
  1171. ],
  1172. series: [
  1173. {
  1174. name: '各省属企业总人数',
  1175. type: 'bar',
  1176. barWidth: 15,
  1177. label: {
  1178. normal: {
  1179. show: true,
  1180. position: 'top',
  1181. lineHeight: '25',
  1182. textStyle: {
  1183. color: '#69c0ff',
  1184. fontStyle: 'normal',
  1185. textAlign: 'left',
  1186. fontSize: 16,
  1187. },
  1188. formatter: function (data) {
  1189. if (data.name == '华阳新材' || data.name == '华舰体育') {
  1190. return data.value
  1191. } else {
  1192. return ''
  1193. }
  1194. }
  1195. }
  1196. },
  1197. itemStyle: {
  1198. normal: {
  1199. color: params => {
  1200. if (params.dataIndex > 0 && Math.abs(params.value - dataL5[0][params.dataIndex - 1]) > params.value * 0.1) {
  1201. return 'yellow'
  1202. } else {
  1203. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1204. {
  1205. offset: 0,
  1206. color: '#69c0ff',
  1207. },
  1208. {
  1209. offset: 1,
  1210. color: '#082550',
  1211. },
  1212. ])
  1213. }
  1214. }
  1215. },
  1216. },
  1217. data: dataL5[0],
  1218. },
  1219. {
  1220. name: '总人数同比变化',
  1221. type: 'line',
  1222. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  1223. smooth: true, //平滑曲线显示
  1224. showAllSymbol: true, //显示所有图形。
  1225. symbol: 'circle', //标记的图形为实心圆
  1226. symbolSize: 8, //标记的大小
  1227. smooth: false,
  1228. label: {
  1229. normal: {
  1230. show: true,
  1231. position: 'bottom',
  1232. lineHeight: '25',
  1233. textStyle: {
  1234. color: '#b889ea',
  1235. fontStyle: 'normal',
  1236. textAlign: 'left',
  1237. fontSize: 16,
  1238. },
  1239. formatter: function (data) {
  1240. if (data.name == '华阳新材' || data.name == '华舰体育') {
  1241. return data.value
  1242. } else {
  1243. return ''
  1244. }
  1245. }
  1246. }
  1247. },
  1248. itemStyle: {
  1249. //折线拐点标志的样式
  1250. color: '#b889ea',
  1251. borderColor: '#b889ea',
  1252. width: 2,
  1253. shadowColor: '#b889ea',
  1254. shadowBlur: 4,
  1255. },
  1256. lineStyle: {
  1257. color: '#b889ea',
  1258. width: 2,
  1259. },
  1260. data: dataL5[1],
  1261. },
  1262. ],
  1263. }
  1264. option.title.text = '各省属企业总人数'
  1265. option.legend.data = ['各省属企业总人数', '总人数同比变化']
  1266. option.legend.show = true
  1267. option.yAxis[0] = {
  1268. type: 'value',
  1269. // type: 'log',
  1270. min: 1,
  1271. // logBase: 10,
  1272. axisLine: {
  1273. show: false,
  1274. },
  1275. splitLine: {
  1276. show: true,
  1277. lineStyle: {
  1278. color: '#68b4dd66',
  1279. type: 'dashed',
  1280. },
  1281. },
  1282. axisLabel: {
  1283. show: true,
  1284. formatter: function (value) {
  1285. return value === 1 ? 0 : value
  1286. },
  1287. textStyle: {
  1288. color: 'rgba(250,250,250,0.6)',
  1289. },
  1290. },
  1291. }
  1292. option.yAxis.push({
  1293. type: 'value',
  1294. axisLine: {
  1295. show: false,
  1296. },
  1297. splitLine: {
  1298. show: false,
  1299. },
  1300. axisLabel: {
  1301. show: true,
  1302. formatter: '{value} %',
  1303. textStyle: {
  1304. color: 'rgba(250,250,250,0.6)',
  1305. },
  1306. },
  1307. })
  1308. option.tooltip.formatter = '{a0}:{c0}' + '<br/>' + '{a1}:{c1}' + '%'
  1309. myChart.setOption(option)
  1310. },
  1311. initChartL6 () {
  1312. let myChart = echarts.init(this.$refs['echartL6'])
  1313. let option = {
  1314. ..._.cloneDeep(this.commonOption),
  1315. series: [
  1316. {
  1317. name: '本部员额数',
  1318. type: 'bar',
  1319. barWidth: 15,
  1320. itemStyle: {
  1321. normal: {
  1322. barBorderRadius: [10, 10, 0, 0],
  1323. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1324. {
  1325. offset: 0,
  1326. color: '#43ede3',
  1327. },
  1328. {
  1329. offset: 1,
  1330. color: '#082550',
  1331. },
  1332. ]),
  1333. },
  1334. },
  1335. data: dataL6[0],
  1336. },
  1337. {
  1338. name: '六定改革前本部员额数',
  1339. type: 'bar',
  1340. barWidth: 15,
  1341. itemStyle: {
  1342. normal: {
  1343. barBorderRadius: [10, 10, 0, 0],
  1344. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1345. {
  1346. offset: 0,
  1347. color: '#43ede3',
  1348. },
  1349. {
  1350. offset: 1,
  1351. color: '#082550',
  1352. },
  1353. ]),
  1354. },
  1355. },
  1356. data: dataL6[2],
  1357. },
  1358. {
  1359. name: '本部员额数核定上限',
  1360. type: 'line',
  1361. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  1362. smooth: true, //平滑曲线显示
  1363. showAllSymbol: true, //显示所有图形。
  1364. symbol: 'circle', //标记的图形为实心圆
  1365. symbolSize: 8, //标记的大小
  1366. smooth: false,
  1367. itemStyle: {
  1368. //折线拐点标志的样式
  1369. color: '#fbe138',
  1370. borderColor: '#fbe138',
  1371. width: 2,
  1372. shadowColor: '#fbe138',
  1373. shadowBlur: 4,
  1374. },
  1375. lineStyle: {
  1376. color: '#fbe138',
  1377. width: 2,
  1378. },
  1379. data: dataL6[1],
  1380. },
  1381. ],
  1382. }
  1383. option.title.text = '各省属企业本部员额数'
  1384. option.legend.data = ['本部员额数', '六定改革前本部员额数', '本部员额数核定上限']
  1385. option.legend.show = true
  1386. option.yAxis.push({
  1387. splitLine: {
  1388. show: false,
  1389. },
  1390. axisLine: {
  1391. show: false,
  1392. },
  1393. })
  1394. myChart.setOption(option)
  1395. },
  1396. initChartL7 () {
  1397. let myChart = echarts.init(this.$refs['echartL7'])
  1398. let that = this
  1399. let option = {
  1400. ..._.cloneDeep(this.commonOption),
  1401. color: ['#43ede3'],
  1402. series: [
  1403. {
  1404. name: '人数变化',
  1405. type: 'line',
  1406. smooth: true, //平滑曲线显示
  1407. showAllSymbol: true, //显示所有图形。
  1408. symbol: 'circle', //标记的图形为实心圆
  1409. symbolSize: 15, //标记的大小
  1410. smooth: false,
  1411. label: {
  1412. normal: {
  1413. show: true,
  1414. position: 'bottom',
  1415. lineHeight: '35',
  1416. textStyle: {
  1417. color: '#43ede3',
  1418. fontStyle: 'normal',
  1419. textAlign: 'left',
  1420. fontSize: 16,
  1421. },
  1422. formatter: function (data) {
  1423. if (data.name == '文旅集团' || data.name == "大地控股" || data.name == '华舰体育') {
  1424. return data.value
  1425. } else {
  1426. return ''
  1427. }
  1428. }
  1429. }
  1430. },
  1431. itemStyle: {
  1432. color: params => {
  1433. if (dataL7[1][params.dataIndex] < 0 && params.value > 0) {
  1434. return 'red'
  1435. } else if (params.value < 0 && dataL7[1][params.dataIndex] > 0) {
  1436. return 'green'
  1437. }
  1438. else {
  1439. return '#43ede3'
  1440. }
  1441. },
  1442. },
  1443. lineStyle: {
  1444. color: '#43ede3',
  1445. width: 2,
  1446. },
  1447. data: dataL7[0],
  1448. },
  1449. {
  1450. name: '劳动生产率同比变化',
  1451. type: 'line',
  1452. yAxisIndex: 1,
  1453. smooth: true, //平滑曲线显示
  1454. showAllSymbol: true, //显示所有图形。
  1455. symbol: 'circle', //标记的图形为实心圆
  1456. symbolSize: 8, //标记的大小
  1457. smooth: false,
  1458. label: {
  1459. normal: {
  1460. show: true,
  1461. position: 'top',
  1462. lineHeight: '25',
  1463. textStyle: {
  1464. color: '#b889ea',
  1465. fontStyle: 'normal',
  1466. textAlign: 'left',
  1467. fontSize: 16,
  1468. },
  1469. formatter: function (data) {
  1470. if (data.name == '文旅集团' || data.name == "大地控股" || data.name == '华舰体育') {
  1471. return data.value
  1472. } else {
  1473. return ''
  1474. }
  1475. }
  1476. }
  1477. },
  1478. itemStyle: {
  1479. //折线拐点标志的样式
  1480. color: '#b889ea',
  1481. borderColor: '#b889ea',
  1482. width: 2,
  1483. shadowColor: '#b889ea',
  1484. shadowBlur: 4,
  1485. },
  1486. data: dataL7[1],
  1487. },
  1488. {
  1489. type: 'effectScatter',
  1490. coordinateSystem: 'cartesian2d',
  1491. showEffectOn: 'render',
  1492. rippleEffect: {
  1493. period: 10,
  1494. scale: 4,
  1495. brushType: 'stroke'
  1496. },
  1497. hoverAnimation: true,
  1498. itemStyle: {
  1499. color: 'red'
  1500. },
  1501. lineStyle: {
  1502. color: '#43ede3',
  1503. width: 2,
  1504. },
  1505. data: that.twinkle7,
  1506. },
  1507. ],
  1508. }
  1509. option.title.text = '人数变化和全员劳动生产率变化分析'
  1510. option.legend.data = ['人数变化', '劳动生产率同比变化']
  1511. option.legend.show = true
  1512. option.yAxis[0].axisLabel.formatter = '{value} %'
  1513. option.tooltip.formatter = '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  1514. option.yAxis.push({
  1515. type: 'value',
  1516. axisLine: {
  1517. show: false,
  1518. },
  1519. splitLine: {
  1520. show: false,
  1521. },
  1522. axisLabel: {
  1523. show: true,
  1524. formatter: '{value} %',
  1525. textStyle: {
  1526. color: 'rgba(250,250,250,0.6)',
  1527. },
  1528. splitLine: {
  1529. show: false,
  1530. },
  1531. axisLabel: {
  1532. show: true,
  1533. formatter: '{value} %',
  1534. textStyle: {
  1535. color: 'rgba(250,250,250,0.6)',
  1536. },
  1537. },
  1538. },
  1539. })
  1540. myChart.setOption(option)
  1541. },
  1542. initChartL8 () {
  1543. let myChart = echarts.init(this.$refs['echartL8'])
  1544. let option = {
  1545. ..._.cloneDeep(this.commonOption),
  1546. color: ['#43ede3'],
  1547. series: [
  1548. {
  1549. name: '人数变化',
  1550. type: 'line',
  1551. smooth: true, //平滑曲线显示
  1552. showAllSymbol: true, //显示所有图形。
  1553. symbol: 'circle', //标记的图形为实心圆
  1554. symbolSize: 15, //标记的大小
  1555. smooth: false,
  1556. label: {
  1557. normal: {
  1558. show: true,
  1559. position: 'bottom',
  1560. lineHeight: '20',
  1561. textStyle: {
  1562. color: '#43ede3',
  1563. fontStyle: 'normal',
  1564. textAlign: 'left',
  1565. fontSize: 16,
  1566. },
  1567. formatter: function (data) {
  1568. if (data.name == '文旅集团' || data.name == '大地控股') {
  1569. return data.value
  1570. } else {
  1571. return ''
  1572. }
  1573. }
  1574. }
  1575. },
  1576. itemStyle: {
  1577. color: params => {
  1578. if (dataL8[1][params.dataIndex] < 0 && params.value > 0) {
  1579. return 'red'
  1580. } else if (params.value < 0 && dataL8[1][params.dataIndex] > 0) {
  1581. return 'green'
  1582. }
  1583. else {
  1584. return '#43ede3'
  1585. }
  1586. },
  1587. },
  1588. lineStyle: {
  1589. color: '#43ede3',
  1590. width: 2,
  1591. },
  1592. data: dataL8[0],
  1593. },
  1594. {
  1595. name: '人工成本利润率同比变化',
  1596. type: 'line',
  1597. smooth: true, //平滑曲线显示
  1598. showAllSymbol: true, //显示所有图形。
  1599. symbol: 'circle', //标记的图形为实心圆
  1600. symbolSize: 15, //标记的大小
  1601. smooth: false,
  1602. label: {
  1603. normal: {
  1604. show: true,
  1605. position: 'top',
  1606. lineHeight: '30',
  1607. textStyle: {
  1608. color: '#b889ea',
  1609. fontStyle: 'normal',
  1610. textAlign: 'left',
  1611. fontSize: 16,
  1612. },
  1613. formatter: function (data) {
  1614. if (data.name == '文旅集团' || data.name == '大地控股') {
  1615. return data.value
  1616. } else {
  1617. return ''
  1618. }
  1619. }
  1620. }
  1621. },
  1622. itemStyle: {
  1623. //折线拐点标志的样式
  1624. color: '#b889ea',
  1625. borderColor: '#b889ea',
  1626. width: 2,
  1627. shadowColor: '#b889ea',
  1628. shadowBlur: 4,
  1629. },
  1630. lineStyle: {
  1631. color: '#b889ea',
  1632. width: 2,
  1633. },
  1634. data: dataL8[1],
  1635. },
  1636. {
  1637. type: 'effectScatter',
  1638. coordinateSystem: 'cartesian2d',
  1639. showEffectOn: 'render',
  1640. rippleEffect: {
  1641. period: 10,
  1642. scale: 4,
  1643. brushType: 'stroke'
  1644. },
  1645. hoverAnimation: true,
  1646. itemStyle: {
  1647. color: 'red'
  1648. },
  1649. lineStyle: {
  1650. color: '#43ede3',
  1651. width: 2,
  1652. },
  1653. data: this.twinkle8,
  1654. },
  1655. // {
  1656. // type: 'effectScatter',
  1657. // coordinateSystem: 'cartesian2d',
  1658. // showEffectOn: 'render',
  1659. // rippleEffect: {
  1660. // period: 10,
  1661. // scale: 4,
  1662. // brushType: 'stroke'
  1663. // },
  1664. // hoverAnimation: true,
  1665. // itemStyle: {
  1666. // color: 'red'
  1667. // },
  1668. // lineStyle: {
  1669. // color: '#43ede3',
  1670. // width: 2,
  1671. // },
  1672. // data: that.twinkle,
  1673. // },
  1674. ],
  1675. // tooltip: {
  1676. // trigger: 'axis',
  1677. // formatter(params){
  1678. // console.log(params)
  1679. // return params[0]
  1680. // }
  1681. // }
  1682. }
  1683. option.title.text = '人数变化和人工成本利润率变化分析'
  1684. option.legend.data = ['人数变化', '人工成本利润率同比变化']
  1685. option.legend.show = true
  1686. option.yAxis[0].axisLabel.formatter = '{value} %'
  1687. option.tooltip.formatter = '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  1688. myChart.setOption(option)
  1689. },
  1690. // 中间图表---------------------------------------------开始
  1691. initChartC1 () {
  1692. let myChart = echarts.init(this.$refs['echartC1'])
  1693. let option = {
  1694. ..._.cloneDeep(this.commonOption),
  1695. color: [
  1696. {
  1697. x: 0,
  1698. y: 0,
  1699. x2: 0,
  1700. y2: 1,
  1701. colorStops: [{
  1702. offset: 0,
  1703. color: '#69c0ff',
  1704. },
  1705. {
  1706. offset: 1,
  1707. color: '#082550',
  1708. },],
  1709. }
  1710. ],
  1711. series: [
  1712. {
  1713. name: '全员劳动生产率(万/人)',
  1714. type: 'bar',
  1715. barWidth: 15,
  1716. label: {
  1717. normal: {
  1718. show: true,
  1719. position: 'top',
  1720. textStyle: {
  1721. color: '#69c0ff',
  1722. fontStyle: 'normal',
  1723. textAlign: 'left',
  1724. fontSize: 16,
  1725. },
  1726. formatter: function (data) {
  1727. if (data.name == '国际能源' || data.name == '汾酒集团') {
  1728. return data.value
  1729. } else {
  1730. return ''
  1731. }
  1732. }
  1733. }
  1734. },
  1735. itemStyle: {
  1736. color: params => {
  1737. if (params.value < 0 && c1[1][params.dataIndex] < 0) {
  1738. return 'red'
  1739. } else if (params.value > this.echartC1.province) {
  1740. return 'green'
  1741. } else {
  1742. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1743. {
  1744. offset: 0,
  1745. color: '#69c0ff',
  1746. },
  1747. {
  1748. offset: 1,
  1749. color: '#082550',
  1750. },
  1751. ])
  1752. }
  1753. },
  1754. },
  1755. markLine: {
  1756. data: [
  1757. {
  1758. name: '省属企业平均水平',
  1759. yAxis: this.echartC1.national,
  1760. lineStyle: {
  1761. color: '#fff',
  1762. },
  1763. label: {
  1764. formatter: '{b}',
  1765. position: 'middle',
  1766. padding: [20, 100, 10, 10],
  1767. fontSize: 16,
  1768. color: '#fff',
  1769. },
  1770. },
  1771. {
  1772. name: '央企平均水平',
  1773. yAxis: this.echartC1.province,
  1774. lineStyle: {
  1775. color: '#fff',
  1776. },
  1777. label: {
  1778. formatter: '{b}',
  1779. position: 'end',
  1780. padding: [-4, 150, 10, 10],
  1781. color: '#fff',
  1782. fontSize: 16,
  1783. },
  1784. },
  1785. ],
  1786. label: {
  1787. distance: [50, 0],
  1788. },
  1789. },
  1790. data: c1[0],
  1791. },
  1792. {
  1793. name: '全员劳动生产率同比',
  1794. type: 'line',
  1795. yAxisIndex: 1,
  1796. smooth: true, //平滑曲线显示
  1797. showAllSymbol: true, //显示所有图形。
  1798. symbol: 'circle', //标记的图形为实心圆
  1799. symbolSize: 8, //标记的大小
  1800. smooth: false,
  1801. itemStyle: {
  1802. //折线拐点标志的样式
  1803. color: '#B889EA',
  1804. borderColor: '#B889EA',
  1805. width: 2,
  1806. shadowColor: '#B889EA',
  1807. shadowBlur: 4,
  1808. },
  1809. lineStyle: {
  1810. color: '#B889EA',
  1811. width: 2,
  1812. },
  1813. label: {
  1814. normal: {
  1815. show: true,
  1816. position: 'top',
  1817. textStyle: {
  1818. color: '#B889EA',
  1819. fontStyle: 'normal',
  1820. textAlign: 'left',
  1821. fontSize: 16,
  1822. },
  1823. formatter: function (data) {
  1824. if (data.name == '国际能源' || data.name == '汾酒集团') {
  1825. return data.value + '%'
  1826. } else {
  1827. return ''
  1828. }
  1829. }
  1830. }
  1831. },
  1832. data: c1[1],
  1833. },
  1834. ],
  1835. }
  1836. option.title.text = '各省属企业全员劳动生产率'
  1837. option.legend.show = true
  1838. option.grid.right = '15%'
  1839. option.tooltip.formatter = '{a0}:{c0}' + '<br/>' + '{a1}:{c1}' + '%'
  1840. option.yAxis.push({
  1841. type: 'value',
  1842. axisLine: {
  1843. show: false,
  1844. },
  1845. splitLine: {
  1846. show: false,
  1847. },
  1848. axisLabel: {
  1849. show: true,
  1850. formatter: '{value} %',
  1851. textStyle: {
  1852. color: 'rgba(250,250,250,0.6)',
  1853. },
  1854. },
  1855. })
  1856. myChart.setOption(option)
  1857. // tools.loopShowTooltip(myChart, option, {
  1858. // nterval: 2000,
  1859. // loopSeries: true,
  1860. // })
  1861. },
  1862. initChartC2 () {
  1863. let myChart = echarts.init(this.$refs['echartC2'])
  1864. let option = {
  1865. ..._.cloneDeep(this.commonOption),
  1866. color: [
  1867. {
  1868. x: 0,
  1869. y: 0,
  1870. x2: 0,
  1871. y2: 1,
  1872. colorStops: [{
  1873. offset: 0,
  1874. color: '#69c0ff',
  1875. },
  1876. {
  1877. offset: 1,
  1878. color: '#082550',
  1879. },],
  1880. }
  1881. ],
  1882. series: [
  1883. {
  1884. name: '人工成本利润率',
  1885. type: 'bar',
  1886. barWidth: 15,
  1887. label: {
  1888. normal: {
  1889. show: true,
  1890. position: 'top',
  1891. textStyle: {
  1892. color: '#fff',
  1893. fontStyle: 'normal',
  1894. textAlign: 'left',
  1895. fontSize: 16,
  1896. },
  1897. formatter: function (data) {
  1898. if (data.name == '国际能源' || data.name == '文旅集团' || data.name == '航产集团' || data.name == '华舰体育') {
  1899. return data.value
  1900. } else {
  1901. return ''
  1902. }
  1903. }
  1904. }
  1905. },
  1906. markLine: {
  1907. data: [
  1908. {
  1909. name: '省属企业平均水平',
  1910. yAxis: this.echartC2.province,
  1911. lineStyle: {
  1912. color: '#fff',
  1913. },
  1914. label: {
  1915. formatter: '{b}',
  1916. position: 'end',
  1917. padding: [24, 100, 10, 10],
  1918. fontSize: 16,
  1919. color: '#fff',
  1920. },
  1921. },
  1922. {
  1923. name: '央企平均水平',
  1924. yAxis: this.echartC2.national,
  1925. lineStyle: {
  1926. color: '#fff',
  1927. },
  1928. label: {
  1929. formatter: '{b}',
  1930. position: 'middle',
  1931. padding: [-24, 200, 10, 10],
  1932. color: '#fff',
  1933. fontSize: 16,
  1934. },
  1935. },
  1936. ],
  1937. label: {
  1938. distance: [50, 0],
  1939. },
  1940. },
  1941. itemStyle: {
  1942. color: params => {
  1943. if (params.value < 0 && c2[0][params.dataIndex] < 0) {
  1944. return 'red'
  1945. } else if (params.value > this.echartC2.province) {
  1946. return 'green'
  1947. } else {
  1948. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1949. {
  1950. offset: 0,
  1951. color: '#69c0ff',
  1952. },
  1953. {
  1954. offset: 1,
  1955. color: '#082550',
  1956. },
  1957. ])
  1958. }
  1959. },
  1960. },
  1961. data: c2[1],
  1962. },
  1963. {
  1964. name: '人工成本利润率同比',
  1965. type: 'line',
  1966. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  1967. smooth: true, //平滑曲线显示
  1968. showAllSymbol: true, //显示所有图形。
  1969. symbol: 'circle', //标记的图形为实心圆
  1970. symbolSize: 8, //标记的大小
  1971. smooth: false,
  1972. label: {
  1973. normal: {
  1974. show: true,
  1975. position: 'top',
  1976. lineHeight: '30',
  1977. textStyle: {
  1978. color: '#b889ea',
  1979. fontStyle: 'normal',
  1980. textAlign: 'left',
  1981. fontSize: 16,
  1982. },
  1983. formatter: function (data) {
  1984. if (data.name == '国际能源' || data.name == '文旅集团' || data.name == '航产集团' || data.name == '华舰体育') {
  1985. return data.value + '%'
  1986. } else {
  1987. return ''
  1988. }
  1989. }
  1990. }
  1991. },
  1992. itemStyle: {
  1993. //折线拐点标志的样式
  1994. color: '#B889EA',
  1995. borderColor: '#B889EA',
  1996. width: 2,
  1997. shadowColor: '#B889EA',
  1998. shadowBlur: 4,
  1999. },
  2000. lineStyle: {
  2001. color: '#B889EA',
  2002. width: 2,
  2003. },
  2004. data: c2[0],
  2005. },
  2006. ],
  2007. }
  2008. option.title.text = '各省属企业人工成本利润率'
  2009. option.legend.show = true
  2010. option.grid.right = '15%'
  2011. option.yAxis[0].axisLabel.formatter = '{value} %'
  2012. option.tooltip.formatter = '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  2013. option.yAxis.push({
  2014. type: 'value',
  2015. axisLine: {
  2016. show: false,
  2017. },
  2018. splitLine: {
  2019. show: false,
  2020. },
  2021. axisLabel: {
  2022. show: true,
  2023. formatter: '{value} %',
  2024. textStyle: {
  2025. color: 'rgba(250,250,250,0.6)',
  2026. },
  2027. },
  2028. })
  2029. myChart.setOption(option)
  2030. // tools.loopShowTooltip(myChart, option, {
  2031. // nterval: 2000,
  2032. // loopSeries: true,
  2033. // })
  2034. },
  2035. // 右侧图表---------------------------------------------开始
  2036. initChartR1 () {
  2037. let myChart = echarts.init(this.$refs['echartR1'])
  2038. let commonOptions = this.commonOption
  2039. commonOptions.yAxis[0].splitNumber = 2
  2040. let dataTemp = []
  2041. let dataTemp2 = []
  2042. dataR1[0].forEach(item => {
  2043. dataTemp.push(item + 1)
  2044. })
  2045. dataR1[1].forEach(item => {
  2046. dataTemp2.push(item + 1)
  2047. })
  2048. let option = {
  2049. ..._.cloneDeep(commonOptions),
  2050. series: [
  2051. {
  2052. name: '招聘需求公告次数',
  2053. type: 'bar',
  2054. barWidth: 15,
  2055. itemStyle: {
  2056. normal: {
  2057. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2058. {
  2059. offset: 0,
  2060. color: '#69c0ff',
  2061. },
  2062. {
  2063. offset: 1,
  2064. color: '#082550',
  2065. },
  2066. ]),
  2067. },
  2068. },
  2069. data: dataTemp,
  2070. },
  2071. {
  2072. name: '招聘需求公告累计招聘人次',
  2073. type: 'bar',
  2074. barWidth: 15,
  2075. itemStyle: {
  2076. normal: {
  2077. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2078. {
  2079. offset: 0,
  2080. color: '#43ede3',
  2081. },
  2082. {
  2083. offset: 1,
  2084. color: '#082550',
  2085. },
  2086. ]),
  2087. },
  2088. },
  2089. data: dataTemp2,
  2090. },
  2091. ],
  2092. }
  2093. option.title.text = '各省属企业招聘需求公示人次'
  2094. option.legend.data = ['招聘需求公告次数', '招聘需求公告累计招聘人次']
  2095. option.legend.show = true
  2096. option.tooltip.formatter = function (value) {
  2097. return value[0].axisValue + ':' + (value[0].value - 1) + '<br>' + value[1].axisValue + ':' + (value[1].value - 1)
  2098. }
  2099. option.yAxis[0] = {
  2100. type: 'log',
  2101. min: 1,
  2102. logBase: 10,
  2103. axisLine: {
  2104. show: false,
  2105. },
  2106. splitLine: {
  2107. show: true,
  2108. lineStyle: {
  2109. color: '#68b4dd66',
  2110. type: 'dashed',
  2111. },
  2112. },
  2113. axisLabel: {
  2114. show: true,
  2115. formatter: function (value) {
  2116. return value === 1 ? 0 : value
  2117. },
  2118. textStyle: {
  2119. color: 'rgba(250,250,250,0.6)',
  2120. },
  2121. },
  2122. }
  2123. myChart.setOption(option)
  2124. },
  2125. initChartR2 () {
  2126. let myChart = echarts.init(this.$refs['echartR2'])
  2127. let commonOptions = this.commonOption
  2128. commonOptions.yAxis[0].splitNumber = 2
  2129. let dataTemp = []
  2130. let dataTemp2 = []
  2131. dataR2[0].forEach(item => {
  2132. dataTemp.push(item + 1)
  2133. })
  2134. dataR2[1].forEach(item => {
  2135. dataTemp2.push(item + 1)
  2136. })
  2137. let option = {
  2138. ..._.cloneDeep(commonOptions),
  2139. series: [
  2140. {
  2141. name: '录用结果公示次数',
  2142. type: 'bar',
  2143. barWidth: 15,
  2144. itemStyle: {
  2145. normal: {
  2146. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2147. {
  2148. offset: 0,
  2149. color: '#69c0ff',
  2150. },
  2151. {
  2152. offset: 1,
  2153. color: '#082550',
  2154. },
  2155. ]),
  2156. },
  2157. },
  2158. data: dataTemp,
  2159. },
  2160. {
  2161. name: '录用结果公示累计公示人数',
  2162. type: 'bar',
  2163. barWidth: 15,
  2164. itemStyle: {
  2165. normal: {
  2166. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2167. {
  2168. offset: 0,
  2169. color: '#45DAD1',
  2170. },
  2171. {
  2172. offset: 1,
  2173. color: '#082550',
  2174. },
  2175. ]),
  2176. },
  2177. },
  2178. data: dataTemp2,
  2179. },
  2180. ],
  2181. }
  2182. option.title.text = '各省属企业录用结果公示人次'
  2183. option.legend.data = ['录用结果公示次数', '录用结果公示累计公示人数']
  2184. option.legend.show = true
  2185. option.tooltip.formatter = function (value) {
  2186. return value[0].axisValue + ':' + (value[0].value - 1) + '<br>' + value[1].axisValue + ':' + (value[1].value - 1)
  2187. }
  2188. option.yAxis[0] = {
  2189. type: 'log',
  2190. min: 1,
  2191. logBase: 10,
  2192. axisLine: {
  2193. show: false,
  2194. },
  2195. splitLine: {
  2196. show: true,
  2197. lineStyle: {
  2198. color: '#68b4dd66',
  2199. type: 'dashed',
  2200. },
  2201. },
  2202. axisLabel: {
  2203. show: true,
  2204. formatter: function (value) {
  2205. return value === 1 ? 0 : value
  2206. },
  2207. textStyle: {
  2208. color: 'rgba(250,250,250,0.6)',
  2209. },
  2210. },
  2211. }
  2212. myChart.setOption(option)
  2213. },
  2214. initChartR3 () {
  2215. let myChart = echarts.init(this.$refs['echartR3'])
  2216. let commonOptions = this.commonOption
  2217. commonOptions.yAxis[0].splitNumber = 2
  2218. let option = {
  2219. ..._.cloneDeep(commonOptions),
  2220. color: [
  2221. {
  2222. x: 0,
  2223. y: 0,
  2224. x2: 0,
  2225. y2: 1,
  2226. colorStops: [{
  2227. offset: 0,
  2228. color: '#45DAD1',
  2229. },
  2230. {
  2231. offset: 1,
  2232. color: '#082550',
  2233. },],
  2234. }
  2235. ],
  2236. series: [
  2237. {
  2238. name: '2022年利润(万)',
  2239. type: 'bar',
  2240. barWidth: 15,
  2241. label: {
  2242. normal: {
  2243. show: true,
  2244. position: 'bottom',
  2245. textStyle: {
  2246. color: '#69c0ff',
  2247. fontStyle: 'normal',
  2248. textAlign: 'left',
  2249. fontSize: 14,
  2250. },
  2251. formatter: function (data) {
  2252. if (data.name == "国际能源" || data.name == '文旅集团' || data.name == '航产集团' || data.name == '华舰体育') {
  2253. return data.value
  2254. } else {
  2255. return ''
  2256. }
  2257. }
  2258. }
  2259. },
  2260. itemStyle: {
  2261. normal: {
  2262. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2263. {
  2264. offset: 0,
  2265. color: '#69c0ff',
  2266. },
  2267. {
  2268. offset: 1,
  2269. color: '#082550',
  2270. },
  2271. ]),
  2272. },
  2273. },
  2274. data: dataR3[0],
  2275. },
  2276. {
  2277. name: '2022年招聘人数和2023年当前累计招聘人数之和',
  2278. type: 'bar',
  2279. barWidth: 15,
  2280. yAxisIndex: 1,
  2281. label: {
  2282. normal: {
  2283. show: true,
  2284. position: 'top',
  2285. textStyle: {
  2286. color: '#45DAD1',
  2287. fontStyle: 'normal',
  2288. textAlign: 'right',
  2289. fontSize: 14,
  2290. },
  2291. formatter: function (data) {
  2292. if (data.name == "国际能源" || data.name == '文旅集团' || data.name == '航产集团' || data.name == '华舰体育') {
  2293. return data.value
  2294. } else {
  2295. return ''
  2296. }
  2297. }
  2298. }
  2299. },
  2300. itemStyle: {
  2301. color: params => {
  2302. if (params.value > 0 && dataR3[0][params.dataIndex] < 0) {
  2303. return 'red'
  2304. } else {
  2305. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2306. {
  2307. offset: 0,
  2308. color: '#45DAD1',
  2309. },
  2310. {
  2311. offset: 1,
  2312. color: '#082550',
  2313. },
  2314. ])
  2315. }
  2316. },
  2317. },
  2318. // itemStyle: {
  2319. // normal: {
  2320. // color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2321. // {
  2322. // offset: 0,
  2323. // color: '#45DAD1',
  2324. // },
  2325. // {
  2326. // offset: 1,
  2327. // color: '#082550',
  2328. // },
  2329. // ]),
  2330. // },
  2331. // },
  2332. data: dataR3[1],
  2333. },
  2334. ],
  2335. }
  2336. option.title.text = '各省属企业年利润与当年累计招聘人数'
  2337. option.legend.data = ['2022年利润(万)', '2022年招聘人数和2023年当前累计招聘人数之和']
  2338. option.legend.show = true
  2339. option.yAxis[0] = {
  2340. max: function (value) {
  2341. if (Math.abs(value.max) > Math.abs(value.min)) {
  2342. return (Math.abs(value.max) * 1.2).toFixed(2)
  2343. } else {
  2344. return (Math.abs(value.min) * 1.2).toFixed(2)
  2345. }
  2346. },
  2347. min: function (value) {
  2348. if (Math.abs(value.max) > Math.abs(value.min)) {
  2349. return (-Math.abs(value.max) * 1.2).toFixed(2)
  2350. } else {
  2351. return (-Math.abs(value.min) * 1.2).toFixed(2)
  2352. }
  2353. },
  2354. type: 'value',
  2355. axisLine: {
  2356. show: false,
  2357. },
  2358. splitLine: {
  2359. show: true,
  2360. lineStyle: {
  2361. color: '#68b4dd66',
  2362. type: 'dashed',
  2363. },
  2364. },
  2365. axisLabel: {
  2366. show: true,
  2367. formatter: function (value) {
  2368. return value === 1 ? 0 : value
  2369. },
  2370. textStyle: {
  2371. color: 'rgba(250,250,250,0.6)',
  2372. },
  2373. },
  2374. }
  2375. option.yAxis.push({
  2376. splitLine: {
  2377. show: false,
  2378. },
  2379. axisLine: {
  2380. show: false,
  2381. },
  2382. axisLabel: {
  2383. show: true,
  2384. formatter: '{value}',
  2385. textStyle: {
  2386. color: 'rgba(250,250,250,0.6)',
  2387. },
  2388. },
  2389. max: function (value) {
  2390. if (Math.abs(value.max) > Math.abs(value.min)) {
  2391. return (Math.abs(value.max) * 1.2).toFixed(2)
  2392. } else {
  2393. return (Math.abs(value.min) * 1.2).toFixed(2)
  2394. }
  2395. },
  2396. min: function (value) {
  2397. if (Math.abs(value.max) > Math.abs(value.min)) {
  2398. return (-Math.abs(value.max) * 1.2).toFixed(2)
  2399. } else {
  2400. return (-Math.abs(value.min) * 1.2).toFixed(2)
  2401. }
  2402. },
  2403. })
  2404. myChart.setOption(option)
  2405. },
  2406. initChartR4 () {
  2407. let myChart = echarts.init(this.$refs['echartR4'])
  2408. let commonOptions = this.commonOption
  2409. commonOptions.yAxis[0].splitNumber = 2
  2410. let option = {
  2411. ..._.cloneDeep(commonOptions),
  2412. color: [
  2413. {
  2414. x: 0,
  2415. y: 0,
  2416. x2: 0,
  2417. y2: 1,
  2418. colorStops: [{
  2419. offset: 0,
  2420. color: '#6480f3',
  2421. },
  2422. {
  2423. offset: 1,
  2424. color: '#082550',
  2425. },],
  2426. }
  2427. ],
  2428. series: [
  2429. {
  2430. name: '2022年退出人数和2023年当前累计退出人数之和',
  2431. type: 'bar',
  2432. barWidth: 15,
  2433. itemStyle: {
  2434. normal: {
  2435. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2436. {
  2437. offset: 0,
  2438. color: '#69c0ff',
  2439. },
  2440. {
  2441. offset: 1,
  2442. color: '#082550',
  2443. },
  2444. ]),
  2445. },
  2446. },
  2447. data: dataR4[0],
  2448. },
  2449. {
  2450. name: '2022年招聘人数和2023年当前累计招聘人数之和',
  2451. type: 'bar',
  2452. barWidth: 15,
  2453. itemStyle: {
  2454. normal: {
  2455. color: params => {
  2456. if (params.value / dataR4[0][params.dataIndex] > 3) {
  2457. return 'green'
  2458. } else if (params.value / 2 < dataR4[0][params.dataIndex]) {
  2459. return 'yellow'
  2460. }
  2461. else {
  2462. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2463. {
  2464. offset: 0,
  2465. color: '#6480f3',
  2466. },
  2467. {
  2468. offset: 1,
  2469. color: '#082550',
  2470. },
  2471. ])
  2472. }
  2473. },
  2474. },
  2475. },
  2476. data: dataR4[1],
  2477. },
  2478. ],
  2479. }
  2480. option.title.text = '各省属企业"退二进一"完成情况'
  2481. option.legend.data = ['2022年退出人数和2023年当前累计退出人数之和', '2022年招聘人数和2023年当前累计招聘人数之和']
  2482. option.legend.show = true
  2483. option.yAxis[0] = {
  2484. //type: 'log',
  2485. //min: 1,
  2486. //logBase: 3,
  2487. axisLine: {
  2488. show: false,
  2489. },
  2490. splitLine: {
  2491. show: true,
  2492. lineStyle: {
  2493. color: '#68b4dd66',
  2494. type: 'dashed',
  2495. },
  2496. },
  2497. axisLabel: {
  2498. show: true,
  2499. formatter: function (value) {
  2500. return value === 1 ? 0 : value
  2501. },
  2502. textStyle: {
  2503. color: 'rgba(250,250,250,0.6)',
  2504. },
  2505. },
  2506. }
  2507. myChart.setOption(option)
  2508. },
  2509. initChartR5 () {
  2510. let myChart = echarts.init(this.$refs['echartR5'])
  2511. let option = {
  2512. ..._.cloneDeep(this.commonOption),
  2513. series: [
  2514. {
  2515. name: '去年同期在岗职工平均薪酬',
  2516. type: 'bar',
  2517. barWidth: 15,
  2518. markLine: {
  2519. data: [
  2520. {
  2521. name: '省属企业平均水平',
  2522. yAxis: 9333.33,
  2523. lineStyle: {
  2524. color: '#fff',
  2525. },
  2526. label: {
  2527. formatter: '{b}',
  2528. position: 'middle',
  2529. fontSize: 16,
  2530. color: '#fff',
  2531. },
  2532. }
  2533. ],
  2534. label: {
  2535. distance: [50, 0],
  2536. },
  2537. },
  2538. itemStyle: {
  2539. normal: {
  2540. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2541. {
  2542. offset: 0,
  2543. color: '#6682F5',
  2544. },
  2545. {
  2546. offset: 1,
  2547. color: '#082550',
  2548. },
  2549. ]),
  2550. },
  2551. },
  2552. data: fjxdataL1[0],
  2553. },
  2554. {
  2555. name: '在岗职工平均薪酬',
  2556. type: 'bar',
  2557. barWidth: 15,
  2558. itemStyle: {
  2559. normal: {
  2560. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2561. {
  2562. offset: 0,
  2563. color: '#69c0ff',
  2564. },
  2565. {
  2566. offset: 1,
  2567. color: '#082550',
  2568. },
  2569. ]),
  2570. },
  2571. },
  2572. data: fjxdataL1[1],
  2573. },
  2574. ],
  2575. }
  2576. option.title.text = '各省属企业在岗职工平均薪酬'
  2577. option.legend.data = ['去年同期在岗职工平均薪酬', '在岗职工平均薪酬']
  2578. option.legend.show = true
  2579. option.yAxis.push({
  2580. splitLine: {
  2581. show: false,
  2582. },
  2583. axisLine: {
  2584. show: false,
  2585. },
  2586. })
  2587. myChart.setOption(option)
  2588. },
  2589. initChartR6 () {
  2590. let myChart = echarts.init(this.$refs['echartR6'])
  2591. let option = {
  2592. ..._.cloneDeep(this.commonOption),
  2593. color: ['#69c0ff'],
  2594. series: [
  2595. {
  2596. name: '月利润总额同期变化率',
  2597. type: 'line',
  2598. smooth: true, //平滑曲线显示
  2599. showAllSymbol: true, //显示所有图形。
  2600. symbol: 'circle', //标记的图形为实心圆
  2601. symbolSize: 8, //标记的大小
  2602. smooth: false,
  2603. label: {
  2604. normal: {
  2605. show: true,
  2606. lineHeight: '20',
  2607. position: 'top',
  2608. textStyle: {
  2609. color: '#B889EA',
  2610. fontStyle: 'normal',
  2611. textAlign: 'left',
  2612. fontSize: 16,
  2613. },
  2614. formatter: function (data) {
  2615. if (data.name == '文旅集团') {
  2616. return data.value
  2617. } else {
  2618. return ''
  2619. }
  2620. }
  2621. }
  2622. },
  2623. itemStyle: {
  2624. //折线拐点标志的样式
  2625. color: '#B889EA',
  2626. borderColor: '#B889EA',
  2627. width: 2,
  2628. shadowColor: '#B889EA',
  2629. shadowBlur: 4,
  2630. },
  2631. lineStyle: {
  2632. color: '#B889EA',
  2633. width: 2,
  2634. },
  2635. data: fjxdataL2[0],
  2636. },
  2637. {
  2638. name: '月薪酬总额同期变化率',
  2639. type: 'line',
  2640. smooth: true, //平滑曲线显示
  2641. showAllSymbol: true, //显示所有图形。
  2642. symbol: 'circle', //标记的图形为实心圆
  2643. symbolSize: 12, //标记的大小
  2644. smooth: false,
  2645. label: {
  2646. normal: {
  2647. show: true,
  2648. position: 'top',
  2649. lineHeight: '35',
  2650. textStyle: {
  2651. color: '#69c0ff',
  2652. fontStyle: 'normal',
  2653. textAlign: 'left',
  2654. fontSize: 16,
  2655. },
  2656. formatter: function (data) {
  2657. if (data.name == '文旅集团') {
  2658. return data.value
  2659. } else {
  2660. return ''
  2661. }
  2662. }
  2663. }
  2664. },
  2665. itemStyle: {
  2666. color: params => {
  2667. if (params.value > 0 && fjxdataL2[0][params.dataIndex] < 0) {
  2668. return 'yellow'
  2669. } else if (params.value < 0 && fjxdataL2[0][params.dataIndex] > 0) {
  2670. return 'green'
  2671. }
  2672. else {
  2673. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2674. {
  2675. offset: 0,
  2676. color: '#69c0ff',
  2677. },
  2678. {
  2679. offset: 1,
  2680. color: '#082550',
  2681. },
  2682. ])
  2683. }
  2684. },
  2685. },
  2686. lineStyle: {
  2687. color: '#69C0FF',
  2688. width: 2,
  2689. },
  2690. data: fjxdataL2[1],
  2691. },
  2692. {
  2693. type: 'effectScatter',
  2694. coordinateSystem: 'cartesian2d',
  2695. showEffectOn: 'render',
  2696. rippleEffect: {
  2697. period: 10,
  2698. scale: 4,
  2699. brushType: 'stroke'
  2700. },
  2701. hoverAnimation: true,
  2702. itemStyle: {
  2703. color: 'yellow'
  2704. },
  2705. lineStyle: {
  2706. color: '#43ede3',
  2707. width: 2,
  2708. },
  2709. data: this.twinkleR6,
  2710. },
  2711. ],
  2712. }
  2713. option.title.text = '各省属企业利润与薪酬变动情况'
  2714. option.legend.data = ['月利润总额同期变化率', '月薪酬总额同期变化率']
  2715. option.tooltip.formatter = '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  2716. option.yAxis[0].axisLabel.formatter = '{value} %'
  2717. myChart.setOption(option)
  2718. },
  2719. initChartR7 () {
  2720. let myChart = echarts.init(this.$refs['echartR7'])
  2721. let option = {
  2722. ..._.cloneDeep(this.commonOption),
  2723. color: [
  2724. {
  2725. x: 0,
  2726. y: 0,
  2727. x2: 0,
  2728. y2: 1,
  2729. colorStops: [{
  2730. offset: 0,
  2731. color: '#B889EA',
  2732. },
  2733. {
  2734. offset: 1,
  2735. color: '#082550',
  2736. },],
  2737. }
  2738. ],
  2739. series: [
  2740. {
  2741. name: '全员绩效考核完成率',
  2742. type: 'bar',
  2743. barWidth: 15,
  2744. itemStyle: {
  2745. normal: {
  2746. color: params => {
  2747. if (params.value < 50) {
  2748. return 'yellow'
  2749. }
  2750. else {
  2751. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2752. {
  2753. offset: 0,
  2754. color: '#B889EA',
  2755. },
  2756. {
  2757. offset: 1,
  2758. color: '#082550',
  2759. },
  2760. ])
  2761. }
  2762. },
  2763. },
  2764. },
  2765. data: fjxdataL3[0],
  2766. },
  2767. ],
  2768. }
  2769. option.title.text = '各省属企业全员绩效考核'
  2770. option.legend.show = true
  2771. option.tooltip = {
  2772. trigger: 'axis',
  2773. formatter: '{a0}:{c0}' + '%'
  2774. },
  2775. option.yAxis[0].axisLabel = {
  2776. show: true,
  2777. formatter: '{value} %',
  2778. textStyle: {
  2779. color: 'rgba(250,250,250,0.6)',
  2780. },
  2781. }
  2782. myChart.setOption(option)
  2783. },
  2784. initChartR8 () {
  2785. let myChart = echarts.init(this.$refs['echartR8'])
  2786. let option = {
  2787. ..._.cloneDeep(this.commonOption),
  2788. color: [
  2789. {
  2790. x: 0,
  2791. y: 0,
  2792. x2: 0,
  2793. y2: 1,
  2794. colorStops: [{
  2795. offset: 0,
  2796. color: '#43ede3',
  2797. },
  2798. {
  2799. offset: 1,
  2800. color: '#082550',
  2801. },],
  2802. }
  2803. ],
  2804. series: [
  2805. {
  2806. name: '任期制契约化完成率',
  2807. type: 'bar',
  2808. barWidth: 15,
  2809. itemStyle: {
  2810. normal: {
  2811. color: params => {
  2812. if (params.value < 50) {
  2813. return 'yellow'
  2814. }
  2815. else {
  2816. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2817. {
  2818. offset: 0,
  2819. color: '#43ede3',
  2820. },
  2821. {
  2822. offset: 1,
  2823. color: '#082550',
  2824. },
  2825. ])
  2826. }
  2827. },
  2828. },
  2829. },
  2830. data: fjxdataL4[0],
  2831. },
  2832. ],
  2833. }
  2834. option.title.text = '各省属企业任期制契约化管理'
  2835. option.legend.show = true
  2836. option.tooltip.formatter = '{a0}:{c0}' + '%'
  2837. option.yAxis[0].axisLabel.formatter = '{value} %'
  2838. myChart.setOption(option)
  2839. },
  2840. },
  2841. })