index3.js 45 KB

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