cokingCoalD.js 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531
  1. let app = new Vue({
  2. el: '#app',
  3. data () {
  4. return {
  5. companyList: [
  6. { name: '核心人力-1' },
  7. { name: '核心人力-2' },
  8. { name: '内部人才市场' },
  9. { name: '薪酬福利' },
  10. { name: '培训' }
  11. ],
  12. config5: {
  13. header: ["单位名称", "平均工资涨幅"],
  14. data: [
  15. ["山焦财务", "-1%"],
  16. ["山焦担保", "4%"],
  17. ["山焦股份", "6%"],
  18. ["山焦国华", "-20%"],
  19. ["山焦国华", "9%"],
  20. ["山焦财务", "-1%"],
  21. ["山焦担保", "4%"],
  22. ["山焦股份", "6%"],
  23. ["山焦国华", "-20%"],
  24. ["山焦国华", "9%"]
  25. ],
  26. align: ["center", "center", "center", "center"],
  27. headerBGC: "#153A62",
  28. oddRowBGC: "#061F42",
  29. evenRowBGC: "#0C284A",
  30. },
  31. }
  32. },
  33. mounted () {
  34. setTimeout(() => {
  35. this.budgetECharts();
  36. this.salaryECharts();
  37. this.aiQualityECharts1();
  38. this.aiQualityECharts2();
  39. })
  40. },
  41. methods: {
  42. aiQualityECharts1 () {
  43. let chart = echarts.init(document.getElementById("aiQuality1"));
  44. let option = {
  45. grid: {
  46. top: 30,
  47. right: 40,
  48. left: 75,
  49. bottom: 50,
  50. },
  51. tooltip: {
  52. show: true,
  53. trigger: "axis",
  54. axisPointer: {
  55. // 坐标轴指示器,坐标轴触发有效
  56. type: "shadow", // 默认为直线,可选为:'line' | 'shadow'
  57. },
  58. },
  59. xAxis: {
  60. data: ["集团本部", "山焦财务", "山焦担保", "山焦股份", "山焦国华", "山焦机电", "山焦人力", "山焦民爆", "山焦事业", "山焦投资"],
  61. axisTick: {
  62. show: false,
  63. },
  64. // x轴的字体颜色
  65. axisLabel: {
  66. interval: 0,
  67. rotate: 40,
  68. textStyle: {
  69. color: "white",
  70. },
  71. },
  72. //y轴线的颜色以及宽度
  73. axisLine: {
  74. show: true,
  75. lineStyle: {
  76. color: "#1E5389",
  77. width: 1,
  78. type: "solid",
  79. },
  80. },
  81. },
  82. yAxis: {
  83. axisTick: {
  84. lineStyle: {
  85. color: "#18416F",
  86. },
  87. },
  88. // y轴的字体颜色
  89. axisLabel: {
  90. textStyle: {
  91. color: "white",
  92. },
  93. },
  94. splitLine: {
  95. show: true,
  96. lineStyle: {
  97. color: "#204561",
  98. width: 1,
  99. type: "dotted",
  100. },
  101. },
  102. //y轴线的颜色以及宽度
  103. axisLine: {
  104. show: true,
  105. lineStyle: {
  106. color: "#1E5389",
  107. width: 1,
  108. type: "solid",
  109. },
  110. },
  111. },
  112. series: [
  113. {
  114. name: "",
  115. type: "bar",
  116. data: [1200, 680, 562, 268, 717, 843, 987, 126, 723, 569],
  117. showBackground: true,
  118. backgroundStyle: {
  119. color: "#18416F",
  120. },
  121. barWidth: "10%",
  122. itemStyle: {
  123. barBorderRadius: [10, 10, 0, 0],
  124. color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [
  125. {
  126. offset: 0,
  127. color: "#13445D",
  128. }, //柱图渐变色
  129. {
  130. offset: 1,
  131. color: "#45DAD1",
  132. },
  133. ]),
  134. },
  135. }
  136. ],
  137. legend: {
  138. data: ["入池人数", "出池人数"],
  139. textStyle: {
  140. // 图列内容样式
  141. color: "#fff", // 字体颜色
  142. // fontSize: "10",
  143. },
  144. right: 30,
  145. icon: "roundRect",
  146. // 小图标的宽高
  147. itemHeight: 5,
  148. },
  149. };
  150. chart.setOption(option);
  151. tools.loopShowTooltip(chart, option, {
  152. nterval: 2000,
  153. loopSeries: true,
  154. });
  155. },
  156. aiQualityECharts2 () {
  157. let chart = echarts.init(document.getElementById("aiQuality2"));
  158. let option = {
  159. grid: {
  160. top: 30,
  161. right: 40,
  162. left: 75,
  163. bottom: 50,
  164. },
  165. tooltip: {
  166. show: true,
  167. trigger: "axis",
  168. axisPointer: {
  169. // 坐标轴指示器,坐标轴触发有效
  170. type: "shadow", // 默认为直线,可选为:'line' | 'shadow'
  171. },
  172. },
  173. xAxis: {
  174. data: ["集团本部", "山焦财务", "山焦担保", "山焦股份", "山焦国华", "山焦机电", "山焦人力", "山焦民爆", "山焦事业", "山焦投资"],
  175. axisTick: {
  176. show: false,
  177. },
  178. // x轴的字体颜色
  179. axisLabel: {
  180. interval: 0,
  181. rotate: 40,
  182. textStyle: {
  183. color: "white",
  184. },
  185. },
  186. //y轴线的颜色以及宽度
  187. axisLine: {
  188. show: true,
  189. lineStyle: {
  190. color: "#1E5389",
  191. width: 1,
  192. type: "solid",
  193. },
  194. },
  195. },
  196. yAxis: {
  197. axisTick: {
  198. lineStyle: {
  199. color: "#18416F",
  200. },
  201. },
  202. // y轴的字体颜色
  203. axisLabel: {
  204. textStyle: {
  205. color: "white",
  206. },
  207. },
  208. splitLine: {
  209. show: true,
  210. lineStyle: {
  211. color: "#204561",
  212. width: 1,
  213. type: "dotted",
  214. },
  215. },
  216. //y轴线的颜色以及宽度
  217. axisLine: {
  218. show: true,
  219. lineStyle: {
  220. color: "#1E5389",
  221. width: 1,
  222. type: "solid",
  223. },
  224. },
  225. },
  226. series: [
  227. {
  228. name: "",
  229. type: "bar",
  230. data: [1200, 680, 562, 268, 717, 843, 987, 126, 723, 569],
  231. showBackground: true,
  232. backgroundStyle: {
  233. color: "#18416F",
  234. },
  235. barWidth: "10%",
  236. itemStyle: {
  237. barBorderRadius: [10, 10, 0, 0],
  238. color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [
  239. {
  240. offset: 0,
  241. color: "#02355C",
  242. }, //柱图渐变色
  243. {
  244. offset: 1,
  245. color: "#40A9FF",
  246. },
  247. ]),
  248. },
  249. }
  250. ],
  251. legend: {
  252. data: ["入池人数", "出池人数"],
  253. textStyle: {
  254. // 图列内容样式
  255. color: "#fff", // 字体颜色
  256. // fontSize: "10",
  257. },
  258. right: 30,
  259. icon: "roundRect",
  260. // 小图标的宽高
  261. itemHeight: 5,
  262. },
  263. };
  264. chart.setOption(option);
  265. tools.loopShowTooltip(chart, option, {
  266. nterval: 2000,
  267. loopSeries: true,
  268. });
  269. },
  270. budgetECharts () {
  271. let chart = echarts.init(document.getElementById("budget"));
  272. let option = {
  273. grid: {
  274. top: 35,
  275. right: 40,
  276. left: 60,
  277. bottom: 50,
  278. },
  279. tooltip: {
  280. show: true,
  281. trigger: "axis",
  282. axisPointer: {
  283. lineStyle: {
  284. color: "#ddd",
  285. },
  286. },
  287. },
  288. legend: {
  289. textStyle: {
  290. // 图列内容样式
  291. color: "#fff", // 字体颜色
  292. // fontSize: "10",
  293. },
  294. right: 30,
  295. icon: "roundRect",
  296. // 小图标的宽高
  297. itemHeight: 5,
  298. },
  299. xAxis: {
  300. type: "category",
  301. data: ["集团公司", "山焦西山", "山焦汾西", "山焦霍州", '山焦山煤', '山焦华晋', '山焦焦化', '山焦民爆'],
  302. boundaryGap: false,
  303. splitLine: {
  304. show: false,
  305. interval: "auto",
  306. },
  307. axisTick: {
  308. show: false,
  309. },
  310. axisLine: {
  311. lineStyle: {
  312. color: "#7ECEF4",
  313. },
  314. },
  315. axisLabel: {
  316. interval: 0,
  317. rotate: 40,
  318. margin: 10,
  319. textStyle: {
  320. // fontSize: 10,
  321. color: "#fff",
  322. },
  323. },
  324. },
  325. yAxis: {
  326. type: "value",
  327. splitLine: {
  328. show: true,
  329. lineStyle: {
  330. color: "#204561",
  331. width: 1,
  332. type: "dotted",
  333. },
  334. },
  335. axisTick: {
  336. show: false,
  337. },
  338. axisLine: {
  339. lineStyle: {
  340. color: "#7ECEF4",
  341. },
  342. },
  343. axisLabel: {
  344. margin: 10,
  345. textStyle: {
  346. fontSize: 10,
  347. color: "#fff",
  348. },
  349. },
  350. },
  351. series: [
  352. {
  353. name: "",
  354. type: "line",
  355. smooth: false,
  356. showSymbol: false,
  357. symbol: "circle",
  358. symbolSize: 6,
  359. data: ["1100", "400", "608", "811", '358', '698', '125', '765'],
  360. areaStyle: {
  361. normal: {
  362. color: new echarts.graphic.LinearGradient(
  363. 0,
  364. 0,
  365. 0,
  366. 1,
  367. [
  368. {
  369. offset: 0,
  370. color: "#40A9FF",
  371. },
  372. {
  373. offset: 1,
  374. color: "#051F41",
  375. },
  376. ],
  377. false
  378. ),
  379. },
  380. },
  381. itemStyle: {
  382. normal: {
  383. color: "#40A9FF",
  384. },
  385. },
  386. lineStyle: {
  387. normal: {
  388. width: 2,
  389. },
  390. },
  391. }
  392. ],
  393. };
  394. chart.setOption(option);
  395. tools.loopShowTooltip(chart, option, {
  396. nterval: 2000,
  397. loopSeries: true,
  398. });
  399. },
  400. salaryECharts () {
  401. let chart = echarts.init(document.getElementById("salary"));
  402. let option = {
  403. grid: {
  404. top: 35,
  405. right: 40,
  406. left: 60,
  407. bottom: 50,
  408. },
  409. tooltip: {
  410. show: true,
  411. trigger: "axis",
  412. axisPointer: {
  413. lineStyle: {
  414. color: "#ddd",
  415. },
  416. },
  417. },
  418. legend: {
  419. textStyle: {
  420. // 图列内容样式
  421. color: "#fff", // 字体颜色
  422. // fontSize: "10",
  423. },
  424. right: 30,
  425. icon: "roundRect",
  426. // 小图标的宽高
  427. itemHeight: 5,
  428. },
  429. xAxis: {
  430. type: "category",
  431. data: ["集团公司", "山焦西山", "山焦汾西", "山焦霍州", '山焦山煤', '山焦华晋', '山焦焦化', '山焦民爆'],
  432. boundaryGap: false,
  433. splitLine: {
  434. show: false,
  435. interval: "auto",
  436. },
  437. axisTick: {
  438. show: false,
  439. },
  440. axisLine: {
  441. lineStyle: {
  442. color: "#7ECEF4",
  443. },
  444. },
  445. axisLabel: {
  446. interval: 0,
  447. rotate: 40,
  448. margin: 10,
  449. textStyle: {
  450. // fontSize: 10,
  451. color: "#fff",
  452. },
  453. },
  454. },
  455. yAxis: {
  456. type: "value",
  457. splitLine: {
  458. show: true,
  459. lineStyle: {
  460. color: "#204561",
  461. width: 1,
  462. type: "dotted",
  463. },
  464. },
  465. axisTick: {
  466. show: false,
  467. },
  468. axisLine: {
  469. lineStyle: {
  470. color: "#7ECEF4",
  471. },
  472. },
  473. axisLabel: {
  474. margin: 10,
  475. textStyle: {
  476. fontSize: 10,
  477. color: "#fff",
  478. },
  479. },
  480. },
  481. series: [
  482. {
  483. name: "",
  484. type: "line",
  485. smooth: false,
  486. showSymbol: false,
  487. symbol: "circle",
  488. symbolSize: 6,
  489. data: ['8000', '5000', '3500', '9000', '6000', '18000', '7500', '4500'],
  490. areaStyle: {
  491. normal: {
  492. color: new echarts.graphic.LinearGradient(
  493. 0,
  494. 0,
  495. 0,
  496. 1,
  497. [
  498. {
  499. offset: 0,
  500. color: "#45DAD1",
  501. },
  502. {
  503. offset: 1,
  504. color: "#051F41",
  505. },
  506. ],
  507. false
  508. ),
  509. },
  510. },
  511. itemStyle: {
  512. normal: {
  513. color: "#45DAD1",
  514. },
  515. },
  516. lineStyle: {
  517. normal: {
  518. width: 2,
  519. },
  520. },
  521. }
  522. ],
  523. };
  524. chart.setOption(option);
  525. tools.loopShowTooltip(chart, option, {
  526. nterval: 2000,
  527. loopSeries: true,
  528. });
  529. },
  530. },
  531. })