index.js 94 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745
  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 > 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: '#5e7ae9',
  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. normal: {
  809. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  810. {
  811. offset: 0,
  812. color: '#5e7ae9',
  813. },
  814. {
  815. offset: 1,
  816. color: '#082550',
  817. },
  818. ]),
  819. },
  820. },
  821. data: dataL2[2],
  822. },
  823. {
  824. name: '本部共享服务中心/事业部核定上限',
  825. type: 'line',
  826. // yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  827. smooth: true, //平滑曲线显示
  828. showAllSymbol: true, //显示所有图形。
  829. symbol: 'circle', //标记的图形为实心圆
  830. symbolSize: 8, //标记的大小
  831. smooth: false,
  832. label: {
  833. normal: {
  834. show: true,
  835. position: 'top',
  836. textStyle: {
  837. color: '#fbe138',
  838. fontStyle: 'normal',
  839. textAlign: 'left',
  840. fontSize: 16,
  841. },
  842. formatter: function (data) {
  843. if (data.name == '华阳新材') {
  844. return data.value
  845. } else {
  846. return ''
  847. }
  848. }
  849. }
  850. },
  851. itemStyle: {
  852. //折线拐点标志的样式
  853. color: '#fbe138',
  854. borderColor: '#fbe138',
  855. width: 2,
  856. shadowColor: '#fbe138',
  857. shadowBlur: 4,
  858. },
  859. lineStyle: {
  860. color: '#fbe138',
  861. width: 2,
  862. },
  863. data: dataL2[1],
  864. },
  865. ],
  866. }
  867. option.title.text = '各省属企业本部共享服务中心/事业部数'
  868. option.legend.data = ['当前本部共享服务中心/事业部数', '本部共享服务中心/事业部核定上限', '六定改革前本部共享服务中心/事业部核定上限']
  869. option.yAxis.push({
  870. splitLine: {
  871. show: false,
  872. },
  873. axisLine: {
  874. show: false,
  875. },
  876. })
  877. myChart.setOption(option)
  878. },
  879. initChartL3 () {
  880. let myChart = echarts.init(this.$refs['echartL3'])
  881. let option = {
  882. ..._.cloneDeep(this.commonOption),
  883. series: [
  884. {
  885. name: '当前管理人员数',
  886. type: 'bar',
  887. barWidth: 15,
  888. itemStyle: {
  889. normal: {
  890. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  891. {
  892. offset: 0,
  893. color: '#5e7ae9',
  894. },
  895. {
  896. offset: 1,
  897. color: '#082550',
  898. },
  899. ]),
  900. },
  901. },
  902. data: dataL3[0],
  903. },
  904. {
  905. name: '管理人员数占总人数比值',
  906. type: 'line',
  907. yAxisIndex: 1,
  908. smooth: true, //平滑曲线显示
  909. showAllSymbol: true, //显示所有图形。
  910. symbol: 'circle', //标记的图形为实心圆
  911. symbolSize: 8, //标记的大小
  912. smooth: false,
  913. itemStyle: {
  914. //折线拐点标志的样式
  915. color: '#fbe138',
  916. borderColor: '#fbe138',
  917. width: 2,
  918. shadowColor: '#fbe138',
  919. shadowBlur: 4,
  920. },
  921. lineStyle: {
  922. color: '#fbe138',
  923. width: 2,
  924. },
  925. markLine: {
  926. data: [
  927. {
  928. name: '管理人员数占总人数的合理比值线',
  929. yAxis: 15,
  930. lineStyle: {
  931. color: '#fff',
  932. },
  933. label: {
  934. formatter: '{b}',
  935. position: 'middle',
  936. color: '#fff',
  937. fontSize: 16,
  938. },
  939. },
  940. ],
  941. label: {
  942. distance: [20, 8],
  943. },
  944. },
  945. data: dataL3[1],
  946. },
  947. ],
  948. }
  949. option.title.text = '各省属企业管理人员数'
  950. option.legend.data = ['当前管理人员数', '管理人员数占总人数比值']
  951. option.yAxis[0] = {
  952. type: 'log',
  953. min: 1,
  954. logBase: 10,
  955. axisLine: {
  956. show: false,
  957. },
  958. splitLine: {
  959. show: true,
  960. lineStyle: {
  961. color: '#68b4dd66',
  962. type: 'dashed',
  963. },
  964. },
  965. axisLabel: {
  966. show: true,
  967. formatter: function (value) {
  968. return value === 1 ? 0 : value
  969. },
  970. textStyle: {
  971. color: 'rgba(250,250,250,0.6)',
  972. },
  973. },
  974. }
  975. option.yAxis.push({
  976. type: 'value',
  977. max: 15,
  978. axisLine: {
  979. show: false,
  980. },
  981. splitLine: {
  982. show: false,
  983. },
  984. axisLabel: {
  985. show: true,
  986. formatter: '{value} %',
  987. textStyle: {
  988. color: 'rgba(250,250,250,0.6)',
  989. },
  990. },
  991. })
  992. option.tooltip.formatter = '{a0}:{c0}' + '<br/>' + '{a1}:{c1}' + '%'
  993. myChart.setOption(option)
  994. },
  995. initChartL4 () {
  996. let myChart = echarts.init(this.$refs['echartL4'])
  997. let option = {
  998. ..._.cloneDeep(this.commonOption),
  999. series: [
  1000. {
  1001. name: '六定改革前本部中层管理人数',
  1002. type: 'bar',
  1003. barWidth: 15,
  1004. label: {
  1005. normal: {
  1006. show: true,
  1007. position: 'top',
  1008. textStyle: {
  1009. color: '#69c0ff',
  1010. fontStyle: 'normal',
  1011. textAlign: 'left',
  1012. fontSize: 16,
  1013. },
  1014. formatter: function (data) {
  1015. if (data.name == '云时代') {
  1016. return data.value
  1017. } else {
  1018. return ''
  1019. }
  1020. }
  1021. }
  1022. },
  1023. itemStyle: {
  1024. normal: {
  1025. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1026. {
  1027. offset: 0,
  1028. color: '#69c0ff',
  1029. },
  1030. {
  1031. offset: 1,
  1032. color: '#082550',
  1033. },
  1034. ]),
  1035. },
  1036. },
  1037. data: dataL4[0],
  1038. },
  1039. {
  1040. name: '当前本部中层管理人数',
  1041. type: 'bar',
  1042. barWidth: 15,
  1043. label: {
  1044. normal: {
  1045. show: true,
  1046. position: 'top',
  1047. textStyle: {
  1048. color: '#6480f3',
  1049. fontStyle: 'normal',
  1050. textAlign: 'left',
  1051. fontSize: 16,
  1052. },
  1053. formatter: function (data) {
  1054. if (data.name == '云时代') {
  1055. return data.value
  1056. } else {
  1057. return ''
  1058. }
  1059. }
  1060. }
  1061. },
  1062. itemStyle: {
  1063. normal: {
  1064. color: params => {
  1065. if (params.value > dataL4[2][params.dataIndex] || params.value > dataL4[0][params.dataIndex]) {
  1066. return 'red'
  1067. } else {
  1068. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1069. {
  1070. offset: 0,
  1071. color: '#6480f3',
  1072. },
  1073. {
  1074. offset: 1,
  1075. color: '#082550',
  1076. },
  1077. ])
  1078. }
  1079. },
  1080. },
  1081. },
  1082. data: dataL4[1],
  1083. },
  1084. {
  1085. name: '本部中层管理人数核定上限',
  1086. type: 'line',
  1087. // yAxisIndex: 1,
  1088. smooth: true, //平滑曲线显示
  1089. showAllSymbol: true, //显示所有图形。
  1090. symbol: 'circle', //标记的图形为实心圆
  1091. symbolSize: 8, //标记的大小
  1092. smooth: false,
  1093. label: {
  1094. normal: {
  1095. show: true,
  1096. position: 'top',
  1097. textStyle: {
  1098. color: '#fbe138',
  1099. fontStyle: 'normal',
  1100. textAlign: 'left',
  1101. fontSize: 16,
  1102. },
  1103. formatter: function (data) {
  1104. if (data.name == '云时代') {
  1105. return data.value
  1106. } else {
  1107. return ''
  1108. }
  1109. }
  1110. }
  1111. },
  1112. itemStyle: {
  1113. //折线拐点标志的样式
  1114. color: '#fbe138',
  1115. borderColor: '#fbe138',
  1116. width: 2,
  1117. shadowColor: '#fbe138',
  1118. shadowBlur: 4,
  1119. },
  1120. lineStyle: {
  1121. color: '#fbe138',
  1122. width: 2,
  1123. },
  1124. data: dataL4[2],
  1125. },
  1126. ],
  1127. }
  1128. option.title.text = '各省属企业本部中层管理人数'
  1129. option.legend.data = ['六定改革前本部中层管理人数', '当前本部中层管理人数', '本部中层管理人数核定上限']
  1130. option.legend.show = true
  1131. // option.yAxis.push({
  1132. // splitLine: {
  1133. // show: false,
  1134. // },
  1135. // axisLine: {
  1136. // show: false,
  1137. // },
  1138. // })
  1139. myChart.setOption(option)
  1140. },
  1141. initChartL5 () {
  1142. let myChart = echarts.init(this.$refs['echartL5'])
  1143. let option = {
  1144. ..._.cloneDeep(this.commonOption),
  1145. series: [
  1146. {
  1147. name: '各省属企业总人数',
  1148. type: 'bar',
  1149. barWidth: 15,
  1150. label: {
  1151. normal: {
  1152. show: true,
  1153. position: 'top',
  1154. lineHeight: '25',
  1155. textStyle: {
  1156. color: '#69c0ff',
  1157. fontStyle: 'normal',
  1158. textAlign: 'left',
  1159. fontSize: 16,
  1160. },
  1161. formatter: function (data) {
  1162. if (data.name == '华阳新材' || data.name == '华舰体育') {
  1163. return data.value
  1164. } else {
  1165. return ''
  1166. }
  1167. }
  1168. }
  1169. },
  1170. itemStyle: {
  1171. normal: {
  1172. color: params => {
  1173. if (params.dataIndex > 0 && Math.abs(params.value - dataL5[0][params.dataIndex - 1]) > params.value * 0.1) {
  1174. return 'yellow'
  1175. } else {
  1176. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1177. {
  1178. offset: 0,
  1179. color: '#69c0ff',
  1180. },
  1181. {
  1182. offset: 1,
  1183. color: '#082550',
  1184. },
  1185. ])
  1186. }
  1187. }
  1188. },
  1189. },
  1190. data: dataL5[0],
  1191. },
  1192. {
  1193. name: '总人数同比变化',
  1194. type: 'line',
  1195. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  1196. smooth: true, //平滑曲线显示
  1197. showAllSymbol: true, //显示所有图形。
  1198. symbol: 'circle', //标记的图形为实心圆
  1199. symbolSize: 8, //标记的大小
  1200. smooth: false,
  1201. label: {
  1202. normal: {
  1203. show: true,
  1204. position: 'bottom',
  1205. lineHeight: '25',
  1206. textStyle: {
  1207. color: '#b889ea',
  1208. fontStyle: 'normal',
  1209. textAlign: 'left',
  1210. fontSize: 16,
  1211. },
  1212. formatter: function (data) {
  1213. if (data.name == '华阳新材' || data.name == '华舰体育') {
  1214. return data.value
  1215. } else {
  1216. return ''
  1217. }
  1218. }
  1219. }
  1220. },
  1221. itemStyle: {
  1222. //折线拐点标志的样式
  1223. color: '#b889ea',
  1224. borderColor: '#b889ea',
  1225. width: 2,
  1226. shadowColor: '#b889ea',
  1227. shadowBlur: 4,
  1228. },
  1229. lineStyle: {
  1230. color: '#b889ea',
  1231. width: 2,
  1232. },
  1233. data: dataL5[1],
  1234. },
  1235. ],
  1236. }
  1237. option.title.text = '各省属企业总人数'
  1238. option.legend.data = ['各省属企业总人数', '总人数同比变化']
  1239. option.legend.show = true
  1240. option.yAxis[0] = {
  1241. type: 'value',
  1242. // type: 'log',
  1243. min: 1,
  1244. // logBase: 10,
  1245. axisLine: {
  1246. show: false,
  1247. },
  1248. splitLine: {
  1249. show: true,
  1250. lineStyle: {
  1251. color: '#68b4dd66',
  1252. type: 'dashed',
  1253. },
  1254. },
  1255. axisLabel: {
  1256. show: true,
  1257. formatter: function (value) {
  1258. return value === 1 ? 0 : value
  1259. },
  1260. textStyle: {
  1261. color: 'rgba(250,250,250,0.6)',
  1262. },
  1263. },
  1264. }
  1265. option.yAxis.push({
  1266. type: 'value',
  1267. axisLine: {
  1268. show: false,
  1269. },
  1270. splitLine: {
  1271. show: false,
  1272. },
  1273. axisLabel: {
  1274. show: true,
  1275. formatter: '{value} %',
  1276. textStyle: {
  1277. color: 'rgba(250,250,250,0.6)',
  1278. },
  1279. },
  1280. })
  1281. option.tooltip.formatter = '{a0}:{c0}' + '<br/>' + '{a1}:{c1}' + '%'
  1282. myChart.setOption(option)
  1283. },
  1284. initChartL6 () {
  1285. let myChart = echarts.init(this.$refs['echartL6'])
  1286. let option = {
  1287. ..._.cloneDeep(this.commonOption),
  1288. series: [
  1289. {
  1290. name: '本部员额数',
  1291. type: 'bar',
  1292. barWidth: 15,
  1293. itemStyle: {
  1294. normal: {
  1295. barBorderRadius: [10, 10, 0, 0],
  1296. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1297. {
  1298. offset: 0,
  1299. color: '#43ede3',
  1300. },
  1301. {
  1302. offset: 1,
  1303. color: '#082550',
  1304. },
  1305. ]),
  1306. },
  1307. },
  1308. data: dataL6[0],
  1309. },
  1310. {
  1311. name: '六定改革前本部员额数',
  1312. type: 'bar',
  1313. barWidth: 15,
  1314. itemStyle: {
  1315. normal: {
  1316. barBorderRadius: [10, 10, 0, 0],
  1317. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1318. {
  1319. offset: 0,
  1320. color: '#43ede3',
  1321. },
  1322. {
  1323. offset: 1,
  1324. color: '#082550',
  1325. },
  1326. ]),
  1327. },
  1328. },
  1329. data: dataL6[2],
  1330. },
  1331. {
  1332. name: '本部员额数核定上限',
  1333. type: 'line',
  1334. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  1335. smooth: true, //平滑曲线显示
  1336. showAllSymbol: true, //显示所有图形。
  1337. symbol: 'circle', //标记的图形为实心圆
  1338. symbolSize: 8, //标记的大小
  1339. smooth: false,
  1340. itemStyle: {
  1341. //折线拐点标志的样式
  1342. color: '#fbe138',
  1343. borderColor: '#fbe138',
  1344. width: 2,
  1345. shadowColor: '#fbe138',
  1346. shadowBlur: 4,
  1347. },
  1348. lineStyle: {
  1349. color: '#fbe138',
  1350. width: 2,
  1351. },
  1352. data: dataL6[1],
  1353. },
  1354. ],
  1355. }
  1356. option.title.text = '各省属企业本部员额数'
  1357. option.legend.data = ['本部员额数', '六定改革前本部员额数', '本部员额数核定上限']
  1358. option.legend.show = true
  1359. option.yAxis.push({
  1360. splitLine: {
  1361. show: false,
  1362. },
  1363. axisLine: {
  1364. show: false,
  1365. },
  1366. })
  1367. myChart.setOption(option)
  1368. },
  1369. initChartL7 () {
  1370. let myChart = echarts.init(this.$refs['echartL7'])
  1371. let that = this
  1372. let option = {
  1373. ..._.cloneDeep(this.commonOption),
  1374. color: ['#43ede3'],
  1375. series: [
  1376. {
  1377. name: '人数变化',
  1378. type: 'line',
  1379. smooth: true, //平滑曲线显示
  1380. showAllSymbol: true, //显示所有图形。
  1381. symbol: 'circle', //标记的图形为实心圆
  1382. symbolSize: 15, //标记的大小
  1383. smooth: false,
  1384. label: {
  1385. normal: {
  1386. show: true,
  1387. position: 'bottom',
  1388. lineHeight: '35',
  1389. textStyle: {
  1390. color: '#43ede3',
  1391. fontStyle: 'normal',
  1392. textAlign: 'left',
  1393. fontSize: 16,
  1394. },
  1395. formatter: function (data) {
  1396. if (data.name == '文旅集团' || data.name == "大地控股" || data.name == '华舰体育') {
  1397. return data.value
  1398. } else {
  1399. return ''
  1400. }
  1401. }
  1402. }
  1403. },
  1404. itemStyle: {
  1405. color: params => {
  1406. if (dataL7[1][params.dataIndex] < 0 && params.value > 0) {
  1407. return 'red'
  1408. } else if (params.value < 0 && dataL7[1][params.dataIndex] > 0) {
  1409. return 'green'
  1410. }
  1411. else {
  1412. return '#43ede3'
  1413. }
  1414. },
  1415. },
  1416. lineStyle: {
  1417. color: '#43ede3',
  1418. width: 2,
  1419. },
  1420. data: dataL7[0],
  1421. },
  1422. {
  1423. name: '劳动生产率同比变化',
  1424. type: 'line',
  1425. yAxisIndex: 1,
  1426. smooth: true, //平滑曲线显示
  1427. showAllSymbol: true, //显示所有图形。
  1428. symbol: 'circle', //标记的图形为实心圆
  1429. symbolSize: 8, //标记的大小
  1430. smooth: false,
  1431. label: {
  1432. normal: {
  1433. show: true,
  1434. position: 'top',
  1435. lineHeight: '25',
  1436. textStyle: {
  1437. color: '#b889ea',
  1438. fontStyle: 'normal',
  1439. textAlign: 'left',
  1440. fontSize: 16,
  1441. },
  1442. formatter: function (data) {
  1443. if (data.name == '文旅集团' || data.name == "大地控股" || data.name == '华舰体育') {
  1444. return data.value
  1445. } else {
  1446. return ''
  1447. }
  1448. }
  1449. }
  1450. },
  1451. itemStyle: {
  1452. //折线拐点标志的样式
  1453. color: '#b889ea',
  1454. borderColor: '#b889ea',
  1455. width: 2,
  1456. shadowColor: '#b889ea',
  1457. shadowBlur: 4,
  1458. },
  1459. data: dataL7[1],
  1460. },
  1461. {
  1462. type: 'effectScatter',
  1463. coordinateSystem: 'cartesian2d',
  1464. showEffectOn: 'render',
  1465. rippleEffect: {
  1466. period: 10,
  1467. scale: 4,
  1468. brushType: 'stroke'
  1469. },
  1470. hoverAnimation: true,
  1471. itemStyle: {
  1472. color: 'red'
  1473. },
  1474. lineStyle: {
  1475. color: '#43ede3',
  1476. width: 2,
  1477. },
  1478. data: that.twinkle7,
  1479. },
  1480. ],
  1481. }
  1482. option.title.text = '人数变化和全员劳动生产率变化分析'
  1483. option.legend.data = ['人数变化', '劳动生产率同比变化']
  1484. option.legend.show = true
  1485. option.yAxis[0].axisLabel.formatter = '{value} %'
  1486. option.tooltip.formatter = '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  1487. option.yAxis.push({
  1488. type: 'value',
  1489. axisLine: {
  1490. show: false,
  1491. },
  1492. splitLine: {
  1493. show: false,
  1494. },
  1495. axisLabel: {
  1496. show: true,
  1497. formatter: '{value} %',
  1498. textStyle: {
  1499. color: 'rgba(250,250,250,0.6)',
  1500. },
  1501. splitLine: {
  1502. show: false,
  1503. },
  1504. axisLabel: {
  1505. show: true,
  1506. formatter: '{value} %',
  1507. textStyle: {
  1508. color: 'rgba(250,250,250,0.6)',
  1509. },
  1510. },
  1511. },
  1512. })
  1513. myChart.setOption(option)
  1514. },
  1515. initChartL8 () {
  1516. let myChart = echarts.init(this.$refs['echartL8'])
  1517. let option = {
  1518. ..._.cloneDeep(this.commonOption),
  1519. color: ['#43ede3'],
  1520. series: [
  1521. {
  1522. name: '人数变化',
  1523. type: 'line',
  1524. smooth: true, //平滑曲线显示
  1525. showAllSymbol: true, //显示所有图形。
  1526. symbol: 'circle', //标记的图形为实心圆
  1527. symbolSize: 15, //标记的大小
  1528. smooth: false,
  1529. label: {
  1530. normal: {
  1531. show: true,
  1532. position: 'bottom',
  1533. lineHeight: '20',
  1534. textStyle: {
  1535. color: '#43ede3',
  1536. fontStyle: 'normal',
  1537. textAlign: 'left',
  1538. fontSize: 16,
  1539. },
  1540. formatter: function (data) {
  1541. if (data.name == '文旅集团' || data.name == '大地控股') {
  1542. return data.value
  1543. } else {
  1544. return ''
  1545. }
  1546. }
  1547. }
  1548. },
  1549. itemStyle: {
  1550. color: params => {
  1551. if (dataL8[1][params.dataIndex] < 0 && params.value > 0) {
  1552. return 'red'
  1553. } else if (params.value < 0 && dataL8[1][params.dataIndex] > 0) {
  1554. return 'green'
  1555. }
  1556. else {
  1557. return '#43ede3'
  1558. }
  1559. },
  1560. },
  1561. lineStyle: {
  1562. color: '#43ede3',
  1563. width: 2,
  1564. },
  1565. data: dataL8[0],
  1566. },
  1567. {
  1568. name: '人工成本利润率同比变化',
  1569. type: 'line',
  1570. smooth: true, //平滑曲线显示
  1571. showAllSymbol: true, //显示所有图形。
  1572. symbol: 'circle', //标记的图形为实心圆
  1573. symbolSize: 15, //标记的大小
  1574. smooth: false,
  1575. label: {
  1576. normal: {
  1577. show: true,
  1578. position: 'top',
  1579. lineHeight: '30',
  1580. textStyle: {
  1581. color: '#b889ea',
  1582. fontStyle: 'normal',
  1583. textAlign: 'left',
  1584. fontSize: 16,
  1585. },
  1586. formatter: function (data) {
  1587. if (data.name == '文旅集团' || data.name == '大地控股') {
  1588. return data.value
  1589. } else {
  1590. return ''
  1591. }
  1592. }
  1593. }
  1594. },
  1595. itemStyle: {
  1596. //折线拐点标志的样式
  1597. color: '#b889ea',
  1598. borderColor: '#b889ea',
  1599. width: 2,
  1600. shadowColor: '#b889ea',
  1601. shadowBlur: 4,
  1602. },
  1603. lineStyle: {
  1604. color: '#b889ea',
  1605. width: 2,
  1606. },
  1607. data: dataL8[1],
  1608. },
  1609. {
  1610. type: 'effectScatter',
  1611. coordinateSystem: 'cartesian2d',
  1612. showEffectOn: 'render',
  1613. rippleEffect: {
  1614. period: 10,
  1615. scale: 4,
  1616. brushType: 'stroke'
  1617. },
  1618. hoverAnimation: true,
  1619. itemStyle: {
  1620. color: 'red'
  1621. },
  1622. lineStyle: {
  1623. color: '#43ede3',
  1624. width: 2,
  1625. },
  1626. data: this.twinkle8,
  1627. },
  1628. // {
  1629. // type: 'effectScatter',
  1630. // coordinateSystem: 'cartesian2d',
  1631. // showEffectOn: 'render',
  1632. // rippleEffect: {
  1633. // period: 10,
  1634. // scale: 4,
  1635. // brushType: 'stroke'
  1636. // },
  1637. // hoverAnimation: true,
  1638. // itemStyle: {
  1639. // color: 'red'
  1640. // },
  1641. // lineStyle: {
  1642. // color: '#43ede3',
  1643. // width: 2,
  1644. // },
  1645. // data: that.twinkle,
  1646. // },
  1647. ],
  1648. // tooltip: {
  1649. // trigger: 'axis',
  1650. // formatter(params){
  1651. // console.log(params)
  1652. // return params[0]
  1653. // }
  1654. // }
  1655. }
  1656. option.title.text = '人数变化和人工成本利润率变化分析'
  1657. option.legend.data = ['人数变化', '人工成本利润率同比变化']
  1658. option.legend.show = true
  1659. option.yAxis[0].axisLabel.formatter = '{value} %'
  1660. option.tooltip.formatter = '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  1661. myChart.setOption(option)
  1662. },
  1663. // 中间图表---------------------------------------------开始
  1664. initChartC1 () {
  1665. let myChart = echarts.init(this.$refs['echartC1'])
  1666. let option = {
  1667. ..._.cloneDeep(this.commonOption),
  1668. color: ['#69c0ff'],
  1669. series: [
  1670. {
  1671. name: '全员劳动生产率(万/人)',
  1672. type: 'bar',
  1673. barWidth: 15,
  1674. label: {
  1675. normal: {
  1676. show: true,
  1677. position: 'top',
  1678. textStyle: {
  1679. color: '#69c0ff',
  1680. fontStyle: 'normal',
  1681. textAlign: 'left',
  1682. fontSize: 16,
  1683. },
  1684. formatter: function (data) {
  1685. if (data.name == '国际能源' || data.name == '汾酒集团') {
  1686. return data.value
  1687. } else {
  1688. return ''
  1689. }
  1690. }
  1691. }
  1692. },
  1693. itemStyle: {
  1694. color: params => {
  1695. if (params.value < 0 && c1[1][params.dataIndex] < 0) {
  1696. return 'red'
  1697. } else if (params.value > this.echartC1.province) {
  1698. return 'green'
  1699. } else {
  1700. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1701. {
  1702. offset: 0,
  1703. color: '#69c0ff',
  1704. },
  1705. {
  1706. offset: 1,
  1707. color: '#082550',
  1708. },
  1709. ])
  1710. }
  1711. },
  1712. },
  1713. markLine: {
  1714. data: [
  1715. {
  1716. name: '省属企业平均水平',
  1717. yAxis: this.echartC1.national,
  1718. lineStyle: {
  1719. color: '#fff',
  1720. },
  1721. label: {
  1722. formatter: '{b}',
  1723. position: 'middle',
  1724. padding: [20, 100, 10, 10],
  1725. fontSize: 16,
  1726. color: '#fff',
  1727. },
  1728. },
  1729. {
  1730. name: '央企平均水平',
  1731. yAxis: this.echartC1.province,
  1732. lineStyle: {
  1733. color: '#fff',
  1734. },
  1735. label: {
  1736. formatter: '{b}',
  1737. position: 'end',
  1738. padding: [-4, 150, 10, 10],
  1739. color: '#fff',
  1740. fontSize: 16,
  1741. },
  1742. },
  1743. ],
  1744. label: {
  1745. distance: [50, 0],
  1746. },
  1747. },
  1748. data: c1[0],
  1749. },
  1750. {
  1751. name: '全员劳动生产率同比',
  1752. type: 'line',
  1753. yAxisIndex: 1,
  1754. smooth: true, //平滑曲线显示
  1755. showAllSymbol: true, //显示所有图形。
  1756. symbol: 'circle', //标记的图形为实心圆
  1757. symbolSize: 8, //标记的大小
  1758. smooth: false,
  1759. itemStyle: {
  1760. //折线拐点标志的样式
  1761. color: '#B889EA',
  1762. borderColor: '#B889EA',
  1763. width: 2,
  1764. shadowColor: '#B889EA',
  1765. shadowBlur: 4,
  1766. },
  1767. lineStyle: {
  1768. color: '#B889EA',
  1769. width: 2,
  1770. },
  1771. label: {
  1772. normal: {
  1773. show: true,
  1774. position: 'top',
  1775. textStyle: {
  1776. color: '#B889EA',
  1777. fontStyle: 'normal',
  1778. textAlign: 'left',
  1779. fontSize: 16,
  1780. },
  1781. formatter: function (data) {
  1782. if (data.name == '国际能源' || data.name == '汾酒集团') {
  1783. return data.value + '%'
  1784. } else {
  1785. return ''
  1786. }
  1787. }
  1788. }
  1789. },
  1790. data: c1[1],
  1791. },
  1792. ],
  1793. }
  1794. option.title.text = '各省属企业全员劳动生产率'
  1795. option.legend.show = true
  1796. option.grid.right = '15%'
  1797. option.tooltip.formatter = '{a0}:{c0}' + '<br/>' + '{a1}:{c1}' + '%'
  1798. option.yAxis.push({
  1799. type: 'value',
  1800. axisLine: {
  1801. show: false,
  1802. },
  1803. splitLine: {
  1804. show: false,
  1805. },
  1806. axisLabel: {
  1807. show: true,
  1808. formatter: '{value} %',
  1809. textStyle: {
  1810. color: 'rgba(250,250,250,0.6)',
  1811. },
  1812. },
  1813. })
  1814. myChart.setOption(option)
  1815. // tools.loopShowTooltip(myChart, option, {
  1816. // nterval: 2000,
  1817. // loopSeries: true,
  1818. // })
  1819. },
  1820. initChartC2 () {
  1821. let myChart = echarts.init(this.$refs['echartC2'])
  1822. let option = {
  1823. ..._.cloneDeep(this.commonOption),
  1824. color: ['#69c0ff'],
  1825. series: [
  1826. {
  1827. name: '人工成本利润率',
  1828. type: 'bar',
  1829. barWidth: 15,
  1830. label: {
  1831. normal: {
  1832. show: true,
  1833. position: 'top',
  1834. textStyle: {
  1835. color: '#fff',
  1836. fontStyle: 'normal',
  1837. textAlign: 'left',
  1838. fontSize: 16,
  1839. },
  1840. formatter: function (data) {
  1841. if (data.name == '国际能源' || data.name == '文旅集团' || data.name == '航产集团' || data.name == '华舰体育') {
  1842. return data.value
  1843. } else {
  1844. return ''
  1845. }
  1846. }
  1847. }
  1848. },
  1849. markLine: {
  1850. data: [
  1851. {
  1852. name: '省属企业平均水平',
  1853. yAxis: this.echartC2.province,
  1854. lineStyle: {
  1855. color: '#fff',
  1856. },
  1857. label: {
  1858. formatter: '{b}',
  1859. position: 'end',
  1860. padding: [24, 100, 10, 10],
  1861. fontSize: 16,
  1862. color: '#fff',
  1863. },
  1864. },
  1865. {
  1866. name: '央企平均水平',
  1867. yAxis: this.echartC2.national,
  1868. lineStyle: {
  1869. color: '#fff',
  1870. },
  1871. label: {
  1872. formatter: '{b}',
  1873. position: 'middle',
  1874. padding: [-24, 200, 10, 10],
  1875. color: '#fff',
  1876. fontSize: 16,
  1877. },
  1878. },
  1879. ],
  1880. label: {
  1881. distance: [50, 0],
  1882. },
  1883. },
  1884. itemStyle: {
  1885. color: params => {
  1886. if (params.value < 0 && c2[0][params.dataIndex] < 0) {
  1887. return 'red'
  1888. } else if (params.value > this.echartC2.province) {
  1889. return 'green'
  1890. } else {
  1891. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1892. {
  1893. offset: 0,
  1894. color: '#69c0ff',
  1895. },
  1896. {
  1897. offset: 1,
  1898. color: '#082550',
  1899. },
  1900. ])
  1901. }
  1902. },
  1903. },
  1904. data: c2[1],
  1905. },
  1906. {
  1907. name: '人工成本利润率同比',
  1908. type: 'line',
  1909. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  1910. smooth: true, //平滑曲线显示
  1911. showAllSymbol: true, //显示所有图形。
  1912. symbol: 'circle', //标记的图形为实心圆
  1913. symbolSize: 8, //标记的大小
  1914. smooth: false,
  1915. label: {
  1916. normal: {
  1917. show: true,
  1918. position: 'top',
  1919. lineHeight: '30',
  1920. textStyle: {
  1921. color: '#b889ea',
  1922. fontStyle: 'normal',
  1923. textAlign: 'left',
  1924. fontSize: 16,
  1925. },
  1926. formatter: function (data) {
  1927. if (data.name == '国际能源' || data.name == '文旅集团' || data.name == '航产集团' || data.name == '华舰体育') {
  1928. return data.value + '%'
  1929. } else {
  1930. return ''
  1931. }
  1932. }
  1933. }
  1934. },
  1935. itemStyle: {
  1936. //折线拐点标志的样式
  1937. color: '#B889EA',
  1938. borderColor: '#B889EA',
  1939. width: 2,
  1940. shadowColor: '#B889EA',
  1941. shadowBlur: 4,
  1942. },
  1943. lineStyle: {
  1944. color: '#B889EA',
  1945. width: 2,
  1946. },
  1947. data: c2[0],
  1948. },
  1949. ],
  1950. }
  1951. option.title.text = '各省属企业人工成本利润率'
  1952. option.legend.show = true
  1953. option.grid.right = '15%'
  1954. option.yAxis[0].axisLabel.formatter = '{value} %'
  1955. option.tooltip.formatter = '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  1956. option.yAxis.push({
  1957. type: 'value',
  1958. axisLine: {
  1959. show: false,
  1960. },
  1961. splitLine: {
  1962. show: false,
  1963. },
  1964. axisLabel: {
  1965. show: true,
  1966. formatter: '{value} %',
  1967. textStyle: {
  1968. color: 'rgba(250,250,250,0.6)',
  1969. },
  1970. },
  1971. })
  1972. myChart.setOption(option)
  1973. // tools.loopShowTooltip(myChart, option, {
  1974. // nterval: 2000,
  1975. // loopSeries: true,
  1976. // })
  1977. },
  1978. // 右侧图表---------------------------------------------开始
  1979. initChartR1 () {
  1980. let myChart = echarts.init(this.$refs['echartR1'])
  1981. let commonOptions = this.commonOption
  1982. commonOptions.yAxis[0].splitNumber = 2
  1983. let dataTemp = []
  1984. let dataTemp2 = []
  1985. dataR1[0].forEach(item => {
  1986. dataTemp.push(item + 1)
  1987. })
  1988. dataR1[1].forEach(item => {
  1989. dataTemp2.push(item + 1)
  1990. })
  1991. let option = {
  1992. ..._.cloneDeep(commonOptions),
  1993. series: [
  1994. {
  1995. name: '招聘需求公告次数',
  1996. type: 'bar',
  1997. barWidth: 15,
  1998. itemStyle: {
  1999. normal: {
  2000. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2001. {
  2002. offset: 0,
  2003. color: '#69c0ff',
  2004. },
  2005. {
  2006. offset: 1,
  2007. color: '#082550',
  2008. },
  2009. ]),
  2010. },
  2011. },
  2012. data: dataTemp,
  2013. },
  2014. {
  2015. name: '招聘需求公告累计招聘人次',
  2016. type: 'bar',
  2017. barWidth: 15,
  2018. itemStyle: {
  2019. normal: {
  2020. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2021. {
  2022. offset: 0,
  2023. color: '#43ede3',
  2024. },
  2025. {
  2026. offset: 1,
  2027. color: '#082550',
  2028. },
  2029. ]),
  2030. },
  2031. },
  2032. data: dataTemp2,
  2033. },
  2034. ],
  2035. }
  2036. option.title.text = '各省属企业招聘需求公示人次'
  2037. option.legend.data = ['招聘需求公告次数', '招聘需求公告累计招聘人次']
  2038. option.legend.show = true
  2039. option.tooltip.formatter = function (value) {
  2040. return value[0].axisValue + ':' + (value[0].value - 1) + '<br>' + value[1].axisValue + ':' + (value[1].value - 1)
  2041. }
  2042. option.yAxis[0] = {
  2043. type: 'log',
  2044. min: 1,
  2045. logBase: 10,
  2046. axisLine: {
  2047. show: false,
  2048. },
  2049. splitLine: {
  2050. show: true,
  2051. lineStyle: {
  2052. color: '#68b4dd66',
  2053. type: 'dashed',
  2054. },
  2055. },
  2056. axisLabel: {
  2057. show: true,
  2058. formatter: function (value) {
  2059. return value === 1 ? 0 : value
  2060. },
  2061. textStyle: {
  2062. color: 'rgba(250,250,250,0.6)',
  2063. },
  2064. },
  2065. }
  2066. myChart.setOption(option)
  2067. },
  2068. initChartR2 () {
  2069. let myChart = echarts.init(this.$refs['echartR2'])
  2070. let commonOptions = this.commonOption
  2071. commonOptions.yAxis[0].splitNumber = 2
  2072. let dataTemp = []
  2073. let dataTemp2 = []
  2074. dataR2[0].forEach(item => {
  2075. dataTemp.push(item + 1)
  2076. })
  2077. dataR2[1].forEach(item => {
  2078. dataTemp2.push(item + 1)
  2079. })
  2080. let option = {
  2081. ..._.cloneDeep(commonOptions),
  2082. series: [
  2083. {
  2084. name: '录用结果公示次数',
  2085. type: 'bar',
  2086. barWidth: 15,
  2087. itemStyle: {
  2088. normal: {
  2089. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2090. {
  2091. offset: 0,
  2092. color: '#69c0ff',
  2093. },
  2094. {
  2095. offset: 1,
  2096. color: '#082550',
  2097. },
  2098. ]),
  2099. },
  2100. },
  2101. data: dataTemp,
  2102. },
  2103. {
  2104. name: '录用结果公示累计公示人数',
  2105. type: 'bar',
  2106. barWidth: 15,
  2107. itemStyle: {
  2108. normal: {
  2109. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2110. {
  2111. offset: 0,
  2112. color: '#45DAD1',
  2113. },
  2114. {
  2115. offset: 1,
  2116. color: '#082550',
  2117. },
  2118. ]),
  2119. },
  2120. },
  2121. data: dataTemp2,
  2122. },
  2123. ],
  2124. }
  2125. option.title.text = '各省属企业录用结果公示人次'
  2126. option.legend.data = ['录用结果公示次数', '录用结果公示累计公示人数']
  2127. option.legend.show = true
  2128. option.tooltip.formatter = function (value) {
  2129. return value[0].axisValue + ':' + (value[0].value - 1) + '<br>' + value[1].axisValue + ':' + (value[1].value - 1)
  2130. }
  2131. option.yAxis[0] = {
  2132. type: 'log',
  2133. min: 1,
  2134. logBase: 10,
  2135. axisLine: {
  2136. show: false,
  2137. },
  2138. splitLine: {
  2139. show: true,
  2140. lineStyle: {
  2141. color: '#68b4dd66',
  2142. type: 'dashed',
  2143. },
  2144. },
  2145. axisLabel: {
  2146. show: true,
  2147. formatter: function (value) {
  2148. return value === 1 ? 0 : value
  2149. },
  2150. textStyle: {
  2151. color: 'rgba(250,250,250,0.6)',
  2152. },
  2153. },
  2154. }
  2155. myChart.setOption(option)
  2156. },
  2157. initChartR3 () {
  2158. let myChart = echarts.init(this.$refs['echartR3'])
  2159. let commonOptions = this.commonOption
  2160. commonOptions.yAxis[0].splitNumber = 2
  2161. let option = {
  2162. ..._.cloneDeep(commonOptions),
  2163. color: ['#45DAD1'],
  2164. series: [
  2165. {
  2166. name: '2022年利润(万)',
  2167. type: 'bar',
  2168. barWidth: 15,
  2169. label: {
  2170. normal: {
  2171. show: true,
  2172. position: 'bottom',
  2173. textStyle: {
  2174. color: '#69c0ff',
  2175. fontStyle: 'normal',
  2176. textAlign: 'left',
  2177. fontSize: 14,
  2178. },
  2179. formatter: function (data) {
  2180. if (data.name == "国际能源" || data.name == '文旅集团' || data.name == '航产集团' || data.name == '华舰体育') {
  2181. return data.value
  2182. } else {
  2183. return ''
  2184. }
  2185. }
  2186. }
  2187. },
  2188. itemStyle: {
  2189. normal: {
  2190. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2191. {
  2192. offset: 0,
  2193. color: '#69c0ff',
  2194. },
  2195. {
  2196. offset: 1,
  2197. color: '#082550',
  2198. },
  2199. ]),
  2200. },
  2201. },
  2202. data: dataR3[0],
  2203. },
  2204. {
  2205. name: '2022年招聘人数和2023年当前累计招聘人数之和',
  2206. type: 'bar',
  2207. barWidth: 15,
  2208. yAxisIndex: 1,
  2209. label: {
  2210. normal: {
  2211. show: true,
  2212. position: 'top',
  2213. textStyle: {
  2214. color: '#45DAD1',
  2215. fontStyle: 'normal',
  2216. textAlign: 'right',
  2217. fontSize: 14,
  2218. },
  2219. formatter: function (data) {
  2220. if (data.name == "国际能源" || data.name == '文旅集团' || data.name == '航产集团' || data.name == '华舰体育') {
  2221. return data.value
  2222. } else {
  2223. return ''
  2224. }
  2225. }
  2226. }
  2227. },
  2228. itemStyle: {
  2229. color: params => {
  2230. if (params.value > 0 && dataR3[0][params.dataIndex] < 0) {
  2231. return 'red'
  2232. } else {
  2233. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2234. {
  2235. offset: 0,
  2236. color: '#45DAD1',
  2237. },
  2238. {
  2239. offset: 1,
  2240. color: '#082550',
  2241. },
  2242. ])
  2243. }
  2244. },
  2245. },
  2246. // itemStyle: {
  2247. // normal: {
  2248. // color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2249. // {
  2250. // offset: 0,
  2251. // color: '#45DAD1',
  2252. // },
  2253. // {
  2254. // offset: 1,
  2255. // color: '#082550',
  2256. // },
  2257. // ]),
  2258. // },
  2259. // },
  2260. data: dataR3[1],
  2261. },
  2262. ],
  2263. }
  2264. option.title.text = '各省属企业年利润与当年累计招聘人数'
  2265. option.legend.data = ['2022年利润(万)', '2022年招聘人数和2023年当前累计招聘人数之和']
  2266. option.legend.show = true
  2267. option.yAxis[0] = {
  2268. max: function (value) {
  2269. if (Math.abs(value.max) > Math.abs(value.min)) {
  2270. return (Math.abs(value.max) * 1.2).toFixed(2)
  2271. } else {
  2272. return (Math.abs(value.min) * 1.2).toFixed(2)
  2273. }
  2274. },
  2275. min: function (value) {
  2276. if (Math.abs(value.max) > Math.abs(value.min)) {
  2277. return (-Math.abs(value.max) * 1.2).toFixed(2)
  2278. } else {
  2279. return (-Math.abs(value.min) * 1.2).toFixed(2)
  2280. }
  2281. },
  2282. type: 'value',
  2283. axisLine: {
  2284. show: false,
  2285. },
  2286. splitLine: {
  2287. show: true,
  2288. lineStyle: {
  2289. color: '#68b4dd66',
  2290. type: 'dashed',
  2291. },
  2292. },
  2293. axisLabel: {
  2294. show: true,
  2295. formatter: function (value) {
  2296. return value === 1 ? 0 : value
  2297. },
  2298. textStyle: {
  2299. color: 'rgba(250,250,250,0.6)',
  2300. },
  2301. },
  2302. }
  2303. option.yAxis.push({
  2304. splitLine: {
  2305. show: false,
  2306. },
  2307. axisLine: {
  2308. show: false,
  2309. },
  2310. axisLabel: {
  2311. show: true,
  2312. formatter: '{value}',
  2313. textStyle: {
  2314. color: 'rgba(250,250,250,0.6)',
  2315. },
  2316. },
  2317. max: function (value) {
  2318. if (Math.abs(value.max) > Math.abs(value.min)) {
  2319. return (Math.abs(value.max) * 1.2).toFixed(2)
  2320. } else {
  2321. return (Math.abs(value.min) * 1.2).toFixed(2)
  2322. }
  2323. },
  2324. min: function (value) {
  2325. if (Math.abs(value.max) > Math.abs(value.min)) {
  2326. return (-Math.abs(value.max) * 1.2).toFixed(2)
  2327. } else {
  2328. return (-Math.abs(value.min) * 1.2).toFixed(2)
  2329. }
  2330. },
  2331. })
  2332. myChart.setOption(option)
  2333. },
  2334. initChartR4 () {
  2335. let myChart = echarts.init(this.$refs['echartR4'])
  2336. let commonOptions = this.commonOption
  2337. commonOptions.yAxis[0].splitNumber = 2
  2338. let option = {
  2339. ..._.cloneDeep(commonOptions),
  2340. series: [
  2341. {
  2342. name: '2022年退出人数和2023年当前累计退出人数之和',
  2343. type: 'bar',
  2344. barWidth: 15,
  2345. itemStyle: {
  2346. normal: {
  2347. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2348. {
  2349. offset: 0,
  2350. color: '#69c0ff',
  2351. },
  2352. {
  2353. offset: 1,
  2354. color: '#082550',
  2355. },
  2356. ]),
  2357. },
  2358. },
  2359. data: dataR4[0],
  2360. },
  2361. {
  2362. name: '2022年招聘人数和2023年当前累计招聘人数之和',
  2363. type: 'bar',
  2364. barWidth: 15,
  2365. itemStyle: {
  2366. normal: {
  2367. color: params => {
  2368. if (params.value / dataR4[0][params.dataIndex] > 3) {
  2369. return 'green'
  2370. } else if (params.value / 2 < dataR4[0][params.dataIndex]) {
  2371. return 'yellow'
  2372. }
  2373. else {
  2374. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2375. {
  2376. offset: 0,
  2377. color: '#6480f3',
  2378. },
  2379. {
  2380. offset: 1,
  2381. color: '#082550',
  2382. },
  2383. ])
  2384. }
  2385. },
  2386. },
  2387. },
  2388. data: dataR4[1],
  2389. },
  2390. ],
  2391. }
  2392. option.title.text = '各省属企业"退二进一"完成情况'
  2393. option.legend.data = ['2022年退出人数和2023年当前累计退出人数之和', '2022年招聘人数和2023年当前累计招聘人数之和']
  2394. option.legend.show = true
  2395. option.yAxis[0] = {
  2396. //type: 'log',
  2397. //min: 1,
  2398. //logBase: 3,
  2399. axisLine: {
  2400. show: false,
  2401. },
  2402. splitLine: {
  2403. show: true,
  2404. lineStyle: {
  2405. color: '#68b4dd66',
  2406. type: 'dashed',
  2407. },
  2408. },
  2409. axisLabel: {
  2410. show: true,
  2411. formatter: function (value) {
  2412. return value === 1 ? 0 : value
  2413. },
  2414. textStyle: {
  2415. color: 'rgba(250,250,250,0.6)',
  2416. },
  2417. },
  2418. }
  2419. myChart.setOption(option)
  2420. },
  2421. initChartR5 () {
  2422. let myChart = echarts.init(this.$refs['echartR5'])
  2423. let option = {
  2424. ..._.cloneDeep(this.commonOption),
  2425. series: [
  2426. {
  2427. name: '去年同期在岗职工平均薪酬',
  2428. type: 'bar',
  2429. barWidth: 15,
  2430. markLine: {
  2431. data: [
  2432. {
  2433. name: '省属企业平均水平',
  2434. yAxis: 9333.33,
  2435. lineStyle: {
  2436. color: '#fff',
  2437. },
  2438. label: {
  2439. formatter: '{b}',
  2440. position: 'middle',
  2441. fontSize: 16,
  2442. color: '#fff',
  2443. },
  2444. }
  2445. ],
  2446. label: {
  2447. distance: [50, 0],
  2448. },
  2449. },
  2450. itemStyle: {
  2451. normal: {
  2452. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2453. {
  2454. offset: 0,
  2455. color: '#6682F5',
  2456. },
  2457. {
  2458. offset: 1,
  2459. color: '#082550',
  2460. },
  2461. ]),
  2462. },
  2463. },
  2464. data: fjxdataL1[0],
  2465. },
  2466. {
  2467. name: '在岗职工平均薪酬',
  2468. type: 'bar',
  2469. barWidth: 15,
  2470. itemStyle: {
  2471. normal: {
  2472. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2473. {
  2474. offset: 0,
  2475. color: '#69c0ff',
  2476. },
  2477. {
  2478. offset: 1,
  2479. color: '#082550',
  2480. },
  2481. ]),
  2482. },
  2483. },
  2484. data: fjxdataL1[1],
  2485. },
  2486. ],
  2487. }
  2488. option.title.text = '各省属企业在岗职工平均薪酬'
  2489. option.legend.data = ['去年同期在岗职工平均薪酬', '在岗职工平均薪酬']
  2490. option.legend.show = true
  2491. option.yAxis.push({
  2492. splitLine: {
  2493. show: false,
  2494. },
  2495. axisLine: {
  2496. show: false,
  2497. },
  2498. })
  2499. myChart.setOption(option)
  2500. },
  2501. initChartR6 () {
  2502. let myChart = echarts.init(this.$refs['echartR6'])
  2503. let option = {
  2504. ..._.cloneDeep(this.commonOption),
  2505. color: ['#69c0ff'],
  2506. series: [
  2507. {
  2508. name: '月利润总额同期变化率',
  2509. type: 'line',
  2510. smooth: true, //平滑曲线显示
  2511. showAllSymbol: true, //显示所有图形。
  2512. symbol: 'circle', //标记的图形为实心圆
  2513. symbolSize: 8, //标记的大小
  2514. smooth: false,
  2515. label: {
  2516. normal: {
  2517. show: true,
  2518. lineHeight: '20',
  2519. position: 'top',
  2520. textStyle: {
  2521. color: '#B889EA',
  2522. fontStyle: 'normal',
  2523. textAlign: 'left',
  2524. fontSize: 16,
  2525. },
  2526. formatter: function (data) {
  2527. if (data.name == '文旅集团') {
  2528. return data.value
  2529. } else {
  2530. return ''
  2531. }
  2532. }
  2533. }
  2534. },
  2535. itemStyle: {
  2536. //折线拐点标志的样式
  2537. color: '#B889EA',
  2538. borderColor: '#B889EA',
  2539. width: 2,
  2540. shadowColor: '#B889EA',
  2541. shadowBlur: 4,
  2542. },
  2543. lineStyle: {
  2544. color: '#B889EA',
  2545. width: 2,
  2546. },
  2547. data: fjxdataL2[0],
  2548. },
  2549. {
  2550. name: '月薪酬总额同期变化率',
  2551. type: 'line',
  2552. smooth: true, //平滑曲线显示
  2553. showAllSymbol: true, //显示所有图形。
  2554. symbol: 'circle', //标记的图形为实心圆
  2555. symbolSize: 12, //标记的大小
  2556. smooth: false,
  2557. label: {
  2558. normal: {
  2559. show: true,
  2560. position: 'top',
  2561. lineHeight: '35',
  2562. textStyle: {
  2563. color: '#69c0ff',
  2564. fontStyle: 'normal',
  2565. textAlign: 'left',
  2566. fontSize: 16,
  2567. },
  2568. formatter: function (data) {
  2569. if (data.name == '文旅集团') {
  2570. return data.value
  2571. } else {
  2572. return ''
  2573. }
  2574. }
  2575. }
  2576. },
  2577. itemStyle: {
  2578. color: params => {
  2579. if (params.value > 0 && fjxdataL2[0][params.dataIndex] < 0) {
  2580. return 'yellow'
  2581. } else if (params.value < 0 && fjxdataL2[0][params.dataIndex] > 0) {
  2582. return 'green'
  2583. }
  2584. else {
  2585. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2586. {
  2587. offset: 0,
  2588. color: '#69c0ff',
  2589. },
  2590. {
  2591. offset: 1,
  2592. color: '#082550',
  2593. },
  2594. ])
  2595. }
  2596. },
  2597. },
  2598. lineStyle: {
  2599. color: '#69C0FF',
  2600. width: 2,
  2601. },
  2602. data: fjxdataL2[1],
  2603. },
  2604. {
  2605. type: 'effectScatter',
  2606. coordinateSystem: 'cartesian2d',
  2607. showEffectOn: 'render',
  2608. rippleEffect: {
  2609. period: 10,
  2610. scale: 4,
  2611. brushType: 'stroke'
  2612. },
  2613. hoverAnimation: true,
  2614. itemStyle: {
  2615. color: 'yellow'
  2616. },
  2617. lineStyle: {
  2618. color: '#43ede3',
  2619. width: 2,
  2620. },
  2621. data: this.twinkleR6,
  2622. },
  2623. ],
  2624. }
  2625. option.title.text = '各省属企业利润与薪酬变动情况'
  2626. option.legend.data = ['月利润总额同期变化率', '月薪酬总额同期变化率']
  2627. option.tooltip.formatter = '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  2628. option.yAxis[0].axisLabel.formatter = '{value} %'
  2629. myChart.setOption(option)
  2630. },
  2631. initChartR7 () {
  2632. let myChart = echarts.init(this.$refs['echartR7'])
  2633. let option = {
  2634. ..._.cloneDeep(this.commonOption),
  2635. series: [
  2636. {
  2637. name: '全员绩效考核完成率',
  2638. type: 'bar',
  2639. barWidth: 15,
  2640. itemStyle: {
  2641. normal: {
  2642. color: params => {
  2643. if (params.value < 50) {
  2644. return 'yellow'
  2645. }
  2646. else {
  2647. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2648. {
  2649. offset: 0,
  2650. color: '#B889EA',
  2651. },
  2652. {
  2653. offset: 1,
  2654. color: '#082550',
  2655. },
  2656. ])
  2657. }
  2658. },
  2659. },
  2660. },
  2661. data: fjxdataL3[0],
  2662. },
  2663. ],
  2664. }
  2665. option.title.text = '各省属企业全员绩效考核'
  2666. option.legend.show = true
  2667. option.tooltip = {
  2668. trigger: 'axis',
  2669. formatter: '{a0}:{c0}' + '%'
  2670. },
  2671. option.yAxis[0].axisLabel = {
  2672. show: true,
  2673. formatter: '{value} %',
  2674. textStyle: {
  2675. color: 'rgba(250,250,250,0.6)',
  2676. },
  2677. }
  2678. myChart.setOption(option)
  2679. },
  2680. initChartR8 () {
  2681. let myChart = echarts.init(this.$refs['echartR8'])
  2682. let option = {
  2683. ..._.cloneDeep(this.commonOption),
  2684. series: [
  2685. {
  2686. name: '任期制契约化完成率',
  2687. type: 'bar',
  2688. barWidth: 15,
  2689. itemStyle: {
  2690. normal: {
  2691. color: params => {
  2692. if (params.value < 50) {
  2693. return 'yellow'
  2694. }
  2695. else {
  2696. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2697. {
  2698. offset: 0,
  2699. color: '#43ede3',
  2700. },
  2701. {
  2702. offset: 1,
  2703. color: '#082550',
  2704. },
  2705. ])
  2706. }
  2707. },
  2708. },
  2709. },
  2710. data: fjxdataL4[0],
  2711. },
  2712. ],
  2713. }
  2714. option.title.text = '各省属企业任期制契约化管理'
  2715. option.legend.show = true
  2716. option.tooltip.formatter = '{a0}:{c0}' + '%'
  2717. option.yAxis[0].axisLabel.formatter = '{value} %'
  2718. myChart.setOption(option)
  2719. },
  2720. },
  2721. })