index4.js 44 KB

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