index3.js 42 KB

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