index.js 52 KB

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