index2.js 48 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540
  1. let barImg =
  2. 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAtCAYAAAA6GuKaAAAAAXNSR0IArs4c6QAADNRJREFUaEPNmXmQFNd9x9/Zr3u6Z2ZndzkiLeYwYhctJUtgC8GGQ46MBLYsjAURQnKSckWKkz+SkuWUnarElqtSsV2W/Kccq+Kq6EIFGAwpEEFSWIRYgQKSIrFiF3EsBskcuztX3+/oVPfMLMMesKxklbtq6tXMTk9/+rff/v6OB8HEDzjxU4fOjCbyGxO5cP05Ezm/xlkPfF3w13PRsWAhAMurfytX1nb/8ne79SpQurp2xutYwOOCHy907Xt1awxahkOAQQCBEJXX8IOQCMQvxipQyY3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KX8vt4D/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: ['#b889ea'],
  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. normal: {
  550. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  551. {
  552. offset: 0,
  553. color: '#43ede3',
  554. },
  555. {
  556. offset: 1,
  557. color: '#43ede3',
  558. },
  559. ]),
  560. },
  561. },
  562. // markLine: {
  563. // data: [{ type: 'average', name: 'Avg' }],
  564. // },
  565. data: dataL7[0],
  566. },
  567. {
  568. name: '全员劳动生产率同比变化',
  569. type: 'line',
  570. barWidth: 15,
  571. // yAxisIndex: 1,
  572. showAllSymbol: true, //显示所有图形。
  573. symbol: 'circle', //标记的图形为实心圆
  574. symbolSize: 15, //标记的大小
  575. itemStyle: {
  576. color: params => {
  577. if (dataL7[0][params.dataIndex] > 0 && params.value < 0) {
  578. return 'red'
  579. } else {
  580. return '#b889ea'
  581. }
  582. },
  583. },
  584. lineStyle: {
  585. color: '#b889ea',
  586. width: 2,
  587. },
  588. // itemStyle: {
  589. // normal: {
  590. // color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  591. // {
  592. // offset: 0,
  593. // color: '#b889ea',
  594. // },
  595. // {
  596. // offset: 1,
  597. // color: '#b889ea',
  598. // },
  599. // ]),
  600. // },
  601. // },
  602. data: dataL7[1],
  603. },
  604. ],
  605. }
  606. option.title.text = '人数变化和全员劳动生产率变化率分析'
  607. option.legend.data = ['人数变化', '全员劳动生产率同比变化']
  608. option.legend.show = true
  609. option.tooltip = {
  610. trigger: 'axis',
  611. formatter: '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  612. }
  613. option.yAxis = [
  614. {
  615. type: 'value',
  616. axisLine: {
  617. show: false,
  618. },
  619. splitLine: {
  620. show: true,
  621. lineStyle: {
  622. color: '#68b4dd66',
  623. type: 'dashed',
  624. },
  625. },
  626. axisLabel: {
  627. show: true,
  628. formatter: '{value} %',
  629. textStyle: {
  630. color: 'rgba(250,250,250,0.6)',
  631. },
  632. },
  633. },
  634. {
  635. type: 'value',
  636. axisLine: {
  637. show: false,
  638. },
  639. splitLine: {
  640. show: false,
  641. },
  642. axisLabel: {
  643. show: true,
  644. formatter: '{value} %',
  645. textStyle: {
  646. color: 'rgba(250,250,250,0.6)',
  647. },
  648. },
  649. }
  650. ]
  651. myChart.setOption(option)
  652. },
  653. initChartL8 () {
  654. let myChart = echarts.init(this.$refs['echartL8'])
  655. let option = {
  656. ..._.cloneDeep(this.commonOption),
  657. color: ['#b889ea'],
  658. series: [
  659. {
  660. name: '人数变化',
  661. type: 'line',
  662. barWidth: 15,
  663. showAllSymbol: true, //显示所有图形。
  664. symbol: 'circle', //标记的图形为实心圆
  665. symbolSize: 15, //标记的大小
  666. smooth: false,
  667. itemStyle: {
  668. normal: {
  669. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  670. {
  671. offset: 0,
  672. color: '#43ede3',
  673. },
  674. {
  675. offset: 1,
  676. color: '#43ede3',
  677. },
  678. ]),
  679. },
  680. },
  681. // markLine: {
  682. // data: [{ type: 'average', name: 'Avg' }],
  683. // },
  684. data: dataL8[0],
  685. },
  686. {
  687. name: '人工成本利润率同比变化',
  688. type: 'line',
  689. barWidth: 15,
  690. // yAxisIndex: 1,
  691. showAllSymbol: true, //显示所有图形。
  692. symbol: 'circle', //标记的图形为实心圆
  693. symbolSize: 15, //标记的大小
  694. smooth: false,
  695. itemStyle: {
  696. color: params => {
  697. if (dataL8[0][params.dataIndex] > 0 && params.value < 0) {
  698. return 'red'
  699. } else {
  700. return '#b889ea'
  701. }
  702. },
  703. },
  704. lineStyle: {
  705. color: '#b889ea',
  706. width: 2,
  707. },
  708. data: dataL8[1],
  709. },
  710. ],
  711. }
  712. option.title.text = '人数变化和人工利润率变化分析'
  713. option.legend.data = ['人数变化', '人工成本利润率同比变化']
  714. option.legend.show = true
  715. option.tooltip = {
  716. trigger: 'axis',
  717. formatter: '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  718. }
  719. option.yAxis = [
  720. {
  721. type: 'value',
  722. axisLine: {
  723. show: false,
  724. },
  725. splitLine: {
  726. show: true,
  727. lineStyle: {
  728. color: '#68b4dd66',
  729. type: 'dashed',
  730. },
  731. },
  732. axisLabel: {
  733. show: true,
  734. formatter: '{value} %',
  735. textStyle: {
  736. color: 'rgba(250,250,250,0.6)',
  737. },
  738. },
  739. },
  740. {
  741. type: 'value',
  742. axisLine: {
  743. show: false,
  744. },
  745. splitLine: {
  746. show: false,
  747. },
  748. axisLabel: {
  749. show: true,
  750. formatter: '{value} %',
  751. textStyle: {
  752. color: 'rgba(250,250,250,0.6)',
  753. },
  754. },
  755. }
  756. ]
  757. myChart.setOption(option)
  758. },
  759. // 中间图表---------------------------------------------开始
  760. initChartC1 () {
  761. let myChart = echarts.init(this.$refs['echartC1'])
  762. let option = {
  763. ..._.cloneDeep(this.commonOption),
  764. color: ['#69c0ff'],
  765. series: [
  766. {
  767. name: '全员劳动生产率(万/人)',
  768. type: 'bar',
  769. barWidth: 12,
  770. smooth: true, //平滑曲线显示
  771. showAllSymbol: true, //显示所有图形。
  772. symbol: 'circle', //标记的图形为实心圆
  773. symbolSize: 8, //标记的大小
  774. smooth: false,
  775. itemStyle: {
  776. color: params => {
  777. if (params.value < 0 && dataC1[1][params.dataIndex] < 0) {
  778. return 'red'
  779. } else if (params.value < 0) {
  780. return 'yellow'
  781. } else {
  782. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  783. {
  784. offset: 0,
  785. color: '#69c0ff',
  786. },
  787. {
  788. offset: 1,
  789. color: '#082550',
  790. },
  791. ])
  792. }
  793. },
  794. },
  795. lineStyle: {
  796. color: '#B889EA',
  797. width: 2,
  798. },
  799. markLine: {
  800. data: [
  801. {
  802. name: '省属企业平均水平',
  803. yAxis: 50.13,
  804. lineStyle: {
  805. color: '#fff',
  806. },
  807. label: {
  808. formatter: '{b}',
  809. position: 'middle',
  810. color: '#fff',
  811. },
  812. },
  813. {
  814. name: '央企平均水平',
  815. yAxis: 69.4,
  816. lineStyle: {
  817. color: '#fff',
  818. },
  819. label: {
  820. formatter: '{b}',
  821. position: 'middle',
  822. color: '#fff',
  823. },
  824. },
  825. ],
  826. label: {
  827. distance: [20, 8],
  828. },
  829. },
  830. data: dataC1[0],
  831. },
  832. {
  833. name: '全员劳动生产率同比变化',
  834. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  835. type: 'line',
  836. itemStyle: {
  837. normal: {
  838. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  839. {
  840. offset: 0,
  841. color: '#69c0ff',
  842. },
  843. {
  844. offset: 1,
  845. color: '#082550',
  846. },
  847. ]),
  848. },
  849. },
  850. data: dataC1[1],
  851. },
  852. ],
  853. }
  854. option.title.text = '各二级企业全员劳动生产率'
  855. option.legend.data = ['全员劳动生产率同比变化', '全员劳动生产率(万/人)']
  856. option.legend.show = true
  857. option.tooltip = {
  858. trigger: 'axis',
  859. formatter: '{a0}:{c0}' + '<br/>' + '{a1}:{c1}' + '%'
  860. }
  861. option.yAxis.push({
  862. type: 'value',
  863. axisLine: {
  864. show: false,
  865. },
  866. splitLine: {
  867. show: false,
  868. },
  869. axisLabel: {
  870. show: true,
  871. formatter: '{value} %',
  872. textStyle: {
  873. color: 'rgba(250,250,250,0.6)',
  874. },
  875. },
  876. })
  877. myChart.setOption(option)
  878. tools.loopShowTooltip(myChart, option, {
  879. nterval: 2000,
  880. loopSeries: true,
  881. });
  882. },
  883. initChartC2 () {
  884. let myChart = echarts.init(this.$refs['echartC2'])
  885. let option = {
  886. ..._.cloneDeep(this.commonOption),
  887. color: ['#69c0ff'],
  888. series: [
  889. {
  890. name: '人工成本利润率同比变化',
  891. type: 'line',
  892. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  893. smooth: true, //平滑曲线显示
  894. showAllSymbol: true, //显示所有图形。
  895. symbol: 'circle', //标记的图形为实心圆
  896. symbolSize: 8, //标记的大小
  897. smooth: false,
  898. itemStyle: {
  899. //折线拐点标志的样式
  900. color: '#B889EA',
  901. borderColor: '#B889EA',
  902. width: 2,
  903. shadowColor: '#B889EA',
  904. shadowBlur: 4,
  905. },
  906. lineStyle: {
  907. color: '#B889EA',
  908. width: 2,
  909. },
  910. data: dataC2[0],
  911. },
  912. {
  913. name: '人工成本利润率',
  914. type: 'bar',
  915. barWidth: 15,
  916. itemStyle: {
  917. color: params => {
  918. if (params.value < 0 && dataC2[1][params.dataIndex] < 0) {
  919. return 'red'
  920. } else if (params.value < 0) {
  921. return 'yellow'
  922. } else {
  923. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  924. {
  925. offset: 0,
  926. color: '#69c0ff',
  927. },
  928. {
  929. offset: 1,
  930. color: '#082550',
  931. },
  932. ])
  933. }
  934. },
  935. },
  936. data: dataC2[1],
  937. markLine: {
  938. data: [
  939. {
  940. name: '省属企业平均水平',
  941. yAxis: 67.09,
  942. lineStyle: {
  943. color: '#fff',
  944. },
  945. label: {
  946. formatter: '{b}',
  947. position: 'end',
  948. color: '#fff',
  949. },
  950. },
  951. {
  952. name: '央企平均水平',
  953. yAxis: 81,
  954. lineStyle: {
  955. color: '#fff',
  956. },
  957. label: {
  958. formatter: '{b}',
  959. position: 'middle',
  960. color: '#fff',
  961. },
  962. },
  963. ],
  964. label: {
  965. distance: [20, 8],
  966. },
  967. },
  968. },
  969. ],
  970. }
  971. option.title.text = '各二级企业人工成本利润率'
  972. option.legend.data = ['人工成本利润率同比变化', '人工成本利润率']
  973. option.legend.show = true
  974. option.tooltip = {
  975. trigger: 'axis',
  976. formatter: '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  977. }
  978. option.grid.right = '15%'
  979. option.yAxis = [
  980. {
  981. axisLine: {
  982. show: false,
  983. },
  984. splitLine: {
  985. show: true,
  986. lineStyle: {
  987. color: '#68b4dd66',
  988. type: 'dashed',
  989. },
  990. },
  991. axisLabel: {
  992. show: true,
  993. formatter: '{value} %',
  994. textStyle: {
  995. color: 'rgba(250,250,250,0.6)',
  996. },
  997. },
  998. },
  999. {
  1000. splitLine: {
  1001. show: false,
  1002. },
  1003. axisLine: {
  1004. show: false,
  1005. },
  1006. axisLabel: {
  1007. show: true,
  1008. formatter: '{value} %',
  1009. textStyle: {
  1010. color: 'rgba(250,250,250,0.6)',
  1011. },
  1012. },
  1013. }
  1014. ]
  1015. myChart.setOption(option)
  1016. tools.loopShowTooltip(myChart, option, {
  1017. nterval: 2000,
  1018. loopSeries: true,
  1019. });
  1020. },
  1021. // 右侧图表---------------------------------------------开始
  1022. initChartR1 () {
  1023. let myChart = echarts.init(this.$refs['echartR1'])
  1024. let commonOptions = this.commonOption
  1025. commonOptions.yAxis[0].splitNumber = 2
  1026. let option = {
  1027. ..._.cloneDeep(commonOptions),
  1028. series: [
  1029. {
  1030. name: '招聘需求公告次数',
  1031. type: 'bar',
  1032. barWidth: 15,
  1033. itemStyle: {
  1034. normal: {
  1035. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1036. {
  1037. offset: 0,
  1038. color: '#69c0ff',
  1039. },
  1040. {
  1041. offset: 1,
  1042. color: '#082550',
  1043. },
  1044. ]),
  1045. },
  1046. },
  1047. data: dataR1[0],
  1048. },
  1049. {
  1050. name: '招聘需求公告累计招聘人次',
  1051. type: 'bar',
  1052. barWidth: 15,
  1053. itemStyle: {
  1054. normal: {
  1055. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1056. {
  1057. offset: 0,
  1058. color: '#43ede3',
  1059. },
  1060. {
  1061. offset: 1,
  1062. color: '#082550',
  1063. },
  1064. ]),
  1065. },
  1066. },
  1067. data: dataR1[1],
  1068. },
  1069. ],
  1070. }
  1071. option.title.text = '各二级企业招聘需求公告人次情况'
  1072. option.legend.data = ['招聘需求公告次数', '招聘需求公告累计招聘人次']
  1073. option.legend.show = true
  1074. option.yAxis.push({
  1075. type: 'value',
  1076. splitLine: {
  1077. show: false,
  1078. },
  1079. axisLine: {
  1080. show: false,
  1081. },
  1082. })
  1083. myChart.setOption(option)
  1084. },
  1085. initChartR2 () {
  1086. let myChart = echarts.init(this.$refs['echartR2'])
  1087. let commonOptions = this.commonOption
  1088. commonOptions.yAxis[0].splitNumber = 2
  1089. let option = {
  1090. ..._.cloneDeep(commonOptions),
  1091. series: [
  1092. {
  1093. name: '录用结果公示次数',
  1094. type: 'bar',
  1095. barWidth: 15,
  1096. itemStyle: {
  1097. normal: {
  1098. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1099. {
  1100. offset: 0,
  1101. color: '#69c0ff',
  1102. },
  1103. {
  1104. offset: 1,
  1105. color: '#082550',
  1106. },
  1107. ]),
  1108. },
  1109. },
  1110. data: dataR2[0],
  1111. },
  1112. {
  1113. name: '录用结果公示累计公示人数',
  1114. type: 'bar',
  1115. barWidth: 15,
  1116. itemStyle: {
  1117. normal: {
  1118. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1119. {
  1120. offset: 0,
  1121. color: '#45DAD1',
  1122. },
  1123. {
  1124. offset: 1,
  1125. color: '#082550',
  1126. },
  1127. ]),
  1128. },
  1129. },
  1130. data: dataR2[1],
  1131. },
  1132. ],
  1133. }
  1134. option.title.text = '各二级企业录用结果公示人次'
  1135. option.legend.data = ['录用结果公示次数', '录用结果公示累计公示人数']
  1136. option.legend.show = true
  1137. option.yAxis.push({
  1138. type: 'value',
  1139. splitLine: {
  1140. show: false,
  1141. },
  1142. axisLine: {
  1143. show: false,
  1144. },
  1145. })
  1146. myChart.setOption(option)
  1147. },
  1148. initChartR3 () {
  1149. let myChart = echarts.init(this.$refs['echartR3'])
  1150. let commonOptions = this.commonOption
  1151. commonOptions.yAxis[0].splitNumber = 2
  1152. let option = {
  1153. ..._.cloneDeep(commonOptions),
  1154. color: ['#45DAD1'],
  1155. series: [
  1156. {
  1157. name: '2022年利润(万)',
  1158. type: 'bar',
  1159. barWidth: 15,
  1160. itemStyle: {
  1161. normal: {
  1162. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1163. {
  1164. offset: 0,
  1165. color: '#69c0ff',
  1166. },
  1167. {
  1168. offset: 1,
  1169. color: '#082550',
  1170. },
  1171. ]),
  1172. },
  1173. },
  1174. data: dataR3[0],
  1175. },
  1176. {
  1177. name: '2022年累计招聘数',
  1178. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  1179. type: 'bar',
  1180. barWidth: 15,
  1181. itemStyle: {
  1182. color: params => {
  1183. if (params.value > 0 && dataR3[0][params.dataIndex] < 0) {
  1184. return 'red'
  1185. } else {
  1186. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1187. {
  1188. offset: 0,
  1189. color: '#45DAD1',
  1190. },
  1191. {
  1192. offset: 1,
  1193. color: '#082550',
  1194. },
  1195. ])
  1196. }
  1197. },
  1198. },
  1199. data: dataR3[1],
  1200. },
  1201. ],
  1202. }
  1203. option.title.text = '各二级企业年利润与招聘情况分析'
  1204. option.legend.data = ['2022年利润(万)', '2022年累计招聘数']
  1205. option.legend.show = true
  1206. option.yAxis.push({
  1207. type: 'value',
  1208. splitLine: {
  1209. show: false,
  1210. },
  1211. axisLine: {
  1212. show: false,
  1213. },
  1214. axisLabel: {
  1215. show: true,
  1216. formatter: '{value} %',
  1217. textStyle: {
  1218. color: 'rgba(250,250,250,0.6)',
  1219. },
  1220. },
  1221. })
  1222. myChart.setOption(option)
  1223. },
  1224. initChartR4 () {
  1225. let myChart = echarts.init(this.$refs['echartR4'])
  1226. let commonOptions = this.commonOption
  1227. commonOptions.yAxis[0].splitNumber = 2
  1228. let option = {
  1229. ..._.cloneDeep(commonOptions),
  1230. series: [
  1231. {
  1232. name: '2022年退出人数',
  1233. type: 'bar',
  1234. barWidth: 15,
  1235. itemStyle: {
  1236. normal: {
  1237. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1238. {
  1239. offset: 0,
  1240. color: '#69c0ff',
  1241. },
  1242. {
  1243. offset: 1,
  1244. color: '#082550',
  1245. },
  1246. ]),
  1247. },
  1248. },
  1249. data: dataR4[0],
  1250. },
  1251. {
  1252. name: '2022年累计招聘人数',
  1253. type: 'bar',
  1254. barWidth: 15,
  1255. itemStyle: {
  1256. normal: {
  1257. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1258. {
  1259. offset: 0,
  1260. color: '#45DAD1',
  1261. },
  1262. {
  1263. offset: 1,
  1264. color: '#082550',
  1265. },
  1266. ]),
  1267. },
  1268. },
  1269. data: dataR4[1],
  1270. },
  1271. ],
  1272. }
  1273. option.title.text = '各二级企业"退二进一"完成情况'
  1274. option.legend.data = ['2022年退出人数', '2022年累计招聘人数']
  1275. option.legend.show = true
  1276. option.yAxis.push({
  1277. type: 'value',
  1278. splitLine: {
  1279. show: false,
  1280. },
  1281. axisLine: {
  1282. show: false,
  1283. },
  1284. })
  1285. myChart.setOption(option)
  1286. },
  1287. initChartR5 () {
  1288. let myChart = echarts.init(this.$refs['echartR5'])
  1289. let option = {
  1290. ..._.cloneDeep(this.commonOption),
  1291. series: [
  1292. {
  1293. name: '去年同期在岗职工平均薪酬',
  1294. type: 'bar',
  1295. barWidth: 15,
  1296. itemStyle: {
  1297. normal: {
  1298. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1299. {
  1300. offset: 0,
  1301. color: '#6682F5',
  1302. },
  1303. {
  1304. offset: 1,
  1305. color: '#082550',
  1306. },
  1307. ]),
  1308. },
  1309. },
  1310. data: dataR5[1],
  1311. },
  1312. {
  1313. name: '在岗职工平均薪酬',
  1314. type: 'bar',
  1315. barWidth: 15,
  1316. itemStyle: {
  1317. normal: {
  1318. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1319. {
  1320. offset: 0,
  1321. color: '#69c0ff',
  1322. },
  1323. {
  1324. offset: 1,
  1325. color: '#082550',
  1326. },
  1327. ]),
  1328. },
  1329. },
  1330. data: dataR5[0],
  1331. },
  1332. ],
  1333. }
  1334. option.title.text = '各二级企业在岗职工平均薪酬'
  1335. option.legend.data = ['去年同期在岗职工平均薪酬', '在岗职工平均薪酬']
  1336. option.legend.show = true
  1337. option.yAxis.push({
  1338. type: 'value',
  1339. splitLine: {
  1340. show: false,
  1341. },
  1342. axisLine: {
  1343. show: false,
  1344. },
  1345. })
  1346. myChart.setOption(option)
  1347. },
  1348. initChartR6 () {
  1349. let myChart = echarts.init(this.$refs['echartR6'])
  1350. let option = {
  1351. ..._.cloneDeep(this.commonOption),
  1352. color: ['#69c0ff'],
  1353. series: [
  1354. {
  1355. name: '2022年利润累计涨幅率',
  1356. type: 'line',
  1357. smooth: true, //平滑曲线显示
  1358. showAllSymbol: true, //显示所有图形。
  1359. symbol: 'circle', //标记的图形为实心圆
  1360. symbolSize: 8, //标记的大小
  1361. smooth: false,
  1362. itemStyle: {
  1363. //折线拐点标志的样式
  1364. color: '#B889EA',
  1365. borderColor: '#B889EA',
  1366. width: 2,
  1367. shadowColor: '#B889EA',
  1368. shadowBlur: 4,
  1369. },
  1370. lineStyle: {
  1371. color: '#B889EA',
  1372. width: 2,
  1373. },
  1374. data: dataR6[0],
  1375. },
  1376. {
  1377. name: '2022年薪酬累计涨幅率',
  1378. type: 'line',
  1379. barWidth: 15,
  1380. yAxisIndex: 1,
  1381. showAllSymbol: true, //显示所有图形。
  1382. symbol: 'circle', //标记的图形为实心圆
  1383. symbolSize: 12, //标记的大小
  1384. smooth: false,
  1385. itemStyle: {
  1386. color: params => {
  1387. if (params.value > 0 && dataR6[0][params.dataIndex] < 0) {
  1388. return 'yellow'
  1389. } else {
  1390. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1391. {
  1392. offset: 0,
  1393. color: '#69c0ff',
  1394. },
  1395. {
  1396. offset: 1,
  1397. color: '#082550',
  1398. },
  1399. ])
  1400. }
  1401. },
  1402. },
  1403. data: dataR6[1],
  1404. },
  1405. ],
  1406. }
  1407. option.title.text = '各二级企业利润与薪酬变动情况'
  1408. option.legend.data = ['2022年利润累计涨幅率', '2022年薪酬累计涨幅率']
  1409. option.tooltip = {
  1410. trigger: 'axis',
  1411. formatter: '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  1412. }
  1413. option.yAxis = [
  1414. {
  1415. type: 'value',
  1416. axisLine: {
  1417. show: false,
  1418. },
  1419. splitLine: {
  1420. show: true,
  1421. lineStyle: {
  1422. color: '#68b4dd66',
  1423. type: 'dashed',
  1424. },
  1425. },
  1426. axisLabel: {
  1427. show: true,
  1428. formatter: '{value} %',
  1429. textStyle: {
  1430. color: 'rgba(250,250,250,0.6)',
  1431. },
  1432. },
  1433. },
  1434. {
  1435. type: 'value',
  1436. splitLine: {
  1437. show: false,
  1438. },
  1439. axisLine: {
  1440. show: false,
  1441. },
  1442. axisLabel: {
  1443. show: true,
  1444. formatter: '{value} %',
  1445. textStyle: {
  1446. color: 'rgba(250,250,250,0.6)',
  1447. },
  1448. },
  1449. }
  1450. ]
  1451. myChart.setOption(option)
  1452. },
  1453. initChartR7 () {
  1454. let myChart = echarts.init(this.$refs['echartR7'])
  1455. let option = {
  1456. ..._.cloneDeep(this.commonOption),
  1457. series: [
  1458. {
  1459. name: '全员绩效考核完成率',
  1460. type: 'bar',
  1461. barWidth: 15,
  1462. itemStyle: {
  1463. normal: {
  1464. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1465. {
  1466. offset: 0,
  1467. color: '#B889EA',
  1468. },
  1469. {
  1470. offset: 1,
  1471. color: '#082550',
  1472. },
  1473. ]),
  1474. },
  1475. },
  1476. data: dataR7[0],
  1477. },
  1478. ],
  1479. }
  1480. option.title.text = '各二级企业全员绩效考核'
  1481. // option.legend.data = ['劳动合同签约完成率', '目标值']
  1482. option.tooltip = {
  1483. trigger: 'axis',
  1484. formatter: '{a0}:{c0}' + '%'
  1485. },
  1486. option.yAxis[0].axisLabel = {
  1487. show: true,
  1488. formatter: '{value} %',
  1489. textStyle: {
  1490. color: 'rgba(250,250,250,0.6)',
  1491. },
  1492. }
  1493. myChart.setOption(option)
  1494. },
  1495. initChartR8 () {
  1496. let myChart = echarts.init(this.$refs['echartR8'])
  1497. let option = {
  1498. ..._.cloneDeep(this.commonOption),
  1499. series: [
  1500. {
  1501. name: '任期制考核完成率',
  1502. type: 'bar',
  1503. barWidth: 15,
  1504. itemStyle: {
  1505. normal: {
  1506. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1507. {
  1508. offset: 0,
  1509. color: '#43ede3',
  1510. },
  1511. {
  1512. offset: 1,
  1513. color: '#082550',
  1514. },
  1515. ]),
  1516. },
  1517. },
  1518. data: dataR8[0],
  1519. },
  1520. ],
  1521. }
  1522. option.title.text = '各二级企业任期制契约化完成率'
  1523. option.tooltip = {
  1524. trigger: 'axis',
  1525. formatter: '{a0}:{c0}' + '%'
  1526. },
  1527. option.yAxis[0].axisLabel = {
  1528. show: true,
  1529. formatter: '{value} %',
  1530. textStyle: {
  1531. color: 'rgba(250,250,250,0.6)',
  1532. },
  1533. }
  1534. myChart.setOption(option)
  1535. },
  1536. },
  1537. })