index.js 52 KB

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