index4.js 45 KB

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