index.js 41 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269
  1. let barImg =
  2. 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAtCAYAAAA6GuKaAAAAAXNSR0IArs4c6QAADNRJREFUaEPNmXmQFNd9x9/Zr3u6Z2ZndzkiLeYwYhctJUtgC8GGQ46MBLYsjAURQnKSckWKkz+SkuWUnarElqtSsV2W/Kccq+Kq6EIFGAwpEEFSWIRYgQKSIrFiF3EsBskcuztX3+/oVPfMLMMesKxklbtq6tXMTk9/+rff/v6OB8HEDzjxU4fOjCbyGxO5cP05Ezm/xlkPfF3w13PRsWAhAMurfytX1nb/8ne79SpQurp2xutYwOOCHy907Xt1awxahkOAQQCBEJXX8IOQCMQvxipQyY3EN3HFDdSArwk+HuhRgBcgMLuIEgDXxcnKc5X3Mqis9QdmKnlL85U1lZLJeiKrADgSfzYc+Krg14IeBrwcgdnnKpAxbAwqPAyyCgJhonRKR5HkCXSkFIQIJReHmKqy6ytAHAWKKALEkMkNDMG3SAA6Kzc08gZGxOBq0MOAF+Akur6PAG9EILQJSJsIaISYIsRKEAyURJFGMIg0CKIIAggjAMMIhkIChBUiQjpEkyAUApQdBTRLADqogK6ratQr/4FrgI8FPTpwLbqmQyyc0ZTgWOEUBRLjyACUSoQjRumS9f94d+7G6evyH53ZtH/jz/4bBpxzrCT0AAdYSiRdjgiVtiyFwDHFUNSvlMuYGh8NenTgcooAJSEwEDVxpKkQ0chk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X1n/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: 'line',
  831. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  832. smooth: true, //平滑曲线显示
  833. showAllSymbol: true, //显示所有图形。
  834. symbol: 'circle', //标记的图形为实心圆
  835. symbolSize: 8, //标记的大小
  836. smooth: false,
  837. itemStyle: {
  838. //折线拐点标志的样式
  839. color: '#B889EA',
  840. borderColor: '#B889EA',
  841. width: 2,
  842. shadowColor: '#B889EA',
  843. shadowBlur: 4,
  844. },
  845. lineStyle: {
  846. color: '#B889EA',
  847. width: 2,
  848. },
  849. data: [60, 50, 80, 80, 90, 55, 40, 60, 50, 80, 90, 55, 40, 60, 50, 90, 55, 40],
  850. },
  851. {
  852. name: '人工成本利润率同比',
  853. type: 'bar',
  854. barWidth: 15,
  855. itemStyle: {
  856. normal: {
  857. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  858. {
  859. offset: 0,
  860. color: '#69c0ff',
  861. },
  862. {
  863. offset: 1,
  864. color: '#082550',
  865. },
  866. ]),
  867. },
  868. },
  869. data: [50, 40, 60, 20, 45, 30, 60, 100, 45, 40, 50, 20, 60, 80, 45, 70, 50, 40],
  870. },
  871. ],
  872. }
  873. option.title.text = '各集团人工成本利润率情况'
  874. option.legend.data = ['人工成本利润率同比', '全员劳动生产率']
  875. option.legend.show = true
  876. option.yAxis.push({
  877. splitLine: {
  878. show: false,
  879. },
  880. axisLine: {
  881. show: false,
  882. },
  883. })
  884. myChart.setOption(option)
  885. },
  886. initChartR2() {
  887. let myChart = echarts.init(this.$refs['echartR2'])
  888. let option = {
  889. ..._.cloneDeep(this.commonOption),
  890. series: [
  891. {
  892. name: '2023年公开招聘数',
  893. type: 'bar',
  894. barWidth: 15,
  895. itemStyle: {
  896. normal: {
  897. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  898. {
  899. offset: 0,
  900. color: '#45DAD1',
  901. },
  902. {
  903. offset: 1,
  904. color: '#082550',
  905. },
  906. ]),
  907. },
  908. },
  909. data: [50, 40, 60, 20, 45, 30, 60, 100, 45, 40, 50, 20, 60, 80, 45, 70, 50, 40],
  910. },
  911. {
  912. name: '2022年退出人数',
  913. type: 'bar',
  914. barWidth: 15,
  915. itemStyle: {
  916. normal: {
  917. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  918. {
  919. offset: 0,
  920. color: '#69c0ff',
  921. },
  922. {
  923. offset: 1,
  924. color: '#082550',
  925. },
  926. ]),
  927. },
  928. },
  929. data: [60, 50, 80, 80, 90, 55, 40, 60, 50, 80, 90, 55, 40, 60, 50, 90, 55, 40],
  930. },
  931. ],
  932. }
  933. option.title.text = '当前各省属企业公开招聘数/退出人数对比'
  934. option.legend.data = ['2023年公开招聘数', '2022年退出人数']
  935. option.legend.show = true
  936. option.yAxis.push({
  937. splitLine: {
  938. show: false,
  939. },
  940. axisLine: {
  941. show: false,
  942. },
  943. })
  944. myChart.setOption(option)
  945. },
  946. initChartR3() {
  947. let myChart = echarts.init(this.$refs['echartR3'])
  948. let option = {
  949. ..._.cloneDeep(this.commonOption),
  950. series: [
  951. {
  952. name: '招聘需求公开次数',
  953. type: 'bar',
  954. barWidth: 15,
  955. itemStyle: {
  956. normal: {
  957. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  958. {
  959. offset: 0,
  960. color: '#45DAD1',
  961. },
  962. {
  963. offset: 1,
  964. color: '#082550',
  965. },
  966. ]),
  967. },
  968. },
  969. data: [50, 40, 60, 20, 45, 30, 60, 100, 45, 40, 50, 20, 60, 80, 45, 70, 50, 40],
  970. },
  971. {
  972. name: '招聘需求公告需要招聘数',
  973. type: 'bar',
  974. barWidth: 15,
  975. itemStyle: {
  976. normal: {
  977. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  978. {
  979. offset: 0,
  980. color: '#69c0ff',
  981. },
  982. {
  983. offset: 1,
  984. color: '#082550',
  985. },
  986. ]),
  987. },
  988. },
  989. data: [60, 50, 80, 80, 90, 55, 40, 60, 50, 80, 90, 55, 40, 60, 50, 90, 55, 40],
  990. },
  991. ],
  992. }
  993. option.title.text = '当前各省属企业招聘需求公示人次'
  994. option.legend.data = ['招聘需求公开次数', '招聘需求公告需要招聘数']
  995. option.legend.show = true
  996. option.yAxis.push({
  997. splitLine: {
  998. show: false,
  999. },
  1000. axisLine: {
  1001. show: false,
  1002. },
  1003. })
  1004. myChart.setOption(option)
  1005. },
  1006. initChartR4() {
  1007. let myChart = echarts.init(this.$refs['echartR4'])
  1008. let option = {
  1009. ..._.cloneDeep(this.commonOption),
  1010. series: [
  1011. {
  1012. name: '录用结果公告次数',
  1013. type: 'bar',
  1014. barWidth: 15,
  1015. itemStyle: {
  1016. normal: {
  1017. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1018. {
  1019. offset: 0,
  1020. color: '#6682F5',
  1021. },
  1022. {
  1023. offset: 1,
  1024. color: '#082550',
  1025. },
  1026. ]),
  1027. },
  1028. },
  1029. data: [50, 40, 60, 20, 45, 30, 60, 100, 45, 40, 50, 20, 60, 80, 45, 70, 50, 40],
  1030. },
  1031. {
  1032. name: '录用结果公告总人数',
  1033. type: 'bar',
  1034. barWidth: 15,
  1035. itemStyle: {
  1036. normal: {
  1037. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1038. {
  1039. offset: 0,
  1040. color: '#69c0ff',
  1041. },
  1042. {
  1043. offset: 1,
  1044. color: '#082550',
  1045. },
  1046. ]),
  1047. },
  1048. },
  1049. data: [60, 50, 80, 80, 90, 55, 40, 60, 50, 80, 90, 55, 40, 60, 50, 90, 55, 40],
  1050. },
  1051. ],
  1052. }
  1053. option.title.text = '当前各省属企业录用结果公示人次'
  1054. option.legend.data = ['录用结果公告次数', '录用结果公告总人数']
  1055. option.legend.show = true
  1056. option.yAxis.push({
  1057. splitLine: {
  1058. show: false,
  1059. },
  1060. axisLine: {
  1061. show: false,
  1062. },
  1063. })
  1064. myChart.setOption(option)
  1065. },
  1066. initChartR5() {
  1067. let myChart = echarts.init(this.$refs['echartR5'])
  1068. let option = {
  1069. ..._.cloneDeep(this.commonOption),
  1070. series: [
  1071. {
  1072. name: '去年同期在岗职工平均薪酬',
  1073. type: 'bar',
  1074. barWidth: 15,
  1075. itemStyle: {
  1076. normal: {
  1077. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1078. {
  1079. offset: 0,
  1080. color: '#6682F5',
  1081. },
  1082. {
  1083. offset: 1,
  1084. color: '#082550',
  1085. },
  1086. ]),
  1087. },
  1088. },
  1089. data: fjxdataL1[0],
  1090. },
  1091. {
  1092. name: '在岗职工平均薪酬',
  1093. type: 'bar',
  1094. barWidth: 15,
  1095. itemStyle: {
  1096. normal: {
  1097. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1098. {
  1099. offset: 0,
  1100. color: '#69c0ff',
  1101. },
  1102. {
  1103. offset: 1,
  1104. color: '#082550',
  1105. },
  1106. ]),
  1107. },
  1108. },
  1109. data: fjxdataL1[1],
  1110. },
  1111. ],
  1112. }
  1113. option.title.text = '各省属企业在岗职工平均薪酬'
  1114. option.legend.data = ['去年同期在岗职工平均薪酬', '在岗职工平均薪酬']
  1115. option.legend.show = true
  1116. option.yAxis.push({
  1117. splitLine: {
  1118. show: false,
  1119. },
  1120. axisLine: {
  1121. show: false,
  1122. },
  1123. })
  1124. myChart.setOption(option)
  1125. },
  1126. initChartR6() {
  1127. let myChart = echarts.init(this.$refs['echartR6'])
  1128. let option = {
  1129. ..._.cloneDeep(this.commonOption),
  1130. series: [
  1131. {
  1132. name: '2022年利润累计涨幅率',
  1133. type: 'line',
  1134. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  1135. smooth: true, //平滑曲线显示
  1136. showAllSymbol: true, //显示所有图形。
  1137. symbol: 'circle', //标记的图形为实心圆
  1138. symbolSize: 8, //标记的大小
  1139. smooth: false,
  1140. itemStyle: {
  1141. //折线拐点标志的样式
  1142. color: '#B889EA',
  1143. borderColor: '#B889EA',
  1144. width: 2,
  1145. shadowColor: '#B889EA',
  1146. shadowBlur: 4,
  1147. },
  1148. lineStyle: {
  1149. color: '#B889EA',
  1150. width: 2,
  1151. },
  1152. data: fjxdataL2[0],
  1153. },
  1154. {
  1155. name: '2022年薪酬累计涨幅率',
  1156. type: 'line',
  1157. barWidth: 15,
  1158. itemStyle: {
  1159. normal: {
  1160. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1161. {
  1162. offset: 0,
  1163. color: '#69C0FF',
  1164. },
  1165. {
  1166. offset: 1,
  1167. color: '#082550',
  1168. },
  1169. ]),
  1170. },
  1171. },
  1172. data: fjxdataL2[1],
  1173. },
  1174. ],
  1175. }
  1176. option.title.text = '各省属企业月利润与月薪酬变动情况'
  1177. option.legend.data = ['2022年利润累计涨幅率', '2022年薪酬累计涨幅率']
  1178. option.yAxis.push({
  1179. splitLine: {
  1180. show: false,
  1181. },
  1182. axisLine: {
  1183. show: false,
  1184. },
  1185. })
  1186. myChart.setOption(option)
  1187. },
  1188. initChartR7() {
  1189. let myChart = echarts.init(this.$refs['echartR7'])
  1190. let option = {
  1191. ..._.cloneDeep(this.commonOption),
  1192. series: [
  1193. {
  1194. name: '全员绩效考核完成率',
  1195. type: 'bar',
  1196. barWidth: 15,
  1197. itemStyle: {
  1198. normal: {
  1199. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1200. {
  1201. offset: 0,
  1202. color: '#B889EA',
  1203. },
  1204. {
  1205. offset: 1,
  1206. color: '#082550',
  1207. },
  1208. ]),
  1209. },
  1210. },
  1211. data: fjxdataL3[0],
  1212. },
  1213. ],
  1214. }
  1215. option.title.text = '各省属企业全员绩效考核'
  1216. // option.legend.data = ['劳动合同签约完成率', '目标值']
  1217. option.yAxis.push({
  1218. splitLine: {
  1219. show: false,
  1220. },
  1221. axisLine: {
  1222. show: false,
  1223. },
  1224. })
  1225. myChart.setOption(option)
  1226. },
  1227. initChartR8() {
  1228. let myChart = echarts.init(this.$refs['echartR8'])
  1229. let option = {
  1230. ..._.cloneDeep(this.commonOption),
  1231. series: [
  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: '#43ede3',
  1242. },
  1243. {
  1244. offset: 1,
  1245. color: '#082550',
  1246. },
  1247. ]),
  1248. },
  1249. },
  1250. data: fjxdataL4[0],
  1251. },
  1252. ],
  1253. }
  1254. option.title.text = '各省属企业任期制考核'
  1255. option.yAxis.push({
  1256. splitLine: {
  1257. show: false,
  1258. },
  1259. axisLine: {
  1260. show: false,
  1261. },
  1262. })
  1263. myChart.setOption(option)
  1264. },
  1265. },
  1266. })