index4.js 48 KB

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