export default {
data() {
return {
searchForm: {
regionCode: "",
type: "",
level: "",
startTime: this.$route.query.startTime || "",
endTime: this.$route.query.endTime || "",
pageRequest: {
pageNum: 1,
pageSize: 10,
},
},
};
},
async getWeatherWarningList() {
let that = this;
//判断一下searchForm里面是否有值然后,处理if()。。。。
const res = await getWeatherWarningData(that.searchForm);
标签:searchForm,route,接口,表单,startTime,query,endTime
From: https://www.cnblogs.com/zongkm/p/17168038.html