index3.js 45 KB

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