From 62367c13d3a53efef1eba9b5dc7257822c4889b4 Mon Sep 17 00:00:00 2001 From: yangws <1607839436@qq.com> Date: Tue, 13 Aug 2024 17:33:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9=E4=B8=AA=E4=BA=BA?= =?UTF-8?q?=E4=B8=AD=E5=BF=83=E5=AE=BD=E5=BA=A6=EF=BC=8C=E9=A2=84=E7=BA=A6?= =?UTF-8?q?=E8=AF=BE=E4=BB=B6=E5=88=A0=E9=99=A4=E5=8F=8A=E6=97=B6=E5=9B=9E?= =?UTF-8?q?=E5=BA=94=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/src/views/classManage/classReserv.vue | 6 ++++-- src/renderer/src/views/prepare/index.vue | 5 +++-- src/renderer/src/views/profile/index.vue | 4 ++-- src/renderer/src/views/tool/components/side.vue | 2 +- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/renderer/src/views/classManage/classReserv.vue b/src/renderer/src/views/classManage/classReserv.vue index 8983269..11529c1 100644 --- a/src/renderer/src/views/classManage/classReserv.vue +++ b/src/renderer/src/views/classManage/classReserv.vue @@ -17,6 +17,8 @@ v-show="tabActive === '已结束'" :key="index" :item="item" + @open-edit="reservDialog.openDialog(item)" + @delete-reserv="deleteReserv(item)" > @@ -51,8 +53,8 @@ const doneDataList = computed(() => { }) const toolStore = useToolState() watch( - () => toolStore.isToolWin, - (newD, oldD) => { + () => [dataList,toolStore.isToolWin], + () => { getSelfReserv().then((res) => { dataList.value = [...res.data] }) diff --git a/src/renderer/src/views/prepare/index.vue b/src/renderer/src/views/prepare/index.vue index 489c993..a50e758 100644 --- a/src/renderer/src/views/prepare/index.vue +++ b/src/renderer/src/views/prepare/index.vue @@ -232,7 +232,7 @@ export default { this.isOpenHomework = false }) - + }, // activated() { // if (this.uploadData.textbookId !== null) { @@ -427,7 +427,7 @@ export default { await this.asyncAllFile() }, async initHomeWork() { - + if (this.uploadData.levelSecondId) { // 获取作业列表所需ID 可能存在没有 let { rows } = await this.getChapterId() @@ -596,6 +596,7 @@ export default { // 上课-工具类悬浮 openLesson() { const toolStore = useToolState() + console.log(toolStore.isToolWin,'toolStore.isToolWin') if (toolStore.isToolWin) return this.$message.error('您当前已开始上课,请勿重复操作') startClass(this.curClassReserv.id) createWindow('tool-sphere', { diff --git a/src/renderer/src/views/profile/index.vue b/src/renderer/src/views/profile/index.vue index c70b229..db29e01 100644 --- a/src/renderer/src/views/profile/index.vue +++ b/src/renderer/src/views/profile/index.vue @@ -1,7 +1,7 @@