index.js 59 KB

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