index.js 76 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284
  1. let barImg =
  2. 'data:image/png;base64,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'
  3. let app = new Vue({
  4. el: '#app',
  5. data() {
  6. return {
  7. twinkle7: [],
  8. twinkle8: [],
  9. twinkleR6: [],
  10. showTip: false,
  11. showTip2: false,
  12. tipNum: '',
  13. tipData: tipData,
  14. time: '',
  15. year: '2022',
  16. config1: {
  17. number: [100],
  18. content: '{nt}个',
  19. },
  20. centerData: '',
  21. storageRecordConfig: {
  22. header: ['', '时间', '所属集团', '工作情况'],
  23. headerBGC: '#05507b33',
  24. oddRowBGC: '#69c0ff0f',
  25. waitTime: '50000',
  26. evenRowBGC: '',
  27. headerHeight: '40',
  28. columnWidth: [150, 150],
  29. rowNum: 4,
  30. align: ['right', 'center', 'center', 'center'],
  31. data: [
  32. // ['<span class="lightOut"><span class="light red"></span></span>', '2022年1月', '山西焦煤', '已经开展高层次人才引进工作'],
  33. // ['<span class="lightOut"><span class="light yellow"></span></span>', '2022年2月', '山西文旅', '不能按期完成序时进度'],
  34. // ['<span class="lightOut"><span class="light green"></span></span>', '2022年3月', '大地控股', '已经实现中长期激励机制贯彻'],
  35. // ['<span class="lightOut"><span class="light red"></span></span>', '2022年4月', '国际能源', '薪酬结果没有做到公开'],
  36. // ['<span class="lightOut"><span class="light yellow"></span></span>', '2022年5月', '山西焦煤', '已经开展高层次人才引进工作'],
  37. // ['<span class="lightOut"><span class="light green"></span></span>', '2022年6月', '山西焦煤', '不能按期完成序时进度'],
  38. ['<span class="lightOut"><span class=" light green "></span></span>', ' 2022.12.07 ', ' 山西焦煤 ', ' “退二进一”完成情况表现优秀 '],
  39. ['<span class="lightOut"><span class=" light green "></span></span>', ' 2023.01.04 ', ' 山西焦煤 ', ' 总部机构压减成效明显 '],
  40. ['<span class="lightOut"><span class=" light green "></span></span>', ' 2023.01.05 ', ' 晋能控股 ', ' 总部人员压减成效突出 '],
  41. ['<span class="lightOut"><span class=" light green "></span></span>', ' 2023.01.06 ', ' 晋能控股 ', ' 中层管理人数改革成效显著 '],
  42. ['<span class="lightOut"><span class=" light green "></span></span>', ' 2022.12.07 ', ' 晋能控股 ', ' 管理级次压缩成效明显 '],
  43. ['<span class="lightOut"><span class=" light red "></span></span>', ' 2023.01.08 ', ' 华阳新材 ', ' 六定未按要求下穿到全级次企业 '],
  44. ['<span class="lightOut"><span class=" light green "></span></span>', ' 2022.11.07 ', ' 潞安化工 ', ' 全员劳动生产率提高明显 '],
  45. ['<span class="lightOut"><span class=" light green "></span></span>', ' 2023.01.10 ', ' 建投集团 ', ' 深入开展中层管理人员竞聘上岗 '],
  46. ['<span class="lightOut"><span class=" light green "></span></span>', ' 2023.01.11 ', ' 华舰体育 ', ' 集团人数增长速度较快 '],
  47. ['<span class="lightOut"><span class=" light green "></span></span>', ' 2023.01.12 ', ' 华舰体育 ', ' 人员增速显著高于全员劳动生产率增速 '],
  48. ['<span class="lightOut"><span class=" light green "></span></span>', ' 2022.09.07 ', ' 国际能源 ', ' 全员劳动生产率增速显著高于人员增速 '],
  49. ['<span class="lightOut"><span class=" light green "></span></span>', ' 2023.01.15 ', ' 山西焦煤 ', ' 人工成本利润率增长且总人数下降 '],
  50. ['<span class="lightOut"><span class=" light green "></span></span>', ' 2023.01.15 ', ' 晋能控股 ', ' 人工成本利润率增长且总人数下降 '],
  51. ['<span class="lightOut"><span class=" light green "></span></span>', ' 2023.01.15 ', ' 华阳新材 ', ' 人工成本利润率增长且总人数下降 '],
  52. ['<span class="lightOut"><span class=" light green "></span></span>', ' 2023.01.15 ', ' 太重集团 ', ' 人工成本利润率增长且总人数下降 '],
  53. ['<span class="lightOut"><span class=" light green "></span></span>', ' 2023.01.15 ', ' 国际能源 ', ' 人工成本利润率增长且总人数下降 '],
  54. ['<span class="lightOut"><span class=" light green "></span></span>', ' 2023.01.15 ', ' 华远陆港 ', ' 人工成本利润率增长且总人数下降 '],
  55. ['<span class="lightOut"><span class=" light green "></span></span>', ' 2023.01.15 ', ' 交控集团 ', ' 人工成本利润率增长且总人数下降 '],
  56. ['<span class="lightOut"><span class=" light green "></span></span>', ' 2023.01.15 ', ' 云时代 ', ' 人工成本利润率增长且总人数下降 '],
  57. ['<span class="lightOut"><span class=" light yellow "></span></span>', ' 2023.01.16 ', ' 文旅集团 ', ' 人工成本利润率显著降低 '],
  58. ['<span class="lightOut"><span class=" light yellow "></span></span>', ' 2023.01.17 ', ' 航产集团 ', ' 人工成本利润率显著降低 '],
  59. ['<span class="lightOut"><span class=" light red "></span></span>', ' 2023.01.18 ', ' 大地控股 ', ' 中层管理人员任命不符合六定要求 '],
  60. ['<span class="lightOut"><span class=" light green "></span></span>', ' 2022.11.07 ', ' 交控集团 ', ' “退二进一”完成情况表现优秀 '],
  61. ['<span class="lightOut"><span class=" light green "></span></span>', ' 2023.01.20 ', ' 太重集团 ', ' 开展管理人员末等调整和不胜任退出 '],
  62. ['<span class="lightOut"><span class=" light yellow "></span></span>', ' 2022.12.07 ', ' 华舰体育 ', ' 六定相关文件未按要求备案 '],
  63. ['<span class="lightOut"><span class=" light yellow "></span></span>', ' 2022.12.07 ', ' 文旅集团 ', ' 六定相关文件未按要求备案 '],
  64. ['<span class="lightOut"><span class=" light yellow "></span></span>', ' 2022.12.07 ', ' 水控集团 ', ' 六定相关文件未按要求备案 '],
  65. ],
  66. // data: [
  67. // ['<span style-"display:inline-block; width:15px;height:15px;border-radius:50%;background-color:green;"></span>', '2022年1月', '山西焦煤', '已经开展高层次人才引进工作'],
  68. // ['2022年2月', '山西文旅', '不能按期完成序时进度'],
  69. // ['2022年3月', '大地控股', '已经实现中长期激励机制贯彻'],
  70. // ['2022年4月', '国际能源', '薪酬结果没有做到公开'],
  71. // ['2022年5月', '山西焦煤', '已经开展高层次人才引进工作'],
  72. // ['2022年6月', '山西焦煤', '不能按期完成序时进度'],
  73. // ],
  74. },
  75. storageRecordConfig2: {
  76. header: ['', '企业名称', '预警内容', '数据抓取日期', '累计未获取数据日期'],
  77. headerBGC: '#05507b33',
  78. oddRowBGC: '#05507b33',
  79. evenRowBGC: '',
  80. headerHeight: '40',
  81. columnWidth: [150, 150],
  82. rowNum: 4,
  83. align: ['center', 'center', 'center', 'center', 'center'],
  84. data: [
  85. ['<span class="lightOut"><span class=" light green "></span></span>', ' 华新燃气 ', ' 本季度数据更新及时准确 ', ' 四季度 ', ' - '],
  86. ['<span class="lightOut"><span class=" light green "></span></span>', ' 云时代 ', ' 本季度数据更新及时准确 ', ' 四季度 ', ' '],
  87. ['<span class="lightOut"><span class=" light red "></span></span>', ' 大地控股 ', ' 六定长效机制情况未更新 ', ' 2022.12.01-12.31 ', ' 30 '],
  88. ['<span class="lightOut"><span class=" light yellow "></span></span>', ' 建设投资 ', ' 六定长效机制12月数据未获取 ', ' 2022.12.01-12.31 ', ' 15 '],
  89. ['<span class="lightOut"><span class=" light yellow "></span></span>', ' 交控集团 ', ' 经营业绩考核12月数据未获取 ', ' 2022.12.01-12.31 ', ' 15 '],
  90. ['<span class="lightOut"><span class=" light yellow "></span></span>', ' 太重集团 ', ' 经营业绩考核12月数据未获取 ', ' 2022.12.01-12.31 ', ' 15 '],
  91. ['<span class="lightOut"><span class=" light yellow "></span></span>', ' 文旅集团 ', ' 经营业绩考核12月数据未获取 ', ' 2022.12.01-12.31 ', ' 15 '],
  92. ['<span class="lightOut"><span class=" light yellow "></span></span>', ' 水务集团 ', ' 经营业绩考核12月数据未获取 ', ' 2022.12.01-12.31 ', ' 15 '],
  93. ['<span class="lightOut"><span class=" light yellow "></span></span>', ' 航产集团 ', ' 经营业绩考核12月数据未获取 ', ' 2022.12.01-12.31 ', ' 15 '],
  94. ['<span class="lightOut"><span class=" light yellow "></span></span>', ' 华舰体育 ', ' 经营业绩考核12月数据未获取 ', ' 2022.12.01-12.31 ', ' 15 '],
  95. ['<span class="lightOut"><span class=" light yellow "></span></span>', ' 文旅集团 ', ' 六定长效机制情况数据更新错误 ', ' 2022.12.01-12.31 ', ' - '],
  96. ],
  97. },
  98. companyList: companyList,
  99. commonOption: {
  100. title: {
  101. text: 'xxx',
  102. x: 'center',
  103. y: '3%',
  104. textStyle: {
  105. color: '#69C0FF',
  106. fontSize: 24,
  107. },
  108. },
  109. tooltip: {
  110. trigger: 'axis',
  111. textStyle: { fontSize: 18 },
  112. axisPointer: {
  113. type: 'cross',
  114. label: {
  115. fontSize: 18,
  116. },
  117. },
  118. },
  119. grid: {
  120. top: '22%',
  121. right: '5%',
  122. left: '8%',
  123. bottom: '20%',
  124. },
  125. legend: {
  126. data: '',
  127. top: '12%',
  128. right: '5%',
  129. textStyle: {
  130. color: 'rgba(250,250,250,0.6)',
  131. fontSize: 16,
  132. },
  133. },
  134. xAxis: {
  135. data: companyList.map(item => item.name),
  136. axisLine: {
  137. show: false, //隐藏X轴轴线
  138. lineStyle: {
  139. color: '#005094',
  140. width: 1,
  141. },
  142. },
  143. axisTick: {
  144. show: false, //隐藏X轴刻度
  145. },
  146. axisLabel: {
  147. show: true,
  148. rotate: 50,
  149. textStyle: {
  150. color: 'rgba(255,255,255,0.6)', //X轴文字颜色
  151. fontSize: 16,
  152. },
  153. },
  154. },
  155. yAxis: [
  156. {
  157. type: 'value',
  158. nameTextStyle: {
  159. color: '#ebf8ac',
  160. fontSize: 16,
  161. },
  162. splitLine: {
  163. show: true,
  164. lineStyle: {
  165. color: '#68b4dd66',
  166. type: 'dashed',
  167. },
  168. },
  169. axisLine: {
  170. show: false,
  171. },
  172. axisLabel: {
  173. show: true,
  174. textStyle: {
  175. color: 'rgba(250,250,250,0.6)',
  176. fontSize: 16,
  177. },
  178. },
  179. },
  180. ],
  181. },
  182. }
  183. },
  184. beforeMount(){
  185. dataL7[0].forEach((item,index) => {
  186. if(dataL7[1][index] < 0 && dataL7[0][index] > 0){
  187. let obj = {value:[companyList[index].name ,dataL7[0][index]],symbolSize:15 }
  188. this.twinkle7.push(obj)
  189. }
  190. })
  191. // if (dataL8[1][params.dataIndex] < 0 && params.value > 0) {
  192. dataL8[0].forEach((item,index) => {
  193. if(dataL8[1][index] < 0 && dataL8[0][index] > 0){
  194. let obj = {value:[companyList[index].name ,dataL8[0][index]],symbolSize:15 }
  195. this.twinkle8.push(obj)
  196. }
  197. })
  198. // params.value > 0 && fjxdataL2[0][params.dataIndex] < 0
  199. fjxdataL2[0].forEach((item,index) => {
  200. if(fjxdataL2[1][index] > 0 && fjxdataL2[0][index] < 0){
  201. let obj = {value:[companyList[index].name ,fjxdataL2[1][index]],symbolSize:15 }
  202. this.twinkleR6.push(obj)
  203. }
  204. })
  205. console.log(this.twinkleR6)
  206. },
  207. mounted() {
  208. this.time = formatDate()
  209. this.timer = setInterval(() => {
  210. this.time = formatDate()
  211. }, 1000)
  212. this.centerData = data
  213. // 左侧图表
  214. this.initChartL1()
  215. this.initChartL2()
  216. this.initChartL3()
  217. this.initChartL4()
  218. this.initChartL5()
  219. this.initChartL6()
  220. this.initChartL7()
  221. this.initChartL8()
  222. // 中间图表
  223. this.initChartC1()
  224. this.initChartC2()
  225. // 右侧图表
  226. this.initChartR1()
  227. this.initChartR2()
  228. this.initChartR3()
  229. this.initChartR4()
  230. this.initChartR5()
  231. this.initChartR6()
  232. this.initChartR7()
  233. this.initChartR8()
  234. },
  235. beforeDestroy() {
  236. if (this.timer) {
  237. clearInterval(this.timer)
  238. }
  239. },
  240. methods: {
  241. handleShowTip(index) {
  242. this.showTip = true
  243. this.tipNum = index
  244. },
  245. handleShowTip2(index) {
  246. this.showTip2 = true
  247. this.tipNum = index
  248. },
  249. handleGoPage(url) {
  250. if (url.length) {
  251. window.location.href = url
  252. }
  253. },
  254. numFormat(value) {
  255. if (!value) return '0'
  256. var intPart = Number(value).toFixed(0) // 获取整数部分
  257. var intPartFormat = intPart.toString().replace(/(\d)(?=(?:\d{3})+$)/g, '$1,') // 将整数部分逢三一断
  258. var floatPart = '.00' // 预定义小数部分
  259. var value2Array = value.toString().split('.')
  260. // =2表示数据有小数位
  261. if (value2Array.length === 2) {
  262. floatPart = value2Array[1].toString() // 拿到小数部分
  263. if (floatPart.length === 1) {
  264. // 补0
  265. return intPartFormat + '.' + floatPart + '0'
  266. } else {
  267. return intPartFormat + '.' + floatPart
  268. }
  269. } else {
  270. return intPartFormat
  271. }
  272. },
  273. initChartL1() {
  274. let myChart = echarts.init(this.$refs['echartL1'])
  275. let option = {
  276. ..._.cloneDeep(this.commonOption),
  277. series: [
  278. {
  279. name: '总部机构数核定上限',
  280. type: 'line',
  281. // yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  282. smooth: true, //平滑曲线显示
  283. showAllSymbol: true, //显示所有图形。
  284. symbol: 'circle', //标记的图形为实心圆
  285. symbolSize: 8, //标记的大小
  286. smooth: false,
  287. itemStyle: {
  288. //折线拐点标志的样式
  289. color: '#fbe138',
  290. borderColor: '#fbe138',
  291. width: 2,
  292. shadowColor: '#fbe138',
  293. shadowBlur: 4,
  294. },
  295. lineStyle: {
  296. color: '#fbe138',
  297. width: 2,
  298. },
  299. data: dataL1[2],
  300. },
  301. {
  302. name: '六定改革前总部机构数',
  303. type: 'bar',
  304. barWidth: 15,
  305. itemStyle: {
  306. normal: {
  307. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  308. {
  309. offset: 0,
  310. color: '#43ede3',
  311. },
  312. {
  313. offset: 1,
  314. color: '#082550',
  315. },
  316. ]),
  317. },
  318. },
  319. data: dataL1[0],
  320. },
  321. {
  322. name: '当前各省属企业总部机构数',
  323. type: 'bar',
  324. barWidth: 15,
  325. itemStyle: {
  326. normal: {
  327. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  328. {
  329. offset: 0,
  330. color: '#69c0ff',
  331. },
  332. {
  333. offset: 1,
  334. color: '#082550',
  335. },
  336. ]),
  337. },
  338. },
  339. data: dataL1[1],
  340. },
  341. ],
  342. // tooltip: {
  343. // trigger: 'item',
  344. // position: 'top'
  345. // },
  346. }
  347. option.title.text = '各省属企业总部机构数'
  348. option.legend.data = ['六定改革前总部机构数', '当前各省属企业总部机构数', '总部机构数核定上限']
  349. option.yAxis.push({
  350. splitLine: {
  351. show: false,
  352. },
  353. axisLine: {
  354. show: false,
  355. },
  356. })
  357. myChart.setOption(option)
  358. },
  359. initChartL2() {
  360. let myChart = echarts.init(this.$refs['echartL2'])
  361. let option = {
  362. ..._.cloneDeep(this.commonOption),
  363. color: ['#69c0ff'],
  364. series: [
  365. {
  366. name: '当前共享服务中心/事业部数',
  367. type: 'bar',
  368. barWidth: 15,
  369. label: {
  370. normal: {
  371. show: true,
  372. position: 'top',
  373. textStyle: {
  374. color: '#69c0ff',
  375. fontStyle: 'normal',
  376. textAlign: 'left',
  377. fontSize: 16,
  378. },
  379. formatter: function(data) {
  380. if(data.name == '华阳新材'){
  381. return data.value
  382. } else {
  383. return ''
  384. }
  385. }
  386. }
  387. },
  388. itemStyle: {
  389. color: params => {
  390. if (params.value > dataL2[1][params.dataIndex]) {
  391. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  392. {
  393. offset: 0,
  394. color: 'red',
  395. },
  396. {
  397. offset: 1,
  398. color: '#082550',
  399. },
  400. ])
  401. } else {
  402. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  403. {
  404. offset: 0,
  405. color: '#69c0ff',
  406. },
  407. {
  408. offset: 1,
  409. color: '#082550',
  410. },
  411. ])
  412. }
  413. },
  414. },
  415. data: dataL2[0],
  416. },
  417. {
  418. name: '共享服务中心/事业部核定上限',
  419. type: 'line',
  420. // yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  421. smooth: true, //平滑曲线显示
  422. showAllSymbol: true, //显示所有图形。
  423. symbol: 'circle', //标记的图形为实心圆
  424. symbolSize: 8, //标记的大小
  425. smooth: false,
  426. label: {
  427. normal: {
  428. show: true,
  429. position: 'top',
  430. textStyle: {
  431. color: '#fbe138',
  432. fontStyle: 'normal',
  433. textAlign: 'left',
  434. fontSize: 16,
  435. },
  436. formatter: function(data) {
  437. if(data.name == '华阳新材'){
  438. return data.value
  439. } else {
  440. return ''
  441. }
  442. }
  443. }
  444. },
  445. itemStyle: {
  446. //折线拐点标志的样式
  447. color: '#fbe138',
  448. borderColor: '#fbe138',
  449. width: 2,
  450. shadowColor: '#fbe138',
  451. shadowBlur: 4,
  452. },
  453. lineStyle: {
  454. color: '#fbe138',
  455. width: 2,
  456. },
  457. data: dataL2[1],
  458. },
  459. ],
  460. }
  461. option.title.text = '各省属企业共享服务中心/事业部数'
  462. option.legend.data = ['当前共享服务中心/事业部数', '共享服务中心/事业部核定上限']
  463. option.yAxis.push({
  464. splitLine: {
  465. show: false,
  466. },
  467. axisLine: {
  468. show: false,
  469. },
  470. })
  471. myChart.setOption(option)
  472. },
  473. initChartL3() {
  474. let myChart = echarts.init(this.$refs['echartL3'])
  475. let option = {
  476. ..._.cloneDeep(this.commonOption),
  477. series: [
  478. {
  479. name: '当前管理人员数',
  480. type: 'bar',
  481. barWidth: 15,
  482. itemStyle: {
  483. normal: {
  484. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  485. {
  486. offset: 0,
  487. color: '#5e7ae9',
  488. },
  489. {
  490. offset: 1,
  491. color: '#082550',
  492. },
  493. ]),
  494. },
  495. },
  496. data: dataL3[0],
  497. },
  498. {
  499. name: '管理人员数占总人数比值',
  500. type: 'line',
  501. yAxisIndex: 1,
  502. smooth: true, //平滑曲线显示
  503. showAllSymbol: true, //显示所有图形。
  504. symbol: 'circle', //标记的图形为实心圆
  505. symbolSize: 8, //标记的大小
  506. smooth: false,
  507. itemStyle: {
  508. //折线拐点标志的样式
  509. color: '#fbe138',
  510. borderColor: '#fbe138',
  511. width: 2,
  512. shadowColor: '#fbe138',
  513. shadowBlur: 4,
  514. },
  515. lineStyle: {
  516. color: '#fbe138',
  517. width: 2,
  518. },
  519. markLine: {
  520. data: [
  521. {
  522. name: '管理人员数占总人数的合理比值线',
  523. yAxis: 15,
  524. lineStyle: {
  525. color: '#fff',
  526. },
  527. label: {
  528. formatter: '{b}',
  529. position: 'middle',
  530. color: '#fff',
  531. fontSize: 16,
  532. },
  533. },
  534. ],
  535. label: {
  536. distance: [20, 8],
  537. },
  538. },
  539. data: dataL3[1],
  540. },
  541. ],
  542. }
  543. option.title.text = '各省属企业管理人员数'
  544. option.legend.data = ['当前管理人员数', '管理人员数占总人数比值']
  545. option.yAxis[0] = {
  546. type: 'log',
  547. min: 1,
  548. logBase: 10,
  549. axisLine: {
  550. show: false,
  551. },
  552. splitLine: {
  553. show: true,
  554. lineStyle: {
  555. color: '#68b4dd66',
  556. type: 'dashed',
  557. },
  558. },
  559. axisLabel: {
  560. show: true,
  561. formatter: function (value) {
  562. return value === 1 ? 0 : value
  563. },
  564. textStyle: {
  565. color: 'rgba(250,250,250,0.6)',
  566. },
  567. },
  568. }
  569. option.yAxis.push({
  570. type: 'value',
  571. max: 15,
  572. axisLine: {
  573. show: false,
  574. },
  575. splitLine: {
  576. show: false,
  577. },
  578. axisLabel: {
  579. show: true,
  580. formatter: '{value} %',
  581. textStyle: {
  582. color: 'rgba(250,250,250,0.6)',
  583. },
  584. },
  585. })
  586. option.tooltip.formatter = '{a0}:{c0}' + '<br/>' + '{a1}:{c1}' + '%'
  587. myChart.setOption(option)
  588. },
  589. initChartL4() {
  590. let myChart = echarts.init(this.$refs['echartL4'])
  591. let option = {
  592. ..._.cloneDeep(this.commonOption),
  593. series: [
  594. {
  595. name: '六定改革前总部中层管理人数',
  596. type: 'bar',
  597. barWidth: 15,
  598. label: {
  599. normal: {
  600. show: true,
  601. position: 'top',
  602. textStyle: {
  603. color: '#69c0ff',
  604. fontStyle: 'normal',
  605. textAlign: 'left',
  606. fontSize: 16,
  607. },
  608. formatter: function(data) {
  609. if(data.name == '云时代'){
  610. return data.value
  611. } else {
  612. return ''
  613. }
  614. }
  615. }
  616. },
  617. itemStyle: {
  618. normal: {
  619. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  620. {
  621. offset: 0,
  622. color: '#69c0ff',
  623. },
  624. {
  625. offset: 1,
  626. color: '#082550',
  627. },
  628. ]),
  629. },
  630. },
  631. data: dataL4[0],
  632. },
  633. {
  634. name: '当前总部中层管理人数',
  635. type: 'bar',
  636. barWidth: 15,
  637. label: {
  638. normal: {
  639. show: true,
  640. position: 'top',
  641. textStyle: {
  642. color: '#6480f3',
  643. fontStyle: 'normal',
  644. textAlign: 'left',
  645. fontSize: 16,
  646. },
  647. formatter: function(data) {
  648. if(data.name == '云时代'){
  649. return data.value
  650. } else {
  651. return ''
  652. }
  653. }
  654. }
  655. },
  656. itemStyle: {
  657. normal: {
  658. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  659. {
  660. offset: 0,
  661. color: '#6480f3',
  662. },
  663. {
  664. offset: 1,
  665. color: '#082550',
  666. },
  667. ]),
  668. },
  669. },
  670. data: dataL4[1],
  671. },
  672. {
  673. name: '总部中层管理人数核定上限',
  674. type: 'line',
  675. yAxisIndex: 1,
  676. smooth: true, //平滑曲线显示
  677. showAllSymbol: true, //显示所有图形。
  678. symbol: 'circle', //标记的图形为实心圆
  679. symbolSize: 8, //标记的大小
  680. smooth: false,
  681. label: {
  682. normal: {
  683. show: true,
  684. position: 'top',
  685. textStyle: {
  686. color: '#fbe138',
  687. fontStyle: 'normal',
  688. textAlign: 'left',
  689. fontSize: 16,
  690. },
  691. formatter: function(data) {
  692. if(data.name == '云时代'){
  693. return data.value
  694. } else {
  695. return ''
  696. }
  697. }
  698. }
  699. },
  700. itemStyle: {
  701. //折线拐点标志的样式
  702. color: '#fbe138',
  703. borderColor: '#fbe138',
  704. width: 2,
  705. shadowColor: '#fbe138',
  706. shadowBlur: 4,
  707. },
  708. lineStyle: {
  709. color: '#fbe138',
  710. width: 2,
  711. },
  712. data: dataL4[2],
  713. },
  714. ],
  715. }
  716. option.title.text = '各省属企业总部中层管理人数'
  717. option.legend.data = ['六定改革前总部中层管理人数', '当前总部中层管理人数', '总部中层管理人数核定上限']
  718. option.legend.show = true
  719. option.yAxis.push({
  720. splitLine: {
  721. show: false,
  722. },
  723. axisLine: {
  724. show: false,
  725. },
  726. })
  727. myChart.setOption(option)
  728. },
  729. initChartL5() {
  730. let myChart = echarts.init(this.$refs['echartL5'])
  731. let option = {
  732. ..._.cloneDeep(this.commonOption),
  733. series: [
  734. {
  735. name: '各省属企业总人数',
  736. type: 'bar',
  737. barWidth: 15,
  738. label: {
  739. normal: {
  740. show: true,
  741. position: 'top',
  742. lineHeight:'25',
  743. textStyle: {
  744. color: '#69c0ff',
  745. fontStyle: 'normal',
  746. textAlign: 'left',
  747. fontSize: 16,
  748. },
  749. formatter: function(data) {
  750. if(data.name == '华阳新材' || data.name=='华舰体育'){
  751. return data.value
  752. } else {
  753. return ''
  754. }
  755. }
  756. }
  757. },
  758. itemStyle: {
  759. normal: {
  760. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  761. {
  762. offset: 0,
  763. color: '#69c0ff',
  764. },
  765. {
  766. offset: 1,
  767. color: '#082550',
  768. },
  769. ]),
  770. },
  771. },
  772. data: dataL5[0],
  773. },
  774. {
  775. name: '去年同期人数变化率',
  776. type: 'line',
  777. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  778. smooth: true, //平滑曲线显示
  779. showAllSymbol: true, //显示所有图形。
  780. symbol: 'circle', //标记的图形为实心圆
  781. symbolSize: 8, //标记的大小
  782. smooth: false,
  783. label: {
  784. normal: {
  785. show: true,
  786. position: 'bottom',
  787. lineHeight: '25',
  788. textStyle: {
  789. color: '#b889ea',
  790. fontStyle: 'normal',
  791. textAlign: 'left',
  792. fontSize: 16,
  793. },
  794. formatter: function(data) {
  795. if(data.name == '华阳新材' || data.name=='华舰体育'){
  796. return data.value
  797. } else {
  798. return ''
  799. }
  800. }
  801. }
  802. },
  803. itemStyle: {
  804. //折线拐点标志的样式
  805. color: '#b889ea',
  806. borderColor: '#b889ea',
  807. width: 2,
  808. shadowColor: '#b889ea',
  809. shadowBlur: 4,
  810. },
  811. lineStyle: {
  812. color: '#b889ea',
  813. width: 2,
  814. },
  815. data: dataL5[1],
  816. },
  817. ],
  818. }
  819. option.title.text = '各省属企业总人数'
  820. option.legend.data = ['各省属企业总人数', '去年同期人数变化率']
  821. option.legend.show = true
  822. option.yAxis[0] = {
  823. type: 'value',
  824. // type: 'log',
  825. min: 1,
  826. // logBase: 10,
  827. axisLine: {
  828. show: false,
  829. },
  830. splitLine: {
  831. show: true,
  832. lineStyle: {
  833. color: '#68b4dd66',
  834. type: 'dashed',
  835. },
  836. },
  837. axisLabel: {
  838. show: true,
  839. formatter: function (value) {
  840. return value === 1 ? 0 : value
  841. },
  842. textStyle: {
  843. color: 'rgba(250,250,250,0.6)',
  844. },
  845. },
  846. }
  847. option.yAxis.push({
  848. type: 'value',
  849. axisLine: {
  850. show: false,
  851. },
  852. splitLine: {
  853. show: false,
  854. },
  855. axisLabel: {
  856. show: true,
  857. formatter: '{value} %',
  858. textStyle: {
  859. color: 'rgba(250,250,250,0.6)',
  860. },
  861. },
  862. })
  863. option.tooltip.formatter = '{a0}:{c0}' + '<br/>' + '{a1}:{c1}' + '%'
  864. myChart.setOption(option)
  865. },
  866. initChartL6() {
  867. let myChart = echarts.init(this.$refs['echartL6'])
  868. let option = {
  869. ..._.cloneDeep(this.commonOption),
  870. series: [
  871. {
  872. name: '总部员额数',
  873. type: 'bar',
  874. barWidth: 15,
  875. itemStyle: {
  876. normal: {
  877. barBorderRadius: [10, 10, 0, 0],
  878. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  879. {
  880. offset: 0,
  881. color: '#43ede3',
  882. },
  883. {
  884. offset: 1,
  885. color: '#082550',
  886. },
  887. ]),
  888. },
  889. },
  890. data: dataL6[0],
  891. },
  892. {
  893. name: '总部员额数核定上限',
  894. type: 'line',
  895. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  896. smooth: true, //平滑曲线显示
  897. showAllSymbol: true, //显示所有图形。
  898. symbol: 'circle', //标记的图形为实心圆
  899. symbolSize: 8, //标记的大小
  900. smooth: false,
  901. itemStyle: {
  902. //折线拐点标志的样式
  903. color: '#fbe138',
  904. borderColor: '#fbe138',
  905. width: 2,
  906. shadowColor: '#fbe138',
  907. shadowBlur: 4,
  908. },
  909. lineStyle: {
  910. color: '#fbe138',
  911. width: 2,
  912. },
  913. data: dataL6[1],
  914. },
  915. ],
  916. }
  917. option.title.text = '各省属企业总部员额数'
  918. option.legend.data = ['总部员额数', '总部员额数核定上限']
  919. option.legend.show = true
  920. option.yAxis.push({
  921. splitLine: {
  922. show: false,
  923. },
  924. axisLine: {
  925. show: false,
  926. },
  927. })
  928. myChart.setOption(option)
  929. },
  930. initChartL7() {
  931. let myChart = echarts.init(this.$refs['echartL7'])
  932. let that = this
  933. let option = {
  934. ..._.cloneDeep(this.commonOption),
  935. color: ['#43ede3'],
  936. series: [
  937. {
  938. name: '人数变化',
  939. type: 'line',
  940. smooth: true, //平滑曲线显示
  941. showAllSymbol: true, //显示所有图形。
  942. symbol: 'circle', //标记的图形为实心圆
  943. symbolSize: 15, //标记的大小
  944. smooth: false,
  945. label: {
  946. normal: {
  947. show: true,
  948. position: 'bottom',
  949. lineHeight: '35',
  950. textStyle: {
  951. color: '#43ede3',
  952. fontStyle: 'normal',
  953. textAlign: 'left',
  954. fontSize: 16,
  955. },
  956. formatter: function(data) {
  957. if(data.name == '文旅集团'|| data.name== "大地控股" || data.name=='华舰体育'){
  958. return data.value
  959. } else {
  960. return ''
  961. }
  962. }
  963. }
  964. },
  965. itemStyle: {
  966. color: params => {
  967. if (dataL7[1][params.dataIndex] < 0 && params.value > 0) {
  968. return 'red'
  969. } else {
  970. return '#43ede3'
  971. }
  972. },
  973. },
  974. lineStyle: {
  975. color: '#43ede3',
  976. width: 2,
  977. },
  978. data: dataL7[0],
  979. },
  980. {
  981. name: '劳动生产率同比变化',
  982. type: 'line',
  983. yAxisIndex: 1,
  984. smooth: true, //平滑曲线显示
  985. showAllSymbol: true, //显示所有图形。
  986. symbol: 'circle', //标记的图形为实心圆
  987. symbolSize: 8, //标记的大小
  988. smooth: false,
  989. label: {
  990. normal: {
  991. show: true,
  992. position: 'top',
  993. lineHeight: '25',
  994. textStyle: {
  995. color: '#b889ea',
  996. fontStyle: 'normal',
  997. textAlign: 'left',
  998. fontSize: 16,
  999. },
  1000. formatter: function(data) {
  1001. if(data.name == '文旅集团'|| data.name== "大地控股" || data.name=='华舰体育'){
  1002. return data.value
  1003. } else {
  1004. return ''
  1005. }
  1006. }
  1007. }
  1008. },
  1009. itemStyle: {
  1010. //折线拐点标志的样式
  1011. color: '#b889ea',
  1012. borderColor: '#b889ea',
  1013. width: 2,
  1014. shadowColor: '#b889ea',
  1015. shadowBlur: 4,
  1016. },
  1017. data: dataL7[1],
  1018. },
  1019. {
  1020. type: 'effectScatter',
  1021. coordinateSystem: 'cartesian2d',
  1022. showEffectOn: 'render',
  1023. rippleEffect: {
  1024. period: 10,
  1025. scale: 4,
  1026. brushType: 'stroke'
  1027. },
  1028. hoverAnimation: true,
  1029. itemStyle: {
  1030. color: 'red'
  1031. },
  1032. lineStyle: {
  1033. color: '#43ede3',
  1034. width: 2,
  1035. },
  1036. data: that.twinkle7,
  1037. },
  1038. ],
  1039. }
  1040. option.title.text = '人数变化和全员劳动生产率变化分析'
  1041. option.legend.data = ['人数变化', '劳动生产率同比变化']
  1042. option.legend.show = true
  1043. option.yAxis[0].axisLabel.formatter = '{value} %'
  1044. option.tooltip.formatter = '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  1045. option.yAxis.push({
  1046. type: 'value',
  1047. axisLine: {
  1048. show: false,
  1049. },
  1050. splitLine: {
  1051. show: false,
  1052. },
  1053. axisLabel: {
  1054. show: true,
  1055. formatter: '{value} %',
  1056. textStyle: {
  1057. color: 'rgba(250,250,250,0.6)',
  1058. },
  1059. splitLine: {
  1060. show: false,
  1061. },
  1062. axisLabel: {
  1063. show: true,
  1064. formatter: '{value} %',
  1065. textStyle: {
  1066. color: 'rgba(250,250,250,0.6)',
  1067. },
  1068. },
  1069. },
  1070. })
  1071. myChart.setOption(option)
  1072. },
  1073. initChartL8() {
  1074. let myChart = echarts.init(this.$refs['echartL8'])
  1075. let option = {
  1076. ..._.cloneDeep(this.commonOption),
  1077. color: ['#43ede3'],
  1078. series: [
  1079. {
  1080. name: '人数变化',
  1081. type: 'line',
  1082. smooth: true, //平滑曲线显示
  1083. showAllSymbol: true, //显示所有图形。
  1084. symbol: 'circle', //标记的图形为实心圆
  1085. symbolSize: 15, //标记的大小
  1086. smooth: false,
  1087. label: {
  1088. normal: {
  1089. show: true,
  1090. position: 'bottom',
  1091. lineHeight:'20',
  1092. textStyle: {
  1093. color: '#43ede3',
  1094. fontStyle: 'normal',
  1095. textAlign: 'left',
  1096. fontSize: 16,
  1097. },
  1098. formatter: function(data) {
  1099. if(data.name == '文旅集团' || data.name=='大地控股'){
  1100. return data.value
  1101. } else {
  1102. return ''
  1103. }
  1104. }
  1105. }
  1106. },
  1107. itemStyle: {
  1108. color: params => {
  1109. if (dataL8[1][params.dataIndex] < 0 && params.value > 0) {
  1110. return 'red'
  1111. } else {
  1112. return '#43ede3'
  1113. }
  1114. },
  1115. },
  1116. lineStyle: {
  1117. color: '#43ede3',
  1118. width: 2,
  1119. },
  1120. data: dataL8[0],
  1121. },
  1122. {
  1123. name: '人工成本利润率同比变化',
  1124. type: 'line',
  1125. smooth: true, //平滑曲线显示
  1126. showAllSymbol: true, //显示所有图形。
  1127. symbol: 'circle', //标记的图形为实心圆
  1128. symbolSize: 15, //标记的大小
  1129. smooth: false,
  1130. label: {
  1131. normal: {
  1132. show: true,
  1133. position: 'top',
  1134. lineHeight:'30',
  1135. textStyle: {
  1136. color: '#b889ea',
  1137. fontStyle: 'normal',
  1138. textAlign: 'left',
  1139. fontSize: 16,
  1140. },
  1141. formatter: function(data) {
  1142. if(data.name == '文旅集团' || data.name=='大地控股'){
  1143. return data.value
  1144. } else {
  1145. return ''
  1146. }
  1147. }
  1148. }
  1149. },
  1150. itemStyle: {
  1151. //折线拐点标志的样式
  1152. color: '#b889ea',
  1153. borderColor: '#b889ea',
  1154. width: 2,
  1155. shadowColor: '#b889ea',
  1156. shadowBlur: 4,
  1157. },
  1158. lineStyle: {
  1159. color: '#b889ea',
  1160. width: 2,
  1161. },
  1162. data: dataL8[1],
  1163. },
  1164. {
  1165. type: 'effectScatter',
  1166. coordinateSystem: 'cartesian2d',
  1167. showEffectOn: 'render',
  1168. rippleEffect: {
  1169. period: 10,
  1170. scale: 4,
  1171. brushType: 'stroke'
  1172. },
  1173. hoverAnimation: true,
  1174. itemStyle: {
  1175. color: 'red'
  1176. },
  1177. lineStyle: {
  1178. color: '#43ede3',
  1179. width: 2,
  1180. },
  1181. data: this.twinkle8,
  1182. },
  1183. // {
  1184. // type: 'effectScatter',
  1185. // coordinateSystem: 'cartesian2d',
  1186. // showEffectOn: 'render',
  1187. // rippleEffect: {
  1188. // period: 10,
  1189. // scale: 4,
  1190. // brushType: 'stroke'
  1191. // },
  1192. // hoverAnimation: true,
  1193. // itemStyle: {
  1194. // color: 'red'
  1195. // },
  1196. // lineStyle: {
  1197. // color: '#43ede3',
  1198. // width: 2,
  1199. // },
  1200. // data: that.twinkle,
  1201. // },
  1202. ],
  1203. // tooltip: {
  1204. // trigger: 'axis',
  1205. // formatter(params){
  1206. // console.log(params)
  1207. // return params[0]
  1208. // }
  1209. // }
  1210. }
  1211. option.title.text = '人数变化和人工成本利润率变化分析'
  1212. option.legend.data = ['人数变化', '人工成本利润率同比变化']
  1213. option.legend.show = true
  1214. option.yAxis[0].axisLabel.formatter = '{value} %'
  1215. option.tooltip.formatter = '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  1216. myChart.setOption(option)
  1217. },
  1218. // 中间图表---------------------------------------------开始
  1219. initChartC1() {
  1220. let myChart = echarts.init(this.$refs['echartC1'])
  1221. let option = {
  1222. ..._.cloneDeep(this.commonOption),
  1223. color: ['#69c0ff'],
  1224. series: [
  1225. {
  1226. name: '全员劳动生产率(万/人)',
  1227. type: 'bar',
  1228. barWidth: 15,
  1229. label: {
  1230. normal: {
  1231. show: true,
  1232. position: 'top',
  1233. textStyle: {
  1234. color: '#fff',
  1235. fontStyle: 'normal',
  1236. textAlign: 'left',
  1237. fontSize: 16,
  1238. },
  1239. formatter: function(data) {
  1240. if(data.name == '国际能源' || data.name == '汾酒集团'){
  1241. return data.value
  1242. } else {
  1243. return ''
  1244. }
  1245. }
  1246. }
  1247. },
  1248. itemStyle: {
  1249. color: params => {
  1250. if (params.value < 0 && c1[1][params.dataIndex] < 0) {
  1251. return 'red'
  1252. } else if (params.value < 0) {
  1253. return 'yellow'
  1254. } else {
  1255. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1256. {
  1257. offset: 0,
  1258. color: '#69c0ff',
  1259. },
  1260. {
  1261. offset: 1,
  1262. color: '#082550',
  1263. },
  1264. ])
  1265. }
  1266. },
  1267. },
  1268. // markPoint:{
  1269. // symbolSize: 1,
  1270. // symbolOffset: [0, '50%'],
  1271. // label:{
  1272. // show: true,
  1273. // fontSize:18,
  1274. // color: '#fff',
  1275. // backgroundColor: 'rgba(38,48,59,0.6)',
  1276. // borderColor: '#aaa',
  1277. // borderWidth: 1,
  1278. // borderRadius: 4,
  1279. // padding: [4, 10],
  1280. // lineHeight: 26,
  1281. // position: 'top',
  1282. // distance: 20,
  1283. // // formatter: data =>{
  1284. // // console.log('11',data)
  1285. // // },
  1286. // formatter: [
  1287. // '{a|这段文本采用样式a}',
  1288. // '这段用默认样式{x|这段用样式x}'
  1289. // ].join('\n'),
  1290. // rich: {
  1291. // a: {
  1292. // color: 'yellow',
  1293. // lineHeight: 10
  1294. // },
  1295. // b: {
  1296. // // backgroundColor: {
  1297. // // image: './images/alert.png'
  1298. // // },
  1299. // height: 40
  1300. // },
  1301. // x: {
  1302. // fontSize: 18,
  1303. // borderColor: '#449933',
  1304. // borderRadius: 4
  1305. // },
  1306. // }
  1307. // },
  1308. // // itemStyle: {
  1309. // // color: 'rgba(38,48,59,0.6)'
  1310. // // },
  1311. // data:[{value:'117.48', xAxis: '国际能源', yAxis: 127 },{value:'138.83', xAxis: '汾酒集团', yAxis: 148 }]
  1312. // },
  1313. markLine: {
  1314. data: [
  1315. {
  1316. name: '省属企业平均水平',
  1317. yAxis: 50.13,
  1318. lineStyle: {
  1319. color: '#fff',
  1320. },
  1321. label: {
  1322. formatter: '{b}',
  1323. position: 'end',
  1324. padding: [20, 100, 10, 10],
  1325. fontSize: 16,
  1326. color: '#fff',
  1327. },
  1328. },
  1329. // {
  1330. // name: '',
  1331. // yAxis: 0,
  1332. // lineStyle: {
  1333. // color: '#fff',
  1334. // },
  1335. // label: {
  1336. // formatter: '{b}',
  1337. // position: 'end',
  1338. // fontSize: 16,
  1339. // color: '#fff',
  1340. // },
  1341. // },
  1342. {
  1343. name: '央企平均水平',
  1344. yAxis: 69.4,
  1345. lineStyle: {
  1346. color: '#fff',
  1347. },
  1348. label: {
  1349. formatter: '{b}',
  1350. position: 'end',
  1351. padding: [-4, 150, 10, 10],
  1352. color: '#fff',
  1353. fontSize: 16,
  1354. },
  1355. },
  1356. ],
  1357. label: {
  1358. distance: [50, 0],
  1359. },
  1360. },
  1361. data: c1[0],
  1362. },
  1363. {
  1364. name: '全员劳动生产率同比',
  1365. type: 'line',
  1366. yAxisIndex: 1,
  1367. smooth: true, //平滑曲线显示
  1368. showAllSymbol: true, //显示所有图形。
  1369. symbol: 'circle', //标记的图形为实心圆
  1370. symbolSize: 8, //标记的大小
  1371. smooth: false,
  1372. itemStyle: {
  1373. //折线拐点标志的样式
  1374. color: '#B889EA',
  1375. borderColor: '#B889EA',
  1376. width: 2,
  1377. shadowColor: '#B889EA',
  1378. shadowBlur: 4,
  1379. },
  1380. lineStyle: {
  1381. color: '#B889EA',
  1382. width: 2,
  1383. },
  1384. // data: [50, 40, 60, 20, 45, 30, 60, 100, 45, 40, 50, 20, 60, 80, 45, 70, 50, 40],
  1385. data: c1[1],
  1386. },
  1387. ],
  1388. }
  1389. option.title.text = '各省属企业全员劳动生产率'
  1390. // option.legend.data = [ '全员劳动生产率(万/人)','全员劳动生产率同比']
  1391. option.legend.show = true
  1392. option.grid.right = '15%'
  1393. option.tooltip.formatter = '{a0}:{c0}' + '<br/>' + '{a1}:{c1}' + '%'
  1394. option.yAxis.push({
  1395. type: 'value',
  1396. axisLine: {
  1397. show: false,
  1398. },
  1399. splitLine: {
  1400. show: false,
  1401. },
  1402. axisLabel: {
  1403. show: true,
  1404. formatter: '{value} %',
  1405. textStyle: {
  1406. color: 'rgba(250,250,250,0.6)',
  1407. },
  1408. },
  1409. })
  1410. myChart.setOption(option)
  1411. // tools.loopShowTooltip(myChart, option, {
  1412. // nterval: 2000,
  1413. // loopSeries: true,
  1414. // })
  1415. },
  1416. initChartC2() {
  1417. let myChart = echarts.init(this.$refs['echartC2'])
  1418. let option = {
  1419. ..._.cloneDeep(this.commonOption),
  1420. color: ['#69c0ff'],
  1421. series: [
  1422. {
  1423. name: '人工成本利润率',
  1424. type: 'bar',
  1425. barWidth: 15,
  1426. label: {
  1427. normal: {
  1428. show: true,
  1429. position: 'top',
  1430. textStyle: {
  1431. color: '#fff',
  1432. fontStyle: 'normal',
  1433. textAlign: 'left',
  1434. fontSize: 16,
  1435. },
  1436. formatter: function(data) {
  1437. if(data.name == '国际能源' || data.name == '文旅集团' || data.name == '航产集团' || data.name == '华舰体育'){
  1438. return data.value
  1439. } else {
  1440. return ''
  1441. }
  1442. }
  1443. }
  1444. },
  1445. markLine: {
  1446. data: [
  1447. {
  1448. name: '省属企业平均水平',
  1449. yAxis: 67.09,
  1450. lineStyle: {
  1451. color: '#fff',
  1452. },
  1453. label: {
  1454. formatter: '{b}',
  1455. position: 'end',
  1456. padding: [24, 100, 10, 10],
  1457. fontSize: 16,
  1458. color: '#fff',
  1459. },
  1460. },
  1461. {
  1462. name: '央企平均水平',
  1463. yAxis: 81,
  1464. lineStyle: {
  1465. color: '#fff',
  1466. },
  1467. label: {
  1468. formatter: '{b}',
  1469. position: 'end',
  1470. padding: [-24, 200, 10, 10],
  1471. color: '#fff',
  1472. fontSize: 16,
  1473. },
  1474. },
  1475. ],
  1476. label: {
  1477. distance: [50, 0],
  1478. },
  1479. },
  1480. itemStyle: {
  1481. color: params => {
  1482. if (params.value < 0 && c2[0][params.dataIndex] < 0) {
  1483. return 'red'
  1484. } else if (params.value < 0) {
  1485. return 'yellow'
  1486. } else {
  1487. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1488. {
  1489. offset: 0,
  1490. color: '#69c0ff',
  1491. },
  1492. {
  1493. offset: 1,
  1494. color: '#082550',
  1495. },
  1496. ])
  1497. }
  1498. },
  1499. },
  1500. data: c2[1],
  1501. },
  1502. {
  1503. name: '人工成本利润率同比',
  1504. type: 'line',
  1505. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  1506. smooth: true, //平滑曲线显示
  1507. showAllSymbol: true, //显示所有图形。
  1508. symbol: 'circle', //标记的图形为实心圆
  1509. symbolSize: 8, //标记的大小
  1510. smooth: false,
  1511. itemStyle: {
  1512. //折线拐点标志的样式
  1513. color: '#B889EA',
  1514. borderColor: '#B889EA',
  1515. width: 2,
  1516. shadowColor: '#B889EA',
  1517. shadowBlur: 4,
  1518. },
  1519. lineStyle: {
  1520. color: '#B889EA',
  1521. width: 2,
  1522. },
  1523. data: c2[0],
  1524. },
  1525. ],
  1526. }
  1527. option.title.text = '各省属企业人工成本利润率'
  1528. option.legend.show = true
  1529. option.grid.right = '15%'
  1530. option.yAxis[0].axisLabel.formatter = '{value} %'
  1531. option.tooltip.formatter = '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  1532. option.yAxis.push({
  1533. type: 'value',
  1534. axisLine: {
  1535. show: false,
  1536. },
  1537. splitLine: {
  1538. show: false,
  1539. },
  1540. axisLabel: {
  1541. show: true,
  1542. formatter: '{value} %',
  1543. textStyle: {
  1544. color: 'rgba(250,250,250,0.6)',
  1545. },
  1546. },
  1547. })
  1548. myChart.setOption(option)
  1549. // tools.loopShowTooltip(myChart, option, {
  1550. // nterval: 2000,
  1551. // loopSeries: true,
  1552. // })
  1553. },
  1554. // 右侧图表---------------------------------------------开始
  1555. initChartR1() {
  1556. let myChart = echarts.init(this.$refs['echartR1'])
  1557. let commonOptions = this.commonOption
  1558. commonOptions.yAxis[0].splitNumber = 2
  1559. let dataTemp = []
  1560. let dataTemp2 = []
  1561. dataR1[0].forEach(item => {
  1562. dataTemp.push(item + 1)
  1563. })
  1564. dataR1[1].forEach(item => {
  1565. dataTemp2.push(item + 1)
  1566. })
  1567. let option = {
  1568. ..._.cloneDeep(commonOptions),
  1569. series: [
  1570. {
  1571. name: '招聘需求公告次数',
  1572. type: 'bar',
  1573. barWidth: 15,
  1574. itemStyle: {
  1575. normal: {
  1576. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1577. {
  1578. offset: 0,
  1579. color: '#69c0ff',
  1580. },
  1581. {
  1582. offset: 1,
  1583. color: '#082550',
  1584. },
  1585. ]),
  1586. },
  1587. },
  1588. data: dataTemp,
  1589. },
  1590. {
  1591. name: '招聘需求公告累计招聘人次',
  1592. type: 'bar',
  1593. barWidth: 15,
  1594. itemStyle: {
  1595. normal: {
  1596. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1597. {
  1598. offset: 0,
  1599. color: '#43ede3',
  1600. },
  1601. {
  1602. offset: 1,
  1603. color: '#082550',
  1604. },
  1605. ]),
  1606. },
  1607. },
  1608. data: dataTemp2,
  1609. },
  1610. ],
  1611. }
  1612. option.title.text = '各省属企业招聘需求公示人次'
  1613. option.legend.data = ['招聘需求公告次数', '招聘需求公告累计招聘人次']
  1614. option.legend.show = true
  1615. option.tooltip.formatter = function (value) {
  1616. return value[0].axisValue + ':' + (value[0].value - 1) + '<br>' + value[1].axisValue + ':' + (value[1].value - 1)
  1617. }
  1618. option.yAxis[0] = {
  1619. type: 'log',
  1620. min: 1,
  1621. logBase: 10,
  1622. axisLine: {
  1623. show: false,
  1624. },
  1625. splitLine: {
  1626. show: true,
  1627. lineStyle: {
  1628. color: '#68b4dd66',
  1629. type: 'dashed',
  1630. },
  1631. },
  1632. axisLabel: {
  1633. show: true,
  1634. formatter: function (value) {
  1635. return value === 1 ? 0 : value
  1636. },
  1637. textStyle: {
  1638. color: 'rgba(250,250,250,0.6)',
  1639. },
  1640. },
  1641. }
  1642. myChart.setOption(option)
  1643. },
  1644. initChartR2() {
  1645. let myChart = echarts.init(this.$refs['echartR2'])
  1646. let commonOptions = this.commonOption
  1647. commonOptions.yAxis[0].splitNumber = 2
  1648. let dataTemp = []
  1649. let dataTemp2 = []
  1650. dataR2[0].forEach(item => {
  1651. dataTemp.push(item + 1)
  1652. })
  1653. dataR2[1].forEach(item => {
  1654. dataTemp2.push(item + 1)
  1655. })
  1656. let option = {
  1657. ..._.cloneDeep(commonOptions),
  1658. series: [
  1659. {
  1660. name: '录用结果公示次数',
  1661. type: 'bar',
  1662. barWidth: 15,
  1663. itemStyle: {
  1664. normal: {
  1665. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1666. {
  1667. offset: 0,
  1668. color: '#69c0ff',
  1669. },
  1670. {
  1671. offset: 1,
  1672. color: '#082550',
  1673. },
  1674. ]),
  1675. },
  1676. },
  1677. data: dataTemp,
  1678. },
  1679. {
  1680. name: '录用结果公示累计公示人数',
  1681. type: 'bar',
  1682. barWidth: 15,
  1683. itemStyle: {
  1684. normal: {
  1685. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1686. {
  1687. offset: 0,
  1688. color: '#45DAD1',
  1689. },
  1690. {
  1691. offset: 1,
  1692. color: '#082550',
  1693. },
  1694. ]),
  1695. },
  1696. },
  1697. data: dataTemp2,
  1698. },
  1699. ],
  1700. }
  1701. option.title.text = '各省属企业录用结果公示人次'
  1702. option.legend.data = ['录用结果公示次数', '录用结果公示累计公示人数']
  1703. option.legend.show = true
  1704. option.tooltip.formatter = function (value) {
  1705. return value[0].axisValue + ':' + (value[0].value - 1) + '<br>' + value[1].axisValue + ':' + (value[1].value - 1)
  1706. }
  1707. option.yAxis[0] = {
  1708. type: 'log',
  1709. min: 1,
  1710. logBase: 10,
  1711. axisLine: {
  1712. show: false,
  1713. },
  1714. splitLine: {
  1715. show: true,
  1716. lineStyle: {
  1717. color: '#68b4dd66',
  1718. type: 'dashed',
  1719. },
  1720. },
  1721. axisLabel: {
  1722. show: true,
  1723. formatter: function (value) {
  1724. return value === 1 ? 0 : value
  1725. },
  1726. textStyle: {
  1727. color: 'rgba(250,250,250,0.6)',
  1728. },
  1729. },
  1730. }
  1731. myChart.setOption(option)
  1732. },
  1733. initChartR3() {
  1734. let myChart = echarts.init(this.$refs['echartR3'])
  1735. let commonOptions = this.commonOption
  1736. commonOptions.yAxis[0].splitNumber = 2
  1737. let option = {
  1738. ..._.cloneDeep(commonOptions),
  1739. color: ['#45DAD1'],
  1740. series: [
  1741. {
  1742. name: '2022年利润(万)',
  1743. type: 'bar',
  1744. barWidth: 15,
  1745. label: {
  1746. normal: {
  1747. show: true,
  1748. position: 'bottom',
  1749. textStyle: {
  1750. color: '#69c0ff',
  1751. fontStyle: 'normal',
  1752. textAlign: 'left',
  1753. fontSize: 14,
  1754. },
  1755. formatter: function(data) {
  1756. if(data.name=="国际能源" || data.name == '文旅集团' || data.name=='航产集团'||data.name == '华舰体育'){
  1757. return data.value
  1758. } else {
  1759. return ''
  1760. }
  1761. }
  1762. }
  1763. },
  1764. itemStyle: {
  1765. normal: {
  1766. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1767. {
  1768. offset: 0,
  1769. color: '#69c0ff',
  1770. },
  1771. {
  1772. offset: 1,
  1773. color: '#082550',
  1774. },
  1775. ]),
  1776. },
  1777. },
  1778. data: dataR3[0],
  1779. },
  1780. {
  1781. name: '2022年累计招聘数',
  1782. type: 'bar',
  1783. barWidth: 15,
  1784. yAxisIndex: 1,
  1785. label: {
  1786. normal: {
  1787. show: true,
  1788. position: 'top',
  1789. textStyle: {
  1790. color: '#45DAD1',
  1791. fontStyle: 'normal',
  1792. textAlign: 'right',
  1793. fontSize: 14,
  1794. },
  1795. formatter: function(data) {
  1796. if(data.name=="国际能源" || data.name == '文旅集团' || data.name=='航产集团'||data.name == '华舰体育'){
  1797. return data.value
  1798. } else {
  1799. return ''
  1800. }
  1801. }
  1802. }
  1803. },
  1804. itemStyle: {
  1805. color: params => {
  1806. if (params.value > 0 && dataR3[0][params.dataIndex] < 0) {
  1807. return 'red'
  1808. } else {
  1809. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1810. {
  1811. offset: 0,
  1812. color: '#45DAD1',
  1813. },
  1814. {
  1815. offset: 1,
  1816. color: '#082550',
  1817. },
  1818. ])
  1819. }
  1820. },
  1821. },
  1822. // itemStyle: {
  1823. // normal: {
  1824. // color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1825. // {
  1826. // offset: 0,
  1827. // color: '#45DAD1',
  1828. // },
  1829. // {
  1830. // offset: 1,
  1831. // color: '#082550',
  1832. // },
  1833. // ]),
  1834. // },
  1835. // },
  1836. data: dataR3[1],
  1837. },
  1838. ],
  1839. }
  1840. option.title.text = '各省属企业年利润与当年累计招聘人数'
  1841. option.legend.data = ['2022年利润(万)', '2022年累计招聘数']
  1842. option.legend.show = true
  1843. option.yAxis[0] = {
  1844. max: function (value) {
  1845. if (Math.abs(value.max) > Math.abs(value.min)) {
  1846. return (Math.abs(value.max) * 1.2).toFixed(2)
  1847. } else {
  1848. return (Math.abs(value.min) * 1.2).toFixed(2)
  1849. }
  1850. },
  1851. min: function (value) {
  1852. if (Math.abs(value.max) > Math.abs(value.min)) {
  1853. return (-Math.abs(value.max) * 1.2).toFixed(2)
  1854. } else {
  1855. return (-Math.abs(value.min) * 1.2).toFixed(2)
  1856. }
  1857. },
  1858. type: 'value',
  1859. axisLine: {
  1860. show: false,
  1861. },
  1862. splitLine: {
  1863. show: true,
  1864. lineStyle: {
  1865. color: '#68b4dd66',
  1866. type: 'dashed',
  1867. },
  1868. },
  1869. axisLabel: {
  1870. show: true,
  1871. formatter: function (value) {
  1872. return value === 1 ? 0 : value
  1873. },
  1874. textStyle: {
  1875. color: 'rgba(250,250,250,0.6)',
  1876. },
  1877. },
  1878. }
  1879. option.yAxis.push({
  1880. splitLine: {
  1881. show: false,
  1882. },
  1883. axisLine: {
  1884. show: false,
  1885. },
  1886. axisLabel: {
  1887. show: true,
  1888. formatter: '{value}',
  1889. textStyle: {
  1890. color: 'rgba(250,250,250,0.6)',
  1891. },
  1892. },
  1893. max: function (value) {
  1894. if (Math.abs(value.max) > Math.abs(value.min)) {
  1895. return (Math.abs(value.max) * 1.2).toFixed(2)
  1896. } else {
  1897. return (Math.abs(value.min) * 1.2).toFixed(2)
  1898. }
  1899. },
  1900. min: function (value) {
  1901. if (Math.abs(value.max) > Math.abs(value.min)) {
  1902. return (-Math.abs(value.max) * 1.2).toFixed(2)
  1903. } else {
  1904. return (-Math.abs(value.min) * 1.2).toFixed(2)
  1905. }
  1906. },
  1907. })
  1908. myChart.setOption(option)
  1909. },
  1910. initChartR4() {
  1911. let myChart = echarts.init(this.$refs['echartR4'])
  1912. let commonOptions = this.commonOption
  1913. commonOptions.yAxis[0].splitNumber = 2
  1914. let option = {
  1915. ..._.cloneDeep(commonOptions),
  1916. series: [
  1917. {
  1918. name: '2022年退出人数',
  1919. type: 'bar',
  1920. barWidth: 15,
  1921. itemStyle: {
  1922. normal: {
  1923. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1924. {
  1925. offset: 0,
  1926. color: '#69c0ff',
  1927. },
  1928. {
  1929. offset: 1,
  1930. color: '#082550',
  1931. },
  1932. ]),
  1933. },
  1934. },
  1935. data: dataR4[0],
  1936. },
  1937. {
  1938. name: '2022年累计招聘人数',
  1939. type: 'bar',
  1940. barWidth: 15,
  1941. itemStyle: {
  1942. normal: {
  1943. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1944. {
  1945. offset: 0,
  1946. color: '#45DAD1',
  1947. },
  1948. {
  1949. offset: 1,
  1950. color: '#082550',
  1951. },
  1952. ]),
  1953. },
  1954. },
  1955. data: dataR4[1],
  1956. },
  1957. ],
  1958. }
  1959. option.title.text = '各省属企业"退二进一"完成情况'
  1960. option.legend.data = ['2022年退出人数', '2022年累计招聘人数']
  1961. option.legend.show = true
  1962. option.yAxis[0] = {
  1963. //type: 'log',
  1964. //min: 1,
  1965. //logBase: 3,
  1966. axisLine: {
  1967. show: false,
  1968. },
  1969. splitLine: {
  1970. show: true,
  1971. lineStyle: {
  1972. color: '#68b4dd66',
  1973. type: 'dashed',
  1974. },
  1975. },
  1976. axisLabel: {
  1977. show: true,
  1978. formatter: function (value) {
  1979. return value === 1 ? 0 : value
  1980. },
  1981. textStyle: {
  1982. color: 'rgba(250,250,250,0.6)',
  1983. },
  1984. },
  1985. }
  1986. myChart.setOption(option)
  1987. },
  1988. initChartR5() {
  1989. let myChart = echarts.init(this.$refs['echartR5'])
  1990. let option = {
  1991. ..._.cloneDeep(this.commonOption),
  1992. series: [
  1993. {
  1994. name: '去年同期在岗职工平均薪酬',
  1995. type: 'bar',
  1996. barWidth: 15,
  1997. markLine: {
  1998. data: [
  1999. {
  2000. name: '省属企业平均水平',
  2001. yAxis: 9333.33,
  2002. lineStyle: {
  2003. color: '#fff',
  2004. },
  2005. label: {
  2006. formatter: '{b}',
  2007. position: 'middle',
  2008. fontSize: 16,
  2009. color: '#fff',
  2010. },
  2011. }
  2012. ],
  2013. label: {
  2014. distance: [50, 0],
  2015. },
  2016. },
  2017. itemStyle: {
  2018. normal: {
  2019. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2020. {
  2021. offset: 0,
  2022. color: '#6682F5',
  2023. },
  2024. {
  2025. offset: 1,
  2026. color: '#082550',
  2027. },
  2028. ]),
  2029. },
  2030. },
  2031. data: fjxdataL1[0],
  2032. },
  2033. {
  2034. name: '在岗职工平均薪酬',
  2035. type: 'bar',
  2036. barWidth: 15,
  2037. itemStyle: {
  2038. normal: {
  2039. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2040. {
  2041. offset: 0,
  2042. color: '#69c0ff',
  2043. },
  2044. {
  2045. offset: 1,
  2046. color: '#082550',
  2047. },
  2048. ]),
  2049. },
  2050. },
  2051. data: fjxdataL1[1],
  2052. },
  2053. ],
  2054. }
  2055. option.title.text = '各省属企业在岗职工平均薪酬'
  2056. option.legend.data = ['去年同期在岗职工平均薪酬', '在岗职工平均薪酬']
  2057. option.legend.show = true
  2058. option.yAxis.push({
  2059. splitLine: {
  2060. show: false,
  2061. },
  2062. axisLine: {
  2063. show: false,
  2064. },
  2065. })
  2066. myChart.setOption(option)
  2067. },
  2068. initChartR6() {
  2069. let myChart = echarts.init(this.$refs['echartR6'])
  2070. let option = {
  2071. ..._.cloneDeep(this.commonOption),
  2072. color: ['#69c0ff'],
  2073. series: [
  2074. {
  2075. name: '2022年利润累计涨幅率',
  2076. type: 'line',
  2077. smooth: true, //平滑曲线显示
  2078. showAllSymbol: true, //显示所有图形。
  2079. symbol: 'circle', //标记的图形为实心圆
  2080. symbolSize: 8, //标记的大小
  2081. smooth: false,
  2082. label: {
  2083. normal: {
  2084. show: true,
  2085. lineHeight:'20',
  2086. position: 'top',
  2087. textStyle: {
  2088. color: '#B889EA',
  2089. fontStyle: 'normal',
  2090. textAlign: 'left',
  2091. fontSize: 16,
  2092. },
  2093. formatter: function(data) {
  2094. if(data.name == '文旅集团'){
  2095. return data.value
  2096. } else {
  2097. return ''
  2098. }
  2099. }
  2100. }
  2101. },
  2102. itemStyle: {
  2103. //折线拐点标志的样式
  2104. color: '#B889EA',
  2105. borderColor: '#B889EA',
  2106. width: 2,
  2107. shadowColor: '#B889EA',
  2108. shadowBlur: 4,
  2109. },
  2110. lineStyle: {
  2111. color: '#B889EA',
  2112. width: 2,
  2113. },
  2114. data: fjxdataL2[0],
  2115. },
  2116. {
  2117. name: '2022年薪酬累计涨幅率',
  2118. type: 'line',
  2119. smooth: true, //平滑曲线显示
  2120. showAllSymbol: true, //显示所有图形。
  2121. symbol: 'circle', //标记的图形为实心圆
  2122. symbolSize: 12, //标记的大小
  2123. smooth: false,
  2124. label: {
  2125. normal: {
  2126. show: true,
  2127. position: 'top',
  2128. lineHeight:'35',
  2129. textStyle: {
  2130. color: '#69c0ff',
  2131. fontStyle: 'normal',
  2132. textAlign: 'left',
  2133. fontSize: 16,
  2134. },
  2135. formatter: function(data) {
  2136. if(data.name == '文旅集团'){
  2137. return data.value
  2138. } else {
  2139. return ''
  2140. }
  2141. }
  2142. }
  2143. },
  2144. itemStyle: {
  2145. color: params => {
  2146. if (params.value > 0 && fjxdataL2[0][params.dataIndex] < 0) {
  2147. return 'yellow'
  2148. } else {
  2149. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2150. {
  2151. offset: 0,
  2152. color: '#69c0ff',
  2153. },
  2154. {
  2155. offset: 1,
  2156. color: '#082550',
  2157. },
  2158. ])
  2159. }
  2160. },
  2161. },
  2162. lineStyle: {
  2163. color: '#69C0FF',
  2164. width: 2,
  2165. },
  2166. data: fjxdataL2[1],
  2167. },
  2168. {
  2169. type: 'effectScatter',
  2170. coordinateSystem: 'cartesian2d',
  2171. showEffectOn: 'render',
  2172. rippleEffect: {
  2173. period: 10,
  2174. scale: 4,
  2175. brushType: 'stroke'
  2176. },
  2177. hoverAnimation: true,
  2178. itemStyle: {
  2179. color: 'yellow'
  2180. },
  2181. lineStyle: {
  2182. color: '#43ede3',
  2183. width: 2,
  2184. },
  2185. data: this.twinkleR6,
  2186. },
  2187. ],
  2188. }
  2189. option.title.text = '各省属企业利润与薪酬变动情况'
  2190. option.legend.data = ['2022年利润累计涨幅率', '2022年薪酬累计涨幅率']
  2191. option.tooltip.formatter = '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  2192. option.yAxis[0].axisLabel.formatter = '{value} %'
  2193. myChart.setOption(option)
  2194. },
  2195. initChartR7() {
  2196. let myChart = echarts.init(this.$refs['echartR7'])
  2197. let option = {
  2198. ..._.cloneDeep(this.commonOption),
  2199. series: [
  2200. {
  2201. name: '全员绩效考核完成率',
  2202. type: 'bar',
  2203. barWidth: 15,
  2204. itemStyle: {
  2205. normal: {
  2206. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2207. {
  2208. offset: 0,
  2209. color: '#B889EA',
  2210. },
  2211. {
  2212. offset: 1,
  2213. color: '#082550',
  2214. },
  2215. ]),
  2216. },
  2217. },
  2218. data: fjxdataL3[0],
  2219. },
  2220. ],
  2221. }
  2222. option.title.text = '各省属企业全员绩效考核'
  2223. option.legend.show = true
  2224. option.tooltip = {
  2225. trigger: 'axis',
  2226. formatter: '{a0}:{c0}' + '%'
  2227. },
  2228. option.yAxis[0].axisLabel = {
  2229. show: true,
  2230. formatter: '{value} %',
  2231. textStyle: {
  2232. color: 'rgba(250,250,250,0.6)',
  2233. },
  2234. }
  2235. myChart.setOption(option)
  2236. },
  2237. initChartR8() {
  2238. let myChart = echarts.init(this.$refs['echartR8'])
  2239. let option = {
  2240. ..._.cloneDeep(this.commonOption),
  2241. series: [
  2242. {
  2243. name: '任期制契约化完成率',
  2244. type: 'bar',
  2245. barWidth: 15,
  2246. itemStyle: {
  2247. normal: {
  2248. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2249. {
  2250. offset: 0,
  2251. color: '#43ede3',
  2252. },
  2253. {
  2254. offset: 1,
  2255. color: '#082550',
  2256. },
  2257. ]),
  2258. },
  2259. },
  2260. data: fjxdataL4[0],
  2261. },
  2262. ],
  2263. }
  2264. option.title.text = '各省属企业任期制契约化管理'
  2265. option.legend.show = true
  2266. option.tooltip.formatter = '{a0}:{c0}' + '%'
  2267. option.yAxis[0].axisLabel.formatter = '{value} %'
  2268. myChart.setOption(option)
  2269. },
  2270. },
  2271. })