index.js 75 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254
  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. // symbol: 'path://m 0,0 h 48 v 30 h -30 l -6,10 l -6,-10 h -6 z',
  1270. // symbolSize: '55',
  1271. // symbolOffset: ['25%',0],
  1272. // symbolKeepAspect:true,
  1273. // label:{
  1274. // show: true,
  1275. // fontSize:18,
  1276. // color: '#fff'
  1277. // },
  1278. // itemStyle: {
  1279. // color: 'rgba(38,48,59,0.6)'
  1280. // },
  1281. // data:[{value:'117.48', xAxis: '国际能源', yAxis: 127 },{value:'138.83', xAxis: '汾酒集团', yAxis: 148 }]
  1282. // },
  1283. markLine: {
  1284. data: [
  1285. {
  1286. name: '省属企业平均水平',
  1287. yAxis: 50.13,
  1288. lineStyle: {
  1289. color: '#fff',
  1290. },
  1291. label: {
  1292. formatter: '{b}',
  1293. position: 'end',
  1294. padding: [20, 100, 10, 10],
  1295. fontSize: 16,
  1296. color: '#fff',
  1297. },
  1298. },
  1299. // {
  1300. // name: '',
  1301. // yAxis: 0,
  1302. // lineStyle: {
  1303. // color: '#fff',
  1304. // },
  1305. // label: {
  1306. // formatter: '{b}',
  1307. // position: 'end',
  1308. // fontSize: 16,
  1309. // color: '#fff',
  1310. // },
  1311. // },
  1312. {
  1313. name: '央企平均水平',
  1314. yAxis: 69.4,
  1315. lineStyle: {
  1316. color: '#fff',
  1317. },
  1318. label: {
  1319. formatter: '{b}',
  1320. position: 'end',
  1321. padding: [-4, 150, 10, 10],
  1322. color: '#fff',
  1323. fontSize: 16,
  1324. },
  1325. },
  1326. ],
  1327. label: {
  1328. distance: [50, 0],
  1329. },
  1330. },
  1331. data: c1[0],
  1332. },
  1333. {
  1334. name: '全员劳动生产率同比',
  1335. type: 'line',
  1336. yAxisIndex: 1,
  1337. smooth: true, //平滑曲线显示
  1338. showAllSymbol: true, //显示所有图形。
  1339. symbol: 'circle', //标记的图形为实心圆
  1340. symbolSize: 8, //标记的大小
  1341. smooth: false,
  1342. itemStyle: {
  1343. //折线拐点标志的样式
  1344. color: '#B889EA',
  1345. borderColor: '#B889EA',
  1346. width: 2,
  1347. shadowColor: '#B889EA',
  1348. shadowBlur: 4,
  1349. },
  1350. lineStyle: {
  1351. color: '#B889EA',
  1352. width: 2,
  1353. },
  1354. // data: [50, 40, 60, 20, 45, 30, 60, 100, 45, 40, 50, 20, 60, 80, 45, 70, 50, 40],
  1355. data: c1[1],
  1356. },
  1357. ],
  1358. }
  1359. option.title.text = '各省属企业全员劳动生产率'
  1360. // option.legend.data = [ '全员劳动生产率(万/人)','全员劳动生产率同比']
  1361. option.legend.show = true
  1362. option.grid.right = '15%'
  1363. option.tooltip.formatter = '{a0}:{c0}' + '<br/>' + '{a1}:{c1}' + '%'
  1364. option.yAxis.push({
  1365. type: 'value',
  1366. axisLine: {
  1367. show: false,
  1368. },
  1369. splitLine: {
  1370. show: false,
  1371. },
  1372. axisLabel: {
  1373. show: true,
  1374. formatter: '{value} %',
  1375. textStyle: {
  1376. color: 'rgba(250,250,250,0.6)',
  1377. },
  1378. },
  1379. })
  1380. myChart.setOption(option)
  1381. // tools.loopShowTooltip(myChart, option, {
  1382. // nterval: 2000,
  1383. // loopSeries: true,
  1384. // })
  1385. },
  1386. initChartC2() {
  1387. let myChart = echarts.init(this.$refs['echartC2'])
  1388. let option = {
  1389. ..._.cloneDeep(this.commonOption),
  1390. color: ['#69c0ff'],
  1391. series: [
  1392. {
  1393. name: '人工成本利润率',
  1394. type: 'bar',
  1395. barWidth: 15,
  1396. label: {
  1397. normal: {
  1398. show: true,
  1399. position: 'top',
  1400. textStyle: {
  1401. color: '#fff',
  1402. fontStyle: 'normal',
  1403. textAlign: 'left',
  1404. fontSize: 16,
  1405. },
  1406. formatter: function(data) {
  1407. if(data.name == '国际能源' || data.name == '文旅集团' || data.name == '航产集团' || data.name == '华舰体育'){
  1408. return data.value
  1409. } else {
  1410. return ''
  1411. }
  1412. }
  1413. }
  1414. },
  1415. markLine: {
  1416. data: [
  1417. {
  1418. name: '省属企业平均水平',
  1419. yAxis: 67.09,
  1420. lineStyle: {
  1421. color: '#fff',
  1422. },
  1423. label: {
  1424. formatter: '{b}',
  1425. position: 'end',
  1426. padding: [24, 100, 10, 10],
  1427. fontSize: 16,
  1428. color: '#fff',
  1429. },
  1430. },
  1431. {
  1432. name: '央企平均水平',
  1433. yAxis: 81,
  1434. lineStyle: {
  1435. color: '#fff',
  1436. },
  1437. label: {
  1438. formatter: '{b}',
  1439. position: 'end',
  1440. padding: [-24, 200, 10, 10],
  1441. color: '#fff',
  1442. fontSize: 16,
  1443. },
  1444. },
  1445. ],
  1446. label: {
  1447. distance: [50, 0],
  1448. },
  1449. },
  1450. itemStyle: {
  1451. color: params => {
  1452. if (params.value < 0 && c2[0][params.dataIndex] < 0) {
  1453. return 'red'
  1454. } else if (params.value < 0) {
  1455. return 'yellow'
  1456. } else {
  1457. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1458. {
  1459. offset: 0,
  1460. color: '#69c0ff',
  1461. },
  1462. {
  1463. offset: 1,
  1464. color: '#082550',
  1465. },
  1466. ])
  1467. }
  1468. },
  1469. },
  1470. data: c2[1],
  1471. },
  1472. {
  1473. name: '人工成本利润率同比',
  1474. type: 'line',
  1475. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  1476. smooth: true, //平滑曲线显示
  1477. showAllSymbol: true, //显示所有图形。
  1478. symbol: 'circle', //标记的图形为实心圆
  1479. symbolSize: 8, //标记的大小
  1480. smooth: false,
  1481. itemStyle: {
  1482. //折线拐点标志的样式
  1483. color: '#B889EA',
  1484. borderColor: '#B889EA',
  1485. width: 2,
  1486. shadowColor: '#B889EA',
  1487. shadowBlur: 4,
  1488. },
  1489. lineStyle: {
  1490. color: '#B889EA',
  1491. width: 2,
  1492. },
  1493. data: c2[0],
  1494. },
  1495. ],
  1496. }
  1497. option.title.text = '各省属企业人工成本利润率'
  1498. option.legend.show = true
  1499. option.grid.right = '15%'
  1500. option.yAxis[0].axisLabel.formatter = '{value} %'
  1501. option.tooltip.formatter = '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  1502. option.yAxis.push({
  1503. type: 'value',
  1504. axisLine: {
  1505. show: false,
  1506. },
  1507. splitLine: {
  1508. show: false,
  1509. },
  1510. axisLabel: {
  1511. show: true,
  1512. formatter: '{value} %',
  1513. textStyle: {
  1514. color: 'rgba(250,250,250,0.6)',
  1515. },
  1516. },
  1517. })
  1518. myChart.setOption(option)
  1519. // tools.loopShowTooltip(myChart, option, {
  1520. // nterval: 2000,
  1521. // loopSeries: true,
  1522. // })
  1523. },
  1524. // 右侧图表---------------------------------------------开始
  1525. initChartR1() {
  1526. let myChart = echarts.init(this.$refs['echartR1'])
  1527. let commonOptions = this.commonOption
  1528. commonOptions.yAxis[0].splitNumber = 2
  1529. let dataTemp = []
  1530. let dataTemp2 = []
  1531. dataR1[0].forEach(item => {
  1532. dataTemp.push(item + 1)
  1533. })
  1534. dataR1[1].forEach(item => {
  1535. dataTemp2.push(item + 1)
  1536. })
  1537. let option = {
  1538. ..._.cloneDeep(commonOptions),
  1539. series: [
  1540. {
  1541. name: '招聘需求公告次数',
  1542. type: 'bar',
  1543. barWidth: 15,
  1544. itemStyle: {
  1545. normal: {
  1546. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1547. {
  1548. offset: 0,
  1549. color: '#69c0ff',
  1550. },
  1551. {
  1552. offset: 1,
  1553. color: '#082550',
  1554. },
  1555. ]),
  1556. },
  1557. },
  1558. data: dataTemp,
  1559. },
  1560. {
  1561. name: '招聘需求公告累计招聘人次',
  1562. type: 'bar',
  1563. barWidth: 15,
  1564. itemStyle: {
  1565. normal: {
  1566. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1567. {
  1568. offset: 0,
  1569. color: '#43ede3',
  1570. },
  1571. {
  1572. offset: 1,
  1573. color: '#082550',
  1574. },
  1575. ]),
  1576. },
  1577. },
  1578. data: dataTemp2,
  1579. },
  1580. ],
  1581. }
  1582. option.title.text = '各省属企业招聘需求公示人次'
  1583. option.legend.data = ['招聘需求公告次数', '招聘需求公告累计招聘人次']
  1584. option.legend.show = true
  1585. option.tooltip.formatter = function (value) {
  1586. return value[0].axisValue + ':' + (value[0].value - 1) + '<br>' + value[1].axisValue + ':' + (value[1].value - 1)
  1587. }
  1588. option.yAxis[0] = {
  1589. type: 'log',
  1590. min: 1,
  1591. logBase: 10,
  1592. axisLine: {
  1593. show: false,
  1594. },
  1595. splitLine: {
  1596. show: true,
  1597. lineStyle: {
  1598. color: '#68b4dd66',
  1599. type: 'dashed',
  1600. },
  1601. },
  1602. axisLabel: {
  1603. show: true,
  1604. formatter: function (value) {
  1605. return value === 1 ? 0 : value
  1606. },
  1607. textStyle: {
  1608. color: 'rgba(250,250,250,0.6)',
  1609. },
  1610. },
  1611. }
  1612. myChart.setOption(option)
  1613. },
  1614. initChartR2() {
  1615. let myChart = echarts.init(this.$refs['echartR2'])
  1616. let commonOptions = this.commonOption
  1617. commonOptions.yAxis[0].splitNumber = 2
  1618. let dataTemp = []
  1619. let dataTemp2 = []
  1620. dataR2[0].forEach(item => {
  1621. dataTemp.push(item + 1)
  1622. })
  1623. dataR2[1].forEach(item => {
  1624. dataTemp2.push(item + 1)
  1625. })
  1626. let option = {
  1627. ..._.cloneDeep(commonOptions),
  1628. series: [
  1629. {
  1630. name: '录用结果公示次数',
  1631. type: 'bar',
  1632. barWidth: 15,
  1633. itemStyle: {
  1634. normal: {
  1635. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1636. {
  1637. offset: 0,
  1638. color: '#69c0ff',
  1639. },
  1640. {
  1641. offset: 1,
  1642. color: '#082550',
  1643. },
  1644. ]),
  1645. },
  1646. },
  1647. data: dataTemp,
  1648. },
  1649. {
  1650. name: '录用结果公示累计公示人数',
  1651. type: 'bar',
  1652. barWidth: 15,
  1653. itemStyle: {
  1654. normal: {
  1655. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1656. {
  1657. offset: 0,
  1658. color: '#45DAD1',
  1659. },
  1660. {
  1661. offset: 1,
  1662. color: '#082550',
  1663. },
  1664. ]),
  1665. },
  1666. },
  1667. data: dataTemp2,
  1668. },
  1669. ],
  1670. }
  1671. option.title.text = '各省属企业录用结果公示人次'
  1672. option.legend.data = ['录用结果公示次数', '录用结果公示累计公示人数']
  1673. option.legend.show = true
  1674. option.tooltip.formatter = function (value) {
  1675. return value[0].axisValue + ':' + (value[0].value - 1) + '<br>' + value[1].axisValue + ':' + (value[1].value - 1)
  1676. }
  1677. option.yAxis[0] = {
  1678. type: 'log',
  1679. min: 1,
  1680. logBase: 10,
  1681. axisLine: {
  1682. show: false,
  1683. },
  1684. splitLine: {
  1685. show: true,
  1686. lineStyle: {
  1687. color: '#68b4dd66',
  1688. type: 'dashed',
  1689. },
  1690. },
  1691. axisLabel: {
  1692. show: true,
  1693. formatter: function (value) {
  1694. return value === 1 ? 0 : value
  1695. },
  1696. textStyle: {
  1697. color: 'rgba(250,250,250,0.6)',
  1698. },
  1699. },
  1700. }
  1701. myChart.setOption(option)
  1702. },
  1703. initChartR3() {
  1704. let myChart = echarts.init(this.$refs['echartR3'])
  1705. let commonOptions = this.commonOption
  1706. commonOptions.yAxis[0].splitNumber = 2
  1707. let option = {
  1708. ..._.cloneDeep(commonOptions),
  1709. color: ['#45DAD1'],
  1710. series: [
  1711. {
  1712. name: '2022年利润(万)',
  1713. type: 'bar',
  1714. barWidth: 15,
  1715. label: {
  1716. normal: {
  1717. show: true,
  1718. position: 'bottom',
  1719. textStyle: {
  1720. color: '#69c0ff',
  1721. fontStyle: 'normal',
  1722. textAlign: 'left',
  1723. fontSize: 14,
  1724. },
  1725. formatter: function(data) {
  1726. if(data.name=="国际能源" || data.name == '文旅集团' || data.name=='航产集团'||data.name == '华舰体育'){
  1727. return data.value
  1728. } else {
  1729. return ''
  1730. }
  1731. }
  1732. }
  1733. },
  1734. itemStyle: {
  1735. normal: {
  1736. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1737. {
  1738. offset: 0,
  1739. color: '#69c0ff',
  1740. },
  1741. {
  1742. offset: 1,
  1743. color: '#082550',
  1744. },
  1745. ]),
  1746. },
  1747. },
  1748. data: dataR3[0],
  1749. },
  1750. {
  1751. name: '2022年累计招聘数',
  1752. type: 'bar',
  1753. barWidth: 15,
  1754. yAxisIndex: 1,
  1755. label: {
  1756. normal: {
  1757. show: true,
  1758. position: 'top',
  1759. textStyle: {
  1760. color: '#45DAD1',
  1761. fontStyle: 'normal',
  1762. textAlign: 'right',
  1763. fontSize: 14,
  1764. },
  1765. formatter: function(data) {
  1766. if(data.name=="国际能源" || data.name == '文旅集团' || data.name=='航产集团'||data.name == '华舰体育'){
  1767. return data.value
  1768. } else {
  1769. return ''
  1770. }
  1771. }
  1772. }
  1773. },
  1774. itemStyle: {
  1775. color: params => {
  1776. if (params.value > 0 && dataR3[0][params.dataIndex] < 0) {
  1777. return 'red'
  1778. } else {
  1779. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1780. {
  1781. offset: 0,
  1782. color: '#45DAD1',
  1783. },
  1784. {
  1785. offset: 1,
  1786. color: '#082550',
  1787. },
  1788. ])
  1789. }
  1790. },
  1791. },
  1792. // itemStyle: {
  1793. // normal: {
  1794. // color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1795. // {
  1796. // offset: 0,
  1797. // color: '#45DAD1',
  1798. // },
  1799. // {
  1800. // offset: 1,
  1801. // color: '#082550',
  1802. // },
  1803. // ]),
  1804. // },
  1805. // },
  1806. data: dataR3[1],
  1807. },
  1808. ],
  1809. }
  1810. option.title.text = '各省属企业年利润与当年累计招聘人数'
  1811. option.legend.data = ['2022年利润(万)', '2022年累计招聘数']
  1812. option.legend.show = true
  1813. option.yAxis[0] = {
  1814. max: function (value) {
  1815. if (Math.abs(value.max) > Math.abs(value.min)) {
  1816. return (Math.abs(value.max) * 1.2).toFixed(2)
  1817. } else {
  1818. return (Math.abs(value.min) * 1.2).toFixed(2)
  1819. }
  1820. },
  1821. min: function (value) {
  1822. if (Math.abs(value.max) > Math.abs(value.min)) {
  1823. return (-Math.abs(value.max) * 1.2).toFixed(2)
  1824. } else {
  1825. return (-Math.abs(value.min) * 1.2).toFixed(2)
  1826. }
  1827. },
  1828. type: 'value',
  1829. axisLine: {
  1830. show: false,
  1831. },
  1832. splitLine: {
  1833. show: true,
  1834. lineStyle: {
  1835. color: '#68b4dd66',
  1836. type: 'dashed',
  1837. },
  1838. },
  1839. axisLabel: {
  1840. show: true,
  1841. formatter: function (value) {
  1842. return value === 1 ? 0 : value
  1843. },
  1844. textStyle: {
  1845. color: 'rgba(250,250,250,0.6)',
  1846. },
  1847. },
  1848. }
  1849. option.yAxis.push({
  1850. splitLine: {
  1851. show: false,
  1852. },
  1853. axisLine: {
  1854. show: false,
  1855. },
  1856. axisLabel: {
  1857. show: true,
  1858. formatter: '{value}',
  1859. textStyle: {
  1860. color: 'rgba(250,250,250,0.6)',
  1861. },
  1862. },
  1863. max: function (value) {
  1864. if (Math.abs(value.max) > Math.abs(value.min)) {
  1865. return (Math.abs(value.max) * 1.2).toFixed(2)
  1866. } else {
  1867. return (Math.abs(value.min) * 1.2).toFixed(2)
  1868. }
  1869. },
  1870. min: function (value) {
  1871. if (Math.abs(value.max) > Math.abs(value.min)) {
  1872. return (-Math.abs(value.max) * 1.2).toFixed(2)
  1873. } else {
  1874. return (-Math.abs(value.min) * 1.2).toFixed(2)
  1875. }
  1876. },
  1877. })
  1878. myChart.setOption(option)
  1879. },
  1880. initChartR4() {
  1881. let myChart = echarts.init(this.$refs['echartR4'])
  1882. let commonOptions = this.commonOption
  1883. commonOptions.yAxis[0].splitNumber = 2
  1884. let option = {
  1885. ..._.cloneDeep(commonOptions),
  1886. series: [
  1887. {
  1888. name: '2022年退出人数',
  1889. type: 'bar',
  1890. barWidth: 15,
  1891. itemStyle: {
  1892. normal: {
  1893. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1894. {
  1895. offset: 0,
  1896. color: '#69c0ff',
  1897. },
  1898. {
  1899. offset: 1,
  1900. color: '#082550',
  1901. },
  1902. ]),
  1903. },
  1904. },
  1905. data: dataR4[0],
  1906. },
  1907. {
  1908. name: '2022年累计招聘人数',
  1909. type: 'bar',
  1910. barWidth: 15,
  1911. itemStyle: {
  1912. normal: {
  1913. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1914. {
  1915. offset: 0,
  1916. color: '#45DAD1',
  1917. },
  1918. {
  1919. offset: 1,
  1920. color: '#082550',
  1921. },
  1922. ]),
  1923. },
  1924. },
  1925. data: dataR4[1],
  1926. },
  1927. ],
  1928. }
  1929. option.title.text = '各省属企业"退二进一"完成情况'
  1930. option.legend.data = ['2022年退出人数', '2022年累计招聘人数']
  1931. option.legend.show = true
  1932. option.yAxis[0] = {
  1933. //type: 'log',
  1934. //min: 1,
  1935. //logBase: 3,
  1936. axisLine: {
  1937. show: false,
  1938. },
  1939. splitLine: {
  1940. show: true,
  1941. lineStyle: {
  1942. color: '#68b4dd66',
  1943. type: 'dashed',
  1944. },
  1945. },
  1946. axisLabel: {
  1947. show: true,
  1948. formatter: function (value) {
  1949. return value === 1 ? 0 : value
  1950. },
  1951. textStyle: {
  1952. color: 'rgba(250,250,250,0.6)',
  1953. },
  1954. },
  1955. }
  1956. myChart.setOption(option)
  1957. },
  1958. initChartR5() {
  1959. let myChart = echarts.init(this.$refs['echartR5'])
  1960. let option = {
  1961. ..._.cloneDeep(this.commonOption),
  1962. series: [
  1963. {
  1964. name: '去年同期在岗职工平均薪酬',
  1965. type: 'bar',
  1966. barWidth: 15,
  1967. markLine: {
  1968. data: [
  1969. {
  1970. name: '省属企业平均水平',
  1971. yAxis: 9333.33,
  1972. lineStyle: {
  1973. color: '#fff',
  1974. },
  1975. label: {
  1976. formatter: '{b}',
  1977. position: 'middle',
  1978. fontSize: 16,
  1979. color: '#fff',
  1980. },
  1981. }
  1982. ],
  1983. label: {
  1984. distance: [50, 0],
  1985. },
  1986. },
  1987. itemStyle: {
  1988. normal: {
  1989. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1990. {
  1991. offset: 0,
  1992. color: '#6682F5',
  1993. },
  1994. {
  1995. offset: 1,
  1996. color: '#082550',
  1997. },
  1998. ]),
  1999. },
  2000. },
  2001. data: fjxdataL1[0],
  2002. },
  2003. {
  2004. name: '在岗职工平均薪酬',
  2005. type: 'bar',
  2006. barWidth: 15,
  2007. itemStyle: {
  2008. normal: {
  2009. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2010. {
  2011. offset: 0,
  2012. color: '#69c0ff',
  2013. },
  2014. {
  2015. offset: 1,
  2016. color: '#082550',
  2017. },
  2018. ]),
  2019. },
  2020. },
  2021. data: fjxdataL1[1],
  2022. },
  2023. ],
  2024. }
  2025. option.title.text = '各省属企业在岗职工平均薪酬'
  2026. option.legend.data = ['去年同期在岗职工平均薪酬', '在岗职工平均薪酬']
  2027. option.legend.show = true
  2028. option.yAxis.push({
  2029. splitLine: {
  2030. show: false,
  2031. },
  2032. axisLine: {
  2033. show: false,
  2034. },
  2035. })
  2036. myChart.setOption(option)
  2037. },
  2038. initChartR6() {
  2039. let myChart = echarts.init(this.$refs['echartR6'])
  2040. let option = {
  2041. ..._.cloneDeep(this.commonOption),
  2042. color: ['#69c0ff'],
  2043. series: [
  2044. {
  2045. name: '2022年利润累计涨幅率',
  2046. type: 'line',
  2047. smooth: true, //平滑曲线显示
  2048. showAllSymbol: true, //显示所有图形。
  2049. symbol: 'circle', //标记的图形为实心圆
  2050. symbolSize: 8, //标记的大小
  2051. smooth: false,
  2052. label: {
  2053. normal: {
  2054. show: true,
  2055. lineHeight:'20',
  2056. position: 'top',
  2057. textStyle: {
  2058. color: '#B889EA',
  2059. fontStyle: 'normal',
  2060. textAlign: 'left',
  2061. fontSize: 16,
  2062. },
  2063. formatter: function(data) {
  2064. if(data.name == '文旅集团'){
  2065. return data.value
  2066. } else {
  2067. return ''
  2068. }
  2069. }
  2070. }
  2071. },
  2072. itemStyle: {
  2073. //折线拐点标志的样式
  2074. color: '#B889EA',
  2075. borderColor: '#B889EA',
  2076. width: 2,
  2077. shadowColor: '#B889EA',
  2078. shadowBlur: 4,
  2079. },
  2080. lineStyle: {
  2081. color: '#B889EA',
  2082. width: 2,
  2083. },
  2084. data: fjxdataL2[0],
  2085. },
  2086. {
  2087. name: '2022年薪酬累计涨幅率',
  2088. type: 'line',
  2089. smooth: true, //平滑曲线显示
  2090. showAllSymbol: true, //显示所有图形。
  2091. symbol: 'circle', //标记的图形为实心圆
  2092. symbolSize: 12, //标记的大小
  2093. smooth: false,
  2094. label: {
  2095. normal: {
  2096. show: true,
  2097. position: 'top',
  2098. lineHeight:'35',
  2099. textStyle: {
  2100. color: '#69c0ff',
  2101. fontStyle: 'normal',
  2102. textAlign: 'left',
  2103. fontSize: 16,
  2104. },
  2105. formatter: function(data) {
  2106. if(data.name == '文旅集团'){
  2107. return data.value
  2108. } else {
  2109. return ''
  2110. }
  2111. }
  2112. }
  2113. },
  2114. itemStyle: {
  2115. color: params => {
  2116. if (params.value > 0 && fjxdataL2[0][params.dataIndex] < 0) {
  2117. return 'yellow'
  2118. } else {
  2119. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2120. {
  2121. offset: 0,
  2122. color: '#69c0ff',
  2123. },
  2124. {
  2125. offset: 1,
  2126. color: '#082550',
  2127. },
  2128. ])
  2129. }
  2130. },
  2131. },
  2132. lineStyle: {
  2133. color: '#69C0FF',
  2134. width: 2,
  2135. },
  2136. data: fjxdataL2[1],
  2137. },
  2138. {
  2139. type: 'effectScatter',
  2140. coordinateSystem: 'cartesian2d',
  2141. showEffectOn: 'render',
  2142. rippleEffect: {
  2143. period: 10,
  2144. scale: 4,
  2145. brushType: 'stroke'
  2146. },
  2147. hoverAnimation: true,
  2148. itemStyle: {
  2149. color: 'yellow'
  2150. },
  2151. lineStyle: {
  2152. color: '#43ede3',
  2153. width: 2,
  2154. },
  2155. data: this.twinkleR6,
  2156. },
  2157. ],
  2158. }
  2159. option.title.text = '各省属企业利润与薪酬变动情况'
  2160. option.legend.data = ['2022年利润累计涨幅率', '2022年薪酬累计涨幅率']
  2161. option.tooltip.formatter = '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  2162. option.yAxis[0].axisLabel.formatter = '{value} %'
  2163. myChart.setOption(option)
  2164. },
  2165. initChartR7() {
  2166. let myChart = echarts.init(this.$refs['echartR7'])
  2167. let option = {
  2168. ..._.cloneDeep(this.commonOption),
  2169. series: [
  2170. {
  2171. name: '全员绩效考核完成率',
  2172. type: 'bar',
  2173. barWidth: 15,
  2174. itemStyle: {
  2175. normal: {
  2176. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2177. {
  2178. offset: 0,
  2179. color: '#B889EA',
  2180. },
  2181. {
  2182. offset: 1,
  2183. color: '#082550',
  2184. },
  2185. ]),
  2186. },
  2187. },
  2188. data: fjxdataL3[0],
  2189. },
  2190. ],
  2191. }
  2192. option.title.text = '各省属企业全员绩效考核'
  2193. option.legend.show = true
  2194. option.tooltip = {
  2195. trigger: 'axis',
  2196. formatter: '{a0}:{c0}' + '%'
  2197. },
  2198. option.yAxis[0].axisLabel = {
  2199. show: true,
  2200. formatter: '{value} %',
  2201. textStyle: {
  2202. color: 'rgba(250,250,250,0.6)',
  2203. },
  2204. }
  2205. myChart.setOption(option)
  2206. },
  2207. initChartR8() {
  2208. let myChart = echarts.init(this.$refs['echartR8'])
  2209. let option = {
  2210. ..._.cloneDeep(this.commonOption),
  2211. series: [
  2212. {
  2213. name: '任期制契约化完成率',
  2214. type: 'bar',
  2215. barWidth: 15,
  2216. itemStyle: {
  2217. normal: {
  2218. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2219. {
  2220. offset: 0,
  2221. color: '#43ede3',
  2222. },
  2223. {
  2224. offset: 1,
  2225. color: '#082550',
  2226. },
  2227. ]),
  2228. },
  2229. },
  2230. data: fjxdataL4[0],
  2231. },
  2232. ],
  2233. }
  2234. option.title.text = '各省属企业任期制契约化管理'
  2235. option.legend.show = true
  2236. option.tooltip.formatter = '{a0}:{c0}' + '%'
  2237. option.yAxis[0].axisLabel.formatter = '{value} %'
  2238. myChart.setOption(option)
  2239. },
  2240. },
  2241. })