index3.js 44 KB

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