优化查询所有信息的接口

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

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

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

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

Loading…
Cancel
Save