index.js 44 KB

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