index2.js 43 KB

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