From 7586297bb89bbfe2cd4d3711ed5e38f84c3f971c Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期二, 07 五月 2024 18:04:45 +0800 Subject: [PATCH] 考勤统计模块 修改默认日期为当前月份的前一个月 --- src/views/systemSetting/workshopManage/components/addDialog.vue | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/src/views/systemSetting/workshopManage/components/addDialog.vue b/src/views/systemSetting/workshopManage/components/addDialog.vue index 6135db5..06b7048 100644 --- a/src/views/systemSetting/workshopManage/components/addDialog.vue +++ b/src/views/systemSetting/workshopManage/components/addDialog.vue @@ -138,7 +138,14 @@ }, watch: { - + 'editConfig.visible'(newVal) { + if (newVal) { + this.$nextTick(()=>{ + this.$refs["ruleForm"].resetFields(); + this.editConfig=this.editDiaConfig + }) + } + }, }, methods: { handleClose(done) { -- Gitblit v1.8.0