优化查询所有信息的接口

menu1.0
fanluyan 4 months ago
parent 29910d5ba6
commit c334a75cb8

@ -239,6 +239,7 @@
v-model="formdata.starttime" v-model="formdata.starttime"
type="date" type="date"
placeholder="开始日期" placeholder="开始日期"
timestamp
> >
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
@ -249,6 +250,7 @@
type="date" type="date"
placeholder="结束日期" placeholder="结束日期"
class="ml10" class="ml10"
timestamp
> >
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
@ -509,7 +511,8 @@ export default {
page: 1, // page: 1, //
pageSize: 20, // pageSize: 20, //
total: 0, // total: 0, //
savedStartTime: null,
savedEndTime: null,
paramsData: "", paramsData: "",
childpage: 1, // childpage: 1, //
childpageSize: 20, // childpageSize: 20, //
@ -529,6 +532,18 @@ export default {
that.onSubmit(); // that.onSubmit(); //
} }
}; };
this.$set(
this.formdata,
"starttime",
new Date(new Date().toLocaleDateString()).getTime()
);
const currentDate = new Date(); //
currentDate.setHours(23); // 23
currentDate.setMinutes(59); // 59
currentDate.setSeconds(59); // 59
this.$set(this.formdata, "endtime", currentDate.getTime());
console.log(this.formdata.starttime);
console.log(this.formdata.endtime);
}, },
watch: { watch: {
endtime(newVal) { endtime(newVal) {
@ -685,17 +700,8 @@ export default {
// //
moreDataClick(row) { moreDataClick(row) {
this.childFlag = true; this.childFlag = true;
console.log(row); console.log(row);
this.$set(
this.formdata,
"starttime",
new Date(new Date().toLocaleDateString()).getTime()
);
const currentDate = new Date(); //
currentDate.setHours(23); // 23
currentDate.setMinutes(59); // 59
currentDate.setSeconds(59); // 59
this.$set(this.formdata, "endtime", currentDate.getTime());
this.childParma = row; this.childParma = row;
this.getchildWeatherData(row); this.getchildWeatherData(row);
@ -703,6 +709,8 @@ export default {
// //
onSubmit() { onSubmit() {
console.log(this.formdata.starttime);
console.log(this.formdata.endtime);
this.getchildWeatherData(this.childParma); this.getchildWeatherData(this.childParma);
}, },
// //

@ -296,15 +296,16 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="lastGps.updatetime" prop="positions.updateTime"
label="最新GPS位置采集时间" label="最新GPS位置采集时间"
min-width="140" min-width="140"
> >
</el-table-column> </el-table-column>
<el-table-column prop="lastGps.radius" label="半径"> </el-table-column> <el-table-column prop="positions.radius" label="半径">
<el-table-column prop="lastGps.latitude" label="维度">
</el-table-column> </el-table-column>
<el-table-column prop="lastGps.longitude" label="经度"> <el-table-column prop="positions.latitude" label="维度">
</el-table-column>
<el-table-column prop="positions.longitude" label="经度">
</el-table-column> </el-table-column>
</el-table> </el-table>
<div class="pageNation"> <div class="pageNation">
@ -472,7 +473,7 @@ export default {
console.log(this.formdata); console.log(this.formdata);
this.termLoading = true; this.termLoading = true;
let params = { let params = {
dataFlag: "GPSOCB", // dataFlag: "PSOCB", //
start: this.formdata.starttime / 1000, start: this.formdata.starttime / 1000,
end: this.formdata.endtime / 1000, end: this.formdata.endtime / 1000,
pageNum: this.page, pageNum: this.page,

@ -2,7 +2,7 @@
<div class="termsBox"> <div class="termsBox">
<el-card class="box-card"> <el-card class="box-card">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>批量下发重</span> <span>批量下发重</span>
</div> </div>
<div class="deviceList"> <div class="deviceList">
<div class="searchBox"> <div class="searchBox">

Loading…
Cancel
Save