index.js 74 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213
  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: '#fff',
  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: '#fff',
  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: '#fff',
  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: '#fff',
  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: '#fff',
  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. textStyle: {
  743. color: '#fff',
  744. fontStyle: 'normal',
  745. textAlign: 'left',
  746. fontSize: 16,
  747. },
  748. formatter: function(data) {
  749. if(data.name == '华阳新材' || data.name=='华舰体育'){
  750. return data.value
  751. } else {
  752. return ''
  753. }
  754. }
  755. }
  756. },
  757. itemStyle: {
  758. normal: {
  759. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  760. {
  761. offset: 0,
  762. color: '#69c0ff',
  763. },
  764. {
  765. offset: 1,
  766. color: '#082550',
  767. },
  768. ]),
  769. },
  770. },
  771. data: dataL5[0],
  772. },
  773. {
  774. name: '去年同期人数变化率',
  775. type: 'line',
  776. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  777. smooth: true, //平滑曲线显示
  778. showAllSymbol: true, //显示所有图形。
  779. symbol: 'circle', //标记的图形为实心圆
  780. symbolSize: 8, //标记的大小
  781. smooth: false,
  782. itemStyle: {
  783. //折线拐点标志的样式
  784. color: '#b889ea',
  785. borderColor: '#b889ea',
  786. width: 2,
  787. shadowColor: '#b889ea',
  788. shadowBlur: 4,
  789. },
  790. lineStyle: {
  791. color: '#b889ea',
  792. width: 2,
  793. },
  794. data: dataL5[1],
  795. },
  796. ],
  797. }
  798. option.title.text = '各省属企业总人数'
  799. option.legend.data = ['各省属企业总人数', '去年同期人数变化率']
  800. option.legend.show = true
  801. option.yAxis[0] = {
  802. type: 'value',
  803. // type: 'log',
  804. min: 1,
  805. // logBase: 10,
  806. axisLine: {
  807. show: false,
  808. },
  809. splitLine: {
  810. show: true,
  811. lineStyle: {
  812. color: '#68b4dd66',
  813. type: 'dashed',
  814. },
  815. },
  816. axisLabel: {
  817. show: true,
  818. formatter: function (value) {
  819. return value === 1 ? 0 : value
  820. },
  821. textStyle: {
  822. color: 'rgba(250,250,250,0.6)',
  823. },
  824. },
  825. }
  826. option.yAxis.push({
  827. type: 'value',
  828. axisLine: {
  829. show: false,
  830. },
  831. splitLine: {
  832. show: false,
  833. },
  834. axisLabel: {
  835. show: true,
  836. formatter: '{value} %',
  837. textStyle: {
  838. color: 'rgba(250,250,250,0.6)',
  839. },
  840. },
  841. })
  842. option.tooltip.formatter = '{a0}:{c0}' + '<br/>' + '{a1}:{c1}' + '%'
  843. myChart.setOption(option)
  844. },
  845. initChartL6() {
  846. let myChart = echarts.init(this.$refs['echartL6'])
  847. let option = {
  848. ..._.cloneDeep(this.commonOption),
  849. series: [
  850. {
  851. name: '总部员额数',
  852. type: 'bar',
  853. barWidth: 15,
  854. itemStyle: {
  855. normal: {
  856. barBorderRadius: [10, 10, 0, 0],
  857. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  858. {
  859. offset: 0,
  860. color: '#43ede3',
  861. },
  862. {
  863. offset: 1,
  864. color: '#082550',
  865. },
  866. ]),
  867. },
  868. },
  869. data: dataL6[0],
  870. },
  871. {
  872. name: '总部员额数核定上限',
  873. type: 'line',
  874. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  875. smooth: true, //平滑曲线显示
  876. showAllSymbol: true, //显示所有图形。
  877. symbol: 'circle', //标记的图形为实心圆
  878. symbolSize: 8, //标记的大小
  879. smooth: false,
  880. itemStyle: {
  881. //折线拐点标志的样式
  882. color: '#fbe138',
  883. borderColor: '#fbe138',
  884. width: 2,
  885. shadowColor: '#fbe138',
  886. shadowBlur: 4,
  887. },
  888. lineStyle: {
  889. color: '#fbe138',
  890. width: 2,
  891. },
  892. data: dataL6[1],
  893. },
  894. ],
  895. }
  896. option.title.text = '各省属企业总部员额数'
  897. option.legend.data = ['总部员额数', '总部员额数核定上限']
  898. option.legend.show = true
  899. option.yAxis.push({
  900. splitLine: {
  901. show: false,
  902. },
  903. axisLine: {
  904. show: false,
  905. },
  906. })
  907. myChart.setOption(option)
  908. },
  909. initChartL7() {
  910. let myChart = echarts.init(this.$refs['echartL7'])
  911. let that = this
  912. let option = {
  913. ..._.cloneDeep(this.commonOption),
  914. color: ['#43ede3'],
  915. series: [
  916. {
  917. name: '人数变化',
  918. type: 'line',
  919. smooth: true, //平滑曲线显示
  920. showAllSymbol: true, //显示所有图形。
  921. symbol: 'circle', //标记的图形为实心圆
  922. symbolSize: 15, //标记的大小
  923. smooth: false,
  924. label: {
  925. normal: {
  926. show: true,
  927. position: 'top',
  928. lineHeight: '30',
  929. textStyle: {
  930. color: '#43ede3',
  931. fontStyle: 'normal',
  932. textAlign: 'left',
  933. fontSize: 16,
  934. },
  935. formatter: function(data) {
  936. if(data.name == '文旅集团'|| data.name== "大地控股" || data.name=='华舰体育'){
  937. return data.value
  938. } else {
  939. return ''
  940. }
  941. }
  942. }
  943. },
  944. itemStyle: {
  945. color: params => {
  946. if (dataL7[1][params.dataIndex] < 0 && params.value > 0) {
  947. return 'red'
  948. } else {
  949. return '#43ede3'
  950. }
  951. },
  952. },
  953. lineStyle: {
  954. color: '#43ede3',
  955. width: 2,
  956. },
  957. data: dataL7[0],
  958. },
  959. {
  960. name: '劳动生产率同比变化',
  961. type: 'line',
  962. yAxisIndex: 1,
  963. smooth: true, //平滑曲线显示
  964. showAllSymbol: true, //显示所有图形。
  965. symbol: 'circle', //标记的图形为实心圆
  966. symbolSize: 8, //标记的大小
  967. smooth: false,
  968. itemStyle: {
  969. //折线拐点标志的样式
  970. color: '#b889ea',
  971. borderColor: '#b889ea',
  972. width: 2,
  973. shadowColor: '#b889ea',
  974. shadowBlur: 4,
  975. },
  976. data: dataL7[1],
  977. },
  978. {
  979. type: 'effectScatter',
  980. coordinateSystem: 'cartesian2d',
  981. showEffectOn: 'render',
  982. rippleEffect: {
  983. period: 10,
  984. scale: 4,
  985. brushType: 'stroke'
  986. },
  987. hoverAnimation: true,
  988. itemStyle: {
  989. color: 'red'
  990. },
  991. lineStyle: {
  992. color: '#43ede3',
  993. width: 2,
  994. },
  995. data: that.twinkle7,
  996. },
  997. ],
  998. }
  999. option.title.text = '人数变化和全员劳动生产率变化分析'
  1000. option.legend.data = ['人数变化', '劳动生产率同比变化']
  1001. option.legend.show = true
  1002. option.yAxis[0].axisLabel.formatter = '{value} %'
  1003. option.tooltip.formatter = '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  1004. option.yAxis.push({
  1005. type: 'value',
  1006. axisLine: {
  1007. show: false,
  1008. },
  1009. splitLine: {
  1010. show: false,
  1011. },
  1012. axisLabel: {
  1013. show: true,
  1014. formatter: '{value} %',
  1015. textStyle: {
  1016. color: 'rgba(250,250,250,0.6)',
  1017. },
  1018. splitLine: {
  1019. show: false,
  1020. },
  1021. axisLabel: {
  1022. show: true,
  1023. formatter: '{value} %',
  1024. textStyle: {
  1025. color: 'rgba(250,250,250,0.6)',
  1026. },
  1027. },
  1028. },
  1029. })
  1030. myChart.setOption(option)
  1031. },
  1032. initChartL8() {
  1033. let myChart = echarts.init(this.$refs['echartL8'])
  1034. let option = {
  1035. ..._.cloneDeep(this.commonOption),
  1036. color: ['#43ede3'],
  1037. series: [
  1038. {
  1039. name: '人数变化',
  1040. type: 'line',
  1041. smooth: true, //平滑曲线显示
  1042. showAllSymbol: true, //显示所有图形。
  1043. symbol: 'circle', //标记的图形为实心圆
  1044. symbolSize: 15, //标记的大小
  1045. smooth: false,
  1046. label: {
  1047. normal: {
  1048. show: true,
  1049. position: 'bottom',
  1050. lineHeight:'20',
  1051. textStyle: {
  1052. color: '#43ede3',
  1053. fontStyle: 'normal',
  1054. textAlign: 'left',
  1055. fontSize: 16,
  1056. },
  1057. formatter: function(data) {
  1058. if(data.name == '文旅集团' || data.name=='大地控股'){
  1059. return data.value
  1060. } else {
  1061. return ''
  1062. }
  1063. }
  1064. }
  1065. },
  1066. itemStyle: {
  1067. color: params => {
  1068. if (dataL8[1][params.dataIndex] < 0 && params.value > 0) {
  1069. return 'red'
  1070. } else {
  1071. return '#43ede3'
  1072. }
  1073. },
  1074. },
  1075. lineStyle: {
  1076. color: '#43ede3',
  1077. width: 2,
  1078. },
  1079. data: dataL8[0],
  1080. },
  1081. {
  1082. name: '人工成本利润率同比变化',
  1083. type: 'line',
  1084. smooth: true, //平滑曲线显示
  1085. showAllSymbol: true, //显示所有图形。
  1086. symbol: 'circle', //标记的图形为实心圆
  1087. symbolSize: 15, //标记的大小
  1088. smooth: false,
  1089. label: {
  1090. normal: {
  1091. show: true,
  1092. position: 'top',
  1093. lineHeight:'30',
  1094. textStyle: {
  1095. color: '#b889ea',
  1096. fontStyle: 'normal',
  1097. textAlign: 'left',
  1098. fontSize: 16,
  1099. },
  1100. formatter: function(data) {
  1101. if(data.name == '文旅集团' || data.name=='大地控股'){
  1102. return data.value
  1103. } else {
  1104. return ''
  1105. }
  1106. }
  1107. }
  1108. },
  1109. itemStyle: {
  1110. //折线拐点标志的样式
  1111. color: '#b889ea',
  1112. borderColor: '#b889ea',
  1113. width: 2,
  1114. shadowColor: '#b889ea',
  1115. shadowBlur: 4,
  1116. },
  1117. lineStyle: {
  1118. color: '#b889ea',
  1119. width: 2,
  1120. },
  1121. data: dataL8[1],
  1122. },
  1123. {
  1124. type: 'effectScatter',
  1125. coordinateSystem: 'cartesian2d',
  1126. showEffectOn: 'render',
  1127. rippleEffect: {
  1128. period: 10,
  1129. scale: 4,
  1130. brushType: 'stroke'
  1131. },
  1132. hoverAnimation: true,
  1133. itemStyle: {
  1134. color: 'red'
  1135. },
  1136. lineStyle: {
  1137. color: '#43ede3',
  1138. width: 2,
  1139. },
  1140. data: this.twinkle8,
  1141. },
  1142. // {
  1143. // type: 'effectScatter',
  1144. // coordinateSystem: 'cartesian2d',
  1145. // showEffectOn: 'render',
  1146. // rippleEffect: {
  1147. // period: 10,
  1148. // scale: 4,
  1149. // brushType: 'stroke'
  1150. // },
  1151. // hoverAnimation: true,
  1152. // itemStyle: {
  1153. // color: 'red'
  1154. // },
  1155. // lineStyle: {
  1156. // color: '#43ede3',
  1157. // width: 2,
  1158. // },
  1159. // data: that.twinkle,
  1160. // },
  1161. ],
  1162. // tooltip: {
  1163. // trigger: 'axis',
  1164. // formatter(params){
  1165. // console.log(params)
  1166. // return params[0]
  1167. // }
  1168. // }
  1169. }
  1170. option.title.text = '人数变化和人工成本利润率变化分析'
  1171. option.legend.data = ['人数变化', '人工成本利润率同比变化']
  1172. option.legend.show = true
  1173. option.yAxis[0].axisLabel.formatter = '{value} %'
  1174. option.tooltip.formatter = '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  1175. myChart.setOption(option)
  1176. },
  1177. // 中间图表---------------------------------------------开始
  1178. initChartC1() {
  1179. let myChart = echarts.init(this.$refs['echartC1'])
  1180. let option = {
  1181. ..._.cloneDeep(this.commonOption),
  1182. color: ['#69c0ff'],
  1183. series: [
  1184. {
  1185. name: '全员劳动生产率(万/人)',
  1186. type: 'bar',
  1187. barWidth: 15,
  1188. label: {
  1189. normal: {
  1190. show: true,
  1191. position: 'top',
  1192. textStyle: {
  1193. color: '#fff',
  1194. fontStyle: 'normal',
  1195. textAlign: 'left',
  1196. fontSize: 16,
  1197. },
  1198. formatter: function(data) {
  1199. if(data.name == '国际能源' || data.name == '汾酒集团'){
  1200. return data.value
  1201. } else {
  1202. return ''
  1203. }
  1204. }
  1205. }
  1206. },
  1207. itemStyle: {
  1208. color: params => {
  1209. if (params.value < 0 && c1[1][params.dataIndex] < 0) {
  1210. return 'red'
  1211. } else if (params.value < 0) {
  1212. return 'yellow'
  1213. } else {
  1214. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1215. {
  1216. offset: 0,
  1217. color: '#69c0ff',
  1218. },
  1219. {
  1220. offset: 1,
  1221. color: '#082550',
  1222. },
  1223. ])
  1224. }
  1225. },
  1226. },
  1227. // markPoint:{
  1228. // symbol: 'path://m 0,0 h 48 v 30 h -30 l -6,10 l -6,-10 h -6 z',
  1229. // symbolSize: '55',
  1230. // symbolOffset: ['25%',0],
  1231. // symbolKeepAspect:true,
  1232. // label:{
  1233. // show: true,
  1234. // fontSize:18,
  1235. // color: '#fff'
  1236. // },
  1237. // itemStyle: {
  1238. // color: 'rgba(38,48,59,0.6)'
  1239. // },
  1240. // data:[{value:'117.48', xAxis: '国际能源', yAxis: 127 },{value:'138.83', xAxis: '汾酒集团', yAxis: 148 }]
  1241. // },
  1242. markLine: {
  1243. data: [
  1244. {
  1245. name: '省属企业平均水平',
  1246. yAxis: 50.13,
  1247. lineStyle: {
  1248. color: '#fff',
  1249. },
  1250. label: {
  1251. formatter: '{b}',
  1252. position: 'end',
  1253. padding: [20, 100, 10, 10],
  1254. fontSize: 16,
  1255. color: '#fff',
  1256. },
  1257. },
  1258. // {
  1259. // name: '',
  1260. // yAxis: 0,
  1261. // lineStyle: {
  1262. // color: '#fff',
  1263. // },
  1264. // label: {
  1265. // formatter: '{b}',
  1266. // position: 'end',
  1267. // fontSize: 16,
  1268. // color: '#fff',
  1269. // },
  1270. // },
  1271. {
  1272. name: '央企平均水平',
  1273. yAxis: 69.4,
  1274. lineStyle: {
  1275. color: '#fff',
  1276. },
  1277. label: {
  1278. formatter: '{b}',
  1279. position: 'end',
  1280. padding: [-4, 150, 10, 10],
  1281. color: '#fff',
  1282. fontSize: 16,
  1283. },
  1284. },
  1285. ],
  1286. label: {
  1287. distance: [50, 0],
  1288. },
  1289. },
  1290. data: c1[0],
  1291. },
  1292. {
  1293. name: '全员劳动生产率同比',
  1294. type: 'line',
  1295. yAxisIndex: 1,
  1296. smooth: true, //平滑曲线显示
  1297. showAllSymbol: true, //显示所有图形。
  1298. symbol: 'circle', //标记的图形为实心圆
  1299. symbolSize: 8, //标记的大小
  1300. smooth: false,
  1301. itemStyle: {
  1302. //折线拐点标志的样式
  1303. color: '#B889EA',
  1304. borderColor: '#B889EA',
  1305. width: 2,
  1306. shadowColor: '#B889EA',
  1307. shadowBlur: 4,
  1308. },
  1309. lineStyle: {
  1310. color: '#B889EA',
  1311. width: 2,
  1312. },
  1313. // data: [50, 40, 60, 20, 45, 30, 60, 100, 45, 40, 50, 20, 60, 80, 45, 70, 50, 40],
  1314. data: c1[1],
  1315. },
  1316. ],
  1317. }
  1318. option.title.text = '各省属企业全员劳动生产率'
  1319. // option.legend.data = [ '全员劳动生产率(万/人)','全员劳动生产率同比']
  1320. option.legend.show = true
  1321. option.grid.right = '15%'
  1322. option.tooltip.formatter = '{a0}:{c0}' + '<br/>' + '{a1}:{c1}' + '%'
  1323. option.yAxis.push({
  1324. type: 'value',
  1325. axisLine: {
  1326. show: false,
  1327. },
  1328. splitLine: {
  1329. show: false,
  1330. },
  1331. axisLabel: {
  1332. show: true,
  1333. formatter: '{value} %',
  1334. textStyle: {
  1335. color: 'rgba(250,250,250,0.6)',
  1336. },
  1337. },
  1338. })
  1339. myChart.setOption(option)
  1340. // tools.loopShowTooltip(myChart, option, {
  1341. // nterval: 2000,
  1342. // loopSeries: true,
  1343. // })
  1344. },
  1345. initChartC2() {
  1346. let myChart = echarts.init(this.$refs['echartC2'])
  1347. let option = {
  1348. ..._.cloneDeep(this.commonOption),
  1349. color: ['#69c0ff'],
  1350. series: [
  1351. {
  1352. name: '人工成本利润率',
  1353. type: 'bar',
  1354. barWidth: 15,
  1355. label: {
  1356. normal: {
  1357. show: true,
  1358. position: 'top',
  1359. textStyle: {
  1360. color: '#fff',
  1361. fontStyle: 'normal',
  1362. textAlign: 'left',
  1363. fontSize: 16,
  1364. },
  1365. formatter: function(data) {
  1366. if(data.name == '国际能源' || data.name == '文旅集团' || data.name == '航产集团' || data.name == '华舰体育'){
  1367. return data.value
  1368. } else {
  1369. return ''
  1370. }
  1371. }
  1372. }
  1373. },
  1374. markLine: {
  1375. data: [
  1376. {
  1377. name: '省属企业平均水平',
  1378. yAxis: 67.09,
  1379. lineStyle: {
  1380. color: '#fff',
  1381. },
  1382. label: {
  1383. formatter: '{b}',
  1384. position: 'end',
  1385. padding: [24, 100, 10, 10],
  1386. fontSize: 16,
  1387. color: '#fff',
  1388. },
  1389. },
  1390. {
  1391. name: '央企平均水平',
  1392. yAxis: 81,
  1393. lineStyle: {
  1394. color: '#fff',
  1395. },
  1396. label: {
  1397. formatter: '{b}',
  1398. position: 'end',
  1399. padding: [-24, 200, 10, 10],
  1400. color: '#fff',
  1401. fontSize: 16,
  1402. },
  1403. },
  1404. ],
  1405. label: {
  1406. distance: [50, 0],
  1407. },
  1408. },
  1409. itemStyle: {
  1410. color: params => {
  1411. if (params.value < 0 && c2[0][params.dataIndex] < 0) {
  1412. return 'red'
  1413. } else if (params.value < 0) {
  1414. return 'yellow'
  1415. } else {
  1416. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1417. {
  1418. offset: 0,
  1419. color: '#69c0ff',
  1420. },
  1421. {
  1422. offset: 1,
  1423. color: '#082550',
  1424. },
  1425. ])
  1426. }
  1427. },
  1428. },
  1429. data: c2[1],
  1430. },
  1431. {
  1432. name: '人工成本利润率同比',
  1433. type: 'line',
  1434. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  1435. smooth: true, //平滑曲线显示
  1436. showAllSymbol: true, //显示所有图形。
  1437. symbol: 'circle', //标记的图形为实心圆
  1438. symbolSize: 8, //标记的大小
  1439. smooth: false,
  1440. itemStyle: {
  1441. //折线拐点标志的样式
  1442. color: '#B889EA',
  1443. borderColor: '#B889EA',
  1444. width: 2,
  1445. shadowColor: '#B889EA',
  1446. shadowBlur: 4,
  1447. },
  1448. lineStyle: {
  1449. color: '#B889EA',
  1450. width: 2,
  1451. },
  1452. data: c2[0],
  1453. },
  1454. ],
  1455. }
  1456. option.title.text = '各省属企业人工成本利润率'
  1457. option.legend.show = true
  1458. option.grid.right = '15%'
  1459. option.yAxis[0].axisLabel.formatter = '{value} %'
  1460. option.tooltip.formatter = '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  1461. option.yAxis.push({
  1462. type: 'value',
  1463. axisLine: {
  1464. show: false,
  1465. },
  1466. splitLine: {
  1467. show: false,
  1468. },
  1469. axisLabel: {
  1470. show: true,
  1471. formatter: '{value} %',
  1472. textStyle: {
  1473. color: 'rgba(250,250,250,0.6)',
  1474. },
  1475. },
  1476. })
  1477. myChart.setOption(option)
  1478. // tools.loopShowTooltip(myChart, option, {
  1479. // nterval: 2000,
  1480. // loopSeries: true,
  1481. // })
  1482. },
  1483. // 右侧图表---------------------------------------------开始
  1484. initChartR1() {
  1485. let myChart = echarts.init(this.$refs['echartR1'])
  1486. let commonOptions = this.commonOption
  1487. commonOptions.yAxis[0].splitNumber = 2
  1488. let dataTemp = []
  1489. let dataTemp2 = []
  1490. dataR1[0].forEach(item => {
  1491. dataTemp.push(item + 1)
  1492. })
  1493. dataR1[1].forEach(item => {
  1494. dataTemp2.push(item + 1)
  1495. })
  1496. let option = {
  1497. ..._.cloneDeep(commonOptions),
  1498. series: [
  1499. {
  1500. name: '招聘需求公告次数',
  1501. type: 'bar',
  1502. barWidth: 15,
  1503. itemStyle: {
  1504. normal: {
  1505. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1506. {
  1507. offset: 0,
  1508. color: '#69c0ff',
  1509. },
  1510. {
  1511. offset: 1,
  1512. color: '#082550',
  1513. },
  1514. ]),
  1515. },
  1516. },
  1517. data: dataTemp,
  1518. },
  1519. {
  1520. name: '招聘需求公告累计招聘人次',
  1521. type: 'bar',
  1522. barWidth: 15,
  1523. itemStyle: {
  1524. normal: {
  1525. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1526. {
  1527. offset: 0,
  1528. color: '#43ede3',
  1529. },
  1530. {
  1531. offset: 1,
  1532. color: '#082550',
  1533. },
  1534. ]),
  1535. },
  1536. },
  1537. data: dataTemp2,
  1538. },
  1539. ],
  1540. }
  1541. option.title.text = '各省属企业招聘需求公示人次'
  1542. option.legend.data = ['招聘需求公告次数', '招聘需求公告累计招聘人次']
  1543. option.legend.show = true
  1544. option.tooltip.formatter = function (value) {
  1545. return value[0].axisValue + ':' + (value[0].value - 1) + '<br>' + value[1].axisValue + ':' + (value[1].value - 1)
  1546. }
  1547. option.yAxis[0] = {
  1548. type: 'log',
  1549. min: 1,
  1550. logBase: 10,
  1551. axisLine: {
  1552. show: false,
  1553. },
  1554. splitLine: {
  1555. show: true,
  1556. lineStyle: {
  1557. color: '#68b4dd66',
  1558. type: 'dashed',
  1559. },
  1560. },
  1561. axisLabel: {
  1562. show: true,
  1563. formatter: function (value) {
  1564. return value === 1 ? 0 : value
  1565. },
  1566. textStyle: {
  1567. color: 'rgba(250,250,250,0.6)',
  1568. },
  1569. },
  1570. }
  1571. myChart.setOption(option)
  1572. },
  1573. initChartR2() {
  1574. let myChart = echarts.init(this.$refs['echartR2'])
  1575. let commonOptions = this.commonOption
  1576. commonOptions.yAxis[0].splitNumber = 2
  1577. let dataTemp = []
  1578. let dataTemp2 = []
  1579. dataR2[0].forEach(item => {
  1580. dataTemp.push(item + 1)
  1581. })
  1582. dataR2[1].forEach(item => {
  1583. dataTemp2.push(item + 1)
  1584. })
  1585. let option = {
  1586. ..._.cloneDeep(commonOptions),
  1587. series: [
  1588. {
  1589. name: '录用结果公示次数',
  1590. type: 'bar',
  1591. barWidth: 15,
  1592. itemStyle: {
  1593. normal: {
  1594. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1595. {
  1596. offset: 0,
  1597. color: '#69c0ff',
  1598. },
  1599. {
  1600. offset: 1,
  1601. color: '#082550',
  1602. },
  1603. ]),
  1604. },
  1605. },
  1606. data: dataTemp,
  1607. },
  1608. {
  1609. name: '录用结果公示累计公示人数',
  1610. type: 'bar',
  1611. barWidth: 15,
  1612. itemStyle: {
  1613. normal: {
  1614. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1615. {
  1616. offset: 0,
  1617. color: '#45DAD1',
  1618. },
  1619. {
  1620. offset: 1,
  1621. color: '#082550',
  1622. },
  1623. ]),
  1624. },
  1625. },
  1626. data: dataTemp2,
  1627. },
  1628. ],
  1629. }
  1630. option.title.text = '各省属企业录用结果公示人次'
  1631. option.legend.data = ['录用结果公示次数', '录用结果公示累计公示人数']
  1632. option.legend.show = true
  1633. option.tooltip.formatter = function (value) {
  1634. return value[0].axisValue + ':' + (value[0].value - 1) + '<br>' + value[1].axisValue + ':' + (value[1].value - 1)
  1635. }
  1636. option.yAxis[0] = {
  1637. type: 'log',
  1638. min: 1,
  1639. logBase: 10,
  1640. axisLine: {
  1641. show: false,
  1642. },
  1643. splitLine: {
  1644. show: true,
  1645. lineStyle: {
  1646. color: '#68b4dd66',
  1647. type: 'dashed',
  1648. },
  1649. },
  1650. axisLabel: {
  1651. show: true,
  1652. formatter: function (value) {
  1653. return value === 1 ? 0 : value
  1654. },
  1655. textStyle: {
  1656. color: 'rgba(250,250,250,0.6)',
  1657. },
  1658. },
  1659. }
  1660. myChart.setOption(option)
  1661. },
  1662. initChartR3() {
  1663. let myChart = echarts.init(this.$refs['echartR3'])
  1664. let commonOptions = this.commonOption
  1665. commonOptions.yAxis[0].splitNumber = 2
  1666. let option = {
  1667. ..._.cloneDeep(commonOptions),
  1668. color: ['#45DAD1'],
  1669. series: [
  1670. {
  1671. name: '2022年利润(万)',
  1672. type: 'bar',
  1673. barWidth: 15,
  1674. label: {
  1675. normal: {
  1676. show: true,
  1677. position: 'bottom',
  1678. textStyle: {
  1679. color: '#fff',
  1680. fontStyle: 'normal',
  1681. textAlign: 'left',
  1682. fontSize: 14,
  1683. },
  1684. formatter: function(data) {
  1685. if(data.name=="国际能源" || data.name == '文旅集团' || data.name=='航产集团'||data.name == '华舰体育'){
  1686. return data.value
  1687. } else {
  1688. return ''
  1689. }
  1690. }
  1691. }
  1692. },
  1693. itemStyle: {
  1694. normal: {
  1695. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1696. {
  1697. offset: 0,
  1698. color: '#69c0ff',
  1699. },
  1700. {
  1701. offset: 1,
  1702. color: '#082550',
  1703. },
  1704. ]),
  1705. },
  1706. },
  1707. data: dataR3[0],
  1708. },
  1709. {
  1710. name: '2022年累计招聘数',
  1711. type: 'bar',
  1712. barWidth: 15,
  1713. yAxisIndex: 1,
  1714. label: {
  1715. normal: {
  1716. show: true,
  1717. position: 'top',
  1718. textStyle: {
  1719. color: '#fff',
  1720. fontStyle: 'normal',
  1721. textAlign: 'right',
  1722. fontSize: 14,
  1723. },
  1724. formatter: function(data) {
  1725. if(data.name=="国际能源" || data.name == '文旅集团' || data.name=='航产集团'||data.name == '华舰体育'){
  1726. return data.value
  1727. } else {
  1728. return ''
  1729. }
  1730. }
  1731. }
  1732. },
  1733. itemStyle: {
  1734. color: params => {
  1735. if (params.value > 0 && dataR3[0][params.dataIndex] < 0) {
  1736. return 'red'
  1737. } else {
  1738. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1739. {
  1740. offset: 0,
  1741. color: '#45DAD1',
  1742. },
  1743. {
  1744. offset: 1,
  1745. color: '#082550',
  1746. },
  1747. ])
  1748. }
  1749. },
  1750. },
  1751. // itemStyle: {
  1752. // normal: {
  1753. // color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1754. // {
  1755. // offset: 0,
  1756. // color: '#45DAD1',
  1757. // },
  1758. // {
  1759. // offset: 1,
  1760. // color: '#082550',
  1761. // },
  1762. // ]),
  1763. // },
  1764. // },
  1765. data: dataR3[1],
  1766. },
  1767. ],
  1768. }
  1769. option.title.text = '各省属企业年利润与当年累计招聘人数'
  1770. option.legend.data = ['2022年利润(万)', '2022年累计招聘数']
  1771. option.legend.show = true
  1772. option.yAxis[0] = {
  1773. max: function (value) {
  1774. if (Math.abs(value.max) > Math.abs(value.min)) {
  1775. return (Math.abs(value.max) * 1.2).toFixed(2)
  1776. } else {
  1777. return (Math.abs(value.min) * 1.2).toFixed(2)
  1778. }
  1779. },
  1780. min: function (value) {
  1781. if (Math.abs(value.max) > Math.abs(value.min)) {
  1782. return (-Math.abs(value.max) * 1.2).toFixed(2)
  1783. } else {
  1784. return (-Math.abs(value.min) * 1.2).toFixed(2)
  1785. }
  1786. },
  1787. type: 'value',
  1788. axisLine: {
  1789. show: false,
  1790. },
  1791. splitLine: {
  1792. show: true,
  1793. lineStyle: {
  1794. color: '#68b4dd66',
  1795. type: 'dashed',
  1796. },
  1797. },
  1798. axisLabel: {
  1799. show: true,
  1800. formatter: function (value) {
  1801. return value === 1 ? 0 : value
  1802. },
  1803. textStyle: {
  1804. color: 'rgba(250,250,250,0.6)',
  1805. },
  1806. },
  1807. }
  1808. option.yAxis.push({
  1809. splitLine: {
  1810. show: false,
  1811. },
  1812. axisLine: {
  1813. show: false,
  1814. },
  1815. axisLabel: {
  1816. show: true,
  1817. formatter: '{value}',
  1818. textStyle: {
  1819. color: 'rgba(250,250,250,0.6)',
  1820. },
  1821. },
  1822. max: function (value) {
  1823. if (Math.abs(value.max) > Math.abs(value.min)) {
  1824. return (Math.abs(value.max) * 1.2).toFixed(2)
  1825. } else {
  1826. return (Math.abs(value.min) * 1.2).toFixed(2)
  1827. }
  1828. },
  1829. min: function (value) {
  1830. if (Math.abs(value.max) > Math.abs(value.min)) {
  1831. return (-Math.abs(value.max) * 1.2).toFixed(2)
  1832. } else {
  1833. return (-Math.abs(value.min) * 1.2).toFixed(2)
  1834. }
  1835. },
  1836. })
  1837. myChart.setOption(option)
  1838. },
  1839. initChartR4() {
  1840. let myChart = echarts.init(this.$refs['echartR4'])
  1841. let commonOptions = this.commonOption
  1842. commonOptions.yAxis[0].splitNumber = 2
  1843. let option = {
  1844. ..._.cloneDeep(commonOptions),
  1845. series: [
  1846. {
  1847. name: '2022年退出人数',
  1848. type: 'bar',
  1849. barWidth: 15,
  1850. itemStyle: {
  1851. normal: {
  1852. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1853. {
  1854. offset: 0,
  1855. color: '#69c0ff',
  1856. },
  1857. {
  1858. offset: 1,
  1859. color: '#082550',
  1860. },
  1861. ]),
  1862. },
  1863. },
  1864. data: dataR4[0],
  1865. },
  1866. {
  1867. name: '2022年累计招聘人数',
  1868. type: 'bar',
  1869. barWidth: 15,
  1870. itemStyle: {
  1871. normal: {
  1872. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1873. {
  1874. offset: 0,
  1875. color: '#45DAD1',
  1876. },
  1877. {
  1878. offset: 1,
  1879. color: '#082550',
  1880. },
  1881. ]),
  1882. },
  1883. },
  1884. data: dataR4[1],
  1885. },
  1886. ],
  1887. }
  1888. option.title.text = '各省属企业"退二进一"完成情况'
  1889. option.legend.data = ['2022年退出人数', '2022年累计招聘人数']
  1890. option.legend.show = true
  1891. option.yAxis[0] = {
  1892. //type: 'log',
  1893. //min: 1,
  1894. //logBase: 3,
  1895. axisLine: {
  1896. show: false,
  1897. },
  1898. splitLine: {
  1899. show: true,
  1900. lineStyle: {
  1901. color: '#68b4dd66',
  1902. type: 'dashed',
  1903. },
  1904. },
  1905. axisLabel: {
  1906. show: true,
  1907. formatter: function (value) {
  1908. return value === 1 ? 0 : value
  1909. },
  1910. textStyle: {
  1911. color: 'rgba(250,250,250,0.6)',
  1912. },
  1913. },
  1914. }
  1915. myChart.setOption(option)
  1916. },
  1917. initChartR5() {
  1918. let myChart = echarts.init(this.$refs['echartR5'])
  1919. let option = {
  1920. ..._.cloneDeep(this.commonOption),
  1921. series: [
  1922. {
  1923. name: '去年同期在岗职工平均薪酬',
  1924. type: 'bar',
  1925. barWidth: 15,
  1926. markLine: {
  1927. data: [
  1928. {
  1929. name: '省属企业平均水平',
  1930. yAxis: 9333.33,
  1931. lineStyle: {
  1932. color: '#fff',
  1933. },
  1934. label: {
  1935. formatter: '{b}',
  1936. position: 'middle',
  1937. fontSize: 16,
  1938. color: '#fff',
  1939. },
  1940. }
  1941. ],
  1942. label: {
  1943. distance: [50, 0],
  1944. },
  1945. },
  1946. itemStyle: {
  1947. normal: {
  1948. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1949. {
  1950. offset: 0,
  1951. color: '#6682F5',
  1952. },
  1953. {
  1954. offset: 1,
  1955. color: '#082550',
  1956. },
  1957. ]),
  1958. },
  1959. },
  1960. data: fjxdataL1[0],
  1961. },
  1962. {
  1963. name: '在岗职工平均薪酬',
  1964. type: 'bar',
  1965. barWidth: 15,
  1966. itemStyle: {
  1967. normal: {
  1968. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1969. {
  1970. offset: 0,
  1971. color: '#69c0ff',
  1972. },
  1973. {
  1974. offset: 1,
  1975. color: '#082550',
  1976. },
  1977. ]),
  1978. },
  1979. },
  1980. data: fjxdataL1[1],
  1981. },
  1982. ],
  1983. }
  1984. option.title.text = '各省属企业在岗职工平均薪酬'
  1985. option.legend.data = ['去年同期在岗职工平均薪酬', '在岗职工平均薪酬']
  1986. option.legend.show = true
  1987. option.yAxis.push({
  1988. splitLine: {
  1989. show: false,
  1990. },
  1991. axisLine: {
  1992. show: false,
  1993. },
  1994. })
  1995. myChart.setOption(option)
  1996. },
  1997. initChartR6() {
  1998. let myChart = echarts.init(this.$refs['echartR6'])
  1999. let option = {
  2000. ..._.cloneDeep(this.commonOption),
  2001. color: ['#69c0ff'],
  2002. series: [
  2003. {
  2004. name: '2022年利润累计涨幅率',
  2005. type: 'line',
  2006. smooth: true, //平滑曲线显示
  2007. showAllSymbol: true, //显示所有图形。
  2008. symbol: 'circle', //标记的图形为实心圆
  2009. symbolSize: 8, //标记的大小
  2010. smooth: false,
  2011. label: {
  2012. normal: {
  2013. show: true,
  2014. position: 'top',
  2015. textStyle: {
  2016. color: '#fff',
  2017. fontStyle: 'normal',
  2018. textAlign: 'left',
  2019. fontSize: 16,
  2020. },
  2021. formatter: function(data) {
  2022. if(data.name == '文旅集团'){
  2023. return data.value
  2024. } else {
  2025. return ''
  2026. }
  2027. }
  2028. }
  2029. },
  2030. itemStyle: {
  2031. //折线拐点标志的样式
  2032. color: '#B889EA',
  2033. borderColor: '#B889EA',
  2034. width: 2,
  2035. shadowColor: '#B889EA',
  2036. shadowBlur: 4,
  2037. },
  2038. lineStyle: {
  2039. color: '#B889EA',
  2040. width: 2,
  2041. },
  2042. data: fjxdataL2[0],
  2043. },
  2044. {
  2045. name: '2022年薪酬累计涨幅率',
  2046. type: 'line',
  2047. smooth: true, //平滑曲线显示
  2048. showAllSymbol: true, //显示所有图形。
  2049. symbol: 'circle', //标记的图形为实心圆
  2050. symbolSize: 12, //标记的大小
  2051. smooth: false,
  2052. label: {
  2053. normal: {
  2054. show: true,
  2055. position: 'top',
  2056. lineHeight:'35',
  2057. textStyle: {
  2058. color: '#fff',
  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. color: params => {
  2074. if (params.value > 0 && fjxdataL2[0][params.dataIndex] < 0) {
  2075. return 'yellow'
  2076. } else {
  2077. return new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2078. {
  2079. offset: 0,
  2080. color: '#69c0ff',
  2081. },
  2082. {
  2083. offset: 1,
  2084. color: '#082550',
  2085. },
  2086. ])
  2087. }
  2088. },
  2089. },
  2090. lineStyle: {
  2091. color: '#69C0FF',
  2092. width: 2,
  2093. },
  2094. data: fjxdataL2[1],
  2095. },
  2096. {
  2097. type: 'effectScatter',
  2098. coordinateSystem: 'cartesian2d',
  2099. showEffectOn: 'render',
  2100. rippleEffect: {
  2101. period: 10,
  2102. scale: 4,
  2103. brushType: 'stroke'
  2104. },
  2105. hoverAnimation: true,
  2106. itemStyle: {
  2107. color: 'yellow'
  2108. },
  2109. lineStyle: {
  2110. color: '#43ede3',
  2111. width: 2,
  2112. },
  2113. data: this.twinkleR6,
  2114. },
  2115. ],
  2116. }
  2117. option.title.text = '各省属企业利润与薪酬变动情况'
  2118. option.legend.data = ['2022年利润累计涨幅率', '2022年薪酬累计涨幅率']
  2119. option.tooltip.formatter = '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  2120. option.yAxis[0].axisLabel.formatter = '{value} %'
  2121. myChart.setOption(option)
  2122. },
  2123. initChartR7() {
  2124. let myChart = echarts.init(this.$refs['echartR7'])
  2125. let option = {
  2126. ..._.cloneDeep(this.commonOption),
  2127. series: [
  2128. {
  2129. name: '全员绩效考核完成率',
  2130. type: 'bar',
  2131. barWidth: 15,
  2132. itemStyle: {
  2133. normal: {
  2134. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2135. {
  2136. offset: 0,
  2137. color: '#B889EA',
  2138. },
  2139. {
  2140. offset: 1,
  2141. color: '#082550',
  2142. },
  2143. ]),
  2144. },
  2145. },
  2146. data: fjxdataL3[0],
  2147. },
  2148. ],
  2149. }
  2150. option.title.text = '各省属企业全员绩效考核'
  2151. option.legend.show = true
  2152. option.tooltip = {
  2153. trigger: 'axis',
  2154. formatter: '{a0}:{c0}' + '%'
  2155. },
  2156. option.yAxis[0].axisLabel = {
  2157. show: true,
  2158. formatter: '{value} %',
  2159. textStyle: {
  2160. color: 'rgba(250,250,250,0.6)',
  2161. },
  2162. }
  2163. myChart.setOption(option)
  2164. },
  2165. initChartR8() {
  2166. let myChart = echarts.init(this.$refs['echartR8'])
  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: '#43ede3',
  2180. },
  2181. {
  2182. offset: 1,
  2183. color: '#082550',
  2184. },
  2185. ]),
  2186. },
  2187. },
  2188. data: fjxdataL4[0],
  2189. },
  2190. ],
  2191. }
  2192. option.title.text = '各省属企业任期制契约化管理'
  2193. option.legend.show = true
  2194. option.tooltip.formatter = '{a0}:{c0}' + '%'
  2195. option.yAxis[0].axisLabel.formatter = '{value} %'
  2196. myChart.setOption(option)
  2197. },
  2198. },
  2199. })