index.js 45 KB

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