index.js 47 KB

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