index4.js 42 KB

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