index.js 62 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518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udgDHA60Zn8TdiychmmMyu6/dbIgUBrGxfJEc8xo1n0Lg/+kPvuVwF/I97d2s4eL011mqWquP8ce0j1jesow3iR2toq3PTMXvdz2THdvjVr7YzNibpsD9cc6NztB/6f4ffQsan0xs3AAAAAElFTkSuQmCC'
  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. }
  316. option.title.text = '各省属企业总部机构数'
  317. option.legend.data = ['六定改革前总部机构数', '当前各省属企业总部机构数', '总部机构数核定上限']
  318. option.yAxis.push({
  319. splitLine: {
  320. show: false,
  321. },
  322. axisLine: {
  323. show: false,
  324. },
  325. })
  326. myChart.setOption(option)
  327. },
  328. initChartL2 () {
  329. let myChart = echarts.init(this.$refs['echartL2'])
  330. let option = {
  331. ..._.cloneDeep(this.commonOption),
  332. color: ['#69c0ff'],
  333. series: [
  334. {
  335. name: '当前共享服务中心/事业部数',
  336. type: 'bar',
  337. barWidth: 15,
  338. itemStyle: {
  339. color: params => {
  340. if (params.value > dataL2[1][params.dataIndex]) {
  341. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  342. {
  343. offset: 0,
  344. color: 'red',
  345. },
  346. {
  347. offset: 1,
  348. color: '#082550',
  349. },
  350. ])
  351. } else {
  352. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  353. {
  354. offset: 0,
  355. color: '#69c0ff',
  356. },
  357. {
  358. offset: 1,
  359. color: '#082550',
  360. },
  361. ])
  362. }
  363. },
  364. },
  365. data: dataL2[0],
  366. },
  367. {
  368. name: '共享服务中心/事业部核定上限',
  369. type: 'line',
  370. // yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  371. smooth: true, //平滑曲线显示
  372. showAllSymbol: true, //显示所有图形。
  373. symbol: 'circle', //标记的图形为实心圆
  374. symbolSize: 8, //标记的大小
  375. smooth: false,
  376. itemStyle: {
  377. //折线拐点标志的样式
  378. color: '#fbe138',
  379. borderColor: '#fbe138',
  380. width: 2,
  381. shadowColor: '#fbe138',
  382. shadowBlur: 4,
  383. },
  384. lineStyle: {
  385. color: '#fbe138',
  386. width: 2,
  387. },
  388. data: dataL2[1],
  389. },
  390. ],
  391. }
  392. option.title.text = '各省属企业共享服务中心/事业部数'
  393. option.legend.data = ['当前共享服务中心/事业部数', '共享服务中心/事业部核定上限']
  394. option.yAxis.push({
  395. splitLine: {
  396. show: false,
  397. },
  398. axisLine: {
  399. show: false,
  400. },
  401. })
  402. myChart.setOption(option)
  403. },
  404. initChartL3 () {
  405. let myChart = echarts.init(this.$refs['echartL3'])
  406. let option = {
  407. ..._.cloneDeep(this.commonOption),
  408. series: [
  409. {
  410. name: '当前管理人员数',
  411. type: 'bar',
  412. barWidth: 15,
  413. itemStyle: {
  414. normal: {
  415. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  416. {
  417. offset: 0,
  418. color: '#5e7ae9',
  419. },
  420. {
  421. offset: 1,
  422. color: '#082550',
  423. },
  424. ]),
  425. },
  426. },
  427. data: dataL3[0],
  428. },
  429. {
  430. name: '管理人员数占总人数比值',
  431. type: 'line',
  432. yAxisIndex: 1,
  433. smooth: true, //平滑曲线显示
  434. showAllSymbol: true, //显示所有图形。
  435. symbol: 'circle', //标记的图形为实心圆
  436. symbolSize: 8, //标记的大小
  437. smooth: false,
  438. itemStyle: {
  439. //折线拐点标志的样式
  440. color: '#fbe138',
  441. borderColor: '#fbe138',
  442. width: 2,
  443. shadowColor: '#fbe138',
  444. shadowBlur: 4,
  445. },
  446. lineStyle: {
  447. color: '#fbe138',
  448. width: 2,
  449. },
  450. markLine: {
  451. data: [
  452. {
  453. name: '管理人员数占总人数的合理比值线',
  454. yAxis: 15,
  455. lineStyle: {
  456. color: '#fff',
  457. },
  458. label: {
  459. formatter: '{b}',
  460. position: 'middle',
  461. color: '#fff',
  462. fontSize: 16,
  463. },
  464. },
  465. ],
  466. label: {
  467. distance: [20, 8],
  468. },
  469. },
  470. data: dataL3[1],
  471. },
  472. ],
  473. }
  474. option.title.text = '各省属企业管理人员数'
  475. option.legend.data = ['当前管理人员数', '管理人员数占总人数比值']
  476. option.yAxis[0] = {
  477. type: 'log',
  478. min: 1,
  479. logBase: 10,
  480. axisLine: {
  481. show: false,
  482. },
  483. splitLine: {
  484. show: true,
  485. lineStyle: {
  486. color: '#68b4dd66',
  487. type: 'dashed',
  488. },
  489. },
  490. axisLabel: {
  491. show: true,
  492. formatter: function (value) {
  493. return value === 1 ? 0 : value
  494. },
  495. textStyle: {
  496. color: 'rgba(250,250,250,0.6)',
  497. },
  498. },
  499. }
  500. option.yAxis.push({
  501. type: 'value',
  502. max: 15,
  503. axisLine: {
  504. show: false,
  505. },
  506. splitLine: {
  507. show: false,
  508. },
  509. axisLabel: {
  510. show: true,
  511. formatter: '{value} %',
  512. textStyle: {
  513. color: 'rgba(250,250,250,0.6)',
  514. },
  515. },
  516. })
  517. option.tooltip.formatter = '{a0}:{c0}' + '<br/>' + '{a1}:{c1}' + '%'
  518. myChart.setOption(option)
  519. },
  520. initChartL4 () {
  521. let myChart = echarts.init(this.$refs['echartL4'])
  522. let option = {
  523. ..._.cloneDeep(this.commonOption),
  524. series: [
  525. {
  526. name: '六定改革前总部中层管理人数',
  527. type: 'bar',
  528. barWidth: 15,
  529. itemStyle: {
  530. normal: {
  531. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  532. {
  533. offset: 0,
  534. color: '#69c0ff',
  535. },
  536. {
  537. offset: 1,
  538. color: '#082550',
  539. },
  540. ]),
  541. },
  542. },
  543. data: dataL4[0],
  544. },
  545. {
  546. name: '当前总部中层管理人数',
  547. type: 'bar',
  548. barWidth: 15,
  549. itemStyle: {
  550. normal: {
  551. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  552. {
  553. offset: 0,
  554. color: '#6480f3',
  555. },
  556. {
  557. offset: 1,
  558. color: '#082550',
  559. },
  560. ]),
  561. },
  562. },
  563. data: dataL4[1],
  564. },
  565. {
  566. name: '总部中层管理人数核定上限',
  567. type: 'line',
  568. yAxisIndex: 1,
  569. smooth: true, //平滑曲线显示
  570. showAllSymbol: true, //显示所有图形。
  571. symbol: 'circle', //标记的图形为实心圆
  572. symbolSize: 8, //标记的大小
  573. smooth: false,
  574. itemStyle: {
  575. //折线拐点标志的样式
  576. color: '#fbe138',
  577. borderColor: '#fbe138',
  578. width: 2,
  579. shadowColor: '#fbe138',
  580. shadowBlur: 4,
  581. },
  582. lineStyle: {
  583. color: '#fbe138',
  584. width: 2,
  585. },
  586. data: dataL4[2],
  587. },
  588. ],
  589. }
  590. option.title.text = '各省属企业总部中层管理人数'
  591. option.legend.data = ['六定改革前总部中层管理人数', '当前总部中层管理人数','总部中层管理人数核定上限']
  592. option.legend.show = true
  593. option.yAxis.push({
  594. splitLine: {
  595. show: false,
  596. },
  597. axisLine: {
  598. show: false,
  599. },
  600. })
  601. myChart.setOption(option)
  602. },
  603. initChartL5 () {
  604. let myChart = echarts.init(this.$refs['echartL5'])
  605. let option = {
  606. ..._.cloneDeep(this.commonOption),
  607. series: [
  608. {
  609. name: '各省属企业总人数',
  610. type: 'bar',
  611. barWidth: 15,
  612. itemStyle: {
  613. normal: {
  614. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  615. {
  616. offset: 0,
  617. color: '#69c0ff',
  618. },
  619. {
  620. offset: 1,
  621. color: '#082550',
  622. },
  623. ]),
  624. },
  625. },
  626. data: dataL5[0],
  627. },
  628. {
  629. name: '去年同期人数变化率',
  630. type: 'line',
  631. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  632. smooth: true, //平滑曲线显示
  633. showAllSymbol: true, //显示所有图形。
  634. symbol: 'circle', //标记的图形为实心圆
  635. symbolSize: 8, //标记的大小
  636. smooth: false,
  637. itemStyle: {
  638. //折线拐点标志的样式
  639. color: '#b889ea',
  640. borderColor: '#b889ea',
  641. width: 2,
  642. shadowColor: '#b889ea',
  643. shadowBlur: 4,
  644. },
  645. lineStyle: {
  646. color: '#b889ea',
  647. width: 2,
  648. },
  649. data: dataL5[1],
  650. },
  651. ],
  652. }
  653. option.title.text = '各省属企业总人数'
  654. option.legend.data = ['各省属企业总人数', '去年同期人数变化率']
  655. option.legend.show = true
  656. option.yAxis[0] = {
  657. type: 'value',
  658. // type: 'log',
  659. min: 1,
  660. // logBase: 10,
  661. axisLine: {
  662. show: false,
  663. },
  664. splitLine: {
  665. show: true,
  666. lineStyle: {
  667. color: '#68b4dd66',
  668. type: 'dashed',
  669. },
  670. },
  671. axisLabel: {
  672. show: true,
  673. formatter: function (value) {
  674. return value === 1 ? 0 : value
  675. },
  676. textStyle: {
  677. color: 'rgba(250,250,250,0.6)',
  678. },
  679. },
  680. }
  681. option.yAxis.push({
  682. type: 'value',
  683. axisLine: {
  684. show: false,
  685. },
  686. splitLine: {
  687. show: false,
  688. },
  689. axisLabel: {
  690. show: true,
  691. formatter: '{value} %',
  692. textStyle: {
  693. color: 'rgba(250,250,250,0.6)',
  694. },
  695. },
  696. })
  697. option.tooltip.formatter = '{a0}:{c0}' + '<br/>' + '{a1}:{c1}' + '%'
  698. myChart.setOption(option)
  699. },
  700. initChartL6 () {
  701. let myChart = echarts.init(this.$refs['echartL6'])
  702. let option = {
  703. ..._.cloneDeep(this.commonOption),
  704. series: [
  705. {
  706. name: '总部员额数',
  707. type: 'bar',
  708. barWidth: 15,
  709. itemStyle: {
  710. normal: {
  711. barBorderRadius: [10, 10, 0, 0],
  712. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  713. {
  714. offset: 0,
  715. color: '#43ede3',
  716. },
  717. {
  718. offset: 1,
  719. color: '#082550',
  720. },
  721. ]),
  722. },
  723. },
  724. data: dataL6[0],
  725. },
  726. {
  727. name: '总部员额数核定上限',
  728. type: 'line',
  729. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  730. smooth: true, //平滑曲线显示
  731. showAllSymbol: true, //显示所有图形。
  732. symbol: 'circle', //标记的图形为实心圆
  733. symbolSize: 8, //标记的大小
  734. smooth: false,
  735. itemStyle: {
  736. //折线拐点标志的样式
  737. color: '#fbe138',
  738. borderColor: '#fbe138',
  739. width: 2,
  740. shadowColor: '#fbe138',
  741. shadowBlur: 4,
  742. },
  743. lineStyle: {
  744. color: '#fbe138',
  745. width: 2,
  746. },
  747. data: dataL6[1],
  748. },
  749. ],
  750. }
  751. option.title.text = '各省属企业总部员额数'
  752. option.legend.data = ['总部员额数', '总部员额数核定上限']
  753. option.legend.show = true
  754. option.yAxis.push({
  755. splitLine: {
  756. show: false,
  757. },
  758. axisLine: {
  759. show: false,
  760. },
  761. })
  762. myChart.setOption(option)
  763. },
  764. initChartL7 () {
  765. let myChart = echarts.init(this.$refs['echartL7'])
  766. let option = {
  767. ..._.cloneDeep(this.commonOption),
  768. color: ['#43ede3'],
  769. series: [
  770. {
  771. name: '人数变化',
  772. type: 'line',
  773. smooth: true, //平滑曲线显示
  774. showAllSymbol: true, //显示所有图形。
  775. symbol: 'circle', //标记的图形为实心圆
  776. symbolSize: 15, //标记的大小
  777. smooth: false,
  778. itemStyle: {
  779. color: params => {
  780. if (dataL7[1][params.dataIndex] < 0 && params.value > 0) {
  781. return 'red'
  782. } else {
  783. return '#43ede3'
  784. }
  785. },
  786. },
  787. lineStyle: {
  788. color: '#43ede3',
  789. width: 2,
  790. },
  791. data: dataL7[0],
  792. },
  793. {
  794. name: '劳动生产率同比变化',
  795. type: 'line',
  796. yAxisIndex: 1,
  797. smooth: true, //平滑曲线显示
  798. showAllSymbol: true, //显示所有图形。
  799. symbol: 'circle', //标记的图形为实心圆
  800. symbolSize: 15, //标记的大小
  801. smooth: false,
  802. itemStyle: {
  803. //折线拐点标志的样式
  804. color: '#b889ea',
  805. borderColor: '#b889ea',
  806. width: 2,
  807. shadowColor: '#b889ea',
  808. shadowBlur: 4,
  809. },
  810. data: dataL7[1],
  811. },
  812. ],
  813. }
  814. option.title.text = '人数变化和全员劳动生产率变化分析'
  815. option.legend.data = ['人数变化', '劳动生产率同比变化']
  816. option.legend.show = true
  817. option.yAxis[0].axisLabel.formatter = '{value} %'
  818. option.tooltip.formatter = '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  819. option.yAxis.push({
  820. type: 'value',
  821. axisLine: {
  822. show: false,
  823. },
  824. splitLine: {
  825. show: false,
  826. },
  827. axisLabel: {
  828. show: true,
  829. formatter: '{value} %',
  830. textStyle: {
  831. color: 'rgba(250,250,250,0.6)',
  832. },
  833. splitLine: {
  834. show: false,
  835. },
  836. axisLabel: {
  837. show: true,
  838. formatter: '{value} %',
  839. textStyle: {
  840. color: 'rgba(250,250,250,0.6)',
  841. },
  842. },
  843. },
  844. })
  845. myChart.setOption(option)
  846. },
  847. initChartL8 () {
  848. let myChart = echarts.init(this.$refs['echartL8'])
  849. let option = {
  850. ..._.cloneDeep(this.commonOption),
  851. color: ['#43ede3'],
  852. series: [
  853. {
  854. name: '人数变化',
  855. type: 'line',
  856. smooth: true, //平滑曲线显示
  857. showAllSymbol: true, //显示所有图形。
  858. symbol: 'circle', //标记的图形为实心圆
  859. symbolSize: 15, //标记的大小
  860. smooth: false,
  861. itemStyle: {
  862. color: params => {
  863. if (dataL8[1][params.dataIndex] < 0 && params.value > 0) {
  864. return 'red'
  865. } else {
  866. return '#43ede3'
  867. }
  868. },
  869. },
  870. lineStyle: {
  871. color: '#43ede3',
  872. width: 2,
  873. },
  874. data: dataL8[0],
  875. },
  876. {
  877. name: '人工成本利润率同比变化',
  878. type: 'line',
  879. smooth: true, //平滑曲线显示
  880. showAllSymbol: true, //显示所有图形。
  881. symbol: 'circle', //标记的图形为实心圆
  882. symbolSize: 15, //标记的大小
  883. smooth: false,
  884. itemStyle: {
  885. //折线拐点标志的样式
  886. color: '#b889ea',
  887. borderColor: '#b889ea',
  888. width: 2,
  889. shadowColor: '#b889ea',
  890. shadowBlur: 4,
  891. },
  892. lineStyle: {
  893. color: '#b889ea',
  894. width: 2,
  895. },
  896. data: dataL8[1],
  897. },
  898. ],
  899. // tooltip: {
  900. // trigger: 'axis',
  901. // formatter(params){
  902. // console.log(params)
  903. // return params[0]
  904. // }
  905. // }
  906. }
  907. option.title.text = '人数变化和人工成本利润率变化分析'
  908. option.legend.data = ['人数变化', '人工成本利润率同比变化']
  909. option.legend.show = true
  910. option.yAxis[0].axisLabel.formatter = '{value} %'
  911. option.tooltip.formatter = '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  912. myChart.setOption(option)
  913. },
  914. // 中间图表---------------------------------------------开始
  915. initChartC1 () {
  916. let myChart = echarts.init(this.$refs['echartC1'])
  917. let option = {
  918. ..._.cloneDeep(this.commonOption),
  919. color: ['#69c0ff'],
  920. series: [
  921. {
  922. name: '全员劳动生产率(万/人)',
  923. type: 'bar',
  924. barWidth: 15,
  925. itemStyle: {
  926. color: params => {
  927. if (params.value < 0 && c1[1][params.dataIndex] < 0) {
  928. return 'red'
  929. } else if (params.value < 0) {
  930. return 'yellow'
  931. } else {
  932. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  933. {
  934. offset: 0,
  935. color: '#69c0ff',
  936. },
  937. {
  938. offset: 1,
  939. color: '#082550',
  940. },
  941. ])
  942. }
  943. },
  944. },
  945. markLine: {
  946. data: [
  947. {
  948. name: '省属企业平均水平',
  949. yAxis: 50.13,
  950. lineStyle: {
  951. color: '#fff',
  952. },
  953. label: {
  954. formatter: '{b}',
  955. position: 'middle',
  956. fontSize: 16,
  957. color: '#fff',
  958. },
  959. },
  960. // {
  961. // name: '',
  962. // yAxis: 0,
  963. // lineStyle: {
  964. // color: '#fff',
  965. // },
  966. // label: {
  967. // formatter: '{b}',
  968. // position: 'end',
  969. // fontSize: 16,
  970. // color: '#fff',
  971. // },
  972. // },
  973. {
  974. name: '央企平均水平',
  975. yAxis: 69.4,
  976. lineStyle: {
  977. color: '#fff',
  978. },
  979. label: {
  980. formatter: '{b}',
  981. position: 'end',
  982. color: '#fff',
  983. fontSize: 16,
  984. },
  985. },
  986. ],
  987. label: {
  988. distance: [50, 0],
  989. },
  990. },
  991. data: c1[0],
  992. },
  993. {
  994. name: '全员劳动生产率同比',
  995. type: 'line',
  996. yAxisIndex: 1,
  997. smooth: true, //平滑曲线显示
  998. showAllSymbol: true, //显示所有图形。
  999. symbol: 'circle', //标记的图形为实心圆
  1000. symbolSize: 8, //标记的大小
  1001. smooth: false,
  1002. itemStyle: {
  1003. //折线拐点标志的样式
  1004. color: '#B889EA',
  1005. borderColor: '#B889EA',
  1006. width: 2,
  1007. shadowColor: '#B889EA',
  1008. shadowBlur: 4,
  1009. },
  1010. lineStyle: {
  1011. color: '#B889EA',
  1012. width: 2,
  1013. },
  1014. // data: [50, 40, 60, 20, 45, 30, 60, 100, 45, 40, 50, 20, 60, 80, 45, 70, 50, 40],
  1015. data: c1[1],
  1016. },
  1017. ],
  1018. }
  1019. option.title.text = '各省属企业全员劳动生产率'
  1020. // option.legend.data = [ '全员劳动生产率(万/人)','全员劳动生产率同比']
  1021. option.legend.show = true
  1022. option.grid.right = '15%'
  1023. option.tooltip.formatter = '{a0}:{c0}' + '<br/>' + '{a1}:{c1}' + '%'
  1024. option.yAxis.push({
  1025. type: 'value',
  1026. axisLine: {
  1027. show: false,
  1028. },
  1029. splitLine: {
  1030. show: false,
  1031. },
  1032. axisLabel: {
  1033. show: true,
  1034. formatter: '{value} %',
  1035. textStyle: {
  1036. color: 'rgba(250,250,250,0.6)',
  1037. },
  1038. },
  1039. })
  1040. // option.yAxis.push({
  1041. // type: 'log',
  1042. // min: -1,
  1043. // logBase: 10,
  1044. // axisLine: {
  1045. // show: false,
  1046. // },
  1047. // splitLine: {
  1048. // show: false,
  1049. // },
  1050. // axisLabel: {
  1051. // show: true,
  1052. // formatter: function(value) {
  1053. // console.log(value,"value")
  1054. // // return value === 1 ? 0 : value
  1055. // },
  1056. // textStyle: {
  1057. // color: 'rgba(250,250,250,0.6)',
  1058. // },
  1059. // },
  1060. // })
  1061. myChart.setOption(option)
  1062. tools.loopShowTooltip(myChart, option, {
  1063. nterval: 2000,
  1064. loopSeries: true,
  1065. })
  1066. },
  1067. initChartC2 () {
  1068. let myChart = echarts.init(this.$refs['echartC2'])
  1069. let option = {
  1070. ..._.cloneDeep(this.commonOption),
  1071. color: ['#69c0ff'],
  1072. series: [
  1073. {
  1074. name: '人工成本利润率',
  1075. type: 'bar',
  1076. barWidth: 15,
  1077. markLine: {
  1078. data: [
  1079. {
  1080. name: '省属企业平均水平',
  1081. yAxis: 67.09,
  1082. lineStyle: {
  1083. color: '#fff',
  1084. },
  1085. label: {
  1086. formatter: '{b}',
  1087. position: 'end',
  1088. fontSize: 16,
  1089. color: '#fff',
  1090. },
  1091. },
  1092. {
  1093. name: '央企平均水平',
  1094. yAxis: 81,
  1095. lineStyle: {
  1096. color: '#fff',
  1097. },
  1098. label: {
  1099. formatter: '{b}',
  1100. position: 'middle',
  1101. color: '#fff',
  1102. fontSize: 16,
  1103. },
  1104. },
  1105. ],
  1106. label: {
  1107. distance: [50, 0],
  1108. },
  1109. },
  1110. itemStyle: {
  1111. color: params => {
  1112. if (params.value < 0 && c2[0][params.dataIndex] < 0) {
  1113. return 'red'
  1114. } else if (params.value < 0) {
  1115. return 'yellow'
  1116. } else {
  1117. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1118. {
  1119. offset: 0,
  1120. color: '#69c0ff',
  1121. },
  1122. {
  1123. offset: 1,
  1124. color: '#082550',
  1125. },
  1126. ])
  1127. }
  1128. },
  1129. },
  1130. data: c2[1],
  1131. },
  1132. {
  1133. name: '人工成本利润率同比',
  1134. type: 'line',
  1135. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  1136. smooth: true, //平滑曲线显示
  1137. showAllSymbol: true, //显示所有图形。
  1138. symbol: 'circle', //标记的图形为实心圆
  1139. symbolSize: 8, //标记的大小
  1140. smooth: false,
  1141. itemStyle: {
  1142. //折线拐点标志的样式
  1143. color: '#B889EA',
  1144. borderColor: '#B889EA',
  1145. width: 2,
  1146. shadowColor: '#B889EA',
  1147. shadowBlur: 4,
  1148. },
  1149. lineStyle: {
  1150. color: '#B889EA',
  1151. width: 2,
  1152. },
  1153. data: c2[0],
  1154. },
  1155. ],
  1156. }
  1157. option.title.text = '各省属企业人工成本利润率'
  1158. option.legend.show = true
  1159. option.grid.right = '15%'
  1160. option.yAxis[0].axisLabel.formatter = '{value} %'
  1161. option.tooltip.formatter = '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  1162. option.yAxis.push({
  1163. type: 'value',
  1164. axisLine: {
  1165. show: false,
  1166. },
  1167. splitLine: {
  1168. show: false,
  1169. },
  1170. axisLabel: {
  1171. show: true,
  1172. formatter: '{value} %',
  1173. textStyle: {
  1174. color: 'rgba(250,250,250,0.6)',
  1175. },
  1176. },
  1177. })
  1178. myChart.setOption(option)
  1179. tools.loopShowTooltip(myChart, option, {
  1180. nterval: 2000,
  1181. loopSeries: true,
  1182. })
  1183. },
  1184. // 右侧图表---------------------------------------------开始
  1185. initChartR1 () {
  1186. let myChart = echarts.init(this.$refs['echartR1'])
  1187. let commonOptions = this.commonOption
  1188. commonOptions.yAxis[0].splitNumber = 2
  1189. let dataTemp = []
  1190. let dataTemp2 = []
  1191. dataR1[0].forEach(item => {
  1192. dataTemp.push(item + 1)
  1193. })
  1194. dataR1[1].forEach(item => {
  1195. dataTemp2.push(item + 1)
  1196. })
  1197. let option = {
  1198. ..._.cloneDeep(commonOptions),
  1199. series: [
  1200. {
  1201. name: '招聘需求公告次数',
  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: dataTemp,
  1219. },
  1220. {
  1221. name: '招聘需求公告累计招聘人次',
  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: '#43ede3',
  1230. },
  1231. {
  1232. offset: 1,
  1233. color: '#082550',
  1234. },
  1235. ]),
  1236. },
  1237. },
  1238. data: dataTemp2,
  1239. },
  1240. ],
  1241. }
  1242. option.title.text = '各省属企业招聘需求公示人次'
  1243. option.legend.data = ['招聘需求公告次数', '招聘需求公告累计招聘人次']
  1244. option.legend.show = true
  1245. option.tooltip.formatter = function (value) {
  1246. return value[0].axisValue + ':' + (value[0].value - 1) + '<br>' + value[1].axisValue + ':' + (value[1].value - 1)
  1247. }
  1248. option.yAxis[0] = {
  1249. type: 'log',
  1250. min: 1,
  1251. logBase: 10,
  1252. axisLine: {
  1253. show: false,
  1254. },
  1255. splitLine: {
  1256. show: true,
  1257. lineStyle: {
  1258. color: '#68b4dd66',
  1259. type: 'dashed',
  1260. },
  1261. },
  1262. axisLabel: {
  1263. show: true,
  1264. formatter: function (value) {
  1265. return value === 1 ? 0 : value
  1266. },
  1267. textStyle: {
  1268. color: 'rgba(250,250,250,0.6)',
  1269. },
  1270. },
  1271. }
  1272. myChart.setOption(option)
  1273. },
  1274. initChartR2 () {
  1275. let myChart = echarts.init(this.$refs['echartR2'])
  1276. let commonOptions = this.commonOption
  1277. commonOptions.yAxis[0].splitNumber = 2
  1278. let dataTemp = []
  1279. let dataTemp2 = []
  1280. dataR2[0].forEach(item => {
  1281. dataTemp.push(item + 1)
  1282. })
  1283. dataR2[1].forEach(item => {
  1284. dataTemp2.push(item + 1)
  1285. })
  1286. let option = {
  1287. ..._.cloneDeep(commonOptions),
  1288. series: [
  1289. {
  1290. name: '录用结果公示次数',
  1291. type: 'bar',
  1292. barWidth: 15,
  1293. itemStyle: {
  1294. normal: {
  1295. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1296. {
  1297. offset: 0,
  1298. color: '#69c0ff',
  1299. },
  1300. {
  1301. offset: 1,
  1302. color: '#082550',
  1303. },
  1304. ]),
  1305. },
  1306. },
  1307. data: dataTemp,
  1308. },
  1309. {
  1310. name: '录用结果公示累计公示人数',
  1311. type: 'bar',
  1312. barWidth: 15,
  1313. itemStyle: {
  1314. normal: {
  1315. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1316. {
  1317. offset: 0,
  1318. color: '#45DAD1',
  1319. },
  1320. {
  1321. offset: 1,
  1322. color: '#082550',
  1323. },
  1324. ]),
  1325. },
  1326. },
  1327. data: dataTemp2,
  1328. },
  1329. ],
  1330. }
  1331. option.title.text = '各省属企业录用结果公示人次'
  1332. option.legend.data = ['录用结果公示次数', '录用结果公示累计公示人数']
  1333. option.legend.show = true
  1334. option.tooltip.formatter = function (value) {
  1335. return value[0].axisValue + ':' + (value[0].value - 1) + '<br>' + value[1].axisValue + ':' + (value[1].value - 1)
  1336. }
  1337. option.yAxis[0] = {
  1338. type: 'log',
  1339. min: 1,
  1340. logBase: 10,
  1341. axisLine: {
  1342. show: false,
  1343. },
  1344. splitLine: {
  1345. show: true,
  1346. lineStyle: {
  1347. color: '#68b4dd66',
  1348. type: 'dashed',
  1349. },
  1350. },
  1351. axisLabel: {
  1352. show: true,
  1353. formatter: function (value) {
  1354. return value === 1 ? 0 : value
  1355. },
  1356. textStyle: {
  1357. color: 'rgba(250,250,250,0.6)',
  1358. },
  1359. },
  1360. }
  1361. myChart.setOption(option)
  1362. },
  1363. initChartR3 () {
  1364. let myChart = echarts.init(this.$refs['echartR3'])
  1365. let commonOptions = this.commonOption
  1366. commonOptions.yAxis[0].splitNumber = 2
  1367. let option = {
  1368. ..._.cloneDeep(commonOptions),
  1369. color: ['#45DAD1'],
  1370. series: [
  1371. {
  1372. name: '2022年利润(万)',
  1373. type: 'bar',
  1374. barWidth: 15,
  1375. itemStyle: {
  1376. normal: {
  1377. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1378. {
  1379. offset: 0,
  1380. color: '#69c0ff',
  1381. },
  1382. {
  1383. offset: 1,
  1384. color: '#082550',
  1385. },
  1386. ]),
  1387. },
  1388. },
  1389. data: dataR3[0],
  1390. },
  1391. {
  1392. name: '2022年累计招聘数',
  1393. type: 'bar',
  1394. barWidth: 15,
  1395. yAxisIndex: 1,
  1396. itemStyle: {
  1397. color: params => {
  1398. if (params.value > 0 && dataR3[0][params.dataIndex] < 0) {
  1399. return 'red'
  1400. } else {
  1401. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1402. {
  1403. offset: 0,
  1404. color: '#45DAD1',
  1405. },
  1406. {
  1407. offset: 1,
  1408. color: '#082550',
  1409. },
  1410. ])
  1411. }
  1412. },
  1413. },
  1414. // itemStyle: {
  1415. // normal: {
  1416. // color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1417. // {
  1418. // offset: 0,
  1419. // color: '#45DAD1',
  1420. // },
  1421. // {
  1422. // offset: 1,
  1423. // color: '#082550',
  1424. // },
  1425. // ]),
  1426. // },
  1427. // },
  1428. data: dataR3[1],
  1429. },
  1430. ],
  1431. }
  1432. option.title.text = '各省属企业年利润与当年累计招聘人数'
  1433. option.legend.data = ['2022年利润(万)', '2022年累计招聘数']
  1434. option.legend.show = true
  1435. option.yAxis[0] = {
  1436. max: function (value) {
  1437. if (Math.abs(value.max) > Math.abs(value.min)) {
  1438. return (Math.abs(value.max) * 1.2).toFixed(2)
  1439. } else {
  1440. return (Math.abs(value.min) * 1.2).toFixed(2)
  1441. }
  1442. },
  1443. min: function (value) {
  1444. if (Math.abs(value.max) > Math.abs(value.min)) {
  1445. return (-Math.abs(value.max) * 1.2).toFixed(2)
  1446. } else {
  1447. return (-Math.abs(value.min) * 1.2).toFixed(2)
  1448. }
  1449. },
  1450. type: 'value',
  1451. axisLine: {
  1452. show: false,
  1453. },
  1454. splitLine: {
  1455. show: true,
  1456. lineStyle: {
  1457. color: '#68b4dd66',
  1458. type: 'dashed',
  1459. },
  1460. },
  1461. axisLabel: {
  1462. show: true,
  1463. formatter: function (value) {
  1464. return value === 1 ? 0 : value
  1465. },
  1466. textStyle: {
  1467. color: 'rgba(250,250,250,0.6)',
  1468. },
  1469. },
  1470. }
  1471. option.yAxis.push({
  1472. splitLine: {
  1473. show: false,
  1474. },
  1475. axisLine: {
  1476. show: false,
  1477. },
  1478. axisLabel: {
  1479. show: true,
  1480. formatter: '{value}',
  1481. textStyle: {
  1482. color: 'rgba(250,250,250,0.6)',
  1483. },
  1484. },
  1485. max: function (value) {
  1486. if (Math.abs(value.max) > Math.abs(value.min)) {
  1487. return (Math.abs(value.max) * 1.2).toFixed(2)
  1488. } else {
  1489. return (Math.abs(value.min) * 1.2).toFixed(2)
  1490. }
  1491. },
  1492. min: function (value) {
  1493. if (Math.abs(value.max) > Math.abs(value.min)) {
  1494. return (-Math.abs(value.max) * 1.2).toFixed(2)
  1495. } else {
  1496. return (-Math.abs(value.min) * 1.2).toFixed(2)
  1497. }
  1498. },
  1499. })
  1500. myChart.setOption(option)
  1501. },
  1502. initChartR4 () {
  1503. let myChart = echarts.init(this.$refs['echartR4'])
  1504. let commonOptions = this.commonOption
  1505. commonOptions.yAxis[0].splitNumber = 2
  1506. let option = {
  1507. ..._.cloneDeep(commonOptions),
  1508. series: [
  1509. {
  1510. name: '2022年退出人数',
  1511. type: 'bar',
  1512. barWidth: 15,
  1513. itemStyle: {
  1514. normal: {
  1515. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1516. {
  1517. offset: 0,
  1518. color: '#69c0ff',
  1519. },
  1520. {
  1521. offset: 1,
  1522. color: '#082550',
  1523. },
  1524. ]),
  1525. },
  1526. },
  1527. data: dataR4[0],
  1528. },
  1529. {
  1530. name: '2022年累计招聘人数',
  1531. type: 'bar',
  1532. barWidth: 15,
  1533. itemStyle: {
  1534. normal: {
  1535. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1536. {
  1537. offset: 0,
  1538. color: '#45DAD1',
  1539. },
  1540. {
  1541. offset: 1,
  1542. color: '#082550',
  1543. },
  1544. ]),
  1545. },
  1546. },
  1547. data: dataR4[1],
  1548. },
  1549. ],
  1550. }
  1551. option.title.text = '各省属企业"退二进一"完成情况'
  1552. option.legend.data = ['2022年退出人数', '2022年累计招聘人数']
  1553. option.legend.show = true
  1554. option.yAxis[0] = {
  1555. type: 'log',
  1556. min: 1,
  1557. logBase: 10,
  1558. axisLine: {
  1559. show: false,
  1560. },
  1561. splitLine: {
  1562. show: true,
  1563. lineStyle: {
  1564. color: '#68b4dd66',
  1565. type: 'dashed',
  1566. },
  1567. },
  1568. axisLabel: {
  1569. show: true,
  1570. formatter: function (value) {
  1571. return value === 1 ? 0 : value
  1572. },
  1573. textStyle: {
  1574. color: 'rgba(250,250,250,0.6)',
  1575. },
  1576. },
  1577. }
  1578. myChart.setOption(option)
  1579. },
  1580. initChartR5 () {
  1581. let myChart = echarts.init(this.$refs['echartR5'])
  1582. let option = {
  1583. ..._.cloneDeep(this.commonOption),
  1584. series: [
  1585. {
  1586. name: '去年同期在岗职工平均薪酬',
  1587. type: 'bar',
  1588. barWidth: 15,
  1589. markLine: {
  1590. data: [
  1591. {
  1592. name: '省属企业平均水平',
  1593. yAxis: 9333.33,
  1594. lineStyle: {
  1595. color: '#fff',
  1596. },
  1597. label: {
  1598. formatter: '{b}',
  1599. position: 'middle',
  1600. fontSize: 16,
  1601. color: '#fff',
  1602. },
  1603. }
  1604. ],
  1605. label: {
  1606. distance: [50, 0],
  1607. },
  1608. },
  1609. itemStyle: {
  1610. normal: {
  1611. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1612. {
  1613. offset: 0,
  1614. color: '#6682F5',
  1615. },
  1616. {
  1617. offset: 1,
  1618. color: '#082550',
  1619. },
  1620. ]),
  1621. },
  1622. },
  1623. data: fjxdataL1[0],
  1624. },
  1625. {
  1626. name: '在岗职工平均薪酬',
  1627. type: 'bar',
  1628. barWidth: 15,
  1629. itemStyle: {
  1630. normal: {
  1631. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1632. {
  1633. offset: 0,
  1634. color: '#69c0ff',
  1635. },
  1636. {
  1637. offset: 1,
  1638. color: '#082550',
  1639. },
  1640. ]),
  1641. },
  1642. },
  1643. data: fjxdataL1[1],
  1644. },
  1645. ],
  1646. }
  1647. option.title.text = '各省属企业在岗职工平均薪酬'
  1648. option.legend.data = ['去年同期在岗职工平均薪酬', '在岗职工平均薪酬']
  1649. option.legend.show = true
  1650. option.yAxis.push({
  1651. splitLine: {
  1652. show: false,
  1653. },
  1654. axisLine: {
  1655. show: false,
  1656. },
  1657. })
  1658. myChart.setOption(option)
  1659. },
  1660. initChartR6 () {
  1661. let myChart = echarts.init(this.$refs['echartR6'])
  1662. let option = {
  1663. ..._.cloneDeep(this.commonOption),
  1664. color: ['#69c0ff'],
  1665. series: [
  1666. {
  1667. name: '2022年利润累计涨幅率',
  1668. type: 'line',
  1669. smooth: true, //平滑曲线显示
  1670. showAllSymbol: true, //显示所有图形。
  1671. symbol: 'circle', //标记的图形为实心圆
  1672. symbolSize: 8, //标记的大小
  1673. smooth: false,
  1674. itemStyle: {
  1675. //折线拐点标志的样式
  1676. color: '#B889EA',
  1677. borderColor: '#B889EA',
  1678. width: 2,
  1679. shadowColor: '#B889EA',
  1680. shadowBlur: 4,
  1681. },
  1682. lineStyle: {
  1683. color: '#B889EA',
  1684. width: 2,
  1685. },
  1686. data: fjxdataL2[0],
  1687. },
  1688. {
  1689. name: '2022年薪酬累计涨幅率',
  1690. type: 'line',
  1691. smooth: true, //平滑曲线显示
  1692. showAllSymbol: true, //显示所有图形。
  1693. symbol: 'circle', //标记的图形为实心圆
  1694. symbolSize: 12, //标记的大小
  1695. smooth: false,
  1696. itemStyle: {
  1697. color: params => {
  1698. if (params.value > 0 && fjxdataL2[0][params.dataIndex] < 0) {
  1699. return 'yellow'
  1700. } else {
  1701. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1702. {
  1703. offset: 0,
  1704. color: '#69c0ff',
  1705. },
  1706. {
  1707. offset: 1,
  1708. color: '#082550',
  1709. },
  1710. ])
  1711. }
  1712. },
  1713. },
  1714. lineStyle: {
  1715. color: '#69C0FF',
  1716. width: 2,
  1717. },
  1718. data: fjxdataL2[1],
  1719. },
  1720. ],
  1721. }
  1722. option.title.text = '各省属企业利润与薪酬变动情况'
  1723. option.legend.data = ['2022年利润累计涨幅率', '2022年薪酬累计涨幅率']
  1724. option.tooltip.formatter = '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  1725. option.yAxis[0].axisLabel.formatter = '{value} %'
  1726. myChart.setOption(option)
  1727. },
  1728. initChartR7 () {
  1729. let myChart = echarts.init(this.$refs['echartR7'])
  1730. let option = {
  1731. ..._.cloneDeep(this.commonOption),
  1732. series: [
  1733. {
  1734. name: '全员绩效考核完成率',
  1735. type: 'bar',
  1736. barWidth: 15,
  1737. itemStyle: {
  1738. normal: {
  1739. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1740. {
  1741. offset: 0,
  1742. color: '#B889EA',
  1743. },
  1744. {
  1745. offset: 1,
  1746. color: '#082550',
  1747. },
  1748. ]),
  1749. },
  1750. },
  1751. data: fjxdataL3[0],
  1752. },
  1753. ],
  1754. }
  1755. option.title.text = '各省属企业全员绩效考核'
  1756. option.legend.show = true
  1757. option.tooltip = {
  1758. trigger: 'axis',
  1759. formatter: '{a0}:{c0}' + '%'
  1760. },
  1761. option.yAxis[0].axisLabel = {
  1762. show: true,
  1763. formatter: '{value} %',
  1764. textStyle: {
  1765. color: 'rgba(250,250,250,0.6)',
  1766. },
  1767. }
  1768. myChart.setOption(option)
  1769. },
  1770. initChartR8 () {
  1771. let myChart = echarts.init(this.$refs['echartR8'])
  1772. let option = {
  1773. ..._.cloneDeep(this.commonOption),
  1774. series: [
  1775. {
  1776. name: '任期制契约化完成率',
  1777. type: 'bar',
  1778. barWidth: 15,
  1779. itemStyle: {
  1780. normal: {
  1781. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1782. {
  1783. offset: 0,
  1784. color: '#43ede3',
  1785. },
  1786. {
  1787. offset: 1,
  1788. color: '#082550',
  1789. },
  1790. ]),
  1791. },
  1792. },
  1793. data: fjxdataL4[0],
  1794. },
  1795. ],
  1796. }
  1797. option.title.text = '各省属企业任期制契约化管理'
  1798. option.legend.show = true
  1799. option.tooltip.formatter = '{a0}:{c0}' + '%'
  1800. option.yAxis[0].axisLabel.formatter = '{value} %'
  1801. myChart.setOption(option)
  1802. },
  1803. },
  1804. })