This commit is contained in:
parent
db72c7c983
commit
f8516040b8
|
@ -3,7 +3,7 @@ import { ElMessage } from "element-plus";
|
||||||
import tools from "@/utils/tools";
|
import tools from "@/utils/tools";
|
||||||
import router from "../router";
|
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;
|
axios.defaults.timeout = 120000;
|
||||||
|
|
||||||
// HTTP request 拦截器
|
// HTTP request 拦截器
|
||||||
|
|
|
@ -61,14 +61,32 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="select_item">
|
<div class="select_item">
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
style="width: 100%"
|
style="width: 46%"
|
||||||
v-model="search1.date"
|
v-model="search1.date"
|
||||||
type="date"
|
type="date"
|
||||||
placeholder="选择时间"
|
placeholder="开始时间"
|
||||||
format="YYYY-MM-DD"
|
format="YYYY-MM-DD"
|
||||||
value-format="YYYY-MM-DD"
|
value-format="YYYY-MM-DD"
|
||||||
@change="searchT('date')"
|
@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>
|
||||||
</div>
|
</div>
|
||||||
<el-table
|
<el-table
|
||||||
|
@ -103,7 +121,7 @@
|
||||||
class="mt-4"
|
class="mt-4"
|
||||||
background
|
background
|
||||||
layout="prev, pager, next"
|
layout="prev, pager, next"
|
||||||
:pager-count="5"
|
:pager-count="5"
|
||||||
:page-size="data.pagination1.pageSize"
|
:page-size="data.pagination1.pageSize"
|
||||||
:total="data.pagination1.total"
|
:total="data.pagination1.total"
|
||||||
:current-page="data.pagination1.current"
|
:current-page="data.pagination1.current"
|
||||||
|
@ -183,6 +201,7 @@ const chooseTitle = ref(1);
|
||||||
const search1 = reactive({
|
const search1 = reactive({
|
||||||
name: "",
|
name: "",
|
||||||
date: "",
|
date: "",
|
||||||
|
date1: "",
|
||||||
});
|
});
|
||||||
const search2 = reactive({
|
const search2 = reactive({
|
||||||
name: "",
|
name: "",
|
||||||
|
@ -264,10 +283,10 @@ const searchT = (val) => {
|
||||||
} else {
|
} else {
|
||||||
if (search1.date == null) {
|
if (search1.date == null) {
|
||||||
search1.date = "";
|
search1.date = "";
|
||||||
|
search1.date1 = "";
|
||||||
throttle(getRegisteredDB, 50);
|
throttle(getRegisteredDB, 50);
|
||||||
} else {
|
} else {
|
||||||
getRegisteredDB();
|
getRegisteredDB();
|
||||||
console.log(search);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -302,7 +321,7 @@ const getDate = () => {
|
||||||
const getRegisteredDB = () => {
|
const getRegisteredDB = () => {
|
||||||
http
|
http
|
||||||
.get(
|
.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) => {
|
.then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
|
|
|
@ -15,8 +15,8 @@ export default defineConfig({
|
||||||
// 第一个代理
|
// 第一个代理
|
||||||
"/api": {
|
"/api": {
|
||||||
// 匹配到啥来进行方向代理
|
// 匹配到啥来进行方向代理
|
||||||
// target: "http://10.0.0.7:8095/", //刘进
|
target: "http://10.0.0.7:8095/", //刘进
|
||||||
target: "https://jzzf.longyou.gov.cn:998/", //线上
|
// target: "https://jzzf.longyou.gov.cn:998/", //线上
|
||||||
// target: "http://220.191.238.50:996/", //线上
|
// target: "http://220.191.238.50:996/", //线上
|
||||||
// target: "https://zzdyyfb.dsjj.qz.gov.cn/web/mgop/gov-open/zj/2002428903/reserved/", //线上
|
// target: "https://zzdyyfb.dsjj.qz.gov.cn/web/mgop/gov-open/zj/2002428903/reserved/", //线上
|
||||||
changeOrigin: true, //是否支持跨域
|
changeOrigin: true, //是否支持跨域
|
||||||
|
|
Loading…
Reference in New Issue