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

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

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

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

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

@ -3,20 +3,20 @@ import router from "@/router";
import Cookies from "js-cookie";
// import Vue from "vue";
// const baseURL = "http://1shoudan.com"; // 正式环境线上
// const baseURL = "http://idaotian.com"; // 正式环境线上
const baseURL = "http://idaotian.com"; // 正式环境线上
// const baseURL = "http://idagou.cn"; // 正式环境线上
// console.log(baseURL);
// const baseURL = "https://d.matripe.com.cn"; // 正式环境本地
// const baseURL = "http://bl7.matripe.com.cn:8001"; // 测试环境本地
// const baseURL = "http://1shoudan.renminshitang.com.cn"; // 测试环境线上
const baseURL = "http://localhost:8001";
// const baseURL = "http://localhost:8001";
// const data1 = require.context("./", false, /\.js$/); // 测试用
// console.log(data1.keys());
axios.defaults.withCredentials = true; //添加这行代码
// console.log(axios);
const service = axios.create({
// baseURL: "/api_prod", // url = base url + request url 测试
baseURL: baseURL, // baseURL: "/api", // url = base url + request url 正式
baseURL: "/api_prod", // url = base url + request url 测试
// baseURL: baseURL, // baseURL: "/api", // url = base url + request url 正式
withCredentials: true, // send cookies when cross-domain requests
timeout: 60000, // request timeout
crossDomain: true,
@ -24,21 +24,22 @@ const service = axios.create({
service.interceptors.response.use(
(response) => {
const { msg, status } = response.data;
return response;
// 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;
} else {
// Message.error(message)
return Promise.reject(new Error(msg));
}
// 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;
// } else {
// // Message.error(message)
// return Promise.reject(new Error(msg));
// }
},
(error) => {
console.log(error);

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

Loading…
Cancel
Save