index.js 49 KB

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