index.js 44 KB

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