index.js 58 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689
  1. let barImg =
  2. 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAtCAYAAAA6GuKaAAAAAXNSR0IArs4c6QAADNRJREFUaEPNmXmQFNd9x9/Zr3u6Z2ZndzkiLeYwYhctJUtgC8GGQ46MBLYsjAURQnKSckWKkz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',
  5. data () {
  6. return {
  7. showTip: false,
  8. tipNum: '',
  9. tipData: tipData,
  10. time: '',
  11. year: '2022',
  12. config1: {
  13. number: [100],
  14. content: '{nt}个',
  15. },
  16. centerData: '',
  17. storageRecordConfig: {
  18. header: ['', '时间', '所属集团', '工作情况'],
  19. headerBGC: '#05507b33',
  20. oddRowBGC: '#69c0ff0f',
  21. evenRowBGC: '',
  22. headerHeight: '40',
  23. columnWidth: [150, 150],
  24. rowNum: 4,
  25. align: ['right', 'center', 'center', 'center'],
  26. data: [
  27. // ['<span class="lightOut"><span class="light red"></span></span>', '2022年1月', '山西焦煤', '已经开展高层次人才引进工作'],
  28. // ['<span class="lightOut"><span class="light yellow"></span></span>', '2022年2月', '山西文旅', '不能按期完成序时进度'],
  29. // ['<span class="lightOut"><span class="light green"></span></span>', '2022年3月', '大地控股', '已经实现中长期激励机制贯彻'],
  30. // ['<span class="lightOut"><span class="light red"></span></span>', '2022年4月', '国际能源', '薪酬结果没有做到公开'],
  31. // ['<span class="lightOut"><span class="light yellow"></span></span>', '2022年5月', '山西焦煤', '已经开展高层次人才引进工作'],
  32. // ['<span class="lightOut"><span class="light green"></span></span>', '2022年6月', '山西焦煤', '不能按期完成序时进度'],
  33. ['<span class="lightOut"><span class=" light green "></span></span>', ' 2022.12.07 ', ' 山西焦煤 ', ' “退二进一”完成情况表现优秀 '],
  34. ['<span class="lightOut"><span class=" light green "></span></span>', ' 2023.01.04 ', ' 山西焦煤 ', ' 总部机构压减成效明显 '],
  35. ['<span class="lightOut"><span class=" light green "></span></span>', ' 2023.01.05 ', ' 晋能控股 ', ' 总部人员压减成效突出 '],
  36. ['<span class="lightOut"><span class=" light green "></span></span>', ' 2023.01.06 ', ' 晋能控股 ', ' 中层管理人数改革成效显著 '],
  37. ['<span class="lightOut"><span class=" light green "></span></span>', ' 2022.12.07 ', ' 晋能控股 ', ' 管理级次压缩成效明显 '],
  38. ['<span class="lightOut"><span class=" light red "></span></span>', ' 2023.01.08 ', ' 华阳新材 ', ' 六定未按要求下穿到全级次企业 '],
  39. ['<span class="lightOut"><span class=" light green "></span></span>', ' 2022.11.07 ', ' 潞安化工 ', ' 全员劳动生产率提高明显 '],
  40. ['<span class="lightOut"><span class=" light green "></span></span>', ' 2023.01.10 ', ' 建投集团 ', ' 深入开展中层管理人员竞聘上岗 '],
  41. ['<span class="lightOut"><span class=" light green "></span></span>', ' 2023.01.11 ', ' 华舰体育 ', ' 集团人数增长速度较快 '],
  42. ['<span class="lightOut"><span class=" light green "></span></span>', ' 2023.01.12 ', ' 华舰体育 ', ' 人员增速显著高于全员劳动生产率增速 '],
  43. ['<span class="lightOut"><span class=" light green "></span></span>', ' 2022.09.07 ', ' 国际能源 ', ' 全员劳动生产率增速显著高于人员增速 '],
  44. ['<span class="lightOut"><span class=" light green "></span></span>', ' 2023.01.15 ', ' 山西焦煤 ', ' 人工成本利润率增长且总人数下降 '],
  45. ['<span class="lightOut"><span class=" light green "></span></span>', ' 2023.01.15 ', ' 晋能控股 ', ' 人工成本利润率增长且总人数下降 '],
  46. ['<span class="lightOut"><span class=" light green "></span></span>', ' 2023.01.15 ', ' 华阳新材 ', ' 人工成本利润率增长且总人数下降 '],
  47. ['<span class="lightOut"><span class=" light green "></span></span>', ' 2023.01.15 ', ' 太重集团 ', ' 人工成本利润率增长且总人数下降 '],
  48. ['<span class="lightOut"><span class=" light green "></span></span>', ' 2023.01.15 ', ' 国际能源 ', ' 人工成本利润率增长且总人数下降 '],
  49. ['<span class="lightOut"><span class=" light green "></span></span>', ' 2023.01.15 ', ' 华远陆港 ', ' 人工成本利润率增长且总人数下降 '],
  50. ['<span class="lightOut"><span class=" light green "></span></span>', ' 2023.01.15 ', ' 交控集团 ', ' 人工成本利润率增长且总人数下降 '],
  51. ['<span class="lightOut"><span class=" light green "></span></span>', ' 2023.01.15 ', ' 云时代 ', ' 人工成本利润率增长且总人数下降 '],
  52. ['<span class="lightOut"><span class=" light yellow "></span></span>', ' 2023.01.16 ', ' 文旅集团 ', ' 人工成本利润率显著降低 '],
  53. ['<span class="lightOut"><span class=" light yellow "></span></span>', ' 2023.01.17 ', ' 航产集团 ', ' 人工成本利润率显著降低 '],
  54. ['<span class="lightOut"><span class=" light red "></span></span>', ' 2023.01.18 ', ' 大地控股 ', ' 中层管理人员任命不符合六定要求 '],
  55. ['<span class="lightOut"><span class=" light green "></span></span>', ' 2022.11.07 ', ' 交控集团 ', ' “退二进一”完成情况表现优秀 '],
  56. ['<span class="lightOut"><span class=" light green "></span></span>', ' 2023.01.20 ', ' 太重集团 ', ' 开展管理人员末等调整和不胜任退出 '],
  57. ['<span class="lightOut"><span class=" light yellow "></span></span>', ' 2022.12.07 ', ' 华舰体育 ', ' 六定相关文件未按要求备案 '],
  58. ['<span class="lightOut"><span class=" light yellow "></span></span>', ' 2022.12.07 ', ' 文旅集团 ', ' 六定相关文件未按要求备案 '],
  59. ['<span class="lightOut"><span class=" light yellow "></span></span>', ' 2022.12.07 ', ' 水控集团 ', ' 六定相关文件未按要求备案 '],
  60. ],
  61. // data: [
  62. // ['<span style-"display:inline-block; width:15px;height:15px;border-radius:50%;background-color:green;"></span>', '2022年1月', '山西焦煤', '已经开展高层次人才引进工作'],
  63. // ['2022年2月', '山西文旅', '不能按期完成序时进度'],
  64. // ['2022年3月', '大地控股', '已经实现中长期激励机制贯彻'],
  65. // ['2022年4月', '国际能源', '薪酬结果没有做到公开'],
  66. // ['2022年5月', '山西焦煤', '已经开展高层次人才引进工作'],
  67. // ['2022年6月', '山西焦煤', '不能按期完成序时进度'],
  68. // ],
  69. },
  70. storageRecordConfig2: {
  71. header: ['', '企业名称', '预警内容', '数据抓取日期', '累计未获取数据日期'],
  72. headerBGC: '#05507b33',
  73. oddRowBGC: '#05507b33',
  74. evenRowBGC: '',
  75. headerHeight: '40',
  76. rowNum: 4,
  77. align: ['center', 'center', 'center', 'center'],
  78. data: [
  79. ['<span class="lightOut"><span class=" light green "></span></span>', ' 华新燃气 ', ' 本季度数据更新及时准确 ', ' 四季度 ', ' - '],
  80. ['<span class="lightOut"><span class=" light green "></span></span>', ' 云时代 ', ' 本季度数据更新及时准确 ', ' 四季度 ', ' '],
  81. ['<span class="lightOut"><span class=" light red "></span></span>', ' 大地控股 ', ' 六定长效机制情况未更新 ', ' 2022.12.01-12.31 ', ' 30 '],
  82. ['<span class="lightOut"><span class=" light yellow "></span></span>', ' 建设投资 ', ' 六定长效机制12月数据未获取 ', ' 2022.12.01-12.31 ', ' 15 '],
  83. ['<span class="lightOut"><span class=" light yellow "></span></span>', ' 交控集团 ', ' 经营业绩考核12月数据未获取 ', ' 2022.12.01-12.31 ', ' 15 '],
  84. ['<span class="lightOut"><span class=" light yellow "></span></span>', ' 太重集团 ', ' 经营业绩考核12月数据未获取 ', ' 2022.12.01-12.31 ', ' 15 '],
  85. ['<span class="lightOut"><span class=" light yellow "></span></span>', ' 文旅集团 ', ' 经营业绩考核12月数据未获取 ', ' 2022.12.01-12.31 ', ' 15 '],
  86. ['<span class="lightOut"><span class=" light yellow "></span></span>', ' 水务集团 ', ' 经营业绩考核12月数据未获取 ', ' 2022.12.01-12.31 ', ' 15 '],
  87. ['<span class="lightOut"><span class=" light yellow "></span></span>', ' 航产集团 ', ' 经营业绩考核12月数据未获取 ', ' 2022.12.01-12.31 ', ' 15 '],
  88. ['<span class="lightOut"><span class=" light yellow "></span></span>', ' 华舰体育 ', ' 经营业绩考核12月数据未获取 ', ' 2022.12.01-12.31 ', ' 15 '],
  89. ['<span class="lightOut"><span class=" light yellow "></span></span>', ' 文旅集团 ', ' 六定长效机制情况数据更新错误 ', ' 2022.12.01-12.31 ', ' - '],
  90. ],
  91. },
  92. companyList: companyList,
  93. commonOption: {
  94. title: {
  95. text: 'xxx',
  96. x: 'center',
  97. y: '3%',
  98. textStyle: {
  99. color: '#69C0FF',
  100. fontSize: 24,
  101. },
  102. },
  103. tooltip: {
  104. trigger: 'axis',
  105. textStyle: { fontSize: 18 },
  106. axisPointer: {
  107. type: 'cross',
  108. label: {
  109. fontSize: 18,
  110. },
  111. },
  112. },
  113. grid: {
  114. top: '22%',
  115. right: '5%',
  116. left: '8%',
  117. bottom: '20%',
  118. },
  119. legend: {
  120. data: '',
  121. top: '12%',
  122. right: '5%',
  123. textStyle: {
  124. color: 'rgba(250,250,250,0.6)',
  125. fontSize: 16,
  126. },
  127. },
  128. xAxis: {
  129. data: companyList.map(item => item.name),
  130. axisLine: {
  131. show: false, //隐藏X轴轴线
  132. lineStyle: {
  133. color: '#005094',
  134. width: 1,
  135. },
  136. },
  137. axisTick: {
  138. show: false, //隐藏X轴刻度
  139. },
  140. axisLabel: {
  141. show: true,
  142. rotate: 50,
  143. textStyle: {
  144. color: 'rgba(255,255,255,0.6)', //X轴文字颜色
  145. fontSize: 16,
  146. },
  147. },
  148. },
  149. yAxis: [
  150. {
  151. type: 'value',
  152. nameTextStyle: {
  153. color: '#ebf8ac',
  154. fontSize: 16,
  155. },
  156. splitLine: {
  157. show: true,
  158. lineStyle: {
  159. color: '#68b4dd66',
  160. type: 'dashed',
  161. },
  162. },
  163. axisLine: {
  164. show: false,
  165. },
  166. axisLabel: {
  167. show: true,
  168. textStyle: {
  169. color: 'rgba(250,250,250,0.6)',
  170. fontSize: 16,
  171. },
  172. },
  173. },
  174. ],
  175. },
  176. }
  177. },
  178. mounted () {
  179. this.time = formatDate()
  180. this.timer = setInterval(() => {
  181. this.time = formatDate()
  182. }, 1000)
  183. this.centerData = data
  184. // 左侧图表
  185. this.initChartL1()
  186. this.initChartL2()
  187. this.initChartL3()
  188. this.initChartL4()
  189. this.initChartL5()
  190. this.initChartL6()
  191. this.initChartL7()
  192. this.initChartL8()
  193. // 中间图表
  194. this.initChartC1()
  195. this.initChartC2()
  196. // 右侧图表
  197. this.initChartR1()
  198. this.initChartR2()
  199. this.initChartR3()
  200. this.initChartR4()
  201. this.initChartR5()
  202. this.initChartR6()
  203. this.initChartR7()
  204. this.initChartR8()
  205. },
  206. beforeDestroy () {
  207. if (this.timer) {
  208. clearInterval(this.timer)
  209. }
  210. },
  211. methods: {
  212. handleShowTip (index) {
  213. this.showTip = true
  214. this.tipNum = index
  215. },
  216. handleGoPage (url) {
  217. if (url.length) {
  218. window.location.href = url
  219. }
  220. },
  221. numFormat (value) {
  222. if (!value) return '0'
  223. var intPart = Number(value).toFixed(0) // 获取整数部分
  224. var intPartFormat = intPart.toString().replace(/(\d)(?=(?:\d{3})+$)/g, '$1,') // 将整数部分逢三一断
  225. var floatPart = '.00' // 预定义小数部分
  226. var value2Array = value.toString().split('.')
  227. // =2表示数据有小数位
  228. if (value2Array.length === 2) {
  229. floatPart = value2Array[1].toString() // 拿到小数部分
  230. if (floatPart.length === 1) {
  231. // 补0
  232. return intPartFormat + '.' + floatPart + '0'
  233. } else {
  234. return intPartFormat + '.' + floatPart
  235. }
  236. } else {
  237. return intPartFormat
  238. }
  239. },
  240. initChartL1 () {
  241. let myChart = echarts.init(this.$refs['echartL1'])
  242. let option = {
  243. ..._.cloneDeep(this.commonOption),
  244. series: [
  245. {
  246. name: '总部机构数核定上限',
  247. type: 'line',
  248. // yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  249. smooth: true, //平滑曲线显示
  250. showAllSymbol: true, //显示所有图形。
  251. symbol: 'circle', //标记的图形为实心圆
  252. symbolSize: 8, //标记的大小
  253. smooth: false,
  254. itemStyle: {
  255. //折线拐点标志的样式
  256. color: '#fbe138',
  257. borderColor: '#fbe138',
  258. width: 2,
  259. shadowColor: '#fbe138',
  260. shadowBlur: 4,
  261. },
  262. lineStyle: {
  263. color: '#fbe138',
  264. width: 2,
  265. },
  266. data: dataL1[2],
  267. },
  268. {
  269. name: '六定改革前总部机构数',
  270. type: 'bar',
  271. barWidth: 15,
  272. itemStyle: {
  273. normal: {
  274. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  275. {
  276. offset: 0,
  277. color: '#43ede3',
  278. },
  279. {
  280. offset: 1,
  281. color: '#082550',
  282. },
  283. ]),
  284. },
  285. },
  286. data: dataL1[0],
  287. },
  288. {
  289. name: '当前各省属企业总部机构数',
  290. type: 'bar',
  291. barWidth: 15,
  292. itemStyle: {
  293. normal: {
  294. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  295. {
  296. offset: 0,
  297. color: '#69c0ff',
  298. },
  299. {
  300. offset: 1,
  301. color: '#082550',
  302. },
  303. ]),
  304. },
  305. },
  306. data: dataL1[1],
  307. },
  308. ],
  309. }
  310. option.title.text = '当前各省属企业总部机构数'
  311. option.legend.data = ['六定改革前总部机构数', '当前各省属企业总部机构数', '总部机构数核定上限']
  312. option.yAxis.push({
  313. splitLine: {
  314. show: false,
  315. },
  316. axisLine: {
  317. show: false,
  318. },
  319. })
  320. myChart.setOption(option)
  321. },
  322. initChartL2 () {
  323. let myChart = echarts.init(this.$refs['echartL2'])
  324. let option = {
  325. ..._.cloneDeep(this.commonOption),
  326. color: ['#69c0ff'],
  327. series: [
  328. {
  329. name: '当前共享服务中心/事业部数',
  330. type: 'bar',
  331. barWidth: 15,
  332. itemStyle: {
  333. color: params => {
  334. if (params.value > dataL2[1][params.dataIndex]) {
  335. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  336. {
  337. offset: 0,
  338. color: 'red',
  339. },
  340. {
  341. offset: 1,
  342. color: '#082550',
  343. },
  344. ])
  345. } else {
  346. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  347. {
  348. offset: 0,
  349. color: '#69c0ff',
  350. },
  351. {
  352. offset: 1,
  353. color: '#082550',
  354. },
  355. ])
  356. }
  357. },
  358. },
  359. data: dataL2[0],
  360. },
  361. {
  362. name: '共享服务中心/事业部核定上限',
  363. type: 'line',
  364. // yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  365. smooth: true, //平滑曲线显示
  366. showAllSymbol: true, //显示所有图形。
  367. symbol: 'circle', //标记的图形为实心圆
  368. symbolSize: 8, //标记的大小
  369. smooth: false,
  370. itemStyle: {
  371. //折线拐点标志的样式
  372. color: '#fbe138',
  373. borderColor: '#fbe138',
  374. width: 2,
  375. shadowColor: '#fbe138',
  376. shadowBlur: 4,
  377. },
  378. lineStyle: {
  379. color: '#fbe138',
  380. width: 2,
  381. },
  382. data: dataL2[1],
  383. },
  384. ],
  385. }
  386. option.title.text = '各省属企业共享服务中心/事业部数'
  387. option.legend.data = ['当前共享服务中心/事业部数', '共享服务中心/事业部核定上限']
  388. option.yAxis.push({
  389. splitLine: {
  390. show: false,
  391. },
  392. axisLine: {
  393. show: false,
  394. },
  395. })
  396. myChart.setOption(option)
  397. },
  398. initChartL3 () {
  399. let myChart = echarts.init(this.$refs['echartL3'])
  400. let option = {
  401. ..._.cloneDeep(this.commonOption),
  402. series: [
  403. {
  404. name: '当前管理人员数',
  405. type: 'bar',
  406. barWidth: 15,
  407. itemStyle: {
  408. normal: {
  409. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  410. {
  411. offset: 0,
  412. color: '#5e7ae9',
  413. },
  414. {
  415. offset: 1,
  416. color: '#082550',
  417. },
  418. ]),
  419. },
  420. },
  421. data: dataL3[0],
  422. },
  423. {
  424. name: '管理人员数占总人数比值',
  425. type: 'line',
  426. yAxisIndex: 1,
  427. smooth: true, //平滑曲线显示
  428. showAllSymbol: true, //显示所有图形。
  429. symbol: 'circle', //标记的图形为实心圆
  430. symbolSize: 8, //标记的大小
  431. smooth: false,
  432. itemStyle: {
  433. //折线拐点标志的样式
  434. color: '#fbe138',
  435. borderColor: '#fbe138',
  436. width: 2,
  437. shadowColor: '#fbe138',
  438. shadowBlur: 4,
  439. },
  440. lineStyle: {
  441. color: '#fbe138',
  442. width: 2,
  443. },
  444. markLine: {
  445. data: [
  446. {
  447. name: '管理人员数占总人数的合理比值线',
  448. yAxis: 15,
  449. lineStyle: {
  450. color: '#fff',
  451. },
  452. label: {
  453. formatter: '{b}',
  454. position: 'middle',
  455. color: '#fff',
  456. fontSize: 16,
  457. },
  458. },
  459. ],
  460. label: {
  461. distance: [20, 8],
  462. },
  463. },
  464. data: dataL3[1],
  465. },
  466. ],
  467. }
  468. option.title.text = '各省属企业管理人员数'
  469. option.legend.data = ['当前管理人员数', '管理人员数占总人数比值']
  470. option.yAxis[0] = {
  471. type: 'log',
  472. min: 1,
  473. logBase: 10,
  474. axisLine: {
  475. show: false,
  476. },
  477. splitLine: {
  478. show: true,
  479. lineStyle: {
  480. color: '#68b4dd66',
  481. type: 'dashed',
  482. },
  483. },
  484. axisLabel: {
  485. show: true,
  486. formatter: function (value) {
  487. return value === 1 ? 0 : value
  488. },
  489. textStyle: {
  490. color: 'rgba(250,250,250,0.6)',
  491. },
  492. },
  493. }
  494. option.yAxis.push({
  495. type: 'value',
  496. max: 15,
  497. axisLine: {
  498. show: false,
  499. },
  500. splitLine: {
  501. show: false,
  502. },
  503. axisLabel: {
  504. show: true,
  505. formatter: '{value} %',
  506. textStyle: {
  507. color: 'rgba(250,250,250,0.6)',
  508. },
  509. },
  510. })
  511. option.tooltip.formatter = '{a0}:{c0}' + '<br/>' + '{a1}:{c1}' + '%'
  512. myChart.setOption(option)
  513. },
  514. initChartL4 () {
  515. let myChart = echarts.init(this.$refs['echartL4'])
  516. let option = {
  517. ..._.cloneDeep(this.commonOption),
  518. series: [
  519. {
  520. name: '六定改革前总部中层管理人数',
  521. type: 'bar',
  522. barWidth: 15,
  523. itemStyle: {
  524. normal: {
  525. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  526. {
  527. offset: 0,
  528. color: '#69c0ff',
  529. },
  530. {
  531. offset: 1,
  532. color: '#082550',
  533. },
  534. ]),
  535. },
  536. },
  537. data: dataL4[0],
  538. },
  539. {
  540. name: '当前总部中层管理人数',
  541. type: 'bar',
  542. barWidth: 15,
  543. itemStyle: {
  544. normal: {
  545. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  546. {
  547. offset: 0,
  548. color: '#6480f3',
  549. },
  550. {
  551. offset: 1,
  552. color: '#082550',
  553. },
  554. ]),
  555. },
  556. },
  557. data: dataL4[1],
  558. },
  559. ],
  560. }
  561. option.title.text = '各省属企业总部中层管理人数'
  562. option.legend.data = ['六定改革前总部中层管理人数', '当前总部中层管理人数']
  563. option.legend.show = true
  564. option.yAxis.push({
  565. splitLine: {
  566. show: false,
  567. },
  568. axisLine: {
  569. show: false,
  570. },
  571. })
  572. myChart.setOption(option)
  573. },
  574. initChartL5 () {
  575. let myChart = echarts.init(this.$refs['echartL5'])
  576. let option = {
  577. ..._.cloneDeep(this.commonOption),
  578. series: [
  579. {
  580. name: '各省属企业总人数',
  581. type: 'bar',
  582. barWidth: 15,
  583. itemStyle: {
  584. normal: {
  585. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  586. {
  587. offset: 0,
  588. color: '#69c0ff',
  589. },
  590. {
  591. offset: 1,
  592. color: '#082550',
  593. },
  594. ]),
  595. },
  596. },
  597. data: dataL5[0],
  598. },
  599. {
  600. name: '去年同期人数变化率',
  601. type: 'line',
  602. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  603. smooth: true, //平滑曲线显示
  604. showAllSymbol: true, //显示所有图形。
  605. symbol: 'circle', //标记的图形为实心圆
  606. symbolSize: 8, //标记的大小
  607. smooth: false,
  608. itemStyle: {
  609. //折线拐点标志的样式
  610. color: '#b889ea',
  611. borderColor: '#b889ea',
  612. width: 2,
  613. shadowColor: '#b889ea',
  614. shadowBlur: 4,
  615. },
  616. lineStyle: {
  617. color: '#b889ea',
  618. width: 2,
  619. },
  620. data: dataL5[1],
  621. },
  622. ],
  623. }
  624. option.title.text = '各省属企业总人数'
  625. option.legend.data = ['各省属企业总人数', '去年同期人数变化率']
  626. option.legend.show = true
  627. option.yAxis[0] = {
  628. type: 'log',
  629. min: 1,
  630. logBase: 10,
  631. axisLine: {
  632. show: false,
  633. },
  634. splitLine: {
  635. show: true,
  636. lineStyle: {
  637. color: '#68b4dd66',
  638. type: 'dashed',
  639. },
  640. },
  641. axisLabel: {
  642. show: true,
  643. formatter: function (value) {
  644. return value === 1 ? 0 : value
  645. },
  646. textStyle: {
  647. color: 'rgba(250,250,250,0.6)',
  648. },
  649. },
  650. }
  651. option.yAxis.push({
  652. type: 'value',
  653. axisLine: {
  654. show: false,
  655. },
  656. splitLine: {
  657. show: false,
  658. },
  659. axisLabel: {
  660. show: true,
  661. formatter: '{value} %',
  662. textStyle: {
  663. color: 'rgba(250,250,250,0.6)',
  664. },
  665. },
  666. })
  667. option.tooltip.formatter = '{a0}:{c0}' + '<br/>' + '{a1}:{c1}' + '%'
  668. myChart.setOption(option)
  669. },
  670. initChartL6 () {
  671. let myChart = echarts.init(this.$refs['echartL6'])
  672. let option = {
  673. ..._.cloneDeep(this.commonOption),
  674. series: [
  675. {
  676. name: '总部员额数',
  677. type: 'bar',
  678. barWidth: 15,
  679. itemStyle: {
  680. normal: {
  681. barBorderRadius: [10, 10, 0, 0],
  682. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  683. {
  684. offset: 0,
  685. color: '#43ede3',
  686. },
  687. {
  688. offset: 1,
  689. color: '#082550',
  690. },
  691. ]),
  692. },
  693. },
  694. data: dataL6[0],
  695. },
  696. {
  697. name: '总部员额数核定上限',
  698. type: 'line',
  699. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  700. smooth: true, //平滑曲线显示
  701. showAllSymbol: true, //显示所有图形。
  702. symbol: 'circle', //标记的图形为实心圆
  703. symbolSize: 8, //标记的大小
  704. smooth: false,
  705. itemStyle: {
  706. //折线拐点标志的样式
  707. color: '#fbe138',
  708. borderColor: '#fbe138',
  709. width: 2,
  710. shadowColor: '#fbe138',
  711. shadowBlur: 4,
  712. },
  713. lineStyle: {
  714. color: '#fbe138',
  715. width: 2,
  716. },
  717. data: dataL6[1],
  718. },
  719. ],
  720. }
  721. option.title.text = '各省属企业总部员额数'
  722. option.legend.data = ['总部员额数', '总部员额数核定上限']
  723. option.legend.show = true
  724. option.yAxis.push({
  725. splitLine: {
  726. show: false,
  727. },
  728. axisLine: {
  729. show: false,
  730. },
  731. })
  732. myChart.setOption(option)
  733. },
  734. initChartL7 () {
  735. let myChart = echarts.init(this.$refs['echartL7'])
  736. let option = {
  737. ..._.cloneDeep(this.commonOption),
  738. color: ['#b889ea'],
  739. series: [
  740. {
  741. name: '人数变化',
  742. type: 'line',
  743. smooth: true, //平滑曲线显示
  744. showAllSymbol: true, //显示所有图形。
  745. symbol: 'circle', //标记的图形为实心圆
  746. symbolSize: 8, //标记的大小
  747. smooth: false,
  748. itemStyle: {
  749. //折线拐点标志的样式
  750. color: '#43ede3',
  751. borderColor: '#43ede3',
  752. width: 2,
  753. shadowColor: '#43ede3',
  754. shadowBlur: 4,
  755. },
  756. lineStyle: {
  757. color: '#43ede3',
  758. width: 2,
  759. },
  760. data: dataL7[0],
  761. },
  762. {
  763. name: '劳动生产率同比变化',
  764. type: 'line',
  765. yAxisIndex: 1,
  766. smooth: true, //平滑曲线显示
  767. showAllSymbol: true, //显示所有图形。
  768. symbol: 'circle', //标记的图形为实心圆
  769. symbolSize: 15, //标记的大小
  770. smooth: false,
  771. itemStyle: {
  772. color: params => {
  773. if (dataL7[0][params.dataIndex] > 0 && params.value < 0) {
  774. return 'red'
  775. } else {
  776. return '#b889ea'
  777. }
  778. },
  779. },
  780. lineStyle: {
  781. color: '#b889ea',
  782. width: 2,
  783. },
  784. data: dataL7[1],
  785. },
  786. ],
  787. }
  788. option.title.text = '人数变化和全员劳动生产率变化分析'
  789. option.legend.data = ['人数变化', '劳动生产率同比变化']
  790. option.legend.show = true
  791. option.yAxis[0].axisLabel.formatter = '{value} %'
  792. option.tooltip.formatter = '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  793. option.yAxis.push({
  794. type: 'value',
  795. axisLine: {
  796. show: false,
  797. },
  798. splitLine: {
  799. show: false,
  800. },
  801. axisLabel: {
  802. show: true,
  803. formatter: '{value} %',
  804. textStyle: {
  805. color: 'rgba(250,250,250,0.6)',
  806. },
  807. splitLine: {
  808. show: false,
  809. },
  810. axisLabel: {
  811. show: true,
  812. formatter: '{value} %',
  813. textStyle: {
  814. color: 'rgba(250,250,250,0.6)',
  815. },
  816. },
  817. },
  818. })
  819. myChart.setOption(option)
  820. },
  821. initChartL8 () {
  822. let myChart = echarts.init(this.$refs['echartL8'])
  823. let option = {
  824. ..._.cloneDeep(this.commonOption),
  825. color: ['#b889ea'],
  826. series: [
  827. {
  828. name: '人数变化',
  829. type: 'line',
  830. smooth: true, //平滑曲线显示
  831. showAllSymbol: true, //显示所有图形。
  832. symbol: 'circle', //标记的图形为实心圆
  833. symbolSize: 8, //标记的大小
  834. smooth: false,
  835. itemStyle: {
  836. //折线拐点标志的样式
  837. color: '#43ede3',
  838. borderColor: '#43ede3',
  839. width: 2,
  840. shadowColor: '#43ede3',
  841. shadowBlur: 4,
  842. },
  843. lineStyle: {
  844. color: '#43ede3',
  845. width: 2,
  846. },
  847. data: dataL8[0],
  848. },
  849. {
  850. name: '人工成本利润率同比变化',
  851. type: 'line',
  852. smooth: true, //平滑曲线显示
  853. showAllSymbol: true, //显示所有图形。
  854. symbol: 'circle', //标记的图形为实心圆
  855. symbolSize: 15, //标记的大小
  856. smooth: false,
  857. itemStyle: {
  858. color: params => {
  859. if (dataL8[0][params.dataIndex] > 0 && params.value < 0) {
  860. return 'red'
  861. } else {
  862. return '#b889ea'
  863. }
  864. },
  865. },
  866. lineStyle: {
  867. color: '#b889ea',
  868. width: 2,
  869. },
  870. data: dataL8[1],
  871. },
  872. ],
  873. }
  874. option.title.text = '人数变化和人工成本利润率变化分析'
  875. option.legend.data = ['人数变化', '人工成本利润率同比变化']
  876. option.legend.show = true
  877. option.yAxis[0].axisLabel.formatter = '{value} %'
  878. option.tooltip.formatter = '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  879. myChart.setOption(option)
  880. },
  881. // 中间图表---------------------------------------------开始
  882. initChartC1 () {
  883. let myChart = echarts.init(this.$refs['echartC1'])
  884. let option = {
  885. ..._.cloneDeep(this.commonOption),
  886. color: ['#69c0ff'],
  887. series: [
  888. {
  889. name: '全员劳动生产率(万/人)',
  890. type: 'bar',
  891. barWidth: 15,
  892. itemStyle: {
  893. color: params => {
  894. if (params.value < 0 && c1[1][params.dataIndex] < 0) {
  895. return 'red'
  896. } else if (params.value < 0) {
  897. return 'yellow'
  898. } else {
  899. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  900. {
  901. offset: 0,
  902. color: '#69c0ff',
  903. },
  904. {
  905. offset: 1,
  906. color: '#082550',
  907. },
  908. ])
  909. }
  910. },
  911. },
  912. data: c1[0],
  913. },
  914. {
  915. name: '全员劳动生产率同比',
  916. type: 'line',
  917. yAxisIndex: 1,
  918. smooth: true, //平滑曲线显示
  919. showAllSymbol: true, //显示所有图形。
  920. symbol: 'circle', //标记的图形为实心圆
  921. symbolSize: 8, //标记的大小
  922. smooth: false,
  923. itemStyle: {
  924. //折线拐点标志的样式
  925. color: '#B889EA',
  926. borderColor: '#B889EA',
  927. width: 2,
  928. shadowColor: '#B889EA',
  929. shadowBlur: 4,
  930. },
  931. lineStyle: {
  932. color: '#B889EA',
  933. width: 2,
  934. },
  935. markLine: {
  936. data: [
  937. {
  938. name: '省属企业平均水平',
  939. yAxis: 50.13,
  940. lineStyle: {
  941. color: '#fff',
  942. },
  943. label: {
  944. formatter: '{b}',
  945. position: 'middle',
  946. fontSize: 16,
  947. color: '#fff',
  948. },
  949. },
  950. {
  951. name: '',
  952. yAxis: 0,
  953. lineStyle: {
  954. color: '#fff',
  955. },
  956. label: {
  957. formatter: '{b}',
  958. position: 'end',
  959. fontSize: 16,
  960. color: '#fff',
  961. },
  962. },
  963. {
  964. name: '央企平均水平',
  965. yAxis: 69.4,
  966. lineStyle: {
  967. color: '#fff',
  968. },
  969. label: {
  970. formatter: '{b}',
  971. position: 'end',
  972. color: '#fff',
  973. fontSize: 16,
  974. },
  975. },
  976. ],
  977. label: {
  978. distance: [50, 0],
  979. },
  980. },
  981. // data: [50, 40, 60, 20, 45, 30, 60, 100, 45, 40, 50, 20, 60, 80, 45, 70, 50, 40],
  982. data: c1[1],
  983. },
  984. ],
  985. }
  986. option.title.text = '当前各省属企业全员劳动生产率'
  987. // option.legend.data = [ '全员劳动生产率(万/人)','全员劳动生产率同比']
  988. option.legend.show = true
  989. option.grid.right = '15%'
  990. option.tooltip.formatter = '{a0}:{c0}' + '<br/>' + '{a1}:{c1}' + '%'
  991. option.yAxis.push({
  992. type: 'value',
  993. axisLine: {
  994. show: false,
  995. },
  996. splitLine: {
  997. show: false,
  998. },
  999. axisLabel: {
  1000. show: true,
  1001. formatter: '{value} %',
  1002. textStyle: {
  1003. color: 'rgba(250,250,250,0.6)',
  1004. },
  1005. },
  1006. })
  1007. // option.yAxis.push({
  1008. // type: 'log',
  1009. // min: -1,
  1010. // logBase: 10,
  1011. // axisLine: {
  1012. // show: false,
  1013. // },
  1014. // splitLine: {
  1015. // show: false,
  1016. // },
  1017. // axisLabel: {
  1018. // show: true,
  1019. // formatter: function(value) {
  1020. // console.log(value,"value")
  1021. // // return value === 1 ? 0 : value
  1022. // },
  1023. // textStyle: {
  1024. // color: 'rgba(250,250,250,0.6)',
  1025. // },
  1026. // },
  1027. // })
  1028. myChart.setOption(option)
  1029. tools.loopShowTooltip(myChart, option, {
  1030. nterval: 2000,
  1031. loopSeries: true,
  1032. })
  1033. },
  1034. initChartC2 () {
  1035. let myChart = echarts.init(this.$refs['echartC2'])
  1036. let option = {
  1037. ..._.cloneDeep(this.commonOption),
  1038. color: ['#69c0ff'],
  1039. series: [
  1040. {
  1041. name: '人工成本利润率',
  1042. type: 'bar',
  1043. barWidth: 15,
  1044. markLine: {
  1045. data: [
  1046. {
  1047. name: '省属企业平均水平',
  1048. yAxis: 67.09,
  1049. lineStyle: {
  1050. color: '#fff',
  1051. },
  1052. label: {
  1053. formatter: '{b}',
  1054. position: 'end',
  1055. fontSize: 16,
  1056. color: '#fff',
  1057. },
  1058. },
  1059. {
  1060. name: '央企平均水平',
  1061. yAxis: 81,
  1062. lineStyle: {
  1063. color: '#fff',
  1064. },
  1065. label: {
  1066. formatter: '{b}',
  1067. position: 'middle',
  1068. color: '#fff',
  1069. fontSize: 16,
  1070. },
  1071. },
  1072. ],
  1073. label: {
  1074. distance: [50, 0],
  1075. },
  1076. },
  1077. itemStyle: {
  1078. color: params => {
  1079. if (params.value < 0 && c2[0][params.dataIndex] < 0) {
  1080. return 'red'
  1081. } else if (params.value < 0) {
  1082. return 'yellow'
  1083. } else {
  1084. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1085. {
  1086. offset: 0,
  1087. color: '#69c0ff',
  1088. },
  1089. {
  1090. offset: 1,
  1091. color: '#082550',
  1092. },
  1093. ])
  1094. }
  1095. },
  1096. },
  1097. data: c2[1],
  1098. },
  1099. {
  1100. name: '人工成本利润率同比',
  1101. type: 'line',
  1102. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  1103. smooth: true, //平滑曲线显示
  1104. showAllSymbol: true, //显示所有图形。
  1105. symbol: 'circle', //标记的图形为实心圆
  1106. symbolSize: 8, //标记的大小
  1107. smooth: false,
  1108. itemStyle: {
  1109. //折线拐点标志的样式
  1110. color: '#B889EA',
  1111. borderColor: '#B889EA',
  1112. width: 2,
  1113. shadowColor: '#B889EA',
  1114. shadowBlur: 4,
  1115. },
  1116. lineStyle: {
  1117. color: '#B889EA',
  1118. width: 2,
  1119. },
  1120. data: c2[0],
  1121. },
  1122. ],
  1123. }
  1124. option.title.text = '人工成本利润率'
  1125. option.legend.show = true
  1126. option.grid.right = '15%'
  1127. option.yAxis[0].axisLabel.formatter = '{value} %'
  1128. option.tooltip.formatter = '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  1129. option.yAxis.push({
  1130. type: 'value',
  1131. axisLine: {
  1132. show: false,
  1133. },
  1134. splitLine: {
  1135. show: false,
  1136. },
  1137. axisLabel: {
  1138. show: true,
  1139. formatter: '{value} %',
  1140. textStyle: {
  1141. color: 'rgba(250,250,250,0.6)',
  1142. },
  1143. },
  1144. })
  1145. myChart.setOption(option)
  1146. tools.loopShowTooltip(myChart, option, {
  1147. nterval: 2000,
  1148. loopSeries: true,
  1149. })
  1150. },
  1151. // 右侧图表---------------------------------------------开始
  1152. initChartR1 () {
  1153. let myChart = echarts.init(this.$refs['echartR1'])
  1154. let commonOptions = this.commonOption
  1155. commonOptions.yAxis[0].splitNumber = 2
  1156. let dataTemp = []
  1157. let dataTemp2 = []
  1158. dataR1[0].forEach(item => {
  1159. dataTemp.push(item + 1)
  1160. })
  1161. dataR1[1].forEach(item => {
  1162. dataTemp2.push(item + 1)
  1163. })
  1164. let option = {
  1165. ..._.cloneDeep(commonOptions),
  1166. series: [
  1167. {
  1168. name: '招聘需求公告次数',
  1169. type: 'bar',
  1170. barWidth: 15,
  1171. itemStyle: {
  1172. normal: {
  1173. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1174. {
  1175. offset: 0,
  1176. color: '#69c0ff',
  1177. },
  1178. {
  1179. offset: 1,
  1180. color: '#082550',
  1181. },
  1182. ]),
  1183. },
  1184. },
  1185. data: dataTemp,
  1186. },
  1187. {
  1188. name: '招聘需求公告累计招聘人次',
  1189. type: 'bar',
  1190. barWidth: 15,
  1191. itemStyle: {
  1192. normal: {
  1193. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1194. {
  1195. offset: 0,
  1196. color: '#43ede3',
  1197. },
  1198. {
  1199. offset: 1,
  1200. color: '#082550',
  1201. },
  1202. ]),
  1203. },
  1204. },
  1205. data: dataTemp2,
  1206. },
  1207. ],
  1208. }
  1209. option.title.text = '当前各省属企业招聘需求公示人次'
  1210. option.legend.data = ['招聘需求公告次数', '招聘需求公告累计招聘人次']
  1211. option.legend.show = true
  1212. option.tooltip.formatter = function (value) {
  1213. return value[0].axisValue + ':' + (value[0].value - 1) + '<br>' + value[1].axisValue + ':' + (value[1].value - 1)
  1214. }
  1215. option.yAxis[0] = {
  1216. type: 'log',
  1217. min: 1,
  1218. logBase: 10,
  1219. axisLine: {
  1220. show: false,
  1221. },
  1222. splitLine: {
  1223. show: true,
  1224. lineStyle: {
  1225. color: '#68b4dd66',
  1226. type: 'dashed',
  1227. },
  1228. },
  1229. axisLabel: {
  1230. show: true,
  1231. formatter: function (value) {
  1232. return value === 1 ? 0 : value
  1233. },
  1234. textStyle: {
  1235. color: 'rgba(250,250,250,0.6)',
  1236. },
  1237. },
  1238. }
  1239. myChart.setOption(option)
  1240. },
  1241. initChartR2 () {
  1242. let myChart = echarts.init(this.$refs['echartR2'])
  1243. let commonOptions = this.commonOption
  1244. commonOptions.yAxis[0].splitNumber = 2
  1245. let dataTemp = []
  1246. let dataTemp2 = []
  1247. dataR2[0].forEach(item => {
  1248. dataTemp.push(item + 1)
  1249. })
  1250. dataR2[1].forEach(item => {
  1251. dataTemp2.push(item + 1)
  1252. })
  1253. let option = {
  1254. ..._.cloneDeep(commonOptions),
  1255. series: [
  1256. {
  1257. name: '录用结果公示次数',
  1258. type: 'bar',
  1259. barWidth: 15,
  1260. itemStyle: {
  1261. normal: {
  1262. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1263. {
  1264. offset: 0,
  1265. color: '#69c0ff',
  1266. },
  1267. {
  1268. offset: 1,
  1269. color: '#082550',
  1270. },
  1271. ]),
  1272. },
  1273. },
  1274. data: dataTemp,
  1275. },
  1276. {
  1277. name: '录用结果公示累计公示人数',
  1278. type: 'bar',
  1279. barWidth: 15,
  1280. itemStyle: {
  1281. normal: {
  1282. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1283. {
  1284. offset: 0,
  1285. color: '#45DAD1',
  1286. },
  1287. {
  1288. offset: 1,
  1289. color: '#082550',
  1290. },
  1291. ]),
  1292. },
  1293. },
  1294. data: dataTemp2,
  1295. },
  1296. ],
  1297. }
  1298. option.title.text = '当前各省属企业录用结果公示人次'
  1299. option.legend.data = ['录用结果公示次数', '录用结果公示累计公示人数']
  1300. option.legend.show = true
  1301. option.tooltip.formatter = function (value) {
  1302. return value[0].axisValue + ':' + (value[0].value - 1) + '<br>' + value[1].axisValue + ':' + (value[1].value - 1)
  1303. }
  1304. option.yAxis[0] = {
  1305. type: 'log',
  1306. min: 1,
  1307. logBase: 10,
  1308. axisLine: {
  1309. show: false,
  1310. },
  1311. splitLine: {
  1312. show: true,
  1313. lineStyle: {
  1314. color: '#68b4dd66',
  1315. type: 'dashed',
  1316. },
  1317. },
  1318. axisLabel: {
  1319. show: true,
  1320. formatter: function (value) {
  1321. return value === 1 ? 0 : value
  1322. },
  1323. textStyle: {
  1324. color: 'rgba(250,250,250,0.6)',
  1325. },
  1326. },
  1327. }
  1328. myChart.setOption(option)
  1329. },
  1330. initChartR3 () {
  1331. let myChart = echarts.init(this.$refs['echartR3'])
  1332. let commonOptions = this.commonOption
  1333. commonOptions.yAxis[0].splitNumber = 2
  1334. let option = {
  1335. ..._.cloneDeep(commonOptions),
  1336. series: [
  1337. {
  1338. name: '2022年利润(万)',
  1339. type: 'bar',
  1340. barWidth: 15,
  1341. itemStyle: {
  1342. normal: {
  1343. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1344. {
  1345. offset: 0,
  1346. color: '#69c0ff',
  1347. },
  1348. {
  1349. offset: 1,
  1350. color: '#082550',
  1351. },
  1352. ]),
  1353. },
  1354. },
  1355. data: dataR3[0],
  1356. },
  1357. {
  1358. name: '2022年累计招聘数',
  1359. type: 'bar',
  1360. barWidth: 15,
  1361. itemStyle: {
  1362. normal: {
  1363. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1364. {
  1365. offset: 0,
  1366. color: '#45DAD1',
  1367. },
  1368. {
  1369. offset: 1,
  1370. color: '#082550',
  1371. },
  1372. ]),
  1373. },
  1374. },
  1375. data: dataR3[1],
  1376. },
  1377. ],
  1378. }
  1379. option.title.text = '各省属企业年利润与当年累计招聘人数'
  1380. option.legend.data = ['2022年利润(万)', '2022年累计招聘数']
  1381. option.legend.show = true
  1382. option.yAxis[0] = {
  1383. type: 'log',
  1384. min: 1,
  1385. logBase: 10,
  1386. axisLine: {
  1387. show: false,
  1388. },
  1389. splitLine: {
  1390. show: true,
  1391. lineStyle: {
  1392. color: '#68b4dd66',
  1393. type: 'dashed',
  1394. },
  1395. },
  1396. axisLabel: {
  1397. show: true,
  1398. formatter: function (value) {
  1399. return value === 1 ? 0 : value
  1400. },
  1401. textStyle: {
  1402. color: 'rgba(250,250,250,0.6)',
  1403. },
  1404. },
  1405. }
  1406. myChart.setOption(option)
  1407. },
  1408. initChartR4 () {
  1409. let myChart = echarts.init(this.$refs['echartR4'])
  1410. let commonOptions = this.commonOption
  1411. commonOptions.yAxis[0].splitNumber = 2
  1412. let option = {
  1413. ..._.cloneDeep(commonOptions),
  1414. series: [
  1415. {
  1416. name: '2022年退出人数',
  1417. type: 'bar',
  1418. barWidth: 15,
  1419. itemStyle: {
  1420. normal: {
  1421. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1422. {
  1423. offset: 0,
  1424. color: '#69c0ff',
  1425. },
  1426. {
  1427. offset: 1,
  1428. color: '#082550',
  1429. },
  1430. ]),
  1431. },
  1432. },
  1433. data: dataR4[0],
  1434. },
  1435. {
  1436. name: '2022年累计招聘人数',
  1437. type: 'bar',
  1438. barWidth: 15,
  1439. itemStyle: {
  1440. normal: {
  1441. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1442. {
  1443. offset: 0,
  1444. color: '#45DAD1',
  1445. },
  1446. {
  1447. offset: 1,
  1448. color: '#082550',
  1449. },
  1450. ]),
  1451. },
  1452. },
  1453. data: dataR4[1],
  1454. },
  1455. ],
  1456. }
  1457. option.title.text = '各省属企业"退二进一"完成情况'
  1458. option.legend.data = ['2022年退出人数', '2022年累计招聘人数']
  1459. option.legend.show = true
  1460. option.yAxis[0] = {
  1461. type: 'log',
  1462. min: 1,
  1463. logBase: 10,
  1464. axisLine: {
  1465. show: false,
  1466. },
  1467. splitLine: {
  1468. show: true,
  1469. lineStyle: {
  1470. color: '#68b4dd66',
  1471. type: 'dashed',
  1472. },
  1473. },
  1474. axisLabel: {
  1475. show: true,
  1476. formatter: function (value) {
  1477. return value === 1 ? 0 : value
  1478. },
  1479. textStyle: {
  1480. color: 'rgba(250,250,250,0.6)',
  1481. },
  1482. },
  1483. }
  1484. myChart.setOption(option)
  1485. },
  1486. initChartR5 () {
  1487. let myChart = echarts.init(this.$refs['echartR5'])
  1488. let option = {
  1489. ..._.cloneDeep(this.commonOption),
  1490. series: [
  1491. {
  1492. name: '去年同期在岗职工平均薪酬',
  1493. type: 'bar',
  1494. barWidth: 15,
  1495. itemStyle: {
  1496. normal: {
  1497. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1498. {
  1499. offset: 0,
  1500. color: '#6682F5',
  1501. },
  1502. {
  1503. offset: 1,
  1504. color: '#082550',
  1505. },
  1506. ]),
  1507. },
  1508. },
  1509. data: fjxdataL1[0],
  1510. },
  1511. {
  1512. name: '在岗职工平均薪酬',
  1513. type: 'bar',
  1514. barWidth: 15,
  1515. itemStyle: {
  1516. normal: {
  1517. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1518. {
  1519. offset: 0,
  1520. color: '#69c0ff',
  1521. },
  1522. {
  1523. offset: 1,
  1524. color: '#082550',
  1525. },
  1526. ]),
  1527. },
  1528. },
  1529. data: fjxdataL1[1],
  1530. },
  1531. ],
  1532. }
  1533. option.title.text = '各省属企业在岗职工平均薪酬'
  1534. option.legend.data = ['去年同期在岗职工平均薪酬', '在岗职工平均薪酬']
  1535. option.legend.show = true
  1536. option.yAxis.push({
  1537. splitLine: {
  1538. show: false,
  1539. },
  1540. axisLine: {
  1541. show: false,
  1542. },
  1543. })
  1544. myChart.setOption(option)
  1545. },
  1546. initChartR6 () {
  1547. let myChart = echarts.init(this.$refs['echartR6'])
  1548. let option = {
  1549. ..._.cloneDeep(this.commonOption),
  1550. color: ['#69c0ff'],
  1551. series: [
  1552. {
  1553. name: '2022年利润累计涨幅率',
  1554. type: 'line',
  1555. smooth: true, //平滑曲线显示
  1556. showAllSymbol: true, //显示所有图形。
  1557. symbol: 'circle', //标记的图形为实心圆
  1558. symbolSize: 8, //标记的大小
  1559. smooth: false,
  1560. itemStyle: {
  1561. //折线拐点标志的样式
  1562. color: '#B889EA',
  1563. borderColor: '#B889EA',
  1564. width: 2,
  1565. shadowColor: '#B889EA',
  1566. shadowBlur: 4,
  1567. },
  1568. lineStyle: {
  1569. color: '#B889EA',
  1570. width: 2,
  1571. },
  1572. data: fjxdataL2[0],
  1573. },
  1574. {
  1575. name: '2022年薪酬累计涨幅率',
  1576. type: 'line',
  1577. smooth: true, //平滑曲线显示
  1578. showAllSymbol: true, //显示所有图形。
  1579. symbol: 'circle', //标记的图形为实心圆
  1580. symbolSize: 12, //标记的大小
  1581. smooth: false,
  1582. itemStyle: {
  1583. color: params => {
  1584. if (params.value > 0 && fjxdataL2[0][params.dataIndex] < 0) {
  1585. return 'yellow'
  1586. } else {
  1587. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1588. {
  1589. offset: 0,
  1590. color: '#69c0ff',
  1591. },
  1592. {
  1593. offset: 1,
  1594. color: '#082550',
  1595. },
  1596. ])
  1597. }
  1598. },
  1599. },
  1600. lineStyle: {
  1601. color: '#69C0FF',
  1602. width: 2,
  1603. },
  1604. data: fjxdataL2[1],
  1605. },
  1606. ],
  1607. }
  1608. option.title.text = '各省属企业月利润与月薪酬变动情况'
  1609. option.legend.data = ['2022年利润累计涨幅率', '2022年薪酬累计涨幅率']
  1610. option.tooltip.formatter = '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  1611. option.yAxis[0].axisLabel.formatter = '{value} %'
  1612. myChart.setOption(option)
  1613. },
  1614. initChartR7 () {
  1615. let myChart = echarts.init(this.$refs['echartR7'])
  1616. let option = {
  1617. ..._.cloneDeep(this.commonOption),
  1618. series: [
  1619. {
  1620. name: '全员绩效考核完成率',
  1621. type: 'bar',
  1622. barWidth: 15,
  1623. itemStyle: {
  1624. normal: {
  1625. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1626. {
  1627. offset: 0,
  1628. color: '#B889EA',
  1629. },
  1630. {
  1631. offset: 1,
  1632. color: '#082550',
  1633. },
  1634. ]),
  1635. },
  1636. },
  1637. data: fjxdataL3[0],
  1638. },
  1639. ],
  1640. }
  1641. option.title.text = '各省属企业全员绩效考核'
  1642. option.legend.show = false
  1643. option.tooltip.formatter = '{a0}:{c0}' + '%'
  1644. option.yAxis[0].axisLabel.formatter = '{value} %'
  1645. myChart.setOption(option)
  1646. },
  1647. initChartR8 () {
  1648. let myChart = echarts.init(this.$refs['echartR8'])
  1649. let option = {
  1650. ..._.cloneDeep(this.commonOption),
  1651. series: [
  1652. {
  1653. name: '任期制契约化完成率',
  1654. type: 'bar',
  1655. barWidth: 15,
  1656. itemStyle: {
  1657. normal: {
  1658. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1659. {
  1660. offset: 0,
  1661. color: '#43ede3',
  1662. },
  1663. {
  1664. offset: 1,
  1665. color: '#082550',
  1666. },
  1667. ]),
  1668. },
  1669. },
  1670. data: fjxdataL4[0],
  1671. },
  1672. ],
  1673. }
  1674. option.title.text = '各省属企业任期制契约化管理'
  1675. option.legend.show = false
  1676. option.tooltip.formatter = '{a0}:{c0}' + '%'
  1677. option.yAxis[0].axisLabel.formatter = '{value} %'
  1678. myChart.setOption(option)
  1679. },
  1680. },
  1681. })