index2.js 49 KB

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