index.js 89 KB

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