index2.js 43 KB

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