|
|
|
|
@ -306,6 +306,21 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
this.showfooter();
|
|
|
|
|
},
|
|
|
|
|
$route: {
|
|
|
|
|
handler(to, from) {
|
|
|
|
|
console.log("ischange");
|
|
|
|
|
console.log(to);
|
|
|
|
|
console.log(from);
|
|
|
|
|
window.addEventListener("scroll", this.windowScroll); //监听页面滚动
|
|
|
|
|
if (to.fullPath == "/list") {
|
|
|
|
|
return;
|
|
|
|
|
} else {
|
|
|
|
|
window.removeEventListener("scroll", this.windowScroll);
|
|
|
|
|
console.log("isremove");
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
deep: true,
|
|
|
|
|
},
|
|
|
|
|
// isLogin() {
|
|
|
|
|
// this.isLogin = JSON.parse(localStorage.getItem("LOGIN_DATA"));
|
|
|
|
|
// console.log(this.isLogin);
|
|
|
|
|
@ -334,11 +349,41 @@ export default {
|
|
|
|
|
sessionStorage.getItem("LOGIN_DATA") !== null
|
|
|
|
|
? JSON.parse(sessionStorage.getItem("LOGIN_DATA"))
|
|
|
|
|
: { tel: "" };
|
|
|
|
|
console.log(this.loginValue);
|
|
|
|
|
// console.log(this.loginValue);
|
|
|
|
|
// console.log(document.querySelector(".ant-pagination-options-quick-jumper"));
|
|
|
|
|
},
|
|
|
|
|
// 组件方法
|
|
|
|
|
methods: {
|
|
|
|
|
/**
|
|
|
|
|
* 处理后台返回的职位列表
|
|
|
|
|
*/
|
|
|
|
|
windowScroll() {
|
|
|
|
|
// console.log(e);
|
|
|
|
|
let scrollTop =
|
|
|
|
|
window.pageYOffset ||
|
|
|
|
|
document.documentElement.scrollTop ||
|
|
|
|
|
document.body.scrollTop;
|
|
|
|
|
// console.log(scrollTop); // 获取到页面滚动的值,
|
|
|
|
|
let navigation = document.getElementById("navigation");
|
|
|
|
|
let content = document.getElementById("maincontent");
|
|
|
|
|
// let filterbox = document.querySelector(".w");
|
|
|
|
|
// console.log(filterbox);
|
|
|
|
|
// console.log(content);
|
|
|
|
|
// let left = ("100vw" - "1200px") / 2;
|
|
|
|
|
if (this.$route.fullPath == "/list") {
|
|
|
|
|
if (scrollTop >= 81) {
|
|
|
|
|
navigation.style.position = "fixed";
|
|
|
|
|
navigation.style.top = "0px";
|
|
|
|
|
navigation.style.boxShadow = "2px 2px 4px 0px rgba(0,0,0,0.05)";
|
|
|
|
|
content.style.marginTop = "90px";
|
|
|
|
|
} else {
|
|
|
|
|
navigation.style.position = "relative";
|
|
|
|
|
navigation.style.right = "0";
|
|
|
|
|
content.style.marginTop = "16px";
|
|
|
|
|
navigation.style.boxShadow = "none";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// 获取工作列表
|
|
|
|
|
async getJobList(newdata) {
|
|
|
|
|
this.isspinning = true;
|
|
|
|
|
@ -355,7 +400,7 @@ export default {
|
|
|
|
|
total: null, //分页配置
|
|
|
|
|
};
|
|
|
|
|
for (var k in this.formvalue) {
|
|
|
|
|
console.log(this.formvalue[k]);
|
|
|
|
|
// console.log(this.formvalue[k]);
|
|
|
|
|
if (Array.isArray(this.formvalue[k])) {
|
|
|
|
|
newdata[k] =
|
|
|
|
|
this.formvalue[k].length > 0 ? this.formvalue[k].join() : "";
|
|
|
|
|
@ -363,23 +408,23 @@ export default {
|
|
|
|
|
newdata[k] = this.formvalue[k];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
console.log(newdata);
|
|
|
|
|
// console.log(newdata);
|
|
|
|
|
// debugger;
|
|
|
|
|
console.log(this.isLogin);
|
|
|
|
|
// console.log(this.isLogin);
|
|
|
|
|
if (this.isLogin) {
|
|
|
|
|
const { data } = await JobListApi(newdata);
|
|
|
|
|
console.log(data);
|
|
|
|
|
// console.log(data);
|
|
|
|
|
if (data.status === 200) {
|
|
|
|
|
this.jobMainList = disposeJobListData(data.data.recordList);
|
|
|
|
|
this.formvalue.total = data.data.recordCount;
|
|
|
|
|
console.log(this.jobMainList);
|
|
|
|
|
// console.log(this.jobMainList);
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.info("数据获取失败");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
this.totop();
|
|
|
|
|
// = data.data.recordList;
|
|
|
|
|
console.log(this.formvalue);
|
|
|
|
|
// console.log(this.formvalue);
|
|
|
|
|
} catch (error) {
|
|
|
|
|
console.log(error);
|
|
|
|
|
}
|
|
|
|
|
@ -413,9 +458,9 @@ export default {
|
|
|
|
|
pageSize: 4,
|
|
|
|
|
jobCategory: 608,
|
|
|
|
|
});
|
|
|
|
|
console.log(data);
|
|
|
|
|
// console.log(data);
|
|
|
|
|
this.fellowList = disposeJobListData(data.data.recordList);
|
|
|
|
|
console.log(this.fellowList);
|
|
|
|
|
// console.log(this.fellowList);
|
|
|
|
|
}
|
|
|
|
|
// this.$emit("update:relationList", this.relationList);
|
|
|
|
|
} catch (error) {
|
|
|
|
|
|