|
|
@ -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);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
//采集数据
|
|
|
|
//采集数据
|
|
|
|