From d766b36e721b7dca6d852d253bd9c01c87dde595 Mon Sep 17 00:00:00 2001 From: puhui999 Date: Sat, 30 Dec 2023 20:53:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=AF=B7=E5=81=87?= =?UTF-8?q?=E7=94=B3=E8=AF=B7=E6=8F=90=E4=BA=A4=E5=90=8E=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E4=B8=8D=E8=BF=94=E5=9B=9E=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/bpm/oa/leave/create.vue | 23 +++++---- src/views/bpm/oa/leave/index.vue | 81 ++++++++++++++++++------------- 2 files changed, 59 insertions(+), 45 deletions(-) diff --git a/src/views/bpm/oa/leave/create.vue b/src/views/bpm/oa/leave/create.vue index a47228c9..a22392f9 100644 --- a/src/views/bpm/oa/leave/create.vue +++ b/src/views/bpm/oa/leave/create.vue @@ -1,13 +1,13 @@ @@ -50,9 +50,6 @@ import { useTagsViewStore } from '@/store/modules/tagsView' defineOptions({ name: 'BpmOALeaveCreate' }) const message = useMessage() // 消息弹窗 -const { delView } = useTagsViewStore() // 视图操作 -const { currentRoute } = useRouter() // 路由 - const formLoading = ref(false) // 表单的加载中:1)修改时的数据加载;2)提交的按钮禁用 const formData = ref({ type: undefined, @@ -67,7 +64,8 @@ const formRules = reactive({ endTime: [{ required: true, message: '请假结束时间不能为空', trigger: 'change' }] }) const formRef = ref() // 表单 Ref - +const { delView } = useTagsViewStore() // 视图操作 +const { push, currentRoute } = useRouter() // 路由 /** 提交表单 */ const submitForm = async () => { // 校验表单 @@ -82,6 +80,7 @@ const submitForm = async () => { message.success('发起成功') // 关闭当前 Tab delView(unref(currentRoute)) + await push({ name: 'BpmOALeave' }) } finally { formLoading.value = false } diff --git a/src/views/bpm/oa/leave/index.vue b/src/views/bpm/oa/leave/index.vue index 72966db8..4559090f 100644 --- a/src/views/bpm/oa/leave/index.vue +++ b/src/views/bpm/oa/leave/index.vue @@ -2,18 +2,18 @@ - + - 搜索 - 重置 - - 发起请假 + + + 搜索 + + + + 重置 + + + + 发起请假 @@ -66,63 +73,63 @@ - - + + - + - + - +