index2.js 45 KB

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