diff --git a/src/views/business/leasePublish/component/homeApply.vue b/src/views/business/leasePublish/component/homeApply.vue index 5ff4f219..f81e543b 100644 --- a/src/views/business/leasePublish/component/homeApply.vue +++ b/src/views/business/leasePublish/component/homeApply.vue @@ -305,7 +305,7 @@ export default { pageSize: 10, time: null, //申请时间 keyWord: "", - taskStatus: null, //状态 + taskStatus: '1', //状态 }, dialogVisible: false, // 弹框显示 @@ -327,10 +327,8 @@ export default { const end = new Date() let start = new Date() start.setMonth(start.getMonth() - 1) - this.queryParams.time = [this.format(end), this.format(end)] - // 设置默认状态为第一个选项(未完成) - // this.queryParams.taskStatus = '1' - this.getList(); + this.queryParams.time = [this.format(start), this.format(end)] + this.getList() }, methods: { format(date) { @@ -384,7 +382,7 @@ export default { const end = new Date() let start = new Date() start.setMonth(start.getMonth() - 1) - this.queryParams.time = [this.format(end), this.format(end)] + this.queryParams.time = [this.format(start), this.format(end)] this.resetForm("queryForm"); this.queryParams.keyWord = ""; this.handleQuery();