index.js 52 KB

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