index.js 59 KB

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