index.js 41 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312
  1. let barImg =
  2. 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAtCAYAAAA6GuKaAAAAAXNSR0IArs4c6QAADNRJREFUaEPNmXmQFNd9x9/Zr3u6Z2ZndzkiLeYwYhctJUtgC8GGQ46MBLYsjAURQnKSckWKkz+SkuWUnarElqtSsV2W/Kccq+Kq6EIFGAwpEEFSWIRYgQKSIrFiF3EsBskcuztX3+/oVPfMLMMesKxklbtq6tXMTk9/+rff/v6OB8HEDzjxU4fOjCbyGxO5cP05Ezm/xlkPfF3w13PRsWAhAMurfytX1nb/8ne79SpQurp2xutYwOOCHy907Xt1awxahkOAQQCBEJXX8IOQCMQvxipQyY3EN3HFDdSArwk+HuhRgBcgMLuIEgDXxcnKc5X3Mqis9QdmKnlL85U1lZLJeiKrADgSfzYc+Krg14IeBrwcgdnnKpAxbAwqPAyyCgJhonRKR5HkCXSkFIQIJReHmKqy6ytAHAWKKALEkMkNDMG3SAA6Kzc08gZGxOBq0MOAF+Akur6PAG9EILQJSJsIaISYIsRKEAyURJFGMIg0CKIIAggjAMMIhkIChBUiQjpEkyAUApQdBTRLADqogK6ratQr/4FrgI8FPTpwLbqmQyyc0ZTgWOEUBRLjyACUSoQjRumS9f94d+7G6evyH53ZtH/jz/4bBpxz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BjZjd+3LpWbvPzEkb1P+3bBH9GNWznz8wvufMTJX+js2bd906fVjY/SmV/f3OMLX1n/52Zu6p/1du18slw4X6rNPazcDdm2xSsft/O/3/Penpc2RZx7inP305p7XBv8GhOm21f/zYZU4+R7jnZu/WH+/Kn+xj+ZNbl92Zof2QPndx3e/qsX/xATplqBM2ysUPdgjjLLIxFm8dCxNstb8uD3vmU1T763790D/zbj1o5/Kg9c2P7GCz9/DgEVCiDDeBgpPuVZ3tXBxzs1fej7q3JTp6/Lnz+zaf/zP9n1WUxNRwO/nHhqk6d4mD58Ps20eKg+cj6NqQRBOHI+HQ/XhyZJya7AJ5pPjwF+9Z0AS48LJpnIq34nAEAc2X4oP4udgDHA60Zn8TdiychmmMyu6/dbIgUBrGxfJEc8xo1n0Lg/+kPvuVwF/I97d2s4eL011mqWquP8ce0j1jesow3iR2toq3PTMXvdz2THdvjVr7YzNibpsD9cc6NztB/6f4ffQsan0xs3AAAAAElFTkSuQmCC'
  3. let app = new Vue({
  4. el: '#app',
  5. data() {
  6. return {
  7. year: '2022',
  8. config1: {
  9. number: [100],
  10. content: '{nt}个',
  11. },
  12. centerData: '',
  13. storageRecordConfig: {
  14. header: ['时间', '所属集团', '工作情况'],
  15. headerBGC: '#05507b33',
  16. oddRowBGC: '#69c0ff0f',
  17. evenRowBGC: '',
  18. headerHeight: '40',
  19. rowNum: 4,
  20. align: ['center'],
  21. data: [
  22. ['2022年1月', '山西焦煤', '已经开展高层次人才引进工作'],
  23. ['2022年2月', '山西文旅', '不能按期完成序时进度'],
  24. ['2022年3月', '大地控股', '已经实现中长期激励机制贯彻'],
  25. ['2022年4月', '国际能源', '薪酬结果没有做到公开'],
  26. ['2022年5月', '山西焦煤', '已经开展高层次人才引进工作'],
  27. ['2022年6月', '山西焦煤', '不能按期完成序时进度'],
  28. ],
  29. },
  30. storageRecordConfig2: {
  31. header: ['企业名称', '预警内容', '数据抓取日期', '累计未获取数据日期'],
  32. headerBGC: '#05507b33',
  33. oddRowBGC: '#05507b33',
  34. evenRowBGC: '',
  35. headerHeight: '40',
  36. rowNum: 4,
  37. align: ['center', 'center', 'center', 'center'],
  38. data: [
  39. ['山西焦煤', '经营业绩考核延迟更新', '2022.12.01-12.31', '3天'],
  40. ['山西文旅', '六定长效机制情况未更新', '2022.12.01-12.31', '7天'],
  41. ['大地控股', '经营业绩考核延迟更新', '2022.12.01-12.31', '3天'],
  42. ['国际能源', '六定长效机制情况未更新', '2022.12.01-12.31', '1天'],
  43. ['山西焦煤', '经营业绩考核延迟更新', '2022.12.01-12.31', '3天'],
  44. ['山西焦煤', '六定长效机制情况未更新', '2022.12.01-12.31', '3天'],
  45. ],
  46. },
  47. companyList: companyList,
  48. commonOption: {
  49. title: {
  50. text: 'xxx',
  51. x: 'center',
  52. y: '3%',
  53. textStyle: {
  54. color: '#69C0FF',
  55. fontSize: 24,
  56. },
  57. },
  58. tooltip: {
  59. trigger: 'axis',
  60. axisPointer: {
  61. type: 'shadow',
  62. },
  63. },
  64. grid: {
  65. top: '22%',
  66. right: '5%',
  67. left: '8%',
  68. bottom: '20%',
  69. },
  70. legend: {
  71. data: '',
  72. top: '12%',
  73. right: '5%',
  74. textStyle: {
  75. color: 'rgba(250,250,250,0.6)',
  76. fontSize: 16,
  77. },
  78. },
  79. xAxis: {
  80. data: companyList.map(item => item.name),
  81. axisLine: {
  82. show: true, //隐藏X轴轴线
  83. lineStyle: {
  84. color: '#005094',
  85. width: 1,
  86. },
  87. },
  88. axisTick: {
  89. show: false, //隐藏X轴刻度
  90. },
  91. axisLabel: {
  92. show: true,
  93. rotate: 50,
  94. textStyle: {
  95. color: 'rgba(255,255,255,0.6)', //X轴文字颜色
  96. fontSize: 16,
  97. },
  98. },
  99. },
  100. yAxis: [
  101. {
  102. type: 'value',
  103. nameTextStyle: {
  104. color: '#ebf8ac',
  105. fontSize: 16,
  106. },
  107. splitLine: {
  108. show: true,
  109. lineStyle: {
  110. color: '#68b4dd66',
  111. type: 'dashed',
  112. },
  113. },
  114. axisLine: {
  115. show: false,
  116. },
  117. axisLabel: {
  118. show: true,
  119. textStyle: {
  120. color: 'rgba(250,250,250,0.6)',
  121. fontSize: 16,
  122. },
  123. },
  124. },
  125. ],
  126. },
  127. }
  128. },
  129. mounted() {
  130. this.centerData = data
  131. // 左侧图表
  132. this.initChartL1()
  133. this.initChartL2()
  134. this.initChartL3()
  135. this.initChartL4()
  136. this.initChartL5()
  137. this.initChartL6()
  138. this.initChartL7()
  139. this.initChartL8()
  140. // 中间图表
  141. this.initChartC1()
  142. this.initChartC2()
  143. // 右侧图表
  144. this.initChartR1()
  145. this.initChartR2()
  146. this.initChartR3()
  147. this.initChartR4()
  148. this.initChartR5()
  149. this.initChartR6()
  150. this.initChartR7()
  151. this.initChartR8()
  152. },
  153. methods: {
  154. numFormat(value) {
  155. if (!value) return '0'
  156. var intPart = Number(value).toFixed(0) // 获取整数部分
  157. var intPartFormat = intPart.toString().replace(/(\d)(?=(?:\d{3})+$)/g, '$1,') // 将整数部分逢三一断
  158. var floatPart = '.00' // 预定义小数部分
  159. var value2Array = value.toString().split('.')
  160. // =2表示数据有小数位
  161. if (value2Array.length === 2) {
  162. floatPart = value2Array[1].toString() // 拿到小数部分
  163. if (floatPart.length === 1) {
  164. // 补0
  165. return intPartFormat + '.' + floatPart + '0'
  166. } else {
  167. return intPartFormat + '.' + floatPart
  168. }
  169. } else {
  170. return intPartFormat
  171. }
  172. },
  173. initChartL1() {
  174. let myChart = echarts.init(this.$refs['echartL1'])
  175. let option = {
  176. ..._.cloneDeep(this.commonOption),
  177. series: [
  178. {
  179. name: '总部机构数核定上限',
  180. type: 'line',
  181. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  182. smooth: true, //平滑曲线显示
  183. showAllSymbol: true, //显示所有图形。
  184. symbol: 'circle', //标记的图形为实心圆
  185. symbolSize: 8, //标记的大小
  186. smooth: false,
  187. itemStyle: {
  188. //折线拐点标志的样式
  189. color: '#fbe138',
  190. borderColor: '#fbe138',
  191. width: 2,
  192. shadowColor: '#fbe138',
  193. shadowBlur: 4,
  194. },
  195. lineStyle: {
  196. color: '#fbe138',
  197. width: 2,
  198. },
  199. data: dataL1[2],
  200. },
  201. {
  202. name: '六定改革前总部机构数',
  203. type: 'bar',
  204. barWidth: 15,
  205. itemStyle: {
  206. normal: {
  207. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  208. {
  209. offset: 0,
  210. color: '#43ede3',
  211. },
  212. {
  213. offset: 1,
  214. color: '#082550',
  215. },
  216. ]),
  217. },
  218. },
  219. data: dataL1[0],
  220. },
  221. {
  222. name: '当前各省属企业总部机构数',
  223. type: 'bar',
  224. barWidth: 15,
  225. itemStyle: {
  226. normal: {
  227. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  228. {
  229. offset: 0,
  230. color: '#69c0ff',
  231. },
  232. {
  233. offset: 1,
  234. color: '#082550',
  235. },
  236. ]),
  237. },
  238. },
  239. data: dataL1[1],
  240. },
  241. ],
  242. }
  243. option.title.text = '当前各省属企业总部机构数'
  244. option.legend.data = ['六定改革前总部机构数', '当前各省属企业总部机构数', '总部机构数核定上限']
  245. option.yAxis.push({
  246. splitLine: {
  247. show: false,
  248. },
  249. axisLine: {
  250. show: false,
  251. },
  252. })
  253. myChart.setOption(option)
  254. },
  255. initChartL2() {
  256. let myChart = echarts.init(this.$refs['echartL2'])
  257. let option = {
  258. ..._.cloneDeep(this.commonOption),
  259. series: [
  260. {
  261. name: '当前共享服务中心/事业部数',
  262. type: 'bar',
  263. barWidth: 15,
  264. itemStyle: {
  265. normal: {
  266. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  267. {
  268. offset: 0,
  269. color: '#69c0ff',
  270. },
  271. {
  272. offset: 1,
  273. color: '#082550',
  274. },
  275. ]),
  276. },
  277. },
  278. data: dataL2[0],
  279. },
  280. {
  281. name: '共享服务中心/事业部核定上限',
  282. type: 'line',
  283. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  284. smooth: true, //平滑曲线显示
  285. showAllSymbol: true, //显示所有图形。
  286. symbol: 'circle', //标记的图形为实心圆
  287. symbolSize: 8, //标记的大小
  288. smooth: false,
  289. itemStyle: {
  290. //折线拐点标志的样式
  291. color: '#fbe138',
  292. borderColor: '#fbe138',
  293. width: 2,
  294. shadowColor: '#fbe138',
  295. shadowBlur: 4,
  296. },
  297. lineStyle: {
  298. color: '#fbe138',
  299. width: 2,
  300. },
  301. data: dataL2[1],
  302. },
  303. ],
  304. }
  305. option.title.text = '各省属企业共享服务中心/事业部数'
  306. option.legend.data = ['当前共享服务中心/事业部数', '共享服务中心/事业部核定上限']
  307. option.yAxis.push({
  308. splitLine: {
  309. show: false,
  310. },
  311. axisLine: {
  312. show: false,
  313. },
  314. })
  315. myChart.setOption(option)
  316. },
  317. initChartL3() {
  318. let myChart = echarts.init(this.$refs['echartL3'])
  319. console.log(this.commonOption, 'this.commonOption')
  320. let option = {
  321. ..._.cloneDeep(this.commonOption),
  322. series: [
  323. {
  324. name: '当前管理人员数',
  325. type: 'bar',
  326. barWidth: 15,
  327. itemStyle: {
  328. normal: {
  329. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  330. {
  331. offset: 0,
  332. color: '#5e7ae9',
  333. },
  334. {
  335. offset: 1,
  336. color: '#082550',
  337. },
  338. ]),
  339. },
  340. },
  341. data: dataL3[0],
  342. },
  343. {
  344. name: '管理人员数占总人数比值',
  345. type: 'line',
  346. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  347. smooth: true, //平滑曲线显示
  348. showAllSymbol: true, //显示所有图形。
  349. symbol: 'circle', //标记的图形为实心圆
  350. symbolSize: 8, //标记的大小
  351. smooth: false,
  352. itemStyle: {
  353. //折线拐点标志的样式
  354. color: '#fbe138',
  355. borderColor: '#fbe138',
  356. width: 2,
  357. shadowColor: '#fbe138',
  358. shadowBlur: 4,
  359. },
  360. lineStyle: {
  361. color: '#fbe138',
  362. width: 2,
  363. },
  364. data: dataL3[1],
  365. },
  366. ],
  367. }
  368. option.title.text = '各省属企业管理人员数'
  369. option.legend.data = ['当前管理人员数', '管理人员数占总人数比值']
  370. option.yAxis.push({
  371. type: 'value',
  372. axisLine: {
  373. show: false,
  374. },
  375. splitLine: {
  376. show: false,
  377. },
  378. axisLabel: {
  379. show: true,
  380. formatter: '{value} %',
  381. textStyle: {
  382. color: 'rgba(250,250,250,0.6)',
  383. },
  384. },
  385. })
  386. myChart.setOption(option)
  387. },
  388. initChartL4() {
  389. let myChart = echarts.init(this.$refs['echartL4'])
  390. let option = {
  391. ..._.cloneDeep(this.commonOption),
  392. series: [
  393. {
  394. name: '六定改革前总部中层管理人数',
  395. type: 'bar',
  396. barWidth: 15,
  397. itemStyle: {
  398. normal: {
  399. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  400. {
  401. offset: 0,
  402. color: '#69c0ff',
  403. },
  404. {
  405. offset: 1,
  406. color: '#082550',
  407. },
  408. ]),
  409. },
  410. },
  411. data: dataL4[0],
  412. },
  413. {
  414. name: '当前总部中层管理人数',
  415. type: 'bar',
  416. barWidth: 15,
  417. itemStyle: {
  418. normal: {
  419. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  420. {
  421. offset: 0,
  422. color: '#6480f3',
  423. },
  424. {
  425. offset: 1,
  426. color: '#082550',
  427. },
  428. ]),
  429. },
  430. },
  431. data: dataL4[1],
  432. },
  433. ],
  434. }
  435. option.title.text = '各省属企业总部中层管理人数'
  436. option.legend.data = ['六定改革前总部中层管理人数', '当前总部中层管理人数']
  437. option.legend.show = true
  438. option.yAxis.push({
  439. splitLine: {
  440. show: false,
  441. },
  442. axisLine: {
  443. show: false,
  444. },
  445. })
  446. myChart.setOption(option)
  447. },
  448. initChartL5() {
  449. let myChart = echarts.init(this.$refs['echartL5'])
  450. let option = {
  451. ..._.cloneDeep(this.commonOption),
  452. series: [
  453. {
  454. name: '各省属企业总人数',
  455. type: 'bar',
  456. barWidth: 15,
  457. itemStyle: {
  458. normal: {
  459. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  460. {
  461. offset: 0,
  462. color: '#69c0ff',
  463. },
  464. {
  465. offset: 1,
  466. color: '#082550',
  467. },
  468. ]),
  469. },
  470. },
  471. data: dataL5[0],
  472. },
  473. {
  474. name: '去年同期人数变化率',
  475. type: 'line',
  476. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  477. smooth: true, //平滑曲线显示
  478. showAllSymbol: true, //显示所有图形。
  479. symbol: 'circle', //标记的图形为实心圆
  480. symbolSize: 8, //标记的大小
  481. smooth: false,
  482. itemStyle: {
  483. //折线拐点标志的样式
  484. color: '#b889ea',
  485. borderColor: '#b889ea',
  486. width: 2,
  487. shadowColor: '#b889ea',
  488. shadowBlur: 4,
  489. },
  490. lineStyle: {
  491. color: '#b889ea',
  492. width: 2,
  493. },
  494. data: dataL5[1],
  495. },
  496. ],
  497. }
  498. option.title.text = '各省属企业总人数'
  499. option.legend.data = ['各省属企业总人数', '去年同期人数变化率']
  500. option.legend.show = true
  501. option.yAxis.push({
  502. type: 'value',
  503. axisLine: {
  504. show: false,
  505. },
  506. splitLine: {
  507. show: false,
  508. },
  509. axisLabel: {
  510. show: true,
  511. formatter: '{value} %',
  512. textStyle: {
  513. color: 'rgba(250,250,250,0.6)',
  514. },
  515. },
  516. })
  517. myChart.setOption(option)
  518. },
  519. initChartL6() {
  520. let myChart = echarts.init(this.$refs['echartL6'])
  521. let option = {
  522. ..._.cloneDeep(this.commonOption),
  523. series: [
  524. {
  525. name: '总部员额数',
  526. type: 'bar',
  527. barWidth: 15,
  528. itemStyle: {
  529. normal: {
  530. barBorderRadius: [10, 10, 0, 0],
  531. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  532. {
  533. offset: 0,
  534. color: '#43ede3',
  535. },
  536. {
  537. offset: 1,
  538. color: '#082550',
  539. },
  540. ]),
  541. },
  542. },
  543. data: dataL6[0],
  544. },
  545. {
  546. name: '总部员额数核定上限',
  547. type: 'line',
  548. barWidth: 15,
  549. itemStyle: {
  550. normal: {
  551. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  552. {
  553. offset: 0,
  554. color: '#fbe138',
  555. },
  556. {
  557. offset: 1,
  558. color: '#082550',
  559. },
  560. ]),
  561. },
  562. },
  563. data: dataL6[1],
  564. },
  565. ],
  566. }
  567. option.title.text = '各省属企业总部员额数'
  568. option.legend.data = ['总部员额数', '总部员额数核定上限']
  569. option.legend.show = true
  570. option.yAxis.push({
  571. splitLine: {
  572. show: false,
  573. },
  574. axisLine: {
  575. show: false,
  576. },
  577. })
  578. myChart.setOption(option)
  579. },
  580. initChartL7() {
  581. let myChart = echarts.init(this.$refs['echartL7'])
  582. let option = {
  583. ..._.cloneDeep(this.commonOption),
  584. series: [
  585. {
  586. name: '当前全员劳动生产率(万/人)',
  587. type: 'bar',
  588. barWidth: 15,
  589. itemStyle: {
  590. normal: {
  591. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  592. {
  593. offset: 0,
  594. color: '#43ede3',
  595. },
  596. {
  597. offset: 1,
  598. color: '#082550',
  599. },
  600. ]),
  601. },
  602. },
  603. markLine: {
  604. data: [{ type: 'average', name: 'Avg' }],
  605. },
  606. data: dataL7[0],
  607. },
  608. {
  609. name: '劳动生产率同比变化',
  610. type: 'line',
  611. barWidth: 15,
  612. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  613. itemStyle: {
  614. normal: {
  615. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  616. {
  617. offset: 0,
  618. color: '#b889ea',
  619. },
  620. {
  621. offset: 1,
  622. color: '#082550',
  623. },
  624. ]),
  625. },
  626. },
  627. markLine: {
  628. data: [
  629. // {
  630. // name: '省属企业平均水平(万/人)',
  631. // yAxis: 50.13,
  632. // lineStyle: {
  633. // color: '#fff',
  634. // },
  635. // label: {
  636. // formatter: '{b}',
  637. // position: 'middle',
  638. // color: '#fff',
  639. // },
  640. // },
  641. {
  642. name: '央企平均水平(万/人)',
  643. yAxis: 69.4,
  644. lineStyle: {
  645. color: '#fff',
  646. },
  647. label: {
  648. formatter: '{b}',
  649. position: 'middle',
  650. color: '#fff',
  651. },
  652. },
  653. ],
  654. label: {
  655. distance: [20, 8],
  656. },
  657. },
  658. data: dataL7[1],
  659. },
  660. ],
  661. }
  662. option.title.text = '各省属企业全员劳动生产率'
  663. option.legend.data = ['当前全员劳动生产率(万/人)', '劳动生产率同比变化']
  664. option.legend.show = true
  665. option.yAxis.push({
  666. type: 'value',
  667. axisLine: {
  668. show: false,
  669. },
  670. splitLine: {
  671. show: false,
  672. },
  673. axisLabel: {
  674. show: true,
  675. formatter: '{value} %',
  676. textStyle: {
  677. color: 'rgba(250,250,250,0.6)',
  678. },
  679. },
  680. })
  681. myChart.setOption(option)
  682. },
  683. initChartL8() {
  684. let myChart = echarts.init(this.$refs['echartL8'])
  685. let option = {
  686. ..._.cloneDeep(this.commonOption),
  687. series: [
  688. {
  689. name: '当前人工成本利润率',
  690. type: 'bar',
  691. barWidth: 15,
  692. itemStyle: {
  693. normal: {
  694. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  695. {
  696. offset: 0,
  697. color: '#5e7ae9',
  698. },
  699. {
  700. offset: 1,
  701. color: '#082550',
  702. },
  703. ]),
  704. },
  705. },
  706. data: dataL8[0],
  707. },
  708. {
  709. name: '人工成本利润率同比变化',
  710. type: 'line',
  711. itemStyle: {
  712. normal: {
  713. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  714. {
  715. offset: 0,
  716. color: '#b889ea',
  717. },
  718. {
  719. offset: 1,
  720. color: '#082550',
  721. },
  722. ]),
  723. },
  724. },
  725. data: dataL8[1],
  726. },
  727. ],
  728. }
  729. option.title.text = '各省属企业人工成本利润率'
  730. option.legend.data = ['当前人工成本利润率', '人工成本利润率同比变化']
  731. option.legend.show = true
  732. option.yAxis.push({
  733. splitLine: {
  734. show: false,
  735. },
  736. axisLine: {
  737. show: false,
  738. },
  739. })
  740. myChart.setOption(option)
  741. },
  742. // 中间图表---------------------------------------------开始
  743. initChartC1() {
  744. let myChart = echarts.init(this.$refs['echartC1'])
  745. let option = {
  746. ..._.cloneDeep(this.commonOption),
  747. series: [
  748. {
  749. name: '全员劳动生产率',
  750. type: 'line',
  751. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  752. smooth: true, //平滑曲线显示
  753. showAllSymbol: true, //显示所有图形。
  754. symbol: 'circle', //标记的图形为实心圆
  755. symbolSize: 8, //标记的大小
  756. smooth: false,
  757. itemStyle: {
  758. //折线拐点标志的样式
  759. color: '#B889EA',
  760. borderColor: '#B889EA',
  761. width: 2,
  762. shadowColor: '#B889EA',
  763. shadowBlur: 4,
  764. },
  765. lineStyle: {
  766. color: '#B889EA',
  767. width: 2,
  768. },
  769. data: [60, 50, 80, 80, 90, 55, 40, 60, 50, 80, 90, 55, 40, 60, 50, 90, 55, 40],
  770. },
  771. {
  772. name: '全员劳动生产率同比',
  773. type: 'bar',
  774. barWidth: 15,
  775. itemStyle: {
  776. normal: {
  777. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  778. {
  779. offset: 0,
  780. color: '#69c0ff',
  781. },
  782. {
  783. offset: 1,
  784. color: '#082550',
  785. },
  786. ]),
  787. },
  788. },
  789. data: [50, 40, 60, 20, 45, 30, 60, 100, 45, 40, 50, 20, 60, 80, 45, 70, 50, 40],
  790. },
  791. ],
  792. }
  793. option.title.text = '各集团全员劳动生产率情况'
  794. option.legend.data = ['全员劳动生产率同比', '全员劳动生产率']
  795. option.legend.show = true
  796. option.yAxis.push({
  797. splitLine: {
  798. show: false,
  799. },
  800. axisLine: {
  801. show: false,
  802. },
  803. })
  804. myChart.setOption(option)
  805. },
  806. initChartC2() {
  807. let myChart = echarts.init(this.$refs['echartC2'])
  808. let option = {
  809. ..._.cloneDeep(this.commonOption),
  810. series: [
  811. {
  812. name: '计划招聘数',
  813. type: 'line',
  814. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  815. smooth: true, //平滑曲线显示
  816. showAllSymbol: true, //显示所有图形。
  817. symbol: 'circle', //标记的图形为实心圆
  818. symbolSize: 8, //标记的大小
  819. smooth: false,
  820. itemStyle: {
  821. //折线拐点标志的样式
  822. color: '#B889EA',
  823. borderColor: '#B889EA',
  824. width: 2,
  825. shadowColor: '#B889EA',
  826. shadowBlur: 4,
  827. },
  828. lineStyle: {
  829. color: '#B889EA',
  830. width: 2,
  831. },
  832. data: [60, 50, 80, 80, 90, 55, 40, 60, 50, 80, 90, 55, 40, 60, 50, 90, 55, 40],
  833. },
  834. {
  835. name: '年利润亿元',
  836. type: 'bar',
  837. barWidth: 15,
  838. itemStyle: {
  839. normal: {
  840. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  841. {
  842. offset: 0,
  843. color: '#69c0ff',
  844. },
  845. {
  846. offset: 1,
  847. color: '#082550',
  848. },
  849. ]),
  850. },
  851. },
  852. data: [50, 40, 60, 20, 45, 30, 60, 100, 45, 40, 50, 20, 60, 80, 45, 70, 50, 40],
  853. },
  854. ],
  855. }
  856. option.title.text = '各省属企业年利润与当前计划招聘人数'
  857. option.legend.data = ['年利润亿元', '计划招聘数']
  858. option.legend.show = true
  859. option.yAxis.push({
  860. splitLine: {
  861. show: false,
  862. },
  863. axisLine: {
  864. show: false,
  865. },
  866. })
  867. myChart.setOption(option)
  868. },
  869. // 右侧图表---------------------------------------------开始
  870. initChartR1() {
  871. let myChart = echarts.init(this.$refs['echartR1'])
  872. let option = {
  873. ..._.cloneDeep(this.commonOption),
  874. series: [
  875. {
  876. name: '招聘需求公告次数',
  877. type: 'bar',
  878. barWidth: 15,
  879. itemStyle: {
  880. normal: {
  881. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  882. {
  883. offset: 0,
  884. color: '#69c0ff',
  885. },
  886. {
  887. offset: 1,
  888. color: '#082550',
  889. },
  890. ]),
  891. },
  892. },
  893. data: dataR1[0],
  894. },
  895. {
  896. name: '招聘需求公告累计招聘人次',
  897. type: 'bar',
  898. barWidth: 15,
  899. itemStyle: {
  900. normal: {
  901. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  902. {
  903. offset: 0,
  904. color: '#43ede3',
  905. },
  906. {
  907. offset: 1,
  908. color: '#082550',
  909. },
  910. ]),
  911. },
  912. },
  913. data: dataR1[1],
  914. },
  915. ],
  916. }
  917. option.title.text = '当前各省属企业招聘需求公示人次'
  918. option.legend.data = ['招聘需求公告次数', '招聘需求公告累计招聘人次']
  919. option.legend.show = true
  920. option.yAxis.push({
  921. splitLine: {
  922. show: false,
  923. },
  924. axisLine: {
  925. show: false,
  926. },
  927. })
  928. myChart.setOption(option)
  929. },
  930. initChartR2() {
  931. let myChart = echarts.init(this.$refs['echartR2'])
  932. let option = {
  933. ..._.cloneDeep(this.commonOption),
  934. series: [
  935. {
  936. name: '2022年录用结果累计公示次数',
  937. type: 'bar',
  938. barWidth: 15,
  939. itemStyle: {
  940. normal: {
  941. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  942. {
  943. offset: 0,
  944. color: '#69c0ff',
  945. },
  946. {
  947. offset: 1,
  948. color: '#082550',
  949. },
  950. ]),
  951. },
  952. },
  953. data: dataR2[0],
  954. },
  955. {
  956. name: '2022年录用结果公告累计招聘人数',
  957. type: 'bar',
  958. barWidth: 15,
  959. itemStyle: {
  960. normal: {
  961. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  962. {
  963. offset: 0,
  964. color: '#45DAD1',
  965. },
  966. {
  967. offset: 1,
  968. color: '#082550',
  969. },
  970. ]),
  971. },
  972. },
  973. data: dataR2[1],
  974. },
  975. ],
  976. }
  977. option.title.text = '当前各省属企业录用结果公示人次'
  978. option.legend.data = [ '2022年录用结果累计公示次数', '2022年录用结果公告累计招聘人数' ]
  979. option.legend.show = true
  980. option.yAxis.push({
  981. splitLine: {
  982. show: false,
  983. },
  984. axisLine: {
  985. show: false,
  986. },
  987. })
  988. myChart.setOption(option)
  989. },
  990. initChartR3() {
  991. let myChart = echarts.init(this.$refs['echartR3'])
  992. let option = {
  993. ..._.cloneDeep(this.commonOption),
  994. series: [
  995. {
  996. name: '2022年利润(万)',
  997. type: 'bar',
  998. barWidth: 15,
  999. itemStyle: {
  1000. normal: {
  1001. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1002. {
  1003. offset: 0,
  1004. color: '#69c0ff',
  1005. },
  1006. {
  1007. offset: 1,
  1008. color: '#082550',
  1009. },
  1010. ]),
  1011. },
  1012. },
  1013. data: dataR3[0],
  1014. },
  1015. {
  1016. name: '2022年累计招聘数',
  1017. type: 'bar',
  1018. barWidth: 15,
  1019. itemStyle: {
  1020. normal: {
  1021. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1022. {
  1023. offset: 0,
  1024. color: '#45DAD1',
  1025. },
  1026. {
  1027. offset: 1,
  1028. color: '#082550',
  1029. },
  1030. ]),
  1031. },
  1032. },
  1033. data: dataR3[1],
  1034. },
  1035. ],
  1036. }
  1037. option.title.text = '各省属企业年利润与当前招聘人数'
  1038. option.legend.data = ['2022年利润(万)', '2022年累计招聘数']
  1039. option.legend.show = true
  1040. option.yAxis.push({
  1041. splitLine: {
  1042. show: false,
  1043. },
  1044. axisLine: {
  1045. show: false,
  1046. },
  1047. })
  1048. myChart.setOption(option)
  1049. },
  1050. initChartR4() {
  1051. let myChart = echarts.init(this.$refs['echartR4'])
  1052. let option = {
  1053. ..._.cloneDeep(this.commonOption),
  1054. series: [
  1055. {
  1056. name: '2022年退出人数',
  1057. type: 'bar',
  1058. barWidth: 15,
  1059. itemStyle: {
  1060. normal: {
  1061. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1062. {
  1063. offset: 0,
  1064. color: '#69c0ff',
  1065. },
  1066. {
  1067. offset: 1,
  1068. color: '#082550',
  1069. },
  1070. ]),
  1071. },
  1072. },
  1073. data: dataR4[0],
  1074. },
  1075. {
  1076. name: '2022年累计招聘人数',
  1077. type: 'bar',
  1078. barWidth: 15,
  1079. itemStyle: {
  1080. normal: {
  1081. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1082. {
  1083. offset: 0,
  1084. color: '#45DAD1',
  1085. },
  1086. {
  1087. offset: 1,
  1088. color: '#082550',
  1089. },
  1090. ]),
  1091. },
  1092. },
  1093. data: dataR4[1],
  1094. },
  1095. ],
  1096. }
  1097. option.title.text = '各省属企业退二进一完成情况'
  1098. option.legend.data = ['2022年退出人数', '2022年累计招聘人数']
  1099. option.legend.show = true
  1100. option.yAxis.push({
  1101. splitLine: {
  1102. show: false,
  1103. },
  1104. axisLine: {
  1105. show: false,
  1106. },
  1107. })
  1108. myChart.setOption(option)
  1109. },
  1110. initChartR5() {
  1111. let myChart = echarts.init(this.$refs['echartR5'])
  1112. let option = {
  1113. ..._.cloneDeep(this.commonOption),
  1114. series: [
  1115. {
  1116. name: '去年同期在岗职工平均薪酬',
  1117. type: 'bar',
  1118. barWidth: 15,
  1119. itemStyle: {
  1120. normal: {
  1121. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1122. {
  1123. offset: 0,
  1124. color: '#6682F5',
  1125. },
  1126. {
  1127. offset: 1,
  1128. color: '#082550',
  1129. },
  1130. ]),
  1131. },
  1132. },
  1133. data: fjxdataL1[0],
  1134. },
  1135. {
  1136. name: '在岗职工平均薪酬',
  1137. type: 'bar',
  1138. barWidth: 15,
  1139. itemStyle: {
  1140. normal: {
  1141. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1142. {
  1143. offset: 0,
  1144. color: '#69c0ff',
  1145. },
  1146. {
  1147. offset: 1,
  1148. color: '#082550',
  1149. },
  1150. ]),
  1151. },
  1152. },
  1153. data: fjxdataL1[1],
  1154. },
  1155. ],
  1156. }
  1157. option.title.text = '各省属企业在岗职工平均薪酬'
  1158. option.legend.data = ['去年同期在岗职工平均薪酬', '在岗职工平均薪酬']
  1159. option.legend.show = true
  1160. option.yAxis.push({
  1161. splitLine: {
  1162. show: false,
  1163. },
  1164. axisLine: {
  1165. show: false,
  1166. },
  1167. })
  1168. myChart.setOption(option)
  1169. },
  1170. initChartR6() {
  1171. let myChart = echarts.init(this.$refs['echartR6'])
  1172. let option = {
  1173. ..._.cloneDeep(this.commonOption),
  1174. series: [
  1175. {
  1176. name: '2022年利润累计涨幅率',
  1177. type: 'line',
  1178. smooth: true, //平滑曲线显示
  1179. showAllSymbol: true, //显示所有图形。
  1180. symbol: 'circle', //标记的图形为实心圆
  1181. symbolSize: 8, //标记的大小
  1182. smooth: false,
  1183. itemStyle: {
  1184. //折线拐点标志的样式
  1185. color: '#B889EA',
  1186. borderColor: '#B889EA',
  1187. width: 2,
  1188. shadowColor: '#B889EA',
  1189. shadowBlur: 4,
  1190. },
  1191. lineStyle: {
  1192. color: '#B889EA',
  1193. width: 2,
  1194. },
  1195. data: fjxdataL2[0],
  1196. },
  1197. {
  1198. name: '2022年薪酬累计涨幅率',
  1199. type: 'line',
  1200. barWidth: 15,
  1201. itemStyle: {
  1202. normal: {
  1203. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1204. {
  1205. offset: 0,
  1206. color: '#69C0FF',
  1207. },
  1208. {
  1209. offset: 1,
  1210. color: '#082550',
  1211. },
  1212. ]),
  1213. },
  1214. },
  1215. data: fjxdataL2[1],
  1216. },
  1217. ],
  1218. }
  1219. option.title.text = '各省属企业月利润与月薪酬变动情况'
  1220. option.legend.data = ['2022年利润累计涨幅率', '2022年薪酬累计涨幅率']
  1221. option.yAxis.push({
  1222. splitLine: {
  1223. show: false,
  1224. },
  1225. axisLine: {
  1226. show: false,
  1227. },
  1228. })
  1229. myChart.setOption(option)
  1230. },
  1231. initChartR7() {
  1232. let myChart = echarts.init(this.$refs['echartR7'])
  1233. let option = {
  1234. ..._.cloneDeep(this.commonOption),
  1235. series: [
  1236. {
  1237. name: '全员绩效考核完成率',
  1238. type: 'bar',
  1239. barWidth: 15,
  1240. itemStyle: {
  1241. normal: {
  1242. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1243. {
  1244. offset: 0,
  1245. color: '#B889EA',
  1246. },
  1247. {
  1248. offset: 1,
  1249. color: '#082550',
  1250. },
  1251. ]),
  1252. },
  1253. },
  1254. data: fjxdataL3[0],
  1255. },
  1256. ],
  1257. }
  1258. option.title.text = '各省属企业全员绩效考核'
  1259. // option.legend.data = ['劳动合同签约完成率', '目标值']
  1260. option.yAxis.push({
  1261. splitLine: {
  1262. show: false,
  1263. },
  1264. axisLine: {
  1265. show: false,
  1266. },
  1267. })
  1268. myChart.setOption(option)
  1269. },
  1270. initChartR8() {
  1271. let myChart = echarts.init(this.$refs['echartR8'])
  1272. let option = {
  1273. ..._.cloneDeep(this.commonOption),
  1274. series: [
  1275. {
  1276. name: '任期制考核完成率',
  1277. type: 'bar',
  1278. barWidth: 15,
  1279. itemStyle: {
  1280. normal: {
  1281. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1282. {
  1283. offset: 0,
  1284. color: '#43ede3',
  1285. },
  1286. {
  1287. offset: 1,
  1288. color: '#082550',
  1289. },
  1290. ]),
  1291. },
  1292. },
  1293. data: fjxdataL4[0],
  1294. },
  1295. ],
  1296. }
  1297. option.title.text = '各省属企业任期制考核'
  1298. option.yAxis.push({
  1299. splitLine: {
  1300. show: false,
  1301. },
  1302. axisLine: {
  1303. show: false,
  1304. },
  1305. })
  1306. myChart.setOption(option)
  1307. },
  1308. },
  1309. })