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