cyl/dev
wangxia 3 years ago
parent dc8cdf113e
commit 05e821dd75

@ -46,7 +46,6 @@
"vue-template-compiler": "^2.6.11" "vue-template-compiler": "^2.6.11"
}, },
"gitHooks": { "gitHooks": {
"pre-commit": "lint-staged"
}, },
"lint-staged": { "lint-staged": {
"*.{js,jsx,vue}": [ "*.{js,jsx,vue}": [

@ -1014,6 +1014,7 @@ export default {
this.getHotCity(); this.getHotCity();
this.getCityWhichHasJob(); this.getCityWhichHasJob();
this.getHotStore(); this.getHotStore();
this.hideFilterContent();
}, },
/** /**
* el 被新创建的 vm.el 替换并挂载到实例上去之后调用该钩子 * el 被新创建的 vm.el 替换并挂载到实例上去之后调用该钩子
@ -1166,7 +1167,7 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
let fileterContent = document.querySelector(".filter-content"); let fileterContent = document.querySelector(".filter-content");
this.filterHeight = fileterContent.scrollHeight; this.filterHeight = fileterContent.scrollHeight;
fileterContent.style.height = this.filterHeight + "px"; // fileterContent.style.height = this.filterHeight + "px";
}); });
}); });
} else { } else {
@ -1196,7 +1197,7 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
let fileterContent = document.querySelector(".filter-content"); let fileterContent = document.querySelector(".filter-content");
this.filterHeight = fileterContent.scrollHeight; this.filterHeight = fileterContent.scrollHeight;
fileterContent.style.height = this.filterHeight + "px"; // fileterContent.style.height = this.filterHeight + "px";
}); });
} }
} else { } else {
@ -1225,7 +1226,7 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
let fileterContent = document.querySelector(".filter-content"); let fileterContent = document.querySelector(".filter-content");
this.filterHeight = fileterContent.scrollHeight; this.filterHeight = fileterContent.scrollHeight;
fileterContent.style.height = this.filterHeight + "px"; // fileterContent.style.height = this.filterHeight + "px";
}); });
}); });
} }
@ -1644,15 +1645,21 @@ export default {
// console.log(item); // console.log(item);
// }, // },
hideFilterContent() { hideFilterContent() {
setTimeout(() => {
let fileterContent = document.querySelector(".filter-content"); let fileterContent = document.querySelector(".filter-content");
console.log(fileterContent);
// fileterContent.style.transition = 'all .2s' // fileterContent.style.transition = 'all .2s'
if (this.filterStatus == 0) { if (this.filterStatus == 0) {
console.log("is in the 0 zone");
this.filterStatus = 1; this.filterStatus = 1;
fileterContent.style.height = "0px"; fileterContent.style.height = "0px";
} else { } else {
console.log("is in the 1 zone");
this.filterStatus = 0; this.filterStatus = 0;
fileterContent.style.height = this.filterHeight + "px"; fileterContent.style.height = this.filterHeight + "px";
} }
}, 0);
}, },
}, },
}; };

@ -169,7 +169,10 @@
</div> </div>
</li> </li>
<li> <li>
<span>{{ item.statusTag }}</span <span
style="color: #ff4400; cursor: pointer"
@click="showDetail(item)"
>{{ item.statusTag }}</span
><span v-show="item.statusShowTime" ><span v-show="item.statusShowTime"
>{{ item.statusTimeInfo }}: {{ item.statusShowTime }}</span >{{ item.statusTimeInfo }}: {{ item.statusShowTime }}</span
> >
@ -755,6 +758,12 @@ export default {
} }
// console.log(e); // console.log(e);
}, },
/*
显示报名详情
*/
showDetail(item) {
console.log(item);
},
}, },
}; };
</script> </script>

@ -59,6 +59,13 @@
:rowKey="(record) => record.index" :rowKey="(record) => record.index"
> >
<a slot="name" slot-scope="text">{{ text }}</a> <a slot="name" slot-scope="text">{{ text }}</a>
<a
slot="userDetail"
style="color: #ff4400"
slot-scope="text, text1"
@click="toDetail(text1)"
>详情</a
>
</a-table> </a-table>
<div class="pagecontainer"> <div class="pagecontainer">
<a-pagination <a-pagination
@ -191,6 +198,16 @@ export default {
// ellipsis: true, // ellipsis: true,
width: 150, width: 150,
}, },
{
title: "操作",
dataIndex: "userDetail",
key: "userDetail",
scopedSlots: { customRender: "userDetail" },
// sortOrder: sortedInfo.columnKey == "userApplyOrder" && sortedInfo.order,
// ellipsis: true,
width: 60,
},
]; ];
console.log(sortedInfo); console.log(sortedInfo);
return columns; return columns;
@ -333,6 +350,12 @@ export default {
} }
this.getTownsman(); this.getTownsman();
}, },
/*
前往详情页
*/
toDetail(e) {
console.log(e);
},
}, },
}; };
</script> </script>

@ -3,20 +3,20 @@ import router from "@/router";
import Cookies from "js-cookie"; import Cookies from "js-cookie";
// import Vue from "vue"; // import Vue from "vue";
// const baseURL = "http://1shoudan.com"; // 正式环境线上 // const baseURL = "http://1shoudan.com"; // 正式环境线上
// const baseURL = "http://idaotian.com"; // 正式环境线上 const baseURL = "http://idaotian.com"; // 正式环境线上
// const baseURL = "http://idagou.cn"; // 正式环境线上 // const baseURL = "http://idagou.cn"; // 正式环境线上
// console.log(baseURL); // console.log(baseURL);
// const baseURL = "https://d.matripe.com.cn"; // 正式环境本地 // const baseURL = "https://d.matripe.com.cn"; // 正式环境本地
// const baseURL = "http://bl7.matripe.com.cn:8001"; // 测试环境本地 // const baseURL = "http://bl7.matripe.com.cn:8001"; // 测试环境本地
// const baseURL = "http://1shoudan.renminshitang.com.cn"; // 测试环境线上 // const baseURL = "http://1shoudan.renminshitang.com.cn"; // 测试环境线上
const baseURL = "http://localhost:8001"; // const baseURL = "http://localhost:8001";
// const data1 = require.context("./", false, /\.js$/); // 测试用 // const data1 = require.context("./", false, /\.js$/); // 测试用
// console.log(data1.keys()); // console.log(data1.keys());
axios.defaults.withCredentials = true; //添加这行代码 axios.defaults.withCredentials = true; //添加这行代码
// console.log(axios); // console.log(axios);
const service = axios.create({ const service = axios.create({
// baseURL: "/api_prod", // url = base url + request url 测试 baseURL: "/api_prod", // url = base url + request url 测试
baseURL: baseURL, // baseURL: "/api", // url = base url + request url 正式 // baseURL: baseURL, // baseURL: "/api", // url = base url + request url 正式
withCredentials: true, // send cookies when cross-domain requests withCredentials: true, // send cookies when cross-domain requests
timeout: 60000, // request timeout timeout: 60000, // request timeout
crossDomain: true, crossDomain: true,
@ -24,21 +24,22 @@ const service = axios.create({
service.interceptors.response.use( service.interceptors.response.use(
(response) => { (response) => {
const { msg, status } = response.data; const { msg, status } = response.data;
// console.log(status) ;
if (status == 9999) {
sessionStorage.removeItem("LOGIN_DATA");
Cookies.remove("LOGIN_DATA");
router.push("/login");
// 跳转到登录页面
// this.$message.warning(msg);
return Promise.reject(new Error("token过期"));
}
if (response.status === 200) {
return response; return response;
} else { // console.log(status) ;
// Message.error(message) // if (status == 9999) {
return Promise.reject(new Error(msg)); // sessionStorage.removeItem("LOGIN_DATA");
} // Cookies.remove("LOGIN_DATA");
// router.push("/login");
// // 跳转到登录页面
// // this.$message.warning(msg);
// return Promise.reject(new Error("token过期"));
// }
// if (response.status === 200) {
// return response;
// } else {
// // Message.error(message)
// return Promise.reject(new Error(msg));
// }
}, },
(error) => { (error) => {
console.log(error); console.log(error);

@ -32,9 +32,10 @@ module.exports = {
// 地址中有 /api 的时候会触发代理 // 地址中有 /api 的时候会触发代理
"/api_prod": { "/api_prod": {
// target: "http://localhost:8001/", // target: "http://localhost:8001/",
// target: "http://bl7.matripe.com.cn:8001", target: "http://bl7.matripe.com.cn:8001",
// target: "http://1shoudan.renminshitang.com.cn", // target: "http://1shoudan.renminshitang.com.cn",
target: "https://idaotian.com", // target: "https://idaotian.com",
// target: "https://d.matripe.com.cn",
ws: true, // proxy websockets ws: true, // proxy websockets
changeOrigin: true, // 确定是否跨域 changeOrigin: true, // 确定是否跨域
pathRewrite: { pathRewrite: {
@ -46,6 +47,7 @@ module.exports = {
// target: "http://bl7.matripe.com.cn:8001", // target: "http://bl7.matripe.com.cn:8001",
// target: "http://1shoudan.renminshitang.com.cn", // target: "http://1shoudan.renminshitang.com.cn",
target: "https://idaotian.com", target: "https://idaotian.com",
// target: "https://d.matripe.com.cn",
ws: true, // proxy websockets ws: true, // proxy websockets
changeOrigin: true, // 确定是否跨域 changeOrigin: true, // 确定是否跨域
pathRewrite: { pathRewrite: {

Loading…
Cancel
Save