index2.js 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506
  1. let companyList = [
  2. { name: '山西焦煤' },
  3. { name: '晋能控股' },
  4. { name: '华新燃气' },
  5. { name: '山西建投' },
  6. { name: '潞安化工' },
  7. { name: '华远陆港' },
  8. { name: '航产集团' },
  9. { name: '大地控股' },
  10. { name: '国新能源' },
  11. { name: '汾酒集团' },
  12. { name: '云时代' },
  13. { name: '神农科技' },
  14. { name: '华阳新材' },
  15. { name: '华舰体育' },
  16. { name: '交控集团' },
  17. { name: '文旅集团' },
  18. { name: '水控集团' },
  19. { name: '太重集团' },
  20. ]
  21. let barImg =
  22. 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAtCAYAAAA6GuKaAAAAAXNSR0IArs4c6QAADNRJREFUaEPNmXmQFNd9x9/Zr3u6Z2ZndzkiLeYwYhctJUtgC8GGQ46MBLYsjAURQnKSckWKkz+SkuWUnarElqtSsV2W/Kccq+Kq6EIFGAwpEEFSWIRYgQKSIrFiF3EsBskcuztX3+/oVPfMLMMesKxklbtq6tXMTk9/+rff/v6OB8HEDzjxU4fOjCbyGx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d/KvdnRPKiOOrPVqX3LtesxqW/u7owW1ChBQzPQeJnq6rPWYRjSWZMY5wUnv0HD4dlPIFqXhc55dlEOQxpWJG+6JvBKX8vt4D/7VxgrVH/LCPr8pr7Vj5AGto7jhz9OAOKcKRVV774rlE0zUR+mHfB2/2+HaxrEStyguKlGpqWvvtq/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'
  23. let app = new Vue({
  24. el: '#app',
  25. data() {
  26. return {
  27. year: '2022',
  28. config1: {
  29. number: [100],
  30. content: '{nt}个',
  31. },
  32. storageRecordConfig: {
  33. header: ['项目名称', '投资金额', '所属产业', '项目进度', '完成比例'],
  34. headerBGC: '#05507b33',
  35. oddRowBGC: '#69c0ff0f',
  36. evenRowBGC: '',
  37. headerHeight: '40',
  38. rowNum: 4,
  39. align: ['center'],
  40. data: [
  41. ['工程建设项目', '21.2亿', '煤炭', '终止', '2.3%'],
  42. ['工程建设项目', '21.2亿', '煤炭', '退出', '2.3%'],
  43. ['工程建设项目', '21.2亿', '煤炭', '进行中', '2.3%'],
  44. ['工程建设项目', '21.2亿', '煤炭', '进行中', '2.3%'],
  45. ['工程建设项目', '21.2亿', '煤炭', '进行中', '2.3%'],
  46. ['工程建设项目', '21.2亿', '煤炭', '进行中', '2.3%'],
  47. ],
  48. },
  49. storageRecordConfig2: {
  50. header: ['项目名称', '投资金额', '所属产业', '项目进度', '完成比例'],
  51. headerBGC: '#05507b33',
  52. oddRowBGC: '#05507b33',
  53. evenRowBGC: '',
  54. headerHeight: '40',
  55. rowNum: 4,
  56. align: ['center'],
  57. data: [
  58. ['工程建设项目', '21.2亿', '煤炭', '终止', '2.3%'],
  59. ['工程建设项目', '21.2亿', '煤炭', '退出', '2.3%'],
  60. ['工程建设项目', '21.2亿', '煤炭', '进行中', '2.3%'],
  61. ['工程建设项目', '21.2亿', '煤炭', '进行中', '2.3%'],
  62. ['工程建设项目', '21.2亿', '煤炭', '进行中', '2.3%'],
  63. ['工程建设项目', '21.2亿', '煤炭', '进行中', '2.3%'],
  64. ],
  65. },
  66. companyList: companyList,
  67. commonOption: {
  68. title: {
  69. text: 'xxx',
  70. x: 'center',
  71. y: '3%',
  72. textStyle: {
  73. color: '#69C0FF',
  74. fontSize: 24,
  75. },
  76. },
  77. tooltip: {
  78. trigger: 'axis',
  79. axisPointer: {
  80. type: 'shadow',
  81. },
  82. },
  83. grid: {
  84. top: '22%',
  85. right: '3%',
  86. left: '3%',
  87. bottom: '20%',
  88. },
  89. legend: {
  90. data: '',
  91. top: '12%',
  92. right: '10',
  93. textStyle: {
  94. color: 'rgba(250,250,250,0.6)',
  95. fontSize: 16,
  96. },
  97. },
  98. xAxis: {
  99. data: companyList.map(item => item.name),
  100. axisLine: {
  101. show: true, //隐藏X轴轴线
  102. lineStyle: {
  103. color: '#005094',
  104. width: 1,
  105. },
  106. },
  107. axisTick: {
  108. show: false, //隐藏X轴刻度
  109. },
  110. axisLabel: {
  111. show: true,
  112. rotate: 50,
  113. textStyle: {
  114. color: 'rgba(255,255,255,0.6)', //X轴文字颜色
  115. fontSize: 16,
  116. },
  117. },
  118. },
  119. yAxis: [
  120. {
  121. type: 'value',
  122. nameTextStyle: {
  123. color: '#ebf8ac',
  124. fontSize: 16,
  125. },
  126. splitLine: {
  127. show: true,
  128. lineStyle: {
  129. color: '#68b4dd66',
  130. type: 'dashed',
  131. },
  132. },
  133. axisLine: {
  134. show: false,
  135. },
  136. axisLabel: {
  137. show: true,
  138. textStyle: {
  139. color: 'rgba(250,250,250,0.6)',
  140. fontSize: 16,
  141. },
  142. },
  143. },
  144. ],
  145. },
  146. }
  147. },
  148. mounted() {
  149. // 左侧图表
  150. this.initChartL1()
  151. this.initChartL2()
  152. this.initChartL3()
  153. // 右侧图表
  154. this.initChartR1()
  155. this.initChartR2()
  156. this.initChartR3()
  157. },
  158. methods: {
  159. initChartL1() {
  160. let myChart = echarts.init(this.$refs['echartL1'])
  161. let option = {
  162. ...this.commonOption,
  163. series: [
  164. {
  165. name: '',
  166. type: 'bar',
  167. barWidth: 10,
  168. itemStyle: {
  169. normal: {
  170. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  171. {
  172. offset: 0,
  173. color: '#69c0ff',
  174. },
  175. {
  176. offset: 1,
  177. color: '#082550',
  178. },
  179. ]),
  180. },
  181. },
  182. data: [50, 40, 60, 20, 45, 30, 60, 40, 45, 40, 50, 20, 60, 80, 45, 70, 50, 40],
  183. },
  184. {
  185. data: [50, 40, 60, 20, 45, 30, 60, 40, 45, 40, 50, 20, 60, 80, 45, 70, 50, 40],
  186. type: 'pictorialBar',
  187. barMaxWidth: '20',
  188. symbolPosition: 'end',
  189. symbol: 'image://' + barImg,
  190. symbolOffset: ['0', '-25'],
  191. symbolSize: [35, 35],
  192. zlevel: 2,
  193. },
  194. ],
  195. }
  196. option.title.text = '当前各二级企业本部机构数'
  197. myChart.setOption(option)
  198. },
  199. initChartL2() {
  200. let myChart = echarts.init(this.$refs['echartL2'])
  201. let option = {
  202. ...this.commonOption,
  203. series: [
  204. {
  205. name: '人数',
  206. type: 'line',
  207. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  208. smooth: true, //平滑曲线显示
  209. showAllSymbol: true, //显示所有图形。
  210. symbol: 'circle', //标记的图形为实心圆
  211. symbolSize: 8, //标记的大小
  212. smooth: false,
  213. itemStyle: {
  214. //折线拐点标志的样式
  215. color: '#69c0ff',
  216. borderColor: '#69c0ff',
  217. width: 2,
  218. shadowColor: '#69c0ff',
  219. shadowBlur: 4,
  220. },
  221. lineStyle: {
  222. color: '#69c0ff',
  223. width: 2,
  224. },
  225. areaStyle: {
  226. //区域填充样式
  227. normal: {
  228. color: new echarts.graphic.LinearGradient(
  229. 0,
  230. 0,
  231. 0,
  232. 1,
  233. [
  234. {
  235. offset: 0,
  236. color: '#69c0ff',
  237. },
  238. {
  239. offset: 1,
  240. color: 'rgba(0,0,0,0)',
  241. },
  242. ],
  243. false
  244. ),
  245. },
  246. },
  247. data: [60, 50, 40, 90, 30, 55, 40, 20, 50, 40, 40, 55, 40, 30, 50, 40, 35, 40],
  248. }
  249. ],
  250. }
  251. option.title.text = '当前各二级企业中层管理人员人数'
  252. option.legend.data = ['人数']
  253. option.yAxis.push({
  254. splitLine: {
  255. show: false,
  256. },
  257. axisLine: {
  258. show: false,
  259. },
  260. })
  261. myChart.setOption(option)
  262. },
  263. initChartL3() {
  264. let myChart = echarts.init(this.$refs['echartL3'])
  265. let option = {
  266. ...this.commonOption,
  267. series: [
  268. {
  269. name: '',
  270. type: 'bar',
  271. barWidth: 10,
  272. itemStyle: {
  273. normal: {
  274. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  275. {
  276. offset: 0,
  277. color: '#43ede3',
  278. },
  279. {
  280. offset: 1,
  281. color: '#082550',
  282. },
  283. ]),
  284. },
  285. },
  286. data: [50, 40, 60, 20, 45, 30, 60, 40, 45, 40, 50, 20, 60, 80, 45, 70, 50, 40],
  287. },
  288. {
  289. data: [50, 40, 60, 20, 45, 30, 60, 40, 45, 40, 50, 20, 60, 80, 45, 70, 50, 40],
  290. type: 'pictorialBar',
  291. barMaxWidth: '20',
  292. symbolPosition: 'end',
  293. symbol: 'image://' + barImg,
  294. symbolOffset: ['0', '-25'],
  295. symbolSize: [35, 35],
  296. zlevel: 2,
  297. },
  298. ],
  299. }
  300. option.title.text = '当前各二级企业本部员额数'
  301. myChart.setOption(option)
  302. },
  303. // 右侧图表---------------------------------------------开始
  304. initChartR1() {
  305. let myChart = echarts.init(this.$refs['echartR1'])
  306. let option = {
  307. ...this.commonOption,
  308. series: [
  309. {
  310. name: '公开招聘数',
  311. type: 'line',
  312. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  313. smooth: true, //平滑曲线显示
  314. showAllSymbol: true, //显示所有图形。
  315. symbol: 'circle', //标记的图形为实心圆
  316. symbolSize: 8, //标记的大小
  317. smooth: false,
  318. itemStyle: {
  319. //折线拐点标志的样式
  320. color: '#B889EA',
  321. borderColor: '#B889EA',
  322. width: 2,
  323. shadowColor: '#B889EA',
  324. shadowBlur: 4,
  325. },
  326. lineStyle: {
  327. color: '#B889EA',
  328. width: 2,
  329. },
  330. data: [60, 50, 80, 80, 90, 55, 40, 60, 50, 80, 90, 55, 40, 60, 50, 90, 55, 40],
  331. },
  332. {
  333. name: '退出人数',
  334. type: 'bar',
  335. barWidth: 10,
  336. itemStyle: {
  337. normal: {
  338. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  339. {
  340. offset: 0,
  341. color: '#69C0FF',
  342. },
  343. {
  344. offset: 1,
  345. color: '#082550',
  346. },
  347. ]),
  348. },
  349. },
  350. data: [50, 40, 60, 20, 45, 30, 60, 100, 45, 40, 50, 20, 60, 80, 45, 70, 50, 40],
  351. },
  352. ],
  353. }
  354. option.title.text = '当前各二级企业退出人数与公开招聘人数对比'
  355. option.legend.data = ['退出人数', '公开招聘数']
  356. option.yAxis.push({
  357. splitLine: {
  358. show: false,
  359. },
  360. axisLine: {
  361. show: false,
  362. },
  363. })
  364. myChart.setOption(option)
  365. },
  366. initChartR2() {
  367. let myChart = echarts.init(this.$refs['echartR2'])
  368. let option = {
  369. ...this.commonOption,
  370. series: [
  371. {
  372. name: '薪酬',
  373. type: 'line',
  374. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  375. smooth: true, //平滑曲线显示
  376. showAllSymbol: true, //显示所有图形。
  377. symbol: 'circle', //标记的图形为实心圆
  378. symbolSize: 8, //标记的大小
  379. smooth: false,
  380. itemStyle: {
  381. //折线拐点标志的样式
  382. color: '#B889EA',
  383. borderColor: '#B889EA',
  384. width: 2,
  385. shadowColor: '#B889EA',
  386. shadowBlur: 4,
  387. },
  388. lineStyle: {
  389. color: '#B889EA',
  390. width: 2,
  391. },
  392. areaStyle: {
  393. //区域填充样式
  394. normal: {
  395. color: new echarts.graphic.LinearGradient(
  396. 0,
  397. 0,
  398. 0,
  399. 1,
  400. [
  401. {
  402. offset: 0,
  403. color: '#B889EA',
  404. },
  405. {
  406. offset: 1,
  407. color: 'rgba(0,0,0,0)',
  408. },
  409. ],
  410. false
  411. ),
  412. },
  413. },
  414. data: [60, 50, 40, 90, 30, 55, 40, 20, 50, 40, 40, 55, 40, 30, 50, 40, 35, 40],
  415. }
  416. ],
  417. }
  418. option.title.text = '当前各二级企业在岗职工平均薪酬'
  419. option.legend.data = ['薪酬']
  420. option.legend.show = true
  421. myChart.setOption(option)
  422. },
  423. initChartR3() {
  424. let myChart = echarts.init(this.$refs['echartR3'])
  425. let option = {
  426. ...this.commonOption,
  427. series: [
  428. {
  429. name: '任期值',
  430. type: 'line',
  431. yAxisIndex: 1, //使用的 y 轴的 index,在单个图表实例中存在多个 y轴的时候有用
  432. smooth: true, //平滑曲线显示
  433. showAllSymbol: true, //显示所有图形。
  434. symbol: 'circle', //标记的图形为实心圆
  435. symbolSize: 8, //标记的大小
  436. smooth: false,
  437. itemStyle: {
  438. //折线拐点标志的样式
  439. color: '#fbe138',
  440. borderColor: '#fbe138',
  441. width: 2,
  442. shadowColor: '#fbe138',
  443. shadowBlur: 4,
  444. },
  445. lineStyle: {
  446. color: '#fbe138',
  447. width: 2,
  448. },
  449. data: [60, 50, 80, 80, 90, 55, 40, 60, 50, 80, 90, 55, 40, 60, 50, 90, 55, 40],
  450. },
  451. {
  452. name: '全员劳动合同签约率',
  453. type: 'bar',
  454. barWidth: 10,
  455. itemStyle: {
  456. normal: {
  457. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  458. {
  459. offset: 0,
  460. color: '#69C0FF',
  461. },
  462. {
  463. offset: 1,
  464. color: '#082550',
  465. },
  466. ]),
  467. },
  468. },
  469. data: [50, 40, 60, 20, 45, 30, 60, 100, 45, 40, 50, 20, 60, 80, 45, 70, 50, 40],
  470. },
  471. {
  472. name: '全员绩效考核',
  473. type: 'bar',
  474. barWidth: 10,
  475. itemStyle: {
  476. normal: {
  477. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  478. {
  479. offset: 0,
  480. color: '#43ede3',
  481. },
  482. {
  483. offset: 1,
  484. color: '#082550',
  485. },
  486. ]),
  487. },
  488. },
  489. data: [60, 50, 40, 90, 30, 55, 40, 20, 50, 40, 40, 55, 40, 30, 50, 40, 35, 40],
  490. },
  491. ],
  492. }
  493. option.title.text = '当前各二级企业本部员额数'
  494. option.legend.data = ['全员劳动合同签约率','全员绩效考核', '任期值']
  495. option.yAxis.push({
  496. splitLine: {
  497. show: false,
  498. },
  499. axisLine: {
  500. show: false,
  501. },
  502. })
  503. myChart.setOption(option)
  504. },
  505. },
  506. })