Vue.use(scroll) let app = new Vue({ el: "#app", data() { return { title: "内部人才市场双选服务平台", treeList: [ { name: "岗位发布", flag: false, style: { top: "60%", left: "20%", background: "url(./images/humanResources/icon1.png)" }, onStyle: { top: "60%", left: "20%", background: "url(./images/humanResources/icon3.png)" } }, { name: "简历投递", flag: false, style: { top: "22%", left: "28%", background: "url(./images/humanResources/icon2.png)" }, onStyle: { top: "22%", left: "28%", background: "url(./images/humanResources/icon3.png)" } }, { name: "资格审查", flag: true, style: { top: "-80px", left: "calc(50% - 202px)", background: "url(./images/humanResources/icon1.png)" }, onStyle: { top: "-80px", left: "calc(50% - 202px)", background: "url(./images/humanResources/icon3.png)" } }, { name: "综合测评", flag: false, style: { top: "22%", right: "28%", background: "url(./images/humanResources/icon4.png)" }, onStyle: { top: "22%", right: "28%", background: "url(./images/humanResources/icon3.png)" } }, { name: "资格审查", flag: false, style: { top: "60%", right: "20%", background: "url(./images/humanResources/icon5.png)" }, onStyle: { top: "60%", right: "20%", background: "url(./images/humanResources/icon3.png)" } }, ], treeIndex: 0, config1: { waitTime: 2000, header: ["招聘单位", "招聘岗位", "招聘人数", "投递人数", "发布时间"], headerHeight: 55, columnWidth: [230, 170, 100, 100], rowNum: 10, data: [ ["西山煤电屯兰矿", '井下普工', '30', '100', "2023.07.01"], ["西山煤电斜沟煤矿", '井下钻探工', '10', '30', "2023.07.01"], ["汾西矿业高阳煤矿", '井下安全检查员', '5', '10', "2023.07.01"], ["汾西矿业柳湾煤矿", '井下设备管理员', '10', '50', "2023.07.01"], ["霍州煤电辛置煤矿", '矿井维修电工', '10', '30', "2023.07.01"], ["霍州煤电恒兴煤业", '生产调度员', '4', '10', "2023.07.01"], ["霍州煤电吕梁山煤电公司", '汽车驾驶员', '5', '10', "2023.07.01"], ["山煤国际凌志达煤业", '电工', '5', '16', "2023.07.01"], ["华晋焦煤沙曲一号煤矿", '井下普工', '40', '120', "2023.07.01"], ["山西焦化", '技术员', '2', '12', "2023.07.01"], ["汾西矿业高阳煤矿", '井下安全检查员', '5', '10', "2023.07.01"], ], align: ["center", "center", "center", "center", "center"], headerBGC: "#69c1ff2d", oddRowBGC: "rgba(105, 193, 255, 0)", evenRowBGC: "#69c1ff21", }, config2: { waitTime: 2000, header: ["序号", "单位名称", "招聘岗位数"], headerHeight: 55, rowNum: 5, data: [ ["01", "西山煤电", "30个"], ["02", "山煤国际", "25个"], ["03", "汾西矿业", "20个"], ["04", "汾西矿业", "10个"], ["05", "汾西矿业", "8个"], ["06", "汾西矿业", "4个"], ], align: ["center", "center", "center", "center", "center"], headerBGC: "#69c1ff2d", oddRowBGC: "rgba(105, 193, 255, 0)", evenRowBGC: "#69c1ff21", }, targetIndex: 0, classChange: false, listData: [{ 'title': '无缝滚动第一行无缝滚动第一行', 'date': '2017-12-16' }, { 'title': '无缝滚动第二行无缝滚动第二行', 'date': '2017-12-16' }, { 'title': '无缝滚动第三行无缝滚动第三行', 'date': '2017-12-16' }, { 'title': '无缝滚动第四行无缝滚动第四行', 'date': '2017-12-16' }, { 'title': '无缝滚动第五行无缝滚动第五行', 'date': '2017-12-16' }, { 'title': '无缝滚动第六行无缝滚动第六行', 'date': '2017-12-16' }, { 'title': '无缝滚动第七行无缝滚动第七行', 'date': '2017-12-16' }, { 'title': '无缝滚动第八行无缝滚动第八行', 'date': '2017-12-16' }, { 'title': '无缝滚动第九行无缝滚动第九行', 'date': '2017-12-16' }], classOption: { step: 2 }, configMark: { waitTime: 2000, header: ["头像", "姓名", "投递岗位", "时间"], rowNum: 6, headerHeight: 55, // columnWidth: [90, 170, 200, ], data: [ ["", "西山煤电", "71", "3月"], ["", "汾西矿业", "1896", "3月"], ["", "霍州煤电", "847", "3月"], ["", "山煤国际", "514", "3月"], ["", "华晋焦煤", "13", "3月"], ["", "西山煤电", "71", "3月"], ["", "汾西矿业", "1896", "3月"], ["", "霍州煤电", "847", "3月"], ["", "山煤国际", "514", "3月"], ["", "华晋焦煤", "13", "3月"], ], align: ["center", "center", "center", "center", "center"], headerBGC: "#69c1ff2d", oddRowBGC: "rgba(105, 193, 255, 0)", evenRowBGC: "#69c1ff21", }, configInterview: { waitTime: 2000, header: ["序号", "姓名", "会议厅", "场次", "时间"], headerHeight: 55, columnWidth: [70, 120, 170, 100], rowNum: 5, data: [ ["01", '陈英', '第一洽谈室', '第一场', "2023.07.01 09:30-10:30"], ["02", '李小曼', '第一洽谈室', '第一场', "2023.07.01 09:30-10:30"], ["03", '王亮', '第一洽谈室', '第一场', "2023.07.01 09:30-10:30"], ["04", '李鑫', '第一洽谈室', '第一场', "2023.07.01 09:30-10:30"], ["05", '王伟', '第一洽谈室', '第一场', "2023.07.01 09:30-10:30"], ["06", '陈英', '第一洽谈室', '第一场', "2023.07.01 09:30-10:30"], ], align: ["center", "center", "center", "center", "center"], headerBGC: "#69c1ff2d", oddRowBGC: "rgba(105, 193, 255, 0)", evenRowBGC: "#69c1ff21", }, configWritten: { waitTime: 2000, header: ["序号", "姓名", "会议厅", "场次", "时间"], headerHeight: 55, columnWidth: [70, 120, 170, 100], rowNum: 5, data: [ ["01", '陈英', '第一洽谈室', '第一场', "2023.07.01 09:30-10:30"], ["02", '李小曼', '第一洽谈室', '第一场', "2023.07.01 09:30-10:30"], ["03", '王亮', '第一洽谈室', '第一场', "2023.07.01 09:30-10:30"], ["04", '李鑫', '第一洽谈室', '第一场', "2023.07.01 09:30-10:30"], ["05", '王伟', '第一洽谈室', '第一场', "2023.07.01 09:30-10:30"], ["06", '陈英', '第一洽谈室', '第一场', "2023.07.01 09:30-10:30"], ], align: ["center", "center", "center", "center", "center"], headerBGC: "#69c1ff2d", oddRowBGC: "rgba(105, 193, 255, 0)", evenRowBGC: "#69c1ff21", }, mainList: [ { name: "双选场次", value: 30, unit: "场", icon: "../images/humanResources/times.png" }, { name: "参与人数", value: 3000, unit: "人", icon: "../images/humanResources/user.png" } ] } }, mounted() { let that = this; this.$nextTick(() => { let pageBtm = this.$refs.pageBtm this.initDownholeEcharts(pageBtm, { x: downhole.x, y: [downhole.y[0], downhole.y[2], downhole.y[3]] }) setTimeout(() => { let itemContent = document.getElementById("itemContent") let target = itemContent.getElementsByClassName("row-item") let targetList = target.item(0) targetList.style.background = "brown" }, 0) setTimeout(() => { that.classChange = true }, 2000); setInterval(() => { let that = this that.treeList.forEach(item => { item.flag = false }) if (that.treeIndex > that.treeList.length - 1) { that.treeIndex = 0 that.treeList[that.treeIndex].flag = true } else { that.treeList[that.treeIndex].flag = true that.treeIndex = that.treeIndex + 1 } }, 2000) }) }, methods: { initDownholeEcharts(el, data) { this.downhole = echarts.init(el); let series = [] let grid = { top: "15%", bottom: 50,//也可设置left和right设置距离来控制图表的大小 left: "3%", right: "1%" } data.y.forEach(item => { series.push() }); option = { tooltip: { show: true, trigger: 'axis', textStyle: { fontSize: 30, color: '#A3E2F4' }, axisPointer: { // 坐标轴指示器,坐标轴触发有效 type: 'shadow' // 默认为直线,可选为:'line' | 'shadow' } }, grid, legend: { data: ["招聘人数", "报名人数", "录用人数"], align: 'left', itemGap: 50, right: '1%', y: '1%', icon: 'rect', textStyle: { color: "#fff", fontSize: 30 } }, xAxis: { axisTick: { show: false, }, axisLine: { show: false, }, axisLabel: { interval: 0, show: true, fontSize: 30, textStyle: { color: "#fff" //X轴文字颜色 }, }, data: data.x, }, yAxis: { type: "value", name: "人", gridIndex: 0, // splitNumber: 4, splitLine: { show: false, lineStyle: { color: '#A3C0DF', width: 1 }, }, nameTextStyle: { fontSize: 30, }, axisTick: { show: false }, axisLine: { show: false, lineStyle: { color: '#A3C0DF' } }, axisLabel: { show: true, margin: 14, fontSize: 28, textStyle: { color: "#fff" //X轴文字颜色 } }, }, series: [{ type: 'bar', name: "招聘人数", barWidth: 26, itemStyle: { color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [ { offset: 0, color: '#40A9FF', }, { offset: 1, color: '#082049', }, ]), }, data: data.y[0], }, { type: 'bar', name: "报名人数", barWidth: 26, itemStyle: { color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [ { offset: 0, color: '#EAE179', }, { offset: 1, color: '#082049', }, ]), }, data: data.y[1], }, { type: 'bar', name: "录用人数", barWidth: 26, itemStyle: { color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [ { offset: 0, color: '#6A83FF', }, { offset: 1, color: '#082049', }, ]), }, data: data.y[2], }] }; this.downhole.setOption(option); tools.loopShowTooltip(this.downhole, option, { nterval: 2000, loopSeries: true, }); }, scrollChange(index) { // console.log(index); }, }, })