index2.js 44 KB

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