index3.js 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293
  1. let barImg =
  2. 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAtCAYAAAA6GuKaAAAAAXNSR0IArs4c6QAADNRJREFUaEPNmXmQFNd9x9/Zr3u6Z2ZndzkiLeYwYhctJUtgC8GGQ46MBLYsjAURQnKSckWKkz+SkuWUnarElqtSsV2W/Kccq+Kq6EIFGAwpEEFSWIRYgQKSIrFiF3EsBskcuztX3+/oVPfMLMMesKxklbtq6tXMTk9/+rff/v6OB8HEDzjxU4fOjCbyGxO5cP05Ezm/xlkPfF3w13PRsWAhAMurfytX1nb/8ne79SpQurp2xutYwOOCHy907Xt1awxahkOAQQCBEJXX8IOQCMQvxipQyY3EN3HFDdSArwk+HuhRgBcgMLuIEgDXxcnKc5X3Mqis9QdmKnlL85U1lZLJeiKrADgSfzYc+Krg14IeBrwcgdnnKpAxbAwqPAyyCgJhonRKR5HkCXSkFIQIJReHmKqy6ytAHAWKKALEkMkNDMG3SAA6Kzc08gZGxOBq0MOAF+Akur6PAG9EILQJSJsIaISYIsRKEAyURJFGMIg0CKIIAggjAMMIhkIChBUiQjpEkyAUApQdBTRLADqogK6ratQr/4FrgI8FPTpwLbqmQyyc0ZTgWOEUBRLjyACUSoQjRumS9f94d+7G6evyH53ZtH/jz/4bBpxzrCT0AAdYSiRdjgiVtiyFwDHFU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GNWznz8wvufMTJX+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: '25%',
  70. },
  71. legend: {
  72. data: '',
  73. top: '12%',
  74. right: '5%',
  75. textStyle: {
  76. color: 'rgba(250,250,250,0.6)',
  77. fontSize: 16,
  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. markLine: {
  330. data: [
  331. {
  332. name: '管理人员比值核定上限',
  333. yAxis: 15,
  334. lineStyle: {
  335. color: '#fff',
  336. },
  337. label: {
  338. formatter: '{b}',
  339. position: 'middle',
  340. color: '#fff',
  341. },
  342. }
  343. ],
  344. label: {
  345. distance: [20, 8],
  346. },
  347. },
  348. },
  349. {
  350. name: '管理人员数占总人数比值',
  351. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  352. type: 'line',
  353. itemStyle: {
  354. normal: {
  355. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  356. {
  357. offset: 0,
  358. color: '#69c0ff',
  359. },
  360. {
  361. offset: 1,
  362. color: '#082550',
  363. },
  364. ]),
  365. },
  366. },
  367. data: dataL4[1],
  368. },
  369. ],
  370. }
  371. option.title.text = '各二级企业管理人员数'
  372. option.legend.data = ['当前管理人员数', '管理人员数占总人数比值']
  373. option.legend.show = true
  374. option.yAxis.push({
  375. type: 'value',
  376. axisLine: {
  377. show: false,
  378. },
  379. splitLine: {
  380. show: false,
  381. },
  382. axisLabel: {
  383. show: true,
  384. formatter: '{value} %',
  385. textStyle: {
  386. color: 'rgba(250,250,250,0.6)',
  387. },
  388. },
  389. })
  390. myChart.setOption(option)
  391. },
  392. initChartL5 () {
  393. let myChart = echarts.init(this.$refs['echartL5'])
  394. let option = {
  395. ..._.cloneDeep(this.commonOption),
  396. series: [
  397. {
  398. name: '各二级企业总人数',
  399. type: 'bar',
  400. barWidth: 15,
  401. itemStyle: {
  402. normal: {
  403. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  404. {
  405. offset: 0,
  406. color: '#69c0ff',
  407. },
  408. {
  409. offset: 1,
  410. color: '#082550',
  411. },
  412. ]),
  413. },
  414. },
  415. data: dataL5[0],
  416. },
  417. {
  418. name: '去年同期人数变化率',
  419. type: 'line',
  420. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  421. smooth: true, //平滑曲线显示
  422. showAllSymbol: true, //显示所有图形。
  423. symbol: 'circle', //标记的图形为实心圆
  424. symbolSize: 8, //标记的大小
  425. smooth: false,
  426. itemStyle: {
  427. //折线拐点标志的样式
  428. color: '#b889ea',
  429. borderColor: '#b889ea',
  430. width: 2,
  431. shadowColor: '#b889ea',
  432. shadowBlur: 4,
  433. },
  434. lineStyle: {
  435. color: '#b889ea',
  436. width: 2,
  437. },
  438. data: dataL5[1],
  439. },
  440. ],
  441. }
  442. option.title.text = '各二级企业总人数'
  443. option.legend.data = ['各二级企业总人数', '去年同期人数变化率']
  444. option.legend.show = true
  445. option.yAxis.push({
  446. type: 'value',
  447. axisLine: {
  448. show: false,
  449. },
  450. splitLine: {
  451. show: false,
  452. }
  453. })
  454. myChart.setOption(option)
  455. },
  456. initChartL6 () {
  457. let myChart = echarts.init(this.$refs['echartL6'])
  458. let option = {
  459. ..._.cloneDeep(this.commonOption),
  460. series: [
  461. {
  462. name: '本部员额数',
  463. type: 'bar',
  464. barWidth: 15,
  465. itemStyle: {
  466. normal: {
  467. barBorderRadius: [10, 10, 0, 0],
  468. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  469. {
  470. offset: 0,
  471. color: '#43ede3',
  472. },
  473. {
  474. offset: 1,
  475. color: '#082550',
  476. },
  477. ]),
  478. },
  479. },
  480. data: dataL6[0],
  481. },
  482. ],
  483. }
  484. option.title.text = '各二级企业本部员额数'
  485. option.legend.data = ['本部员额数']
  486. option.legend.show = true
  487. option.yAxis.push({
  488. splitLine: {
  489. show: false,
  490. },
  491. axisLine: {
  492. show: false,
  493. },
  494. })
  495. myChart.setOption(option)
  496. },
  497. initChartL7 () {
  498. let myChart = echarts.init(this.$refs['echartL7'])
  499. let option = {
  500. ..._.cloneDeep(this.commonOption),
  501. series: [
  502. {
  503. name: '人数变化',
  504. type: 'line',
  505. barWidth: 15,
  506. itemStyle: {
  507. normal: {
  508. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  509. {
  510. offset: 0,
  511. color: '#43ede3',
  512. },
  513. {
  514. offset: 1,
  515. color: '#43ede3',
  516. },
  517. ]),
  518. },
  519. },
  520. // markLine: {
  521. // data: [{ type: 'average', name: 'Avg' }],
  522. // },
  523. data: dataL7[0],
  524. },
  525. {
  526. name: '全员劳动生产率',
  527. type: 'line',
  528. barWidth: 15,
  529. yAxisIndex: 1,
  530. itemStyle: {
  531. normal: {
  532. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  533. {
  534. offset: 0,
  535. color: '#b889ea',
  536. },
  537. {
  538. offset: 1,
  539. color: '#b889ea',
  540. },
  541. ]),
  542. },
  543. },
  544. data: dataL7[1],
  545. },
  546. ],
  547. }
  548. option.title.text = '人数变化和全员劳动生产率变化率分析'
  549. option.legend.data = ['人数变化', '全员劳动生产率']
  550. option.legend.show = true
  551. option.yAxis.push({
  552. type: 'value',
  553. axisLine: {
  554. show: false,
  555. },
  556. splitLine: {
  557. show: false,
  558. },
  559. axisLabel: {
  560. show: true,
  561. formatter: '{value} %',
  562. textStyle: {
  563. color: 'rgba(250,250,250,0.6)',
  564. },
  565. },
  566. })
  567. myChart.setOption(option)
  568. },
  569. initChartL8 () {
  570. let myChart = echarts.init(this.$refs['echartL8'])
  571. let option = {
  572. ..._.cloneDeep(this.commonOption),
  573. series: [
  574. {
  575. name: '人数变化',
  576. type: 'line',
  577. barWidth: 15,
  578. itemStyle: {
  579. normal: {
  580. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  581. {
  582. offset: 0,
  583. color: '#43ede3',
  584. },
  585. {
  586. offset: 1,
  587. color: '#43ede3',
  588. },
  589. ]),
  590. },
  591. },
  592. // markLine: {
  593. // data: [{ type: 'average', name: 'Avg' }],
  594. // },
  595. data: dataL8[0],
  596. },
  597. {
  598. name: '人工成本利润率',
  599. type: 'line',
  600. barWidth: 15,
  601. yAxisIndex: 1,
  602. itemStyle: {
  603. normal: {
  604. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  605. {
  606. offset: 0,
  607. color: '#b889ea',
  608. },
  609. {
  610. offset: 1,
  611. color: '#b889ea',
  612. },
  613. ]),
  614. },
  615. },
  616. data: dataL8[1],
  617. },
  618. ],
  619. }
  620. option.title.text = '人数变化和人工利润率变化分析'
  621. option.legend.data = ['人数变化', '人工成本利润率']
  622. option.legend.show = true
  623. option.yAxis.push({
  624. type: 'value',
  625. axisLine: {
  626. show: false,
  627. },
  628. splitLine: {
  629. show: false,
  630. },
  631. axisLabel: {
  632. show: true,
  633. formatter: '{value} %',
  634. textStyle: {
  635. color: 'rgba(250,250,250,0.6)',
  636. },
  637. },
  638. })
  639. myChart.setOption(option)
  640. },
  641. // 中间图表---------------------------------------------开始
  642. initChartC1 () {
  643. let myChart = echarts.init(this.$refs['echartC1'])
  644. let option = {
  645. ..._.cloneDeep(this.commonOption),
  646. series: [
  647. {
  648. name: '全员劳动生产率',
  649. type: 'bar',
  650. barWidth: 12,
  651. smooth: true, //平滑曲线显示
  652. showAllSymbol: true, //显示所有图形。
  653. symbol: 'circle', //标记的图形为实心圆
  654. symbolSize: 8, //标记的大小
  655. smooth: false,
  656. itemStyle: {
  657. //折线拐点标志的样式
  658. color: '#B889EA',
  659. borderColor: '#B889EA',
  660. width: 2,
  661. shadowColor: '#B889EA',
  662. shadowBlur: 4,
  663. },
  664. lineStyle: {
  665. color: '#B889EA',
  666. width: 2,
  667. },
  668. // data: [60, 50, 80, 80, 90, 55, 40, 60, 50, 80, 90, 55, 40, 60, 50, 90, 55, 40],
  669. data: dataC1[0],
  670. markLine: {
  671. data: [
  672. {
  673. name: '省属企业平均水平(万/人)',
  674. yAxis: 50.13,
  675. lineStyle: {
  676. color: '#fff',
  677. },
  678. label: {
  679. formatter: '{b}',
  680. position: 'middle',
  681. color: '#fff',
  682. },
  683. },
  684. {
  685. name: '央企平均水平(万/人)',
  686. yAxis: 69.4,
  687. lineStyle: {
  688. color: '#fff',
  689. },
  690. label: {
  691. formatter: '{b}',
  692. position: 'middle',
  693. color: '#fff',
  694. },
  695. },
  696. ],
  697. label: {
  698. distance: [20, 8],
  699. },
  700. },
  701. },
  702. {
  703. name: '全员劳动生产率同比',
  704. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  705. type: 'line',
  706. itemStyle: {
  707. normal: {
  708. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  709. {
  710. offset: 0,
  711. color: '#69c0ff',
  712. },
  713. {
  714. offset: 1,
  715. color: '#082550',
  716. },
  717. ]),
  718. },
  719. },
  720. // data: [50, 40, 60, 20, 45, 30, 60, 100, 45, 40, 50, 20, 60, 80, 45, 70, 50, 40],
  721. data: dataC1[1],
  722. },
  723. ],
  724. }
  725. option.title.text = '全员劳动生产率'
  726. option.legend.data = ['全员劳动生产率同比', '全员劳动生产率']
  727. option.legend.show = true
  728. option.yAxis.push({
  729. type: 'value',
  730. axisLine: {
  731. show: false,
  732. },
  733. splitLine: {
  734. show: false,
  735. },
  736. axisLabel: {
  737. show: true,
  738. formatter: '{value} %',
  739. textStyle: {
  740. color: 'rgba(250,250,250,0.6)',
  741. },
  742. },
  743. })
  744. myChart.setOption(option)
  745. },
  746. initChartC2 () {
  747. let myChart = echarts.init(this.$refs['echartC2'])
  748. let option = {
  749. ..._.cloneDeep(this.commonOption),
  750. series: [
  751. {
  752. name: '人工成本利润同比',
  753. type: 'line',
  754. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  755. smooth: true, //平滑曲线显示
  756. showAllSymbol: true, //显示所有图形。
  757. symbol: 'circle', //标记的图形为实心圆
  758. symbolSize: 8, //标记的大小
  759. smooth: false,
  760. itemStyle: {
  761. //折线拐点标志的样式
  762. color: '#B889EA',
  763. borderColor: '#B889EA',
  764. width: 2,
  765. shadowColor: '#B889EA',
  766. shadowBlur: 4,
  767. },
  768. lineStyle: {
  769. color: '#B889EA',
  770. width: 2,
  771. },
  772. // data: [60, 50, 80, 80, 90, 55, 40, 60, 50, 80, 90, 55, 40, 60, 50, 90, 55, 40],
  773. data: dataC2[0],
  774. markLine: {
  775. data: [
  776. {
  777. name: '省属企业平均水平(万/人)',
  778. yAxis: 67.09,
  779. lineStyle: {
  780. color: '#fff',
  781. },
  782. label: {
  783. formatter: '{b}',
  784. position: 'end',
  785. color: '#fff',
  786. },
  787. },
  788. {
  789. name: '央企平均水平(万/人)',
  790. yAxis: 81,
  791. lineStyle: {
  792. color: '#fff',
  793. },
  794. label: {
  795. formatter: '{b}',
  796. position: 'middle',
  797. color: '#fff',
  798. },
  799. },
  800. ],
  801. label: {
  802. distance: [20, 8],
  803. },
  804. },
  805. },
  806. {
  807. name: '人工成本利润率',
  808. type: 'bar',
  809. barWidth: 15,
  810. itemStyle: {
  811. normal: {
  812. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  813. {
  814. offset: 0,
  815. color: '#69c0ff',
  816. },
  817. {
  818. offset: 1,
  819. color: '#082550',
  820. },
  821. ]),
  822. },
  823. },
  824. // data: [50, 40, 60, 20, 45, 30, 60, 100, 45, 40, 50, 20, 60, 80, 45, 70, 50, 40],
  825. data: dataC2[1]
  826. },
  827. ],
  828. }
  829. option.title.text = '人工成本利润率'
  830. option.legend.data = ['人工成本利润同比', '人工成本利润率']
  831. option.legend.show = true
  832. option.grid.right = '15%'
  833. option.yAxis.push({
  834. splitLine: {
  835. show: false,
  836. },
  837. axisLine: {
  838. show: false,
  839. },
  840. })
  841. myChart.setOption(option)
  842. },
  843. // 右侧图表---------------------------------------------开始
  844. initChartR1 () {
  845. let myChart = echarts.init(this.$refs['echartR1'])
  846. let commonOptions = this.commonOption
  847. commonOptions.yAxis[0].splitNumber = 2
  848. let option = {
  849. ..._.cloneDeep(commonOptions),
  850. series: [
  851. {
  852. name: '招聘需求公告次数',
  853. type: 'bar',
  854. barWidth: 15,
  855. itemStyle: {
  856. normal: {
  857. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  858. {
  859. offset: 0,
  860. color: '#69c0ff',
  861. },
  862. {
  863. offset: 1,
  864. color: '#082550',
  865. },
  866. ]),
  867. },
  868. },
  869. data: dataR1[0],
  870. },
  871. {
  872. name: '招聘需求公告累计招聘人次',
  873. type: 'bar',
  874. barWidth: 15,
  875. itemStyle: {
  876. normal: {
  877. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  878. {
  879. offset: 0,
  880. color: '#43ede3',
  881. },
  882. {
  883. offset: 1,
  884. color: '#082550',
  885. },
  886. ]),
  887. },
  888. },
  889. data: dataR1[1],
  890. },
  891. ],
  892. }
  893. option.title.text = '各二级企业招聘需求公告人次情况'
  894. option.legend.data = ['招聘需求公告次数', '招聘需求公告累计招聘人次']
  895. option.legend.show = true
  896. option.yAxis.push({
  897. splitLine: {
  898. show: false,
  899. },
  900. axisLine: {
  901. show: false,
  902. },
  903. })
  904. myChart.setOption(option)
  905. },
  906. initChartR2 () {
  907. let myChart = echarts.init(this.$refs['echartR2'])
  908. let commonOptions = this.commonOption
  909. commonOptions.yAxis[0].splitNumber = 2
  910. let option = {
  911. ..._.cloneDeep(commonOptions),
  912. series: [
  913. {
  914. name: '录用结果公示次数',
  915. type: 'bar',
  916. barWidth: 15,
  917. itemStyle: {
  918. normal: {
  919. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  920. {
  921. offset: 0,
  922. color: '#69c0ff',
  923. },
  924. {
  925. offset: 1,
  926. color: '#082550',
  927. },
  928. ]),
  929. },
  930. },
  931. data: dataR2[0],
  932. },
  933. {
  934. name: '录用结果公示累计公示人数',
  935. type: 'bar',
  936. barWidth: 15,
  937. itemStyle: {
  938. normal: {
  939. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  940. {
  941. offset: 0,
  942. color: '#45DAD1',
  943. },
  944. {
  945. offset: 1,
  946. color: '#082550',
  947. },
  948. ]),
  949. },
  950. },
  951. data: dataR2[1],
  952. },
  953. ],
  954. }
  955. option.title.text = '各二级企业录用结果公示人次'
  956. option.legend.data = ['录用结果公示次数', '录用结果公示累计公示人数']
  957. option.legend.show = true
  958. option.yAxis.push({
  959. splitLine: {
  960. show: false,
  961. },
  962. axisLine: {
  963. show: false,
  964. },
  965. })
  966. myChart.setOption(option)
  967. },
  968. initChartR3 () {
  969. let myChart = echarts.init(this.$refs['echartR3'])
  970. let commonOptions = this.commonOption
  971. commonOptions.yAxis[0].splitNumber = 2
  972. let option = {
  973. ..._.cloneDeep(commonOptions),
  974. series: [
  975. {
  976. name: '2022年利润(万)',
  977. type: 'bar',
  978. barWidth: 15,
  979. itemStyle: {
  980. normal: {
  981. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  982. {
  983. offset: 0,
  984. color: '#69c0ff',
  985. },
  986. {
  987. offset: 1,
  988. color: '#082550',
  989. },
  990. ]),
  991. },
  992. },
  993. data: dataR3[0],
  994. },
  995. {
  996. name: '2022年累计招聘数',
  997. type: 'bar',
  998. barWidth: 15,
  999. itemStyle: {
  1000. normal: {
  1001. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1002. {
  1003. offset: 0,
  1004. color: '#45DAD1',
  1005. },
  1006. {
  1007. offset: 1,
  1008. color: '#082550',
  1009. },
  1010. ]),
  1011. },
  1012. },
  1013. data: dataR3[1],
  1014. },
  1015. ],
  1016. }
  1017. option.title.text = '各二级企业年利润与招聘情况分析'
  1018. option.legend.data = ['2022年利润(万)', '2022年累计招聘数']
  1019. option.legend.show = true
  1020. option.yAxis.push({
  1021. splitLine: {
  1022. show: false,
  1023. },
  1024. axisLine: {
  1025. show: false,
  1026. },
  1027. })
  1028. myChart.setOption(option)
  1029. },
  1030. initChartR4 () {
  1031. let myChart = echarts.init(this.$refs['echartR4'])
  1032. let commonOptions = this.commonOption
  1033. commonOptions.yAxis[0].splitNumber = 2
  1034. let option = {
  1035. ..._.cloneDeep(commonOptions),
  1036. series: [
  1037. {
  1038. name: '2022年退出人数',
  1039. type: 'bar',
  1040. barWidth: 15,
  1041. itemStyle: {
  1042. normal: {
  1043. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1044. {
  1045. offset: 0,
  1046. color: '#69c0ff',
  1047. },
  1048. {
  1049. offset: 1,
  1050. color: '#082550',
  1051. },
  1052. ]),
  1053. },
  1054. },
  1055. data: dataR4[0],
  1056. },
  1057. {
  1058. name: '2022年累计招聘人数',
  1059. type: 'bar',
  1060. barWidth: 15,
  1061. itemStyle: {
  1062. normal: {
  1063. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1064. {
  1065. offset: 0,
  1066. color: '#45DAD1',
  1067. },
  1068. {
  1069. offset: 1,
  1070. color: '#082550',
  1071. },
  1072. ]),
  1073. },
  1074. },
  1075. data: dataR4[1],
  1076. },
  1077. ],
  1078. }
  1079. option.title.text = '各二级企业"退二进一"完成情况'
  1080. option.legend.data = ['2022年退出人数', '2022年累计招聘人数']
  1081. option.legend.show = true
  1082. option.yAxis.push({
  1083. splitLine: {
  1084. show: false,
  1085. },
  1086. axisLine: {
  1087. show: false,
  1088. },
  1089. })
  1090. myChart.setOption(option)
  1091. },
  1092. initChartR5 () {
  1093. let myChart = echarts.init(this.$refs['echartR5'])
  1094. let option = {
  1095. ..._.cloneDeep(this.commonOption),
  1096. series: [
  1097. {
  1098. name: '在岗职工平均薪酬',
  1099. type: 'bar',
  1100. barWidth: 15,
  1101. itemStyle: {
  1102. normal: {
  1103. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1104. {
  1105. offset: 0,
  1106. color: '#69c0ff',
  1107. },
  1108. {
  1109. offset: 1,
  1110. color: '#082550',
  1111. },
  1112. ]),
  1113. },
  1114. },
  1115. data: dataR5[0],
  1116. },
  1117. {
  1118. name: '去年同期在岗职工平均薪酬',
  1119. type: 'bar',
  1120. barWidth: 15,
  1121. itemStyle: {
  1122. normal: {
  1123. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1124. {
  1125. offset: 0,
  1126. color: '#6682F5',
  1127. },
  1128. {
  1129. offset: 1,
  1130. color: '#082550',
  1131. },
  1132. ]),
  1133. },
  1134. },
  1135. data: dataR5[1],
  1136. }
  1137. ],
  1138. }
  1139. option.title.text = '各二级企业在岗职工平均薪酬'
  1140. option.legend.data = ['在岗职工平均薪酬', '去年同期在岗职工平均薪酬']
  1141. option.legend.show = true
  1142. option.yAxis.push({
  1143. splitLine: {
  1144. show: false,
  1145. },
  1146. axisLine: {
  1147. show: false,
  1148. },
  1149. })
  1150. myChart.setOption(option)
  1151. },
  1152. initChartR6 () {
  1153. let myChart = echarts.init(this.$refs['echartR6'])
  1154. let option = {
  1155. ..._.cloneDeep(this.commonOption),
  1156. series: [
  1157. {
  1158. name: '2022年利润累计涨幅率',
  1159. type: 'line',
  1160. smooth: true, //平滑曲线显示
  1161. showAllSymbol: true, //显示所有图形。
  1162. symbol: 'circle', //标记的图形为实心圆
  1163. symbolSize: 8, //标记的大小
  1164. smooth: false,
  1165. itemStyle: {
  1166. //折线拐点标志的样式
  1167. color: '#B889EA',
  1168. borderColor: '#B889EA',
  1169. width: 2,
  1170. shadowColor: '#B889EA',
  1171. shadowBlur: 4,
  1172. },
  1173. lineStyle: {
  1174. color: '#B889EA',
  1175. width: 2,
  1176. },
  1177. data: dataR6[0],
  1178. },
  1179. {
  1180. name: '2022年薪酬累计涨幅率',
  1181. type: 'line',
  1182. barWidth: 15,
  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: dataR6[1],
  1198. },
  1199. ],
  1200. }
  1201. option.title.text = '各二级企业月利润与月薪酬变动情况'
  1202. option.legend.data = ['2022年利润累计涨幅率', '2022年薪酬累计涨幅率']
  1203. option.yAxis.push({
  1204. splitLine: {
  1205. show: false,
  1206. },
  1207. axisLine: {
  1208. show: false,
  1209. },
  1210. })
  1211. myChart.setOption(option)
  1212. },
  1213. initChartR7 () {
  1214. let myChart = echarts.init(this.$refs['echartR7'])
  1215. let option = {
  1216. ..._.cloneDeep(this.commonOption),
  1217. series: [
  1218. {
  1219. name: '全员绩效考核完成率',
  1220. type: 'bar',
  1221. barWidth: 15,
  1222. itemStyle: {
  1223. normal: {
  1224. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1225. {
  1226. offset: 0,
  1227. color: '#B889EA',
  1228. },
  1229. {
  1230. offset: 1,
  1231. color: '#082550',
  1232. },
  1233. ]),
  1234. },
  1235. },
  1236. data: dataR7[0],
  1237. },
  1238. ],
  1239. }
  1240. option.title.text = '各二级企业全员绩效考核'
  1241. // option.legend.data = ['劳动合同签约完成率', '目标值']
  1242. option.yAxis.push({
  1243. splitLine: {
  1244. show: false,
  1245. },
  1246. axisLine: {
  1247. show: false,
  1248. },
  1249. })
  1250. myChart.setOption(option)
  1251. },
  1252. initChartR8 () {
  1253. let myChart = echarts.init(this.$refs['echartR8'])
  1254. let option = {
  1255. ..._.cloneDeep(this.commonOption),
  1256. series: [
  1257. {
  1258. name: '任期制考核完成率',
  1259. type: 'bar',
  1260. barWidth: 15,
  1261. itemStyle: {
  1262. normal: {
  1263. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1264. {
  1265. offset: 0,
  1266. color: '#43ede3',
  1267. },
  1268. {
  1269. offset: 1,
  1270. color: '#082550',
  1271. },
  1272. ]),
  1273. },
  1274. },
  1275. data: dataR8[0],
  1276. },
  1277. ],
  1278. }
  1279. option.title.text = '各二级企业任期制考核'
  1280. option.yAxis.push({
  1281. splitLine: {
  1282. show: false,
  1283. },
  1284. axisLine: {
  1285. show: false,
  1286. },
  1287. })
  1288. myChart.setOption(option)
  1289. },
  1290. },
  1291. })