index.js 94 KB

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