diff --git a/src/utils/request.js b/src/utils/request.js index 1ed898f..2b1936a 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -3,7 +3,7 @@ import { ElMessage } from "element-plus"; import tools from "@/utils/tools"; import router from "../router"; -axios.defaults.baseURL = 'https://jzzf.longyou.gov.cn:998/' +// axios.defaults.baseURL = 'https://jzzf.longyou.gov.cn:998/' axios.defaults.timeout = 120000; // HTTP request 拦截器 diff --git a/src/view/person/rwTable.vue b/src/view/person/rwTable.vue index f082217..6c7ef0b 100644 --- a/src/view/person/rwTable.vue +++ b/src/view/person/rwTable.vue @@ -61,14 +61,32 @@
+ - + +
{ } else { if (search1.date == null) { search1.date = ""; + search1.date1 = ""; throttle(getRegisteredDB, 50); } else { getRegisteredDB(); - console.log(search); } } }; @@ -302,7 +321,7 @@ const getDate = () => { const getRegisteredDB = () => { http .get( - `/api/ggfwyth/pg/zcdbry?size=${data.pagination1.pageSize}&page=${data.pagination1.current}&name=${search1.name}&jzrq=${search1.date}` + `/api/ggfwyth/pg/zcdbry?size=${data.pagination1.pageSize}&page=${data.pagination1.current}&name=${search1.name}&startTime=${search1.date}&endTime=${search1.date1}` ) .then((res) => { if (res.code == 200) { diff --git a/vite.config.js b/vite.config.js index be26ac7..5c41c63 100644 --- a/vite.config.js +++ b/vite.config.js @@ -15,8 +15,8 @@ export default defineConfig({ // 第一个代理 "/api": { // 匹配到啥来进行方向代理 - // target: "http://10.0.0.7:8095/", //刘进 - target: "https://jzzf.longyou.gov.cn:998/", //线上 + target: "http://10.0.0.7:8095/", //刘进 + // target: "https://jzzf.longyou.gov.cn:998/", //线上 // target: "http://220.191.238.50:996/", //线上 // target: "https://zzdyyfb.dsjj.qz.gov.cn/web/mgop/gov-open/zj/2002428903/reserved/", //线上 changeOrigin: true, //是否支持跨域