index2.js 45 KB

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