index.js 42 KB

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