This commit is contained in:
parent
db72c7c983
commit
f8516040b8
|
@ -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 拦截器
|
||||
|
|
|
@ -61,14 +61,32 @@
|
|||
</div>
|
||||
<div class="select_item">
|
||||
<el-date-picker
|
||||
style="width: 100%"
|
||||
style="width: 46%"
|
||||
v-model="search1.date"
|
||||
type="date"
|
||||
placeholder="选择时间"
|
||||
placeholder="开始时间"
|
||||
format="YYYY-MM-DD"
|
||||
value-format="YYYY-MM-DD"
|
||||
@change="searchT('date')"
|
||||
/>
|
||||
<span class="demonstration"> - </span>
|
||||
<el-date-picker
|
||||
style="width: 46%"
|
||||
v-model="search1.date1"
|
||||
type="date"
|
||||
placeholder="结束时间"
|
||||
format="YYYY-MM-DD"
|
||||
value-format="YYYY-MM-DD"
|
||||
@change="searchT('date')"
|
||||
/>
|
||||
<!-- <el-date-picker
|
||||
style="width: 100%"
|
||||
:size="size"
|
||||
type="daterange"
|
||||
v-model="search1.date"
|
||||
start-placeholder="开始时间"
|
||||
end-placeholder="结束时间"
|
||||
/> -->
|
||||
</div>
|
||||
</div>
|
||||
<el-table
|
||||
|
@ -103,7 +121,7 @@
|
|||
class="mt-4"
|
||||
background
|
||||
layout="prev, pager, next"
|
||||
:pager-count="5"
|
||||
:pager-count="5"
|
||||
:page-size="data.pagination1.pageSize"
|
||||
:total="data.pagination1.total"
|
||||
:current-page="data.pagination1.current"
|
||||
|
@ -183,6 +201,7 @@ const chooseTitle = ref(1);
|
|||
const search1 = reactive({
|
||||
name: "",
|
||||
date: "",
|
||||
date1: "",
|
||||
});
|
||||
const search2 = reactive({
|
||||
name: "",
|
||||
|
@ -264,10 +283,10 @@ const searchT = (val) => {
|
|||
} 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) {
|
||||
|
|
|
@ -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, //是否支持跨域
|
||||
|
|
Loading…
Reference in New Issue