index4.js 43 KB

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