index2JNKG.js 74 KB

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