diff --git a/src/views/exceptionHandle/errorData/index.vue b/src/views/exceptionHandle/errorData/index.vue index f0b3793..470d9e3 100644 --- a/src/views/exceptionHandle/errorData/index.vue +++ b/src/views/exceptionHandle/errorData/index.vue @@ -255,6 +255,9 @@ // 表单重置 reset() { this.queryForm = {}; + const lastMonth = new Date(); + lastMonth.setMonth(lastMonth.getMonth() - 1) + this.searchAttCurrentMonth = lastMonth; this.resetForm("queryForm"); this.getList(); }, diff --git a/src/views/exceptionHandle/errorForm/index.vue b/src/views/exceptionHandle/errorForm/index.vue index 0ac65bf..ddbcbcd 100644 --- a/src/views/exceptionHandle/errorForm/index.vue +++ b/src/views/exceptionHandle/errorForm/index.vue @@ -379,7 +379,11 @@ reset() { // this.searchAttCurrentMonth = ''; // this.queryParams.attCurrentMonth = null; + this.queryForm = {}; + const lastMonth = new Date(); + lastMonth.setMonth(lastMonth.getMonth() - 1) + this.searchAttCurrentMonth = lastMonth; this.resetForm("queryForm"); this.getList(); diff --git a/src/views/report/monthlyError/index.vue b/src/views/report/monthlyError/index.vue index 6ebc7b5..c39f31e 100644 --- a/src/views/report/monthlyError/index.vue +++ b/src/views/report/monthlyError/index.vue @@ -386,8 +386,10 @@ //打开月异常详情页面 openRecord(row,titleBoss){ this.id = row.id; + this.title = titleBoss; this.queryRecord.userId = row.userId; + this.queryRecord.orgId = row.orgId; this.queryRecord.attCurrent = row.attCurrentMonth; if(titleBoss=='打卡记录'){ this.queryRecord.attStatis=1;