index3.js 45 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476
  1. let barImg =
  2. 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAtCAYAAAA6GuKaAAAAAXNSR0IArs4c6QAADNRJREFUaEPNmXmQFNd9x9/Zr3u6Z2ZndzkiLeYwYhctJUtgC8GGQ46MBLYsjAURQnKSckWKkz+SkuWUnarElqtSsV2W/Kccq+Kq6EIFGAwpEEFSWIRYgQKSIrFiF3EsBskcuztX3+/oVPfMLMMesKxklbtq6tXMTk9/+rff/v6OB8HEDzjxU4fOjCbyGxO5cP05Ezm/xlkPfF3w13PRsWAhAMurfytX1nb/8ne79SpQurp2xutYwOOCHy907Xt1awxahkOAQQCBEJXX8IOQCMQvxipQyY3EN3HFDdSArwk+HuhRgBcgMLuIEgDXxcnKc5X3Mqis9QdmKnlL85U1lZLJeiKrADgSfzYc+Krg14IeBrwcgdnnKpAxb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jb+7cLHmQn0iVV+1i6tqsa9TTbXesWssamhfHEechhyPq6fZFN589eqgnsPMlqerqaUbB9LgsLfTv6z348oTr6VrbVfXs8XcubXesur8S8Te3DO9coigxjCjuXOIMKDl3KNXwjHmL13qF/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: '26%',
  71. },
  72. legend: {
  73. data: '',
  74. top: '12%',
  75. right: '5%',
  76. textStyle: {
  77. color: 'rgba(250,250,250,0.6)',
  78. fontSize: 14,
  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. max: 20,
  389. type: 'value',
  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. splitLine: {
  514. show: false,
  515. },
  516. axisLine: {
  517. show: false,
  518. },
  519. })
  520. myChart.setOption(option)
  521. },
  522. initChartL7 () {
  523. let myChart = echarts.init(this.$refs['echartL7'])
  524. let option = {
  525. ..._.cloneDeep(this.commonOption),
  526. series: [
  527. {
  528. name: '人数变化',
  529. type: 'line',
  530. barWidth: 15,
  531. itemStyle: {
  532. normal: {
  533. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  534. {
  535. offset: 0,
  536. color: '#43ede3',
  537. },
  538. {
  539. offset: 1,
  540. color: '#43ede3',
  541. },
  542. ]),
  543. },
  544. },
  545. // markLine: {
  546. // data: [{ type: 'average', name: 'Avg' }],
  547. // },
  548. data: dataL7[0],
  549. },
  550. {
  551. name: '全员劳动生产率同比变化',
  552. type: 'line',
  553. barWidth: 15,
  554. yAxisIndex: 1,
  555. itemStyle: {
  556. normal: {
  557. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  558. {
  559. offset: 0,
  560. color: '#b889ea',
  561. },
  562. {
  563. offset: 1,
  564. color: '#b889ea',
  565. },
  566. ]),
  567. },
  568. },
  569. data: dataL7[1],
  570. },
  571. ],
  572. }
  573. option.title.text = '人数变化和全员劳动生产率变化率分析'
  574. option.legend.data = ['人数变化', '全员劳动生产率同比变化']
  575. option.legend.show = true
  576. option.tooltip = {
  577. trigger: 'axis',
  578. formatter: '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  579. }
  580. option.yAxis = [
  581. {
  582. type: 'value',
  583. axisLine: {
  584. show: false,
  585. },
  586. splitLine: {
  587. show: true,
  588. lineStyle: {
  589. color: '#68b4dd66',
  590. type: 'dashed',
  591. },
  592. },
  593. axisLabel: {
  594. show: true,
  595. formatter: '{value} %',
  596. textStyle: {
  597. color: 'rgba(250,250,250,0.6)',
  598. },
  599. },
  600. },
  601. {
  602. type: 'value',
  603. axisLine: {
  604. show: false,
  605. },
  606. splitLine: {
  607. show: false,
  608. },
  609. axisLabel: {
  610. show: true,
  611. formatter: '{value} %',
  612. textStyle: {
  613. color: 'rgba(250,250,250,0.6)',
  614. },
  615. },
  616. }
  617. ]
  618. myChart.setOption(option)
  619. },
  620. initChartL8 () {
  621. let myChart = echarts.init(this.$refs['echartL8'])
  622. let option = {
  623. ..._.cloneDeep(this.commonOption),
  624. series: [
  625. {
  626. name: '人数变化',
  627. type: 'line',
  628. barWidth: 15,
  629. itemStyle: {
  630. normal: {
  631. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  632. {
  633. offset: 0,
  634. color: '#43ede3',
  635. },
  636. {
  637. offset: 1,
  638. color: '#43ede3',
  639. },
  640. ]),
  641. },
  642. },
  643. // markLine: {
  644. // data: [{ type: 'average', name: 'Avg' }],
  645. // },
  646. data: dataL8[0],
  647. },
  648. {
  649. name: '人工成本利润率同比变化',
  650. type: 'line',
  651. barWidth: 15,
  652. yAxisIndex: 1,
  653. itemStyle: {
  654. normal: {
  655. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  656. {
  657. offset: 0,
  658. color: '#b889ea',
  659. },
  660. {
  661. offset: 1,
  662. color: '#b889ea',
  663. },
  664. ]),
  665. },
  666. },
  667. data: dataL8[1],
  668. },
  669. ],
  670. }
  671. option.title.text = '人数变化和人工利润率变化分析'
  672. option.legend.data = ['人数变化', '人工成本利润率同比变化']
  673. option.legend.show = true
  674. option.tooltip = {
  675. trigger: 'axis',
  676. formatter: '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  677. }
  678. option.yAxis = [
  679. {
  680. type: 'value',
  681. axisLine: {
  682. show: false,
  683. },
  684. splitLine: {
  685. show: true,
  686. lineStyle: {
  687. color: '#68b4dd66',
  688. type: 'dashed',
  689. },
  690. },
  691. axisLabel: {
  692. show: true,
  693. formatter: '{value} %',
  694. textStyle: {
  695. color: 'rgba(250,250,250,0.6)',
  696. },
  697. },
  698. },
  699. {
  700. type: 'value',
  701. axisLine: {
  702. show: false,
  703. },
  704. splitLine: {
  705. show: false,
  706. },
  707. axisLabel: {
  708. show: true,
  709. formatter: '{value} %',
  710. textStyle: {
  711. color: 'rgba(250,250,250,0.6)',
  712. },
  713. },
  714. }
  715. ]
  716. myChart.setOption(option)
  717. },
  718. // 中间图表---------------------------------------------开始
  719. initChartC1 () {
  720. let myChart = echarts.init(this.$refs['echartC1'])
  721. let option = {
  722. ..._.cloneDeep(this.commonOption),
  723. series: [
  724. {
  725. name: '全员劳动生产率(万/人)',
  726. type: 'bar',
  727. barWidth: 12,
  728. smooth: true, //平滑曲线显示
  729. showAllSymbol: true, //显示所有图形。
  730. symbol: 'circle', //标记的图形为实心圆
  731. symbolSize: 8, //标记的大小
  732. smooth: false,
  733. itemStyle: {
  734. //折线拐点标志的样式
  735. color: '#B889EA',
  736. borderColor: '#B889EA',
  737. width: 2,
  738. shadowColor: '#B889EA',
  739. shadowBlur: 4,
  740. },
  741. lineStyle: {
  742. color: '#B889EA',
  743. width: 2,
  744. },
  745. data: dataC1[0],
  746. markLine: {
  747. data: [
  748. {
  749. name: '省属企业平均水平',
  750. yAxis: 50.13,
  751. lineStyle: {
  752. color: '#fff',
  753. },
  754. label: {
  755. formatter: '{b}',
  756. position: 'middle',
  757. color: '#fff',
  758. },
  759. },
  760. {
  761. name: '央企平均水平',
  762. yAxis: 69.4,
  763. lineStyle: {
  764. color: '#fff',
  765. },
  766. label: {
  767. formatter: '{b}',
  768. position: 'middle',
  769. color: '#fff',
  770. },
  771. },
  772. ],
  773. label: {
  774. distance: [20, 8],
  775. },
  776. },
  777. },
  778. {
  779. name: '全员劳动生产率同比变化',
  780. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  781. type: 'line',
  782. itemStyle: {
  783. normal: {
  784. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  785. {
  786. offset: 0,
  787. color: '#69c0ff',
  788. },
  789. {
  790. offset: 1,
  791. color: '#082550',
  792. },
  793. ]),
  794. },
  795. },
  796. data: dataC1[1],
  797. },
  798. ],
  799. }
  800. option.title.text = '全员劳动生产率'
  801. option.legend.data = ['全员劳动生产率同比变化', '全员劳动生产率(万/人)']
  802. option.legend.show = true
  803. option.tooltip = {
  804. trigger: 'axis',
  805. formatter: '{a0}:{c0}' + '<br/>' + '{a1}:{c1}' + '%'
  806. }
  807. option.yAxis.push({
  808. type: 'value',
  809. axisLine: {
  810. show: false,
  811. },
  812. splitLine: {
  813. show: false,
  814. },
  815. axisLabel: {
  816. show: true,
  817. formatter: '{value} %',
  818. textStyle: {
  819. color: 'rgba(250,250,250,0.6)',
  820. },
  821. },
  822. })
  823. myChart.setOption(option)
  824. tools.loopShowTooltip(myChart, option, {
  825. nterval: 2000,
  826. loopSeries: true,
  827. });
  828. },
  829. initChartC2 () {
  830. let myChart = echarts.init(this.$refs['echartC2'])
  831. let option = {
  832. ..._.cloneDeep(this.commonOption),
  833. series: [
  834. {
  835. name: '人工成本利润率同比变化',
  836. type: 'line',
  837. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  838. smooth: true, //平滑曲线显示
  839. showAllSymbol: true, //显示所有图形。
  840. symbol: 'circle', //标记的图形为实心圆
  841. symbolSize: 8, //标记的大小
  842. smooth: false,
  843. itemStyle: {
  844. //折线拐点标志的样式
  845. color: '#B889EA',
  846. borderColor: '#B889EA',
  847. width: 2,
  848. shadowColor: '#B889EA',
  849. shadowBlur: 4,
  850. },
  851. lineStyle: {
  852. color: '#B889EA',
  853. width: 2,
  854. },
  855. data: dataC2[0],
  856. },
  857. {
  858. name: '人工成本利润率',
  859. type: 'bar',
  860. barWidth: 15,
  861. itemStyle: {
  862. normal: {
  863. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  864. {
  865. offset: 0,
  866. color: '#69c0ff',
  867. },
  868. {
  869. offset: 1,
  870. color: '#082550',
  871. },
  872. ]),
  873. },
  874. },
  875. data: dataC2[1],
  876. markLine: {
  877. data: [
  878. {
  879. name: '省属企业平均水平',
  880. yAxis: 67.09,
  881. lineStyle: {
  882. color: '#fff',
  883. },
  884. label: {
  885. formatter: '{b}',
  886. position: 'end',
  887. color: '#fff',
  888. },
  889. },
  890. {
  891. name: '央企平均水平',
  892. yAxis: 81,
  893. lineStyle: {
  894. color: '#fff',
  895. },
  896. label: {
  897. formatter: '{b}',
  898. position: 'middle',
  899. color: '#fff',
  900. },
  901. },
  902. ],
  903. label: {
  904. distance: [20, 8],
  905. },
  906. },
  907. },
  908. ],
  909. }
  910. option.title.text = '人工成本利润率'
  911. option.legend.data = ['人工成本利润率同比变化', '人工成本利润率']
  912. option.legend.show = true
  913. option.tooltip = {
  914. trigger: 'axis',
  915. formatter: '{a0}:{c0}' + '<br/>' + '{a1}:{c1}' + '%'
  916. }
  917. option.grid.right = '15%'
  918. option.yAxis = [
  919. {
  920. splitLine: {
  921. show: false,
  922. },
  923. splitLine: {
  924. show: true,
  925. lineStyle: {
  926. color: '#68b4dd66',
  927. type: 'dashed',
  928. },
  929. },
  930. axisLabel: {
  931. show: true,
  932. formatter: '{value} %',
  933. textStyle: {
  934. color: 'rgba(250,250,250,0.6)',
  935. },
  936. },
  937. },
  938. {
  939. splitLine: {
  940. show: false,
  941. },
  942. axisLine: {
  943. show: false,
  944. },
  945. axisLabel: {
  946. show: true,
  947. formatter: '{value} %',
  948. textStyle: {
  949. color: 'rgba(250,250,250,0.6)',
  950. },
  951. },
  952. }
  953. ]
  954. myChart.setOption(option)
  955. tools.loopShowTooltip(myChart, option, {
  956. nterval: 2000,
  957. loopSeries: true,
  958. });
  959. },
  960. // 右侧图表---------------------------------------------开始
  961. initChartR1 () {
  962. let myChart = echarts.init(this.$refs['echartR1'])
  963. let commonOptions = this.commonOption
  964. commonOptions.yAxis[0].splitNumber = 2
  965. let option = {
  966. ..._.cloneDeep(commonOptions),
  967. series: [
  968. {
  969. name: '招聘需求公告次数',
  970. type: 'bar',
  971. barWidth: 15,
  972. itemStyle: {
  973. normal: {
  974. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  975. {
  976. offset: 0,
  977. color: '#69c0ff',
  978. },
  979. {
  980. offset: 1,
  981. color: '#082550',
  982. },
  983. ]),
  984. },
  985. },
  986. data: dataR1[0],
  987. },
  988. {
  989. name: '招聘需求公告累计招聘人次',
  990. type: 'bar',
  991. barWidth: 15,
  992. itemStyle: {
  993. normal: {
  994. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  995. {
  996. offset: 0,
  997. color: '#43ede3',
  998. },
  999. {
  1000. offset: 1,
  1001. color: '#082550',
  1002. },
  1003. ]),
  1004. },
  1005. },
  1006. data: dataR1[1],
  1007. },
  1008. ],
  1009. }
  1010. option.title.text = '各三级企业招聘需求公告人次情况'
  1011. option.legend.data = ['招聘需求公告次数', '招聘需求公告累计招聘人次']
  1012. option.legend.show = true
  1013. option.yAxis.push({
  1014. splitLine: {
  1015. show: false,
  1016. },
  1017. axisLine: {
  1018. show: false,
  1019. },
  1020. })
  1021. myChart.setOption(option)
  1022. },
  1023. initChartR2 () {
  1024. let myChart = echarts.init(this.$refs['echartR2'])
  1025. let commonOptions = this.commonOption
  1026. commonOptions.yAxis[0].splitNumber = 2
  1027. let option = {
  1028. ..._.cloneDeep(commonOptions),
  1029. series: [
  1030. {
  1031. name: '录用结果公示次数',
  1032. type: 'bar',
  1033. barWidth: 15,
  1034. itemStyle: {
  1035. normal: {
  1036. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1037. {
  1038. offset: 0,
  1039. color: '#69c0ff',
  1040. },
  1041. {
  1042. offset: 1,
  1043. color: '#082550',
  1044. },
  1045. ]),
  1046. },
  1047. },
  1048. data: dataR2[0],
  1049. },
  1050. {
  1051. name: '录用结果公示累计公示人数',
  1052. type: 'bar',
  1053. barWidth: 15,
  1054. itemStyle: {
  1055. normal: {
  1056. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1057. {
  1058. offset: 0,
  1059. color: '#45DAD1',
  1060. },
  1061. {
  1062. offset: 1,
  1063. color: '#082550',
  1064. },
  1065. ]),
  1066. },
  1067. },
  1068. data: dataR2[1],
  1069. },
  1070. ],
  1071. }
  1072. option.title.text = '各三级企业录用结果公示人次'
  1073. option.legend.data = ['录用结果公示次数', '录用结果公示累计公示人数']
  1074. option.legend.show = true
  1075. option.yAxis.push({
  1076. type: 'value',
  1077. axisLine: {
  1078. show: false,
  1079. },
  1080. splitLine: {
  1081. show: false,
  1082. },
  1083. })
  1084. myChart.setOption(option)
  1085. },
  1086. initChartR3 () {
  1087. let myChart = echarts.init(this.$refs['echartR3'])
  1088. let commonOptions = this.commonOption
  1089. commonOptions.yAxis[0].splitNumber = 2
  1090. let option = {
  1091. ..._.cloneDeep(commonOptions),
  1092. series: [
  1093. {
  1094. name: '2022年利润(万)',
  1095. type: 'bar',
  1096. barWidth: 15,
  1097. itemStyle: {
  1098. normal: {
  1099. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1100. {
  1101. offset: 0,
  1102. color: '#69c0ff',
  1103. },
  1104. {
  1105. offset: 1,
  1106. color: '#082550',
  1107. },
  1108. ]),
  1109. },
  1110. },
  1111. data: dataR3[0],
  1112. },
  1113. {
  1114. name: '2022年累计招聘数',
  1115. type: 'bar',
  1116. barWidth: 15,
  1117. itemStyle: {
  1118. normal: {
  1119. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1120. {
  1121. offset: 0,
  1122. color: '#45DAD1',
  1123. },
  1124. {
  1125. offset: 1,
  1126. color: '#082550',
  1127. },
  1128. ]),
  1129. },
  1130. },
  1131. data: dataR3[1],
  1132. },
  1133. ],
  1134. }
  1135. option.title.text = '各三级企业年利润与招聘情况分析'
  1136. option.legend.data = ['2022年利润(万)', '2022年累计招聘数']
  1137. option.legend.show = true
  1138. option.yAxis.push({
  1139. splitLine: {
  1140. show: false,
  1141. },
  1142. axisLine: {
  1143. show: false,
  1144. },
  1145. })
  1146. // option.yAxis = [
  1147. // {
  1148. // max: function (val) {
  1149. // if (Math.abs(val.max) > Math.abs(val.min)) {
  1150. // return (Math.abs(val.max) * 1.2).toFixed(0)
  1151. // } else {
  1152. // return (Math.abs(val.min) * 1.2).toFixed(0)
  1153. // }
  1154. // },
  1155. // min: function (val) {
  1156. // if (Math.abs(val.max) > Math.abs(val.min)) {
  1157. // return (-Math.abs(val.max) * 1.2).toFixed(0)
  1158. // } else {
  1159. // return (Math.abs(val.min) * 1.2).toFixed(0)
  1160. // }
  1161. // },
  1162. // splitLine: {
  1163. // show: false,
  1164. // },
  1165. // axisLine: {
  1166. // show: false,
  1167. // },
  1168. // axisLabel: {
  1169. // show: true,
  1170. // formatter: '{value}',
  1171. // textStyle: {
  1172. // color: 'rgba(250,250,250,0.6)',
  1173. // },
  1174. // },
  1175. // }
  1176. // ]
  1177. myChart.setOption(option)
  1178. },
  1179. initChartR4 () {
  1180. let myChart = echarts.init(this.$refs['echartR4'])
  1181. let commonOptions = this.commonOption
  1182. commonOptions.yAxis[0].splitNumber = 2
  1183. let option = {
  1184. ..._.cloneDeep(commonOptions),
  1185. series: [
  1186. {
  1187. name: '2022年退出人数',
  1188. type: 'bar',
  1189. barWidth: 15,
  1190. itemStyle: {
  1191. normal: {
  1192. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1193. {
  1194. offset: 0,
  1195. color: '#69c0ff',
  1196. },
  1197. {
  1198. offset: 1,
  1199. color: '#082550',
  1200. },
  1201. ]),
  1202. },
  1203. },
  1204. data: dataR4[0],
  1205. },
  1206. {
  1207. name: '2022年累计招聘人数',
  1208. type: 'bar',
  1209. barWidth: 15,
  1210. itemStyle: {
  1211. normal: {
  1212. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1213. {
  1214. offset: 0,
  1215. color: '#45DAD1',
  1216. },
  1217. {
  1218. offset: 1,
  1219. color: '#082550',
  1220. },
  1221. ]),
  1222. },
  1223. },
  1224. data: dataR4[1],
  1225. },
  1226. ],
  1227. }
  1228. option.title.text = '各三级企业"退二进一"完成情况'
  1229. option.legend.data = ['2022年退出人数', '2022年累计招聘人数']
  1230. option.legend.show = true
  1231. option.yAxis.push({
  1232. splitLine: {
  1233. show: false,
  1234. },
  1235. axisLine: {
  1236. show: false,
  1237. },
  1238. })
  1239. myChart.setOption(option)
  1240. },
  1241. initChartR5 () {
  1242. let myChart = echarts.init(this.$refs['echartR5'])
  1243. let option = {
  1244. ..._.cloneDeep(this.commonOption),
  1245. series: [
  1246. {
  1247. name: '去年同期在岗职工平均薪酬',
  1248. type: 'bar',
  1249. barWidth: 15,
  1250. itemStyle: {
  1251. normal: {
  1252. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1253. {
  1254. offset: 0,
  1255. color: '#69c0ff',
  1256. },
  1257. {
  1258. offset: 1,
  1259. color: '#082550',
  1260. },
  1261. ]),
  1262. },
  1263. },
  1264. data: dataR5[0],
  1265. },
  1266. {
  1267. name: '在岗职工平均薪酬',
  1268. type: 'bar',
  1269. barWidth: 15,
  1270. itemStyle: {
  1271. normal: {
  1272. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1273. {
  1274. offset: 0,
  1275. color: '#6682F5',
  1276. },
  1277. {
  1278. offset: 1,
  1279. color: '#082550',
  1280. },
  1281. ]),
  1282. },
  1283. },
  1284. data: dataR5[1],
  1285. }
  1286. ],
  1287. }
  1288. option.title.text = '各三级企业在岗职工平均薪酬'
  1289. option.legend.data = ['去年同期在岗职工平均薪酬', '在岗职工平均薪酬']
  1290. option.legend.show = true
  1291. option.yAxis.push({
  1292. splitLine: {
  1293. show: false,
  1294. },
  1295. axisLine: {
  1296. show: false,
  1297. },
  1298. })
  1299. myChart.setOption(option)
  1300. },
  1301. initChartR6 () {
  1302. let myChart = echarts.init(this.$refs['echartR6'])
  1303. let option = {
  1304. ..._.cloneDeep(this.commonOption),
  1305. series: [
  1306. {
  1307. name: '2022年利润累计涨幅率',
  1308. type: 'line',
  1309. smooth: true, //平滑曲线显示
  1310. showAllSymbol: true, //显示所有图形。
  1311. symbol: 'circle', //标记的图形为实心圆
  1312. symbolSize: 8, //标记的大小
  1313. smooth: false,
  1314. itemStyle: {
  1315. //折线拐点标志的样式
  1316. color: '#B889EA',
  1317. borderColor: '#B889EA',
  1318. width: 2,
  1319. shadowColor: '#B889EA',
  1320. shadowBlur: 4,
  1321. },
  1322. lineStyle: {
  1323. color: '#B889EA',
  1324. width: 2,
  1325. },
  1326. data: dataR6[0],
  1327. },
  1328. {
  1329. name: '2022年薪酬累计涨幅率',
  1330. type: 'line',
  1331. barWidth: 15,
  1332. yAxisIndex: 1,
  1333. itemStyle: {
  1334. normal: {
  1335. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1336. {
  1337. offset: 0,
  1338. color: '#69C0FF',
  1339. },
  1340. {
  1341. offset: 1,
  1342. color: '#082550',
  1343. },
  1344. ]),
  1345. },
  1346. },
  1347. data: dataR6[1],
  1348. },
  1349. ],
  1350. }
  1351. option.title.text = '各三级企业月利润与月薪酬变动情况'
  1352. option.legend.data = ['2022年利润累计涨幅率', '2022年薪酬累计涨幅率']
  1353. option.tooltip = {
  1354. trigger: 'axis',
  1355. formatter: '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  1356. }
  1357. option.yAxis = [
  1358. {
  1359. splitLine: {
  1360. show: true,
  1361. lineStyle: {
  1362. color: '#68b4dd66',
  1363. type: 'dashed',
  1364. },
  1365. },
  1366. axisLine: {
  1367. show: false,
  1368. },
  1369. axisLabel: {
  1370. show: true,
  1371. formatter: '{value} %',
  1372. textStyle: {
  1373. color: 'rgba(250,250,250,0.6)',
  1374. },
  1375. },
  1376. },
  1377. {
  1378. splitLine: {
  1379. show: false,
  1380. },
  1381. axisLine: {
  1382. show: false,
  1383. },
  1384. axisLabel: {
  1385. show: true,
  1386. formatter: '{value} %',
  1387. textStyle: {
  1388. color: 'rgba(250,250,250,0.6)',
  1389. },
  1390. },
  1391. }
  1392. ]
  1393. myChart.setOption(option)
  1394. },
  1395. initChartR7 () {
  1396. let myChart = echarts.init(this.$refs['echartR7'])
  1397. let option = {
  1398. ..._.cloneDeep(this.commonOption),
  1399. series: [
  1400. {
  1401. name: '全员绩效考核完成率',
  1402. type: 'bar',
  1403. barWidth: 15,
  1404. itemStyle: {
  1405. normal: {
  1406. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1407. {
  1408. offset: 0,
  1409. color: '#B889EA',
  1410. },
  1411. {
  1412. offset: 1,
  1413. color: '#082550',
  1414. },
  1415. ]),
  1416. },
  1417. },
  1418. data: dataR7[0],
  1419. },
  1420. ],
  1421. }
  1422. option.title.text = '各三级企业全员绩效考核 '
  1423. // option.legend.data = ['劳动合同签约完成率', '目标值']
  1424. option.yAxis.push({
  1425. splitLine: {
  1426. show: false,
  1427. },
  1428. axisLine: {
  1429. show: false,
  1430. },
  1431. })
  1432. myChart.setOption(option)
  1433. },
  1434. initChartR8 () {
  1435. let myChart = echarts.init(this.$refs['echartR8'])
  1436. let option = {
  1437. ..._.cloneDeep(this.commonOption),
  1438. series: [
  1439. {
  1440. name: '任期制契约化完成率',
  1441. type: 'bar',
  1442. barWidth: 15,
  1443. itemStyle: {
  1444. normal: {
  1445. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1446. {
  1447. offset: 0,
  1448. color: '#43ede3',
  1449. },
  1450. {
  1451. offset: 1,
  1452. color: '#082550',
  1453. },
  1454. ]),
  1455. },
  1456. },
  1457. data: dataR8[0],
  1458. },
  1459. ],
  1460. }
  1461. option.title.text = '各三级企业任期制契约化完成率'
  1462. option.yAxis.push({
  1463. splitLine: {
  1464. show: false,
  1465. },
  1466. axisLine: {
  1467. show: false,
  1468. },
  1469. })
  1470. myChart.setOption(option)
  1471. },
  1472. },
  1473. })