From 1c758b5b09612a912a099691fd175815b7a7a821 Mon Sep 17 00:00:00 2001 From: hayu <1604366271@qq.com> Date: Fri, 15 Nov 2024 11:29:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=9F=E8=83=BD=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/process/workReport/index.vue | 33 +++++++++++++------------- 1 file changed, 16 insertions(+), 17 deletions(-) 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 = ''; + } + } + } };