index3.js 44 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460
  1. let barImg =
  2. 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAtCAYAAAA6GuKaAAAAAXNSR0IArs4c6QAADNRJREFUaEPNmXmQFNd9x9/Zr3u6Z2ZndzkiLeYwYhctJUtgC8GGQ46MBLYsjAURQnKSckWKkz+SkuWUnarElqtSsV2W/Kccq+Kq6EIFGAwpEEFSWIRYgQKSIrFiF3EsBskcuztX3+/oVPfMLMMesKxklbtq6tXMTk9/+rff/v6OB8HEDzjxU4fOjCbyGxO5cP05Ezm/xlkPfF3w13PRsWAhAMurfytX1nb/8ne79SpQurp2xutYwOOCHy907Xt1awxahkOAQQCBEJXX8IOQCMQvxipQyY3EN3HFDdSArwk+HuhRgBcgMLuIEgDXxcnKc5X3Mqis9QdmKnlL85U1lZLJeiKrADgSfzYc+Krg14IeBrwcgdnnKpAxbAwqPAyyCgJhonRKR5HkCXS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a9TTbXesWssamhfHEechhyPq6fZFN589eqgnsPMlqerqaUbB9LgsLfTv6z348oTr6VrbVfXs8XcubXesur8S8Te3DO9coigxjCjuXOIMKDl3KNXwjHmL13qF/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. companyListTitle: companyListTitle,
  50. commonOption: {
  51. title: {
  52. text: 'xxx',
  53. x: 'center',
  54. y: '3%',
  55. textStyle: {
  56. color: '#69C0FF',
  57. fontSize: 24,
  58. },
  59. },
  60. tooltip: {
  61. trigger: 'axis',
  62. axisPointer: {
  63. type: 'shadow',
  64. },
  65. },
  66. grid: {
  67. top: '22%',
  68. right: '5%',
  69. left: '8%',
  70. bottom: '26%',
  71. },
  72. legend: {
  73. data: '',
  74. top: '12%',
  75. right: '5%',
  76. textStyle: {
  77. color: 'rgba(250,250,250,0.6)',
  78. fontSize: 14,
  79. },
  80. },
  81. xAxis: {
  82. data: companyList.map(item => item.name),
  83. axisLine: {
  84. show: true, //隐藏X轴轴线
  85. lineStyle: {
  86. color: '#005094',
  87. width: 1,
  88. },
  89. },
  90. axisTick: {
  91. show: false, //隐藏X轴刻度
  92. },
  93. axisLabel: {
  94. show: true,
  95. rotate: 15,
  96. textStyle: {
  97. color: 'rgba(255,255,255,0.6)', //X轴文字颜色
  98. fontSize: 16,
  99. },
  100. },
  101. },
  102. yAxis: [
  103. {
  104. type: 'value',
  105. nameTextStyle: {
  106. color: '#ebf8ac',
  107. fontSize: 16,
  108. },
  109. splitLine: {
  110. show: true,
  111. lineStyle: {
  112. color: '#68b4dd66',
  113. type: 'dashed',
  114. },
  115. },
  116. axisLine: {
  117. show: false,
  118. },
  119. axisLabel: {
  120. show: true,
  121. textStyle: {
  122. color: 'rgba(250,250,250,0.6)',
  123. fontSize: 16,
  124. },
  125. },
  126. },
  127. ],
  128. },
  129. }
  130. },
  131. mounted () {
  132. this.time = formatDate()
  133. this.timer = setInterval(() => {
  134. this.time = formatDate()
  135. }, 1000)
  136. this.centerData = data
  137. // 左侧图表
  138. this.initChartL1()
  139. this.initChartL2()
  140. this.initChartL3()
  141. this.initChartL4()
  142. this.initChartL5()
  143. this.initChartL6()
  144. this.initChartL7()
  145. this.initChartL8()
  146. // 中间图表
  147. this.initChartC1()
  148. this.initChartC2()
  149. // 右侧图表
  150. this.initChartR1()
  151. this.initChartR2()
  152. this.initChartR3()
  153. this.initChartR4()
  154. this.initChartR5()
  155. this.initChartR6()
  156. this.initChartR7()
  157. this.initChartR8()
  158. },
  159. beforeDestroy () {
  160. if (this.timer) {
  161. clearInterval(this.timer);
  162. }
  163. },
  164. methods: {
  165. handleGoPage (url) {
  166. if (url.length) {
  167. window.location.href = url
  168. }
  169. },
  170. handleGoBack () {
  171. window.history.go(-1)
  172. },
  173. numFormat (value) {
  174. if (!value) return '0'
  175. var intPart = Number(value).toFixed(0) // 获取整数部分
  176. var intPartFormat = intPart.toString().replace(/(\d)(?=(?:\d{3})+$)/g, '$1,') // 将整数部分逢三一断
  177. var floatPart = '.00' // 预定义小数部分
  178. var value2Array = value.toString().split('.')
  179. // =2表示数据有小数位
  180. if (value2Array.length === 2) {
  181. floatPart = value2Array[1].toString() // 拿到小数部分
  182. if (floatPart.length === 1) {
  183. // 补0
  184. return intPartFormat + '.' + floatPart + '0'
  185. } else {
  186. return intPartFormat + '.' + floatPart
  187. }
  188. } else {
  189. return intPartFormat
  190. }
  191. },
  192. initChartL1 () {
  193. let myChart = echarts.init(this.$refs['echartL1'])
  194. let option = {
  195. ..._.cloneDeep(this.commonOption),
  196. series: [
  197. {
  198. name: '当前各三级企业本部机构数',
  199. type: 'bar',
  200. barWidth: 15,
  201. itemStyle: {
  202. normal: {
  203. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  204. {
  205. offset: 0,
  206. color: '#69c0ff',
  207. },
  208. {
  209. offset: 1,
  210. color: '#082550',
  211. },
  212. ]),
  213. },
  214. },
  215. data: dataL1[0],
  216. },
  217. ],
  218. }
  219. option.title.text = '各三级企业本部机构数'
  220. option.legend.data = ['当前各三级企业本部机构数']
  221. option.yAxis.push({
  222. splitLine: {
  223. show: false,
  224. },
  225. axisLine: {
  226. show: false,
  227. },
  228. })
  229. myChart.setOption(option)
  230. },
  231. initChartL2 () {
  232. let myChart = echarts.init(this.$refs['echartL2'])
  233. let option = {
  234. ..._.cloneDeep(this.commonOption),
  235. series: [
  236. {
  237. name: '当前各三级企业所属架构数',
  238. type: 'bar',
  239. barWidth: 15,
  240. itemStyle: {
  241. normal: {
  242. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  243. {
  244. offset: 0,
  245. color: '#69c0ff',
  246. },
  247. {
  248. offset: 1,
  249. color: '#082550',
  250. },
  251. ]),
  252. },
  253. },
  254. data: dataL2[0]
  255. }
  256. ],
  257. }
  258. option.title.text = '各三级企业所属架构数'
  259. option.legend.data = ['当前各三级企业所属架构数']
  260. option.yAxis.push({
  261. splitLine: {
  262. show: false,
  263. },
  264. axisLine: {
  265. show: false,
  266. },
  267. })
  268. myChart.setOption(option)
  269. },
  270. initChartL3 () {
  271. let myChart = echarts.init(this.$refs['echartL3'])
  272. console.log(this.commonOption, "this.commonOption")
  273. let option = {
  274. ..._.cloneDeep(this.commonOption),
  275. series: [
  276. {
  277. name: '当前总部中层管理人数',
  278. type: 'bar',
  279. barWidth: 15,
  280. itemStyle: {
  281. normal: {
  282. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  283. {
  284. offset: 0,
  285. color: '#5e7ae9',
  286. },
  287. {
  288. offset: 1,
  289. color: '#082550',
  290. },
  291. ]),
  292. },
  293. },
  294. data: dataL3[0],
  295. },
  296. ],
  297. }
  298. option.title.text = '各三级企业本部中层管理人数'
  299. option.legend.data = ['当前总部中层管理人数']
  300. option.yAxis.push({
  301. type: 'value',
  302. axisLine: {
  303. show: false,
  304. },
  305. splitLine: {
  306. show: false,
  307. },
  308. })
  309. myChart.setOption(option)
  310. },
  311. initChartL4 () {
  312. let myChart = echarts.init(this.$refs['echartL4'])
  313. let option = {
  314. ..._.cloneDeep(this.commonOption),
  315. series: [
  316. {
  317. name: '当前管理人员数',
  318. type: 'bar',
  319. barWidth: 12,
  320. smooth: true, //平滑曲线显示
  321. showAllSymbol: true, //显示所有图形。
  322. symbol: 'circle', //标记的图形为实心圆
  323. symbolSize: 8, //标记的大小
  324. smooth: false,
  325. itemStyle: {
  326. //折线拐点标志的样式
  327. color: '#B889EA',
  328. borderColor: '#B889EA',
  329. width: 2,
  330. shadowColor: '#B889EA',
  331. shadowBlur: 4,
  332. },
  333. lineStyle: {
  334. color: '#B889EA',
  335. width: 2,
  336. },
  337. data: dataL4[0],
  338. },
  339. {
  340. name: '管理人员数占总人数比值',
  341. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  342. type: 'line',
  343. itemStyle: {
  344. normal: {
  345. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  346. {
  347. offset: 0,
  348. color: '#69c0ff',
  349. },
  350. {
  351. offset: 1,
  352. color: '#082550',
  353. },
  354. ]),
  355. },
  356. },
  357. data: dataL4[1],
  358. markLine: {
  359. data: [
  360. {
  361. name: '管理人员比值核定上限',
  362. yAxis: 15,
  363. lineStyle: {
  364. color: '#fff',
  365. },
  366. label: {
  367. formatter: '{b}',
  368. position: 'middle',
  369. color: '#fff',
  370. },
  371. }
  372. ],
  373. label: {
  374. distance: [20, 8],
  375. },
  376. },
  377. },
  378. ],
  379. }
  380. option.title.text = '各三级企业管理人员数'
  381. option.legend.data = ['当前管理人员数', '管理人员数占总人数比值']
  382. option.legend.show = true
  383. option.tooltip = {
  384. trigger: 'axis',
  385. formatter: '{a0}:{c0}' + '<br/>' + '{a1}:{c1}' + '%'
  386. }
  387. option.yAxis.push({
  388. max: 20,
  389. type: 'value',
  390. axisLine: {
  391. show: false,
  392. },
  393. splitLine: {
  394. show: false,
  395. },
  396. axisLabel: {
  397. show: true,
  398. formatter: '{value} %',
  399. textStyle: {
  400. color: 'rgba(250,250,250,0.6)',
  401. },
  402. },
  403. })
  404. myChart.setOption(option)
  405. },
  406. initChartL5 () {
  407. let myChart = echarts.init(this.$refs['echartL5'])
  408. let option = {
  409. ..._.cloneDeep(this.commonOption),
  410. series: [
  411. {
  412. name: '各三级企业总人数',
  413. type: 'bar',
  414. barWidth: 15,
  415. itemStyle: {
  416. normal: {
  417. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  418. {
  419. offset: 0,
  420. color: '#69c0ff',
  421. },
  422. {
  423. offset: 1,
  424. color: '#082550',
  425. },
  426. ]),
  427. },
  428. },
  429. data: dataL5[0],
  430. },
  431. {
  432. name: '去年同期人数变化率',
  433. type: 'line',
  434. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  435. smooth: true, //平滑曲线显示
  436. showAllSymbol: true, //显示所有图形。
  437. symbol: 'circle', //标记的图形为实心圆
  438. symbolSize: 8, //标记的大小
  439. smooth: false,
  440. itemStyle: {
  441. //折线拐点标志的样式
  442. color: '#b889ea',
  443. borderColor: '#b889ea',
  444. width: 2,
  445. shadowColor: '#b889ea',
  446. shadowBlur: 4,
  447. },
  448. lineStyle: {
  449. color: '#b889ea',
  450. width: 2,
  451. },
  452. data: dataL5[1],
  453. },
  454. ],
  455. }
  456. option.title.text = '各三级企业总人数'
  457. option.legend.data = ['各三级企业总人数', '去年同期人数变化率']
  458. option.legend.show = true
  459. option.tooltip = {
  460. trigger: 'axis',
  461. formatter: '{a0}:{c0}' + '<br/>' + '{a1}:{c1}' + '%'
  462. }
  463. option.yAxis.push({
  464. type: 'value',
  465. axisLine: {
  466. show: false,
  467. },
  468. splitLine: {
  469. show: false,
  470. },
  471. axisLabel: {
  472. show: true,
  473. formatter: '{value} %',
  474. textStyle: {
  475. color: 'rgba(250,250,250,0.6)',
  476. },
  477. },
  478. })
  479. myChart.setOption(option)
  480. },
  481. initChartL6 () {
  482. let myChart = echarts.init(this.$refs['echartL6'])
  483. let option = {
  484. ..._.cloneDeep(this.commonOption),
  485. series: [
  486. {
  487. name: '本部员额数',
  488. type: 'bar',
  489. barWidth: 15,
  490. itemStyle: {
  491. normal: {
  492. barBorderRadius: [10, 10, 0, 0],
  493. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  494. {
  495. offset: 0,
  496. color: '#43ede3',
  497. },
  498. {
  499. offset: 1,
  500. color: '#082550',
  501. },
  502. ]),
  503. },
  504. },
  505. data: dataL6[0],
  506. },
  507. ],
  508. }
  509. option.title.text = '各三级企业本部员额数'
  510. option.legend.data = ['本部员额数']
  511. option.legend.show = true
  512. option.yAxis.push({
  513. splitLine: {
  514. show: false,
  515. },
  516. axisLine: {
  517. show: false,
  518. },
  519. })
  520. myChart.setOption(option)
  521. },
  522. initChartL7 () {
  523. let myChart = echarts.init(this.$refs['echartL7'])
  524. let option = {
  525. ..._.cloneDeep(this.commonOption),
  526. series: [
  527. {
  528. name: '人数变化',
  529. type: 'line',
  530. barWidth: 15,
  531. itemStyle: {
  532. normal: {
  533. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  534. {
  535. offset: 0,
  536. color: '#43ede3',
  537. },
  538. {
  539. offset: 1,
  540. color: '#43ede3',
  541. },
  542. ]),
  543. },
  544. },
  545. // markLine: {
  546. // data: [{ type: 'average', name: 'Avg' }],
  547. // },
  548. data: dataL7[0],
  549. },
  550. {
  551. name: '全员劳动生产率同比变化',
  552. type: 'line',
  553. barWidth: 15,
  554. yAxisIndex: 1,
  555. itemStyle: {
  556. normal: {
  557. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  558. {
  559. offset: 0,
  560. color: '#b889ea',
  561. },
  562. {
  563. offset: 1,
  564. color: '#b889ea',
  565. },
  566. ]),
  567. },
  568. },
  569. data: dataL7[1],
  570. },
  571. ],
  572. }
  573. option.title.text = '人数变化和全员劳动生产率变化率分析'
  574. option.legend.data = ['人数变化', '全员劳动生产率同比变化']
  575. option.legend.show = true
  576. option.tooltip = {
  577. trigger: 'axis',
  578. formatter: '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  579. }
  580. option.yAxis = [
  581. {
  582. type: 'value',
  583. axisLine: {
  584. show: false,
  585. },
  586. splitLine: {
  587. show: false,
  588. },
  589. axisLabel: {
  590. show: true,
  591. formatter: '{value} %',
  592. textStyle: {
  593. color: 'rgba(250,250,250,0.6)',
  594. },
  595. },
  596. },
  597. {
  598. type: 'value',
  599. axisLine: {
  600. show: false,
  601. },
  602. splitLine: {
  603. show: false,
  604. },
  605. axisLabel: {
  606. show: true,
  607. formatter: '{value} %',
  608. textStyle: {
  609. color: 'rgba(250,250,250,0.6)',
  610. },
  611. },
  612. }
  613. ]
  614. myChart.setOption(option)
  615. },
  616. initChartL8 () {
  617. let myChart = echarts.init(this.$refs['echartL8'])
  618. let option = {
  619. ..._.cloneDeep(this.commonOption),
  620. series: [
  621. {
  622. name: '人数变化',
  623. type: 'line',
  624. barWidth: 15,
  625. itemStyle: {
  626. normal: {
  627. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  628. {
  629. offset: 0,
  630. color: '#43ede3',
  631. },
  632. {
  633. offset: 1,
  634. color: '#43ede3',
  635. },
  636. ]),
  637. },
  638. },
  639. // markLine: {
  640. // data: [{ type: 'average', name: 'Avg' }],
  641. // },
  642. data: dataL8[0],
  643. },
  644. {
  645. name: '人工成本利润率同比变化',
  646. type: 'line',
  647. barWidth: 15,
  648. yAxisIndex: 1,
  649. itemStyle: {
  650. normal: {
  651. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  652. {
  653. offset: 0,
  654. color: '#b889ea',
  655. },
  656. {
  657. offset: 1,
  658. color: '#b889ea',
  659. },
  660. ]),
  661. },
  662. },
  663. data: dataL8[1],
  664. },
  665. ],
  666. }
  667. option.title.text = '人数变化和人工利润率变化分析'
  668. option.legend.data = ['人数变化', '人工成本利润率同比变化']
  669. option.legend.show = true
  670. option.tooltip = {
  671. trigger: 'axis',
  672. formatter: '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  673. }
  674. option.yAxis = [
  675. {
  676. type: 'value',
  677. axisLine: {
  678. show: false,
  679. },
  680. splitLine: {
  681. show: false,
  682. },
  683. axisLabel: {
  684. show: true,
  685. formatter: '{value} %',
  686. textStyle: {
  687. color: 'rgba(250,250,250,0.6)',
  688. },
  689. },
  690. },
  691. {
  692. type: 'value',
  693. axisLine: {
  694. show: false,
  695. },
  696. splitLine: {
  697. show: false,
  698. },
  699. axisLabel: {
  700. show: true,
  701. formatter: '{value} %',
  702. textStyle: {
  703. color: 'rgba(250,250,250,0.6)',
  704. },
  705. },
  706. }
  707. ]
  708. myChart.setOption(option)
  709. },
  710. // 中间图表---------------------------------------------开始
  711. initChartC1 () {
  712. let myChart = echarts.init(this.$refs['echartC1'])
  713. let option = {
  714. ..._.cloneDeep(this.commonOption),
  715. series: [
  716. {
  717. name: '全员劳动生产率(万/人)',
  718. type: 'bar',
  719. barWidth: 12,
  720. smooth: true, //平滑曲线显示
  721. showAllSymbol: true, //显示所有图形。
  722. symbol: 'circle', //标记的图形为实心圆
  723. symbolSize: 8, //标记的大小
  724. smooth: false,
  725. itemStyle: {
  726. //折线拐点标志的样式
  727. color: '#B889EA',
  728. borderColor: '#B889EA',
  729. width: 2,
  730. shadowColor: '#B889EA',
  731. shadowBlur: 4,
  732. },
  733. lineStyle: {
  734. color: '#B889EA',
  735. width: 2,
  736. },
  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. type: 'value',
  1065. axisLine: {
  1066. show: false,
  1067. },
  1068. splitLine: {
  1069. show: false,
  1070. },
  1071. })
  1072. myChart.setOption(option)
  1073. },
  1074. initChartR3 () {
  1075. let myChart = echarts.init(this.$refs['echartR3'])
  1076. let commonOptions = this.commonOption
  1077. commonOptions.yAxis[0].splitNumber = 2
  1078. let option = {
  1079. ..._.cloneDeep(commonOptions),
  1080. series: [
  1081. {
  1082. name: '2022年利润(万)',
  1083. type: 'bar',
  1084. barWidth: 15,
  1085. itemStyle: {
  1086. normal: {
  1087. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1088. {
  1089. offset: 0,
  1090. color: '#69c0ff',
  1091. },
  1092. {
  1093. offset: 1,
  1094. color: '#082550',
  1095. },
  1096. ]),
  1097. },
  1098. },
  1099. data: dataR3[0],
  1100. },
  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: '#45DAD1',
  1111. },
  1112. {
  1113. offset: 1,
  1114. color: '#082550',
  1115. },
  1116. ]),
  1117. },
  1118. },
  1119. data: dataR3[1],
  1120. },
  1121. ],
  1122. }
  1123. option.title.text = '各三级企业年利润与招聘情况分析'
  1124. option.legend.data = ['2022年利润(万)', '2022年累计招聘数']
  1125. option.legend.show = true
  1126. option.yAxis.push({
  1127. splitLine: {
  1128. show: false,
  1129. },
  1130. axisLine: {
  1131. show: false,
  1132. },
  1133. })
  1134. // option.yAxis = [
  1135. // {
  1136. // max: function (val) {
  1137. // if (Math.abs(val.max) > Math.abs(val.min)) {
  1138. // return (Math.abs(val.max) * 1.2).toFixed(0)
  1139. // } else {
  1140. // return (Math.abs(val.min) * 1.2).toFixed(0)
  1141. // }
  1142. // },
  1143. // min: function (val) {
  1144. // if (Math.abs(val.max) > Math.abs(val.min)) {
  1145. // return (-Math.abs(val.max) * 1.2).toFixed(0)
  1146. // } else {
  1147. // return (Math.abs(val.min) * 1.2).toFixed(0)
  1148. // }
  1149. // },
  1150. // splitLine: {
  1151. // show: false,
  1152. // },
  1153. // axisLine: {
  1154. // show: false,
  1155. // },
  1156. // axisLabel: {
  1157. // show: true,
  1158. // formatter: '{value}',
  1159. // textStyle: {
  1160. // color: 'rgba(250,250,250,0.6)',
  1161. // },
  1162. // },
  1163. // }
  1164. // ]
  1165. myChart.setOption(option)
  1166. },
  1167. initChartR4 () {
  1168. let myChart = echarts.init(this.$refs['echartR4'])
  1169. let commonOptions = this.commonOption
  1170. commonOptions.yAxis[0].splitNumber = 2
  1171. let option = {
  1172. ..._.cloneDeep(commonOptions),
  1173. series: [
  1174. {
  1175. name: '2022年退出人数',
  1176. type: 'bar',
  1177. barWidth: 15,
  1178. itemStyle: {
  1179. normal: {
  1180. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1181. {
  1182. offset: 0,
  1183. color: '#69c0ff',
  1184. },
  1185. {
  1186. offset: 1,
  1187. color: '#082550',
  1188. },
  1189. ]),
  1190. },
  1191. },
  1192. data: dataR4[0],
  1193. },
  1194. {
  1195. name: '2022年累计招聘人数',
  1196. type: 'bar',
  1197. barWidth: 15,
  1198. itemStyle: {
  1199. normal: {
  1200. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1201. {
  1202. offset: 0,
  1203. color: '#45DAD1',
  1204. },
  1205. {
  1206. offset: 1,
  1207. color: '#082550',
  1208. },
  1209. ]),
  1210. },
  1211. },
  1212. data: dataR4[1],
  1213. },
  1214. ],
  1215. }
  1216. option.title.text = '各三级企业"退二进一"完成情况'
  1217. option.legend.data = ['2022年退出人数', '2022年累计招聘人数']
  1218. option.legend.show = true
  1219. option.yAxis.push({
  1220. splitLine: {
  1221. show: false,
  1222. },
  1223. axisLine: {
  1224. show: false,
  1225. },
  1226. })
  1227. myChart.setOption(option)
  1228. },
  1229. initChartR5 () {
  1230. let myChart = echarts.init(this.$refs['echartR5'])
  1231. let option = {
  1232. ..._.cloneDeep(this.commonOption),
  1233. series: [
  1234. {
  1235. name: '去年同期在岗职工平均薪酬',
  1236. type: 'bar',
  1237. barWidth: 15,
  1238. itemStyle: {
  1239. normal: {
  1240. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1241. {
  1242. offset: 0,
  1243. color: '#69c0ff',
  1244. },
  1245. {
  1246. offset: 1,
  1247. color: '#082550',
  1248. },
  1249. ]),
  1250. },
  1251. },
  1252. data: dataR5[0],
  1253. },
  1254. {
  1255. name: '在岗职工平均薪酬',
  1256. type: 'bar',
  1257. barWidth: 15,
  1258. itemStyle: {
  1259. normal: {
  1260. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1261. {
  1262. offset: 0,
  1263. color: '#6682F5',
  1264. },
  1265. {
  1266. offset: 1,
  1267. color: '#082550',
  1268. },
  1269. ]),
  1270. },
  1271. },
  1272. data: dataR5[1],
  1273. }
  1274. ],
  1275. }
  1276. option.title.text = '各三级企业在岗职工平均薪酬'
  1277. option.legend.data = ['去年同期在岗职工平均薪酬', '在岗职工平均薪酬']
  1278. option.legend.show = true
  1279. option.yAxis.push({
  1280. splitLine: {
  1281. show: false,
  1282. },
  1283. axisLine: {
  1284. show: false,
  1285. },
  1286. })
  1287. myChart.setOption(option)
  1288. },
  1289. initChartR6 () {
  1290. let myChart = echarts.init(this.$refs['echartR6'])
  1291. let option = {
  1292. ..._.cloneDeep(this.commonOption),
  1293. series: [
  1294. {
  1295. name: '2022年利润累计涨幅率',
  1296. type: 'line',
  1297. smooth: true, //平滑曲线显示
  1298. showAllSymbol: true, //显示所有图形。
  1299. symbol: 'circle', //标记的图形为实心圆
  1300. symbolSize: 8, //标记的大小
  1301. smooth: false,
  1302. itemStyle: {
  1303. //折线拐点标志的样式
  1304. color: '#B889EA',
  1305. borderColor: '#B889EA',
  1306. width: 2,
  1307. shadowColor: '#B889EA',
  1308. shadowBlur: 4,
  1309. },
  1310. lineStyle: {
  1311. color: '#B889EA',
  1312. width: 2,
  1313. },
  1314. data: dataR6[0],
  1315. },
  1316. {
  1317. name: '2022年薪酬累计涨幅率',
  1318. type: 'line',
  1319. barWidth: 15,
  1320. yAxisIndex: 1,
  1321. itemStyle: {
  1322. normal: {
  1323. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1324. {
  1325. offset: 0,
  1326. color: '#69C0FF',
  1327. },
  1328. {
  1329. offset: 1,
  1330. color: '#082550',
  1331. },
  1332. ]),
  1333. },
  1334. },
  1335. data: dataR6[1],
  1336. },
  1337. ],
  1338. }
  1339. option.title.text = '各三级企业月利润与月薪酬变动情况'
  1340. option.legend.data = ['2022年利润累计涨幅率', '2022年薪酬累计涨幅率']
  1341. option.tooltip = {
  1342. trigger: 'axis',
  1343. formatter: '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  1344. }
  1345. option.yAxis = [
  1346. {
  1347. splitLine: {
  1348. show: false,
  1349. },
  1350. axisLine: {
  1351. show: false,
  1352. },
  1353. axisLabel: {
  1354. show: true,
  1355. formatter: '{value} %',
  1356. textStyle: {
  1357. color: 'rgba(250,250,250,0.6)',
  1358. },
  1359. },
  1360. },
  1361. {
  1362. splitLine: {
  1363. show: false,
  1364. },
  1365. axisLine: {
  1366. show: false,
  1367. },
  1368. axisLabel: {
  1369. show: true,
  1370. formatter: '{value} %',
  1371. textStyle: {
  1372. color: 'rgba(250,250,250,0.6)',
  1373. },
  1374. },
  1375. }
  1376. ]
  1377. myChart.setOption(option)
  1378. },
  1379. initChartR7 () {
  1380. let myChart = echarts.init(this.$refs['echartR7'])
  1381. let option = {
  1382. ..._.cloneDeep(this.commonOption),
  1383. series: [
  1384. {
  1385. name: '全员绩效考核完成率',
  1386. type: 'bar',
  1387. barWidth: 15,
  1388. itemStyle: {
  1389. normal: {
  1390. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1391. {
  1392. offset: 0,
  1393. color: '#B889EA',
  1394. },
  1395. {
  1396. offset: 1,
  1397. color: '#082550',
  1398. },
  1399. ]),
  1400. },
  1401. },
  1402. data: dataR7[0],
  1403. },
  1404. ],
  1405. }
  1406. option.title.text = '各三级企业全员绩效考核 '
  1407. // option.legend.data = ['劳动合同签约完成率', '目标值']
  1408. option.yAxis.push({
  1409. splitLine: {
  1410. show: false,
  1411. },
  1412. axisLine: {
  1413. show: false,
  1414. },
  1415. })
  1416. myChart.setOption(option)
  1417. },
  1418. initChartR8 () {
  1419. let myChart = echarts.init(this.$refs['echartR8'])
  1420. let option = {
  1421. ..._.cloneDeep(this.commonOption),
  1422. series: [
  1423. {
  1424. name: '任期制契约化完成率',
  1425. type: 'bar',
  1426. barWidth: 15,
  1427. itemStyle: {
  1428. normal: {
  1429. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1430. {
  1431. offset: 0,
  1432. color: '#43ede3',
  1433. },
  1434. {
  1435. offset: 1,
  1436. color: '#082550',
  1437. },
  1438. ]),
  1439. },
  1440. },
  1441. data: dataR8[0],
  1442. },
  1443. ],
  1444. }
  1445. option.title.text = '各三级企业任期制契约化完成率'
  1446. option.yAxis.push({
  1447. splitLine: {
  1448. show: false,
  1449. },
  1450. axisLine: {
  1451. show: false,
  1452. },
  1453. })
  1454. myChart.setOption(option)
  1455. },
  1456. },
  1457. })