index.js 62 KB

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