humanResources.js 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419
  1. Vue.use(scroll)
  2. let app = new Vue({
  3. el: "#app",
  4. data() {
  5. return {
  6. title: "内部人才市场双选服务平台",
  7. treeList: [
  8. {
  9. name: "岗位发布",
  10. flag: false,
  11. style: {
  12. top: "60%",
  13. left: "20%",
  14. background: "url(./images/humanResources/icon1.png)"
  15. },
  16. onStyle: {
  17. top: "60%",
  18. left: "20%",
  19. background: "url(./images/humanResources/icon3.png)"
  20. }
  21. },
  22. {
  23. name: "简历投递",
  24. flag: false,
  25. style: {
  26. top: "22%",
  27. left: "28%",
  28. background: "url(./images/humanResources/icon2.png)"
  29. },
  30. onStyle: {
  31. top: "22%",
  32. left: "28%",
  33. background: "url(./images/humanResources/icon3.png)"
  34. }
  35. },
  36. {
  37. name: "资格审查",
  38. flag: true,
  39. style: {
  40. top: "-80px",
  41. left: "calc(50% - 202px)",
  42. background: "url(./images/humanResources/icon1.png)"
  43. },
  44. onStyle: {
  45. top: "-80px",
  46. left: "calc(50% - 202px)",
  47. background: "url(./images/humanResources/icon3.png)"
  48. }
  49. },
  50. {
  51. name: "综合测评",
  52. flag: false,
  53. style: {
  54. top: "22%",
  55. right: "28%",
  56. background: "url(./images/humanResources/icon4.png)"
  57. },
  58. onStyle: {
  59. top: "22%",
  60. right: "28%",
  61. background: "url(./images/humanResources/icon3.png)"
  62. }
  63. },
  64. {
  65. name: "资格审查",
  66. flag: false,
  67. style: {
  68. top: "60%",
  69. right: "20%",
  70. background: "url(./images/humanResources/icon5.png)"
  71. },
  72. onStyle: {
  73. top: "60%",
  74. right: "20%",
  75. background: "url(./images/humanResources/icon3.png)"
  76. }
  77. },
  78. ],
  79. treeIndex: 0,
  80. config1: {
  81. waitTime: 2000,
  82. header: ["招聘单位", "招聘岗位", "招聘人数", "投递人数", "发布时间"],
  83. headerHeight: 55,
  84. columnWidth: [230, 170, 100, 100],
  85. rowNum: 10,
  86. data: [
  87. ["西山煤电屯兰矿", '井下普工', '30', '100', "2023.07.01"],
  88. ["西山煤电斜沟煤矿", '井下钻探工', '10', '30', "2023.07.01"],
  89. ["汾西矿业高阳煤矿", '井下安全检查员', '5', '10', "2023.07.01"],
  90. ["汾西矿业柳湾煤矿", '井下设备管理员', '10', '50', "2023.07.01"],
  91. ["霍州煤电辛置煤矿", '矿井维修电工', '10', '30', "2023.07.01"],
  92. ["霍州煤电恒兴煤业", '生产调度员', '4', '10', "2023.07.01"],
  93. ["霍州煤电吕梁山煤电公司", '汽车驾驶员', '5', '10', "2023.07.01"],
  94. ["山煤国际凌志达煤业", '电工', '5', '16', "2023.07.01"],
  95. ["华晋焦煤沙曲一号煤矿", '井下普工', '40', '120', "2023.07.01"],
  96. ["山西焦化", '技术员', '2', '12', "2023.07.01"],
  97. ["汾西矿业高阳煤矿", '井下安全检查员', '5', '10', "2023.07.01"],
  98. ],
  99. align: ["center", "center", "center", "center", "center"],
  100. headerBGC: "#69c1ff2d",
  101. oddRowBGC: "rgba(105, 193, 255, 0)",
  102. evenRowBGC: "#69c1ff21",
  103. },
  104. config2: {
  105. waitTime: 2000,
  106. header: ["序号", "单位名称", "招聘岗位数"],
  107. headerHeight: 55,
  108. rowNum: 5,
  109. data: [
  110. ["<span class='yellow'>01</span>", "<span class='yellow'>西山煤电</span>", "<span class='yellow'>30个</span>"],
  111. ["<span class='red'>02</span>", "<span class='red'>山煤国际</span>", "<span class='red'>25个</span>"],
  112. ["<span class='green'>03</span>", "<span class='green'>汾西矿业</span>", "<span class='green'>20个</span>"],
  113. ["04", "汾西矿业", "10个"],
  114. ["05", "汾西矿业", "8个"],
  115. ["06", "汾西矿业", "4个"],
  116. ],
  117. align: ["center", "center", "center", "center", "center"],
  118. headerBGC: "#69c1ff2d",
  119. oddRowBGC: "rgba(105, 193, 255, 0)",
  120. evenRowBGC: "#69c1ff21",
  121. },
  122. targetIndex: 0,
  123. classChange: false,
  124. listData: [{
  125. 'title': '无缝滚动第一行无缝滚动第一行',
  126. 'date': '2017-12-16'
  127. }, {
  128. 'title': '无缝滚动第二行无缝滚动第二行',
  129. 'date': '2017-12-16'
  130. }, {
  131. 'title': '无缝滚动第三行无缝滚动第三行',
  132. 'date': '2017-12-16'
  133. }, {
  134. 'title': '无缝滚动第四行无缝滚动第四行',
  135. 'date': '2017-12-16'
  136. }, {
  137. 'title': '无缝滚动第五行无缝滚动第五行',
  138. 'date': '2017-12-16'
  139. }, {
  140. 'title': '无缝滚动第六行无缝滚动第六行',
  141. 'date': '2017-12-16'
  142. }, {
  143. 'title': '无缝滚动第七行无缝滚动第七行',
  144. 'date': '2017-12-16'
  145. }, {
  146. 'title': '无缝滚动第八行无缝滚动第八行',
  147. 'date': '2017-12-16'
  148. }, {
  149. 'title': '无缝滚动第九行无缝滚动第九行',
  150. 'date': '2017-12-16'
  151. }],
  152. classOption: {
  153. step: 2
  154. },
  155. configMark: {
  156. waitTime: 2000,
  157. header: ["头像", "姓名", "投递岗位", "时间"],
  158. rowNum: 6,
  159. headerHeight: 55,
  160. // columnWidth: [90, 170, 200, ],
  161. data: [
  162. ["<img class='list_img' src='https://www.bootcdn.cn/assets/img/m-react.png' alt=''>", "<span class=''>西山煤电</span>", "<span class=''>71</span>", "<span class=''>3月</span>"],
  163. ["<img class='list_img' src='https://www.bootcdn.cn/assets/img/m-react.png' alt=''>", "<span class=''>汾西矿业</span>", "<span class=''>1896</span>", "<span class=''>3月</span>"],
  164. ["<img class='list_img' src='https://www.bootcdn.cn/assets/img/m-react.png' alt=''>", "<span class=''>霍州煤电</span>", "<span class=''>847</span>", "<span class=''>3月</span>"],
  165. ["<img class='list_img' src='https://www.bootcdn.cn/assets/img/m-react.png' alt=''>", "<span class=''>山煤国际</span>", "<span class=''>514</span>", "<span class=''>3月</span>"],
  166. ["<img class='list_img' src='https://www.bootcdn.cn/assets/img/m-react.png' alt=''>", "<span class=''>华晋焦煤</span>", "<span class=''>13</span>", "<span class=''>3月</span>"],
  167. ["<img class='list_img' src='https://www.bootcdn.cn/assets/img/m-react.png' alt=''>", "<span class=''>西山煤电</span>", "<span class=''>71</span>", "<span class=''>3月</span>"],
  168. ["<img class='list_img' src='https://www.bootcdn.cn/assets/img/m-react.png' alt=''>", "<span class=''>汾西矿业</span>", "<span class=''>1896</span>", "<span class=''>3月</span>"],
  169. ["<img class='list_img' src='https://www.bootcdn.cn/assets/img/m-react.png' alt=''>", "<span class=''>霍州煤电</span>", "<span class=''>847</span>", "<span class=''>3月</span>"],
  170. ["<img class='list_img' src='https://www.bootcdn.cn/assets/img/m-react.png' alt=''>", "<span class=''>山煤国际</span>", "<span class=''>514</span>", "<span class=''>3月</span>"],
  171. ["<img class='list_img' src='https://www.bootcdn.cn/assets/img/m-react.png' alt=''>", "<span class=''>华晋焦煤</span>", "<span class=''>13</span>", "<span class=''>3月</span>"],
  172. ],
  173. align: ["center", "center", "center", "center", "center"],
  174. headerBGC: "#69c1ff2d",
  175. oddRowBGC: "rgba(105, 193, 255, 0)",
  176. evenRowBGC: "#69c1ff21",
  177. },
  178. configInterview: {
  179. waitTime: 2000,
  180. header: ["序号", "姓名", "会议厅", "场次", "时间"],
  181. headerHeight: 55,
  182. columnWidth: [70, 120, 170, 100],
  183. rowNum: 5,
  184. data: [
  185. ["01", '陈英', '第一洽谈室', '第一场', "2023.07.01 09:30-10:30"],
  186. ["02", '李小曼', '第一洽谈室', '第一场', "2023.07.01 09:30-10:30"],
  187. ["03", '王亮', '第一洽谈室', '第一场', "2023.07.01 09:30-10:30"],
  188. ["04", '李鑫', '第一洽谈室', '第一场', "2023.07.01 09:30-10:30"],
  189. ["05", '王伟', '第一洽谈室', '第一场', "2023.07.01 09:30-10:30"],
  190. ["06", '陈英', '第一洽谈室', '第一场', "2023.07.01 09:30-10:30"],
  191. ],
  192. align: ["center", "center", "center", "center", "center"],
  193. headerBGC: "#69c1ff2d",
  194. oddRowBGC: "rgba(105, 193, 255, 0)",
  195. evenRowBGC: "#69c1ff21",
  196. },
  197. configWritten: {
  198. waitTime: 2000,
  199. header: ["序号", "姓名", "会议厅", "场次", "时间"],
  200. headerHeight: 55,
  201. columnWidth: [70, 120, 170, 100],
  202. rowNum: 5,
  203. data: [
  204. ["01", '陈英', '第一洽谈室', '第一场', "2023.07.01 09:30-10:30"],
  205. ["02", '李小曼', '第一洽谈室', '第一场', "2023.07.01 09:30-10:30"],
  206. ["03", '王亮', '第一洽谈室', '第一场', "2023.07.01 09:30-10:30"],
  207. ["04", '李鑫', '第一洽谈室', '第一场', "2023.07.01 09:30-10:30"],
  208. ["05", '王伟', '第一洽谈室', '第一场', "2023.07.01 09:30-10:30"],
  209. ["06", '陈英', '第一洽谈室', '第一场', "2023.07.01 09:30-10:30"],
  210. ],
  211. align: ["center", "center", "center", "center", "center"],
  212. headerBGC: "#69c1ff2d",
  213. oddRowBGC: "rgba(105, 193, 255, 0)",
  214. evenRowBGC: "#69c1ff21",
  215. },
  216. mainList: [
  217. {
  218. name: "双选场次",
  219. value: 30,
  220. unit: "场",
  221. icon: "../images/humanResources/times.png"
  222. },
  223. {
  224. name: "参与人数",
  225. value: 3000,
  226. unit: "人",
  227. icon: "../images/humanResources/user.png"
  228. }
  229. ]
  230. }
  231. },
  232. mounted() {
  233. let that = this;
  234. this.$nextTick(() => {
  235. let pageBtm = this.$refs.pageBtm
  236. this.initDownholeEcharts(pageBtm, { x: downhole.x, y: [downhole.y[0], downhole.y[2], downhole.y[3]] })
  237. setTimeout(() => {
  238. let itemContent = document.getElementById("itemContent")
  239. let target = itemContent.getElementsByClassName("row-item")
  240. let targetList = target.item(0)
  241. targetList.style.background = "brown"
  242. }, 0)
  243. setTimeout(() => {
  244. that.classChange = true
  245. }, 2000);
  246. setInterval(() => {
  247. let that = this
  248. that.treeList.forEach(item => {
  249. item.flag = false
  250. })
  251. if (that.treeIndex > that.treeList.length - 1) {
  252. that.treeIndex = 0
  253. that.treeList[that.treeIndex].flag = true
  254. } else {
  255. that.treeList[that.treeIndex].flag = true
  256. that.treeIndex = that.treeIndex + 1
  257. }
  258. }, 2000)
  259. })
  260. },
  261. methods: {
  262. initDownholeEcharts(el, data) {
  263. this.downhole = echarts.init(el);
  264. let series = []
  265. let grid = {
  266. top: "15%",
  267. bottom: 50,//也可设置left和right设置距离来控制图表的大小
  268. left: "3%",
  269. right: "1%"
  270. }
  271. data.y.forEach(item => {
  272. series.push()
  273. });
  274. option = {
  275. tooltip: {
  276. show: true,
  277. trigger: 'axis',
  278. textStyle: {
  279. fontSize: 30,
  280. color: '#A3E2F4'
  281. },
  282. axisPointer: { // 坐标轴指示器,坐标轴触发有效
  283. type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
  284. }
  285. },
  286. grid,
  287. legend: {
  288. data: ["招聘人数", "报名人数", "录用人数"],
  289. align: 'left',
  290. itemGap: 50,
  291. right: '1%',
  292. y: '1%',
  293. icon: 'rect',
  294. textStyle: {
  295. color: "#fff",
  296. fontSize: 30
  297. }
  298. },
  299. xAxis: {
  300. axisTick: {
  301. show: false,
  302. },
  303. axisLine: {
  304. show: false,
  305. },
  306. axisLabel: {
  307. interval: 0,
  308. show: true,
  309. fontSize: 30,
  310. textStyle: {
  311. color: "#fff" //X轴文字颜色
  312. },
  313. },
  314. data: data.x,
  315. },
  316. yAxis: {
  317. type: "value",
  318. name: "人",
  319. gridIndex: 0,
  320. // splitNumber: 4,
  321. splitLine: {
  322. show: false,
  323. lineStyle: {
  324. color: '#A3C0DF',
  325. width: 1
  326. },
  327. },
  328. nameTextStyle: {
  329. fontSize: 30,
  330. },
  331. axisTick: {
  332. show: false
  333. },
  334. axisLine: {
  335. show: false,
  336. lineStyle: {
  337. color: '#A3C0DF'
  338. }
  339. },
  340. axisLabel: {
  341. show: true,
  342. margin: 14,
  343. fontSize: 28,
  344. textStyle: {
  345. color: "#fff" //X轴文字颜色
  346. }
  347. },
  348. },
  349. series: [{
  350. type: 'bar',
  351. name: "招聘人数",
  352. barWidth: 26,
  353. itemStyle: {
  354. color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [
  355. {
  356. offset: 0,
  357. color: '#40A9FF',
  358. },
  359. {
  360. offset: 1,
  361. color: '#082049',
  362. },
  363. ]),
  364. },
  365. data: data.y[0],
  366. }, {
  367. type: 'bar',
  368. name: "报名人数",
  369. barWidth: 26,
  370. itemStyle: {
  371. color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [
  372. {
  373. offset: 0,
  374. color: '#EAE179',
  375. },
  376. {
  377. offset: 1,
  378. color: '#082049',
  379. },
  380. ]),
  381. },
  382. data: data.y[1],
  383. }, {
  384. type: 'bar',
  385. name: "录用人数",
  386. barWidth: 26,
  387. itemStyle: {
  388. color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [
  389. {
  390. offset: 0,
  391. color: '#6A83FF',
  392. },
  393. {
  394. offset: 1,
  395. color: '#082049',
  396. },
  397. ]),
  398. },
  399. data: data.y[2],
  400. }]
  401. };
  402. this.downhole.setOption(option);
  403. tools.loopShowTooltip(this.downhole, option, {
  404. nterval: 2000,
  405. loopSeries: true,
  406. });
  407. },
  408. scrollChange(index) {
  409. // console.log(index);
  410. },
  411. },
  412. })