index.js 94 KB

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