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 @@ - - + + - + - + - +