index2.js 40 KB

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