From 1a9b426ec3e4c54c3bbf219aa7b3b9f07723754e Mon Sep 17 00:00:00 2001 From: zdg Date: Fri, 20 Sep 2024 14:56:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D-=E4=B8=8A=E8=AF=BE=20?= =?UTF-8?q?=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/src/views/prepare/container/reserv.vue | 4 +++- src/renderer/src/views/prepare/index.vue | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/renderer/src/views/prepare/container/reserv.vue b/src/renderer/src/views/prepare/container/reserv.vue index 49660dc..e21c949 100644 --- a/src/renderer/src/views/prepare/container/reserv.vue +++ b/src/renderer/src/views/prepare/container/reserv.vue @@ -86,7 +86,7 @@ import useUserStore from '@/store/modules/user' import { ElMessage } from 'element-plus' import { getCurrentTime, getAfterMinutes } from '@/utils/date' -const emit = defineEmits(['addSuccess']) +const emit = defineEmits(['addSuccess','close']) const props = defineProps({ bookId: { type: Number, @@ -217,6 +217,8 @@ const closeDialog = () => { ruleFormDialog.value.resetFields() centerDialogVisible.value = false form.name = props.currentNode.label + emit('close') + } const classList = ref([]) onMounted(() => { diff --git a/src/renderer/src/views/prepare/index.vue b/src/renderer/src/views/prepare/index.vue index 85fc0ad..81766ec 100644 --- a/src/renderer/src/views/prepare/index.vue +++ b/src/renderer/src/views/prepare/index.vue @@ -158,6 +158,7 @@ :current-node="currentNode" :book-id="uploadData.textbookId" @add-success="initReserv" + @close="closeChange" > @@ -319,6 +320,7 @@ export default { this.activeClass = item }, closeChange() { // 上课弹窗被关闭-触发 + console.log('关闭上课弹窗') this.activeClass = null sessionStore.delete('activeClass') }, -- 2.44.0.windows.1