index.js 60 KB

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