index2.js 51 KB

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