diff --git a/src/views/process/workReport/index.vue b/src/views/process/workReport/index.vue index 1a4cdc3..5a69ce8 100644 --- a/src/views/process/workReport/index.vue +++ b/src/views/process/workReport/index.vue @@ -9,6 +9,8 @@ range-separator="-" start-placeholder="开始月份" end-placeholder="结束月份" + value-format="yyyy-MM" + @change="onChangeTime" > @@ -435,6 +437,7 @@ export default { } }, }, + }; }, created() { @@ -679,23 +682,6 @@ export default { this.isEdit = false; this.getList(); }) - // console.log(this.form) - // var list = this.form.hostUserId.join(","); - // this.form.hostUserId = list; - // if (this.form.id != undefined) { - // this.form.examineStatus=0 - // updateHoliday(this.form).then(response => { - // this.$modal.msgSuccess("修改成功"); - // this.open = false; - // this.getList(); - // }); - // } else { - // addHoliday(this.form).then(response => { - // this.$modal.msgSuccess("新增成功"); - // this.open = false; - // this.getList(); - // }); - // } } }); }, @@ -749,6 +735,19 @@ export default { }) }, + onChangeTime(val){ + console.log(val) + if(val.length > 0) { + const [ val_1, val_2 ] = val; + this.queryParams.startDate = val_1; + this.queryParams.endDate = val_2; + + } else { + this.queryParams.startDate = ''; + this.queryParams.endDate = ''; + } + } + } };