index4.js 44 KB

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