From 67fe7843aa3362c5a94a4f504243ad3bb70cdbd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=AE=8F=E6=96=8C?= <2164406372@qq.com> Date: Wed, 13 Aug 2025 13:45:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=91=98=E5=B7=A5=E8=80=83=E5=8B=A4vs=E6=8A=A5?= =?UTF-8?q?=E5=B7=A5=E5=B7=A5=E6=97=B6=E5=8A=9F=E8=83=BD=EF=BC=9A=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E6=9F=A5=E8=AF=A2=E6=97=A5=E6=9C=9F=E4=B8=BA=E6=9C=AC?= =?UTF-8?q?=E6=9C=88=E7=AC=AC=E4=B8=80=E5=A4=A9=E5=92=8C=E6=9C=80=E5=90=8E?= =?UTF-8?q?=E4=B8=80=E5=A4=A9=EF=BC=8C=E8=A7=A3=E5=86=B3BU=E8=BF=87?= =?UTF-8?q?=E6=BB=A4=E4=B8=8D=E5=8F=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/eamReport/employeeAttendanceTime.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/views/modules/eamReport/employeeAttendanceTime.vue b/src/views/modules/eamReport/employeeAttendanceTime.vue index 57ad799..55dbedc 100644 --- a/src/views/modules/eamReport/employeeAttendanceTime.vue +++ b/src/views/modules/eamReport/employeeAttendanceTime.vue @@ -132,6 +132,7 @@ import {getTableDefaultListLanguage, getTableUserListLanguage} from "@/api/table import {userFavoriteList, saveUserFavorite, removeUserFavorite} from '@/api/userFavorite.js' import {getUserRoleList} from "../../../api/eam/eam"; import {getSiteAndBuByUserName} from "../../../api/qc/qc"; +import moment from "moment/moment"; export default { components: { @@ -1015,7 +1016,11 @@ export default { getSiteAndBuByUserName(tempData).then(({data}) => { if (data.code === 0) { this.userBuList = data.rows - this.searchData.bu = this.userBuList[0].buNo + //设置初始BU + this.$set(this.searchData,'bu',this.userBuList[0].buNo) + //设置初始时间 + this.$set(this.searchData,'startDate',moment().startOf("month").format("YYYY-MM-DD")) + this.$set(this.searchData,'endDate',moment().endOf("month").format("YYYY-MM-DD")) } }) },