index4.js 44 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458
  1. let barImg =
  2. 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAtCAYAAAA6GuKaAAAAAXNSR0IArs4c6QAADNRJREFUaEPNmXmQFNd9x9/Zr3u6Z2ZndzkiLeYwYhctJUtgC8GGQ46MBLYsjAURQnKSckWKkz+SkuWUnarElqtSsV2W/Kccq+Kq6EIFGAwpEEFSWIRYgQKSIrFiF3EsBskcuztX3+/oVPfMLMMesKxklbtq6tXMTk9/+rff/v6OB8HEDzjxU4fOjCbyGxO5cP05Ezm/xlkPfF3w13PRsWAhAMurfytX1nb/8ne79SpQurp2xutYwOOCHy907Xt1awxahkOAQQCBEJXX8IOQCMQvxipQyY3EN3HFDdSArwk+HuhRgBcgMLuIEgDXxcnKc5X3Mqis9QdmKnlL85U1lZLJeiKrADgSfzYc+Krg14IeBrwcgdnnKpAxbAwqPAyyCgJhonRKR5HkCXSkFI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TbXesWssamhfHEechhyPq6fZFN589eqgnsPMlqerqaUbB9LgsLfTv6z348oTr6VrbVfXs8XcubXesur8S8Te3DO9coigxjCjuXOIMKDl3KNXwjHmL13qF/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. commonOption: {
  50. title: {
  51. text: 'xxx',
  52. x: 'center',
  53. y: '3%',
  54. textStyle: {
  55. color: '#69C0FF',
  56. fontSize: 24,
  57. },
  58. },
  59. tooltip: {
  60. trigger: 'axis',
  61. axisPointer: {
  62. type: 'shadow',
  63. },
  64. },
  65. grid: {
  66. top: '22%',
  67. right: '5%',
  68. left: '8%',
  69. bottom: '26%',
  70. },
  71. legend: {
  72. data: '',
  73. top: '12%',
  74. right: '5%',
  75. textStyle: {
  76. color: 'rgba(250,250,250,0.6)',
  77. fontSize: 14,
  78. },
  79. },
  80. xAxis: {
  81. data: companyList.map(item => item.name),
  82. axisLine: {
  83. show: true, //隐藏X轴轴线
  84. lineStyle: {
  85. color: '#005094',
  86. width: 1,
  87. },
  88. },
  89. axisTick: {
  90. show: false, //隐藏X轴刻度
  91. },
  92. axisLabel: {
  93. show: true,
  94. rotate: 15,
  95. textStyle: {
  96. color: 'rgba(255,255,255,0.6)', //X轴文字颜色
  97. fontSize: 16,
  98. },
  99. },
  100. },
  101. yAxis: [
  102. {
  103. type: 'value',
  104. nameTextStyle: {
  105. color: '#ebf8ac',
  106. fontSize: 16,
  107. },
  108. splitLine: {
  109. show: true,
  110. lineStyle: {
  111. color: '#68b4dd66',
  112. type: 'dashed',
  113. },
  114. },
  115. axisLine: {
  116. show: false,
  117. },
  118. axisLabel: {
  119. show: true,
  120. textStyle: {
  121. color: 'rgba(250,250,250,0.6)',
  122. fontSize: 16,
  123. },
  124. },
  125. },
  126. ],
  127. },
  128. }
  129. },
  130. mounted () {
  131. this.time = formatDate()
  132. this.timer = setInterval(() => {
  133. this.time = formatDate()
  134. }, 1000)
  135. this.centerData = data
  136. // 左侧图表
  137. this.initChartL1()
  138. this.initChartL2()
  139. this.initChartL3()
  140. this.initChartL4()
  141. this.initChartL5()
  142. this.initChartL6()
  143. this.initChartL7()
  144. this.initChartL8()
  145. // 中间图表
  146. this.initChartC1()
  147. this.initChartC2()
  148. // 右侧图表
  149. this.initChartR1()
  150. this.initChartR2()
  151. this.initChartR3()
  152. this.initChartR4()
  153. this.initChartR5()
  154. this.initChartR6()
  155. this.initChartR7()
  156. this.initChartR8()
  157. },
  158. beforeDestroy () {
  159. if (this.timer) {
  160. clearInterval(this.timer);
  161. }
  162. },
  163. methods: {
  164. handleGoPage (url) {
  165. if (url.length) {
  166. window.location.href = url
  167. }
  168. },
  169. handleGoBack () {
  170. window.history.go(-1)
  171. },
  172. numFormat (value) {
  173. if (!value) return '0'
  174. var intPart = Number(value).toFixed(0) // 获取整数部分
  175. var intPartFormat = intPart.toString().replace(/(\d)(?=(?:\d{3})+$)/g, '$1,') // 将整数部分逢三一断
  176. var floatPart = '.00' // 预定义小数部分
  177. var value2Array = value.toString().split('.')
  178. // =2表示数据有小数位
  179. if (value2Array.length === 2) {
  180. floatPart = value2Array[1].toString() // 拿到小数部分
  181. if (floatPart.length === 1) {
  182. // 补0
  183. return intPartFormat + '.' + floatPart + '0'
  184. } else {
  185. return intPartFormat + '.' + floatPart
  186. }
  187. } else {
  188. return intPartFormat
  189. }
  190. },
  191. initChartL1 () {
  192. let myChart = echarts.init(this.$refs['echartL1'])
  193. let option = {
  194. ..._.cloneDeep(this.commonOption),
  195. series: [
  196. {
  197. name: '当前各四级企业本部机构数',
  198. type: 'bar',
  199. barWidth: 15,
  200. itemStyle: {
  201. normal: {
  202. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  203. {
  204. offset: 0,
  205. color: '#69c0ff',
  206. },
  207. {
  208. offset: 1,
  209. color: '#082550',
  210. },
  211. ]),
  212. },
  213. },
  214. data: dataL1[0],
  215. },
  216. ],
  217. }
  218. option.title.text = '各四级企业本部机构数'
  219. option.legend.data = ['当前各四级企业本部机构数']
  220. option.yAxis.push({
  221. splitLine: {
  222. show: false,
  223. },
  224. axisLine: {
  225. show: false,
  226. },
  227. })
  228. myChart.setOption(option)
  229. },
  230. initChartL2 () {
  231. let myChart = echarts.init(this.$refs['echartL2'])
  232. let option = {
  233. ..._.cloneDeep(this.commonOption),
  234. series: [
  235. {
  236. name: '当前各四级企业所属架构数',
  237. type: 'bar',
  238. barWidth: 15,
  239. itemStyle: {
  240. normal: {
  241. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  242. {
  243. offset: 0,
  244. color: '#69c0ff',
  245. },
  246. {
  247. offset: 1,
  248. color: '#082550',
  249. },
  250. ]),
  251. },
  252. },
  253. data: dataL2[0]
  254. }
  255. ],
  256. }
  257. option.title.text = '各四级企业所属架构数'
  258. option.legend.data = ['当前各四级企业所属架构数']
  259. option.yAxis.push({
  260. splitLine: {
  261. show: false,
  262. },
  263. axisLine: {
  264. show: false,
  265. },
  266. })
  267. myChart.setOption(option)
  268. },
  269. initChartL3 () {
  270. let myChart = echarts.init(this.$refs['echartL3'])
  271. console.log(this.commonOption, "this.commonOption")
  272. let option = {
  273. ..._.cloneDeep(this.commonOption),
  274. series: [
  275. {
  276. name: '当前本部中层管理人数',
  277. type: 'bar',
  278. barWidth: 15,
  279. itemStyle: {
  280. normal: {
  281. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  282. {
  283. offset: 0,
  284. color: '#5e7ae9',
  285. },
  286. {
  287. offset: 1,
  288. color: '#082550',
  289. },
  290. ]),
  291. },
  292. },
  293. data: dataL3[0],
  294. },
  295. ],
  296. }
  297. option.title.text = '各四级企业本部中层管理人数'
  298. option.legend.data = ['当前本部中层管理人数']
  299. option.yAxis.push({
  300. type: 'value',
  301. axisLine: {
  302. show: false,
  303. },
  304. splitLine: {
  305. show: false,
  306. },
  307. })
  308. myChart.setOption(option)
  309. },
  310. initChartL4 () {
  311. let myChart = echarts.init(this.$refs['echartL4'])
  312. let option = {
  313. ..._.cloneDeep(this.commonOption),
  314. series: [
  315. {
  316. name: '当前管理人员数',
  317. type: 'bar',
  318. barWidth: 12,
  319. smooth: true, //平滑曲线显示
  320. showAllSymbol: true, //显示所有图形。
  321. symbol: 'circle', //标记的图形为实心圆
  322. symbolSize: 8, //标记的大小
  323. smooth: false,
  324. itemStyle: {
  325. //折线拐点标志的样式
  326. color: '#B889EA',
  327. borderColor: '#B889EA',
  328. width: 2,
  329. shadowColor: '#B889EA',
  330. shadowBlur: 4,
  331. },
  332. lineStyle: {
  333. color: '#B889EA',
  334. width: 2,
  335. },
  336. data: dataL4[0],
  337. },
  338. {
  339. name: '管理人员数占总人数比值',
  340. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  341. type: 'line',
  342. itemStyle: {
  343. normal: {
  344. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  345. {
  346. offset: 0,
  347. color: '#69c0ff',
  348. },
  349. {
  350. offset: 1,
  351. color: '#082550',
  352. },
  353. ]),
  354. },
  355. },
  356. data: dataL4[1],
  357. markLine: {
  358. data: [
  359. {
  360. name: '管理人员比值核定上限',
  361. yAxis: 15,
  362. lineStyle: {
  363. color: '#fff',
  364. },
  365. label: {
  366. formatter: '{b}',
  367. position: 'middle',
  368. color: '#fff',
  369. },
  370. }
  371. ],
  372. label: {
  373. distance: [20, 8],
  374. },
  375. },
  376. },
  377. ],
  378. }
  379. option.title.text = '各四级企业管理人员数'
  380. option.legend.data = ['当前管理人员数', '管理人员数占总人数比值']
  381. option.legend.show = true
  382. option.tooltip = {
  383. trigger: 'axis',
  384. formatter: '{a0}:{c0}' + '<br/>' + '{a1}:{c1}' + '%'
  385. }
  386. option.yAxis.push({
  387. max: 100,
  388. type: 'value',
  389. axisLine: {
  390. show: false,
  391. },
  392. splitLine: {
  393. show: false,
  394. },
  395. axisLabel: {
  396. show: true,
  397. formatter: '{value} %',
  398. textStyle: {
  399. color: 'rgba(250,250,250,0.6)',
  400. },
  401. },
  402. })
  403. myChart.setOption(option)
  404. },
  405. initChartL5 () {
  406. let myChart = echarts.init(this.$refs['echartL5'])
  407. let option = {
  408. ..._.cloneDeep(this.commonOption),
  409. series: [
  410. {
  411. name: '各四级企业总人数',
  412. type: 'bar',
  413. barWidth: 15,
  414. itemStyle: {
  415. normal: {
  416. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  417. {
  418. offset: 0,
  419. color: '#69c0ff',
  420. },
  421. {
  422. offset: 1,
  423. color: '#082550',
  424. },
  425. ]),
  426. },
  427. },
  428. data: dataL5[0],
  429. },
  430. {
  431. name: '去年同期人数变化率',
  432. type: 'line',
  433. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  434. smooth: true, //平滑曲线显示
  435. showAllSymbol: true, //显示所有图形。
  436. symbol: 'circle', //标记的图形为实心圆
  437. symbolSize: 8, //标记的大小
  438. smooth: false,
  439. itemStyle: {
  440. //折线拐点标志的样式
  441. color: '#b889ea',
  442. borderColor: '#b889ea',
  443. width: 2,
  444. shadowColor: '#b889ea',
  445. shadowBlur: 4,
  446. },
  447. lineStyle: {
  448. color: '#b889ea',
  449. width: 2,
  450. },
  451. data: dataL5[1],
  452. },
  453. ],
  454. }
  455. option.title.text = '各四级企业总人数'
  456. option.legend.data = ['各四级企业总人数', '去年同期人数变化率']
  457. option.legend.show = true
  458. option.tooltip = {
  459. trigger: 'axis',
  460. formatter: '{a0}:{c0}' + '<br/>' + '{a1}:{c1}' + '%'
  461. }
  462. option.yAxis.push({
  463. type: 'value',
  464. axisLine: {
  465. show: false,
  466. },
  467. splitLine: {
  468. show: false,
  469. },
  470. axisLabel: {
  471. show: true,
  472. formatter: '{value} %',
  473. textStyle: {
  474. color: 'rgba(250,250,250,0.6)',
  475. },
  476. },
  477. })
  478. myChart.setOption(option)
  479. },
  480. initChartL6 () {
  481. let myChart = echarts.init(this.$refs['echartL6'])
  482. let option = {
  483. ..._.cloneDeep(this.commonOption),
  484. series: [
  485. {
  486. name: '本部员额数',
  487. type: 'bar',
  488. barWidth: 15,
  489. itemStyle: {
  490. normal: {
  491. barBorderRadius: [10, 10, 0, 0],
  492. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  493. {
  494. offset: 0,
  495. color: '#43ede3',
  496. },
  497. {
  498. offset: 1,
  499. color: '#082550',
  500. },
  501. ]),
  502. },
  503. },
  504. data: dataL6[0],
  505. },
  506. ],
  507. }
  508. option.title.text = '各四级企业本部员额数'
  509. option.legend.data = ['本部员额数']
  510. option.legend.show = true
  511. option.yAxis.push({
  512. splitLine: {
  513. show: false,
  514. },
  515. axisLine: {
  516. show: false,
  517. },
  518. })
  519. myChart.setOption(option)
  520. },
  521. initChartL7 () {
  522. let myChart = echarts.init(this.$refs['echartL7'])
  523. let option = {
  524. ..._.cloneDeep(this.commonOption),
  525. series: [
  526. {
  527. name: '人数变化',
  528. type: 'line',
  529. barWidth: 15,
  530. itemStyle: {
  531. normal: {
  532. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  533. {
  534. offset: 0,
  535. color: '#43ede3',
  536. },
  537. {
  538. offset: 1,
  539. color: '#43ede3',
  540. },
  541. ]),
  542. },
  543. },
  544. // markLine: {
  545. // data: [{ type: 'average', name: 'Avg' }],
  546. // },
  547. data: dataL7[0],
  548. },
  549. {
  550. name: '全员劳动生产率同比变化',
  551. type: 'line',
  552. barWidth: 15,
  553. yAxisIndex: 1,
  554. itemStyle: {
  555. normal: {
  556. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  557. {
  558. offset: 0,
  559. color: '#b889ea',
  560. },
  561. {
  562. offset: 1,
  563. color: '#b889ea',
  564. },
  565. ]),
  566. },
  567. },
  568. data: dataL7[1],
  569. },
  570. ],
  571. }
  572. option.title.text = '人数变化和全员劳动生产率变化率分析'
  573. option.legend.data = ['人数变化', '全员劳动生产率同比变化']
  574. option.legend.show = true
  575. option.tooltip = {
  576. trigger: 'axis',
  577. formatter: '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  578. }
  579. option.yAxis = [
  580. {
  581. type: 'value',
  582. axisLine: {
  583. show: false,
  584. },
  585. splitLine: {
  586. show: true,
  587. lineStyle: {
  588. color: '#68b4dd66',
  589. type: 'dashed',
  590. },
  591. },
  592. axisLabel: {
  593. show: true,
  594. formatter: '{value} %',
  595. textStyle: {
  596. color: 'rgba(250,250,250,0.6)',
  597. },
  598. },
  599. },
  600. {
  601. type: 'value',
  602. axisLine: {
  603. show: false,
  604. },
  605. splitLine: {
  606. show: false,
  607. },
  608. axisLabel: {
  609. show: true,
  610. formatter: '{value} %',
  611. textStyle: {
  612. color: 'rgba(250,250,250,0.6)',
  613. },
  614. },
  615. }
  616. ]
  617. myChart.setOption(option)
  618. },
  619. initChartL8 () {
  620. let myChart = echarts.init(this.$refs['echartL8'])
  621. let option = {
  622. ..._.cloneDeep(this.commonOption),
  623. series: [
  624. {
  625. name: '人数变化',
  626. type: 'line',
  627. barWidth: 15,
  628. itemStyle: {
  629. normal: {
  630. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  631. {
  632. offset: 0,
  633. color: '#43ede3',
  634. },
  635. {
  636. offset: 1,
  637. color: '#43ede3',
  638. },
  639. ]),
  640. },
  641. },
  642. // markLine: {
  643. // data: [{ type: 'average', name: 'Avg' }],
  644. // },
  645. data: dataL8[0],
  646. },
  647. {
  648. name: '人工成本利润率同比变化',
  649. type: 'line',
  650. barWidth: 15,
  651. yAxisIndex: 1,
  652. itemStyle: {
  653. normal: {
  654. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  655. {
  656. offset: 0,
  657. color: '#b889ea',
  658. },
  659. {
  660. offset: 1,
  661. color: '#b889ea',
  662. },
  663. ]),
  664. },
  665. },
  666. data: dataL8[1],
  667. },
  668. ],
  669. }
  670. option.title.text = '人数变化和人工利润率变化分析'
  671. option.legend.data = ['人数变化', '人工成本利润率同比变化']
  672. option.legend.show = true
  673. option.tooltip = {
  674. trigger: 'axis',
  675. formatter: '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  676. }
  677. option.yAxis = [
  678. {
  679. type: 'value',
  680. axisLine: {
  681. show: false,
  682. },
  683. splitLine: {
  684. show: true,
  685. lineStyle: {
  686. color: '#68b4dd66',
  687. type: 'dashed',
  688. },
  689. },
  690. axisLabel: {
  691. show: true,
  692. formatter: '{value} %',
  693. textStyle: {
  694. color: 'rgba(250,250,250,0.6)',
  695. },
  696. },
  697. },
  698. {
  699. type: 'value',
  700. axisLine: {
  701. show: false,
  702. },
  703. splitLine: {
  704. show: false,
  705. },
  706. axisLabel: {
  707. show: true,
  708. formatter: '{value} %',
  709. textStyle: {
  710. color: 'rgba(250,250,250,0.6)',
  711. },
  712. },
  713. }
  714. ]
  715. myChart.setOption(option)
  716. },
  717. // 中间图表---------------------------------------------开始
  718. initChartC1 () {
  719. let myChart = echarts.init(this.$refs['echartC1'])
  720. let option = {
  721. ..._.cloneDeep(this.commonOption),
  722. series: [
  723. {
  724. name: '全员劳动生产率(万/人)',
  725. type: 'bar',
  726. barWidth: 12,
  727. smooth: true, //平滑曲线显示
  728. showAllSymbol: true, //显示所有图形。
  729. symbol: 'circle', //标记的图形为实心圆
  730. symbolSize: 8, //标记的大小
  731. smooth: false,
  732. itemStyle: {
  733. //折线拐点标志的样式
  734. color: '#B889EA',
  735. borderColor: '#B889EA',
  736. width: 2,
  737. shadowColor: '#B889EA',
  738. shadowBlur: 4,
  739. },
  740. lineStyle: {
  741. color: '#B889EA',
  742. width: 2,
  743. },
  744. // data: [60, 50, 80, 80, 90, 55, 40, 60, 50, 80, 90, 55, 40, 60, 50, 90, 55, 40],
  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: true,
  922. lineStyle: {
  923. color: '#68b4dd66',
  924. type: 'dashed',
  925. },
  926. },
  927. axisLine: {
  928. show: false,
  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. splitLine: {
  1077. show: false,
  1078. },
  1079. axisLine: {
  1080. show: false,
  1081. },
  1082. })
  1083. myChart.setOption(option)
  1084. },
  1085. initChartR3 () {
  1086. let myChart = echarts.init(this.$refs['echartR3'])
  1087. let commonOptions = this.commonOption
  1088. commonOptions.yAxis[0].splitNumber = 2
  1089. let option = {
  1090. ..._.cloneDeep(commonOptions),
  1091. series: [
  1092. {
  1093. name: '2022年利润(万)',
  1094. type: 'bar',
  1095. barWidth: 15,
  1096. itemStyle: {
  1097. normal: {
  1098. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1099. {
  1100. offset: 0,
  1101. color: '#69c0ff',
  1102. },
  1103. {
  1104. offset: 1,
  1105. color: '#082550',
  1106. },
  1107. ]),
  1108. },
  1109. },
  1110. data: dataR3[0],
  1111. },
  1112. {
  1113. name: '2022年累计招聘数',
  1114. type: 'bar',
  1115. barWidth: 15,
  1116. itemStyle: {
  1117. normal: {
  1118. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1119. {
  1120. offset: 0,
  1121. color: '#45DAD1',
  1122. },
  1123. {
  1124. offset: 1,
  1125. color: '#082550',
  1126. },
  1127. ]),
  1128. },
  1129. },
  1130. data: dataR3[1],
  1131. },
  1132. ],
  1133. }
  1134. option.title.text = '各四级企业年利润与招聘情况分析'
  1135. option.legend.data = ['2022年利润(万)', '2022年累计招聘数']
  1136. option.legend.show = true
  1137. option.yAxis.push({
  1138. max: function (val) {
  1139. if (Math.abs(val.max) > Math.abs(val.min)) {
  1140. return (Math.abs(val.max) * 1.2).toFixed(0)
  1141. } else {
  1142. return (Math.abs(val.min) * 1.2).toFixed(0)
  1143. }
  1144. },
  1145. min: function (val) {
  1146. if (Math.abs(val.max) > Math.abs(val.min)) {
  1147. return (-Math.abs(val.max) * 1.2).toFixed(0)
  1148. } else {
  1149. return (Math.abs(val.min) * 1.2).toFixed(0)
  1150. }
  1151. },
  1152. splitLine: {
  1153. show: false,
  1154. },
  1155. axisLine: {
  1156. show: false,
  1157. },
  1158. })
  1159. myChart.setOption(option)
  1160. },
  1161. initChartR4 () {
  1162. let myChart = echarts.init(this.$refs['echartR4'])
  1163. let commonOptions = this.commonOption
  1164. commonOptions.yAxis[0].splitNumber = 2
  1165. let option = {
  1166. ..._.cloneDeep(commonOptions),
  1167. series: [
  1168. {
  1169. name: '2022年退出人数',
  1170. type: 'bar',
  1171. barWidth: 15,
  1172. itemStyle: {
  1173. normal: {
  1174. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1175. {
  1176. offset: 0,
  1177. color: '#69c0ff',
  1178. },
  1179. {
  1180. offset: 1,
  1181. color: '#082550',
  1182. },
  1183. ]),
  1184. },
  1185. },
  1186. data: dataR4[0],
  1187. },
  1188. {
  1189. name: '2022年累计招聘人数',
  1190. type: 'bar',
  1191. barWidth: 15,
  1192. itemStyle: {
  1193. normal: {
  1194. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1195. {
  1196. offset: 0,
  1197. color: '#45DAD1',
  1198. },
  1199. {
  1200. offset: 1,
  1201. color: '#082550',
  1202. },
  1203. ]),
  1204. },
  1205. },
  1206. data: dataR4[1],
  1207. },
  1208. ],
  1209. }
  1210. option.title.text = '各四级企业"退二进一"完成情况'
  1211. option.legend.data = ['2022年退出人数', '2022年累计招聘人数']
  1212. option.legend.show = true
  1213. option.yAxis.push({
  1214. splitLine: {
  1215. show: false,
  1216. },
  1217. axisLine: {
  1218. show: false,
  1219. },
  1220. })
  1221. myChart.setOption(option)
  1222. },
  1223. initChartR5 () {
  1224. let myChart = echarts.init(this.$refs['echartR5'])
  1225. let option = {
  1226. ..._.cloneDeep(this.commonOption),
  1227. series: [
  1228. {
  1229. name: '在岗职工平均薪酬',
  1230. type: 'bar',
  1231. barWidth: 15,
  1232. itemStyle: {
  1233. normal: {
  1234. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1235. {
  1236. offset: 0,
  1237. color: '#6682F5',
  1238. },
  1239. {
  1240. offset: 1,
  1241. color: '#082550',
  1242. },
  1243. ]),
  1244. },
  1245. },
  1246. data: dataR5[0],
  1247. },
  1248. {
  1249. name: '去年同期在岗职工平均薪酬',
  1250. type: 'bar',
  1251. barWidth: 15,
  1252. itemStyle: {
  1253. normal: {
  1254. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1255. {
  1256. offset: 0,
  1257. color: '#69c0ff',
  1258. },
  1259. {
  1260. offset: 1,
  1261. color: '#082550',
  1262. },
  1263. ]),
  1264. },
  1265. },
  1266. data: dataR5[1],
  1267. }
  1268. ],
  1269. }
  1270. option.title.text = '各四级企业在岗职工平均薪酬'
  1271. option.legend.data = ['在岗职工平均薪酬', '去年同期在岗职工平均薪酬']
  1272. option.legend.show = true
  1273. option.yAxis.push({
  1274. splitLine: {
  1275. show: false,
  1276. },
  1277. axisLine: {
  1278. show: false,
  1279. },
  1280. })
  1281. myChart.setOption(option)
  1282. },
  1283. initChartR6 () {
  1284. let myChart = echarts.init(this.$refs['echartR6'])
  1285. let option = {
  1286. ..._.cloneDeep(this.commonOption),
  1287. series: [
  1288. {
  1289. name: '2022年利润累计涨幅率',
  1290. type: 'line',
  1291. smooth: true, //平滑曲线显示
  1292. showAllSymbol: true, //显示所有图形。
  1293. symbol: 'circle', //标记的图形为实心圆
  1294. symbolSize: 8, //标记的大小
  1295. smooth: false,
  1296. itemStyle: {
  1297. //折线拐点标志的样式
  1298. color: '#B889EA',
  1299. borderColor: '#B889EA',
  1300. width: 2,
  1301. shadowColor: '#B889EA',
  1302. shadowBlur: 4,
  1303. },
  1304. lineStyle: {
  1305. color: '#B889EA',
  1306. width: 2,
  1307. },
  1308. data: dataR6[0],
  1309. },
  1310. {
  1311. name: '2022年薪酬累计涨幅率',
  1312. type: 'line',
  1313. barWidth: 15,
  1314. yAxisIndex: 1,
  1315. itemStyle: {
  1316. normal: {
  1317. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1318. {
  1319. offset: 0,
  1320. color: '#69C0FF',
  1321. },
  1322. {
  1323. offset: 1,
  1324. color: '#082550',
  1325. },
  1326. ]),
  1327. },
  1328. },
  1329. data: dataR6[1],
  1330. },
  1331. ],
  1332. }
  1333. option.title.text = '各四级企业月利润与月薪酬变动情况'
  1334. option.legend.data = ['2022年利润累计涨幅率', '2022年薪酬累计涨幅率']
  1335. option.tooltip = {
  1336. trigger: 'axis',
  1337. formatter: '{a0}:{c0}' + '%' + '<br/>' + '{a1}:{c1}' + '%'
  1338. }
  1339. option.yAxis = [
  1340. {
  1341. splitLine: {
  1342. show: true,
  1343. lineStyle: {
  1344. color: '#68b4dd66',
  1345. type: 'dashed',
  1346. },
  1347. },
  1348. axisLine: {
  1349. show: false,
  1350. },
  1351. axisLabel: {
  1352. show: true,
  1353. formatter: '{value} %',
  1354. textStyle: {
  1355. color: 'rgba(250,250,250,0.6)',
  1356. },
  1357. },
  1358. },
  1359. {
  1360. splitLine: {
  1361. show: false,
  1362. },
  1363. axisLine: {
  1364. show: false,
  1365. },
  1366. axisLabel: {
  1367. show: true,
  1368. formatter: '{value} %',
  1369. textStyle: {
  1370. color: 'rgba(250,250,250,0.6)',
  1371. },
  1372. },
  1373. }
  1374. ]
  1375. myChart.setOption(option)
  1376. },
  1377. initChartR7 () {
  1378. let myChart = echarts.init(this.$refs['echartR7'])
  1379. let option = {
  1380. ..._.cloneDeep(this.commonOption),
  1381. series: [
  1382. {
  1383. name: '全员绩效考核完成率',
  1384. type: 'bar',
  1385. barWidth: 15,
  1386. itemStyle: {
  1387. normal: {
  1388. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1389. {
  1390. offset: 0,
  1391. color: '#B889EA',
  1392. },
  1393. {
  1394. offset: 1,
  1395. color: '#082550',
  1396. },
  1397. ]),
  1398. },
  1399. },
  1400. data: dataR7[0],
  1401. },
  1402. ],
  1403. }
  1404. option.title.text = '各四级企业全员绩效考核'
  1405. // option.legend.data = ['劳动合同签约完成率', '目标值']
  1406. option.yAxis.push({
  1407. splitLine: {
  1408. show: false,
  1409. },
  1410. axisLine: {
  1411. show: false,
  1412. },
  1413. })
  1414. myChart.setOption(option)
  1415. },
  1416. initChartR8 () {
  1417. let myChart = echarts.init(this.$refs['echartR8'])
  1418. let option = {
  1419. ..._.cloneDeep(this.commonOption),
  1420. series: [
  1421. {
  1422. name: '任期制契约化完成率',
  1423. type: 'bar',
  1424. barWidth: 15,
  1425. itemStyle: {
  1426. normal: {
  1427. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1428. {
  1429. offset: 0,
  1430. color: '#43ede3',
  1431. },
  1432. {
  1433. offset: 1,
  1434. color: '#082550',
  1435. },
  1436. ]),
  1437. },
  1438. },
  1439. data: dataR8[0],
  1440. },
  1441. ],
  1442. }
  1443. option.title.text = '各四级企业任期制契约化完成率'
  1444. option.yAxis.push({
  1445. splitLine: {
  1446. show: false,
  1447. },
  1448. axisLine: {
  1449. show: false,
  1450. },
  1451. })
  1452. myChart.setOption(option)
  1453. },
  1454. },
  1455. })