index.js 42 KB

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