From c95508ed599fadb7b0e11dc09de3d65d87ffd86a Mon Sep 17 00:00:00 2001 From: lyc Date: Mon, 23 Dec 2024 17:01:40 +0800 Subject: [PATCH] =?UTF-8?q?edit=20=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/template-study/container/right.vue | 7 +++++-- src/renderer/src/views/teachingDesign/container/right.vue | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/renderer/src/components/template-study/container/right.vue b/src/renderer/src/components/template-study/container/right.vue index a452139..ea67d82 100644 --- a/src/renderer/src/components/template-study/container/right.vue +++ b/src/renderer/src/components/template-study/container/right.vue @@ -415,7 +415,7 @@ const onEditSave = async (item) => { } // 保存模板 -const onSaveTemp = (item) => { +const onSaveTemp = async (item) => { if (item.answer == '') return const data = { @@ -425,7 +425,10 @@ const onSaveTemp = (item) => { content: item.answer, ex1: curNode.id } - tempSave(data).then(res => { }) + const res = await tempSave(data) + if(!item.resultId){ + item.resultId = res.data + } } // 去掉字符串中的 ### ** diff --git a/src/renderer/src/views/teachingDesign/container/right.vue b/src/renderer/src/views/teachingDesign/container/right.vue index f829f3b..2afef2d 100644 --- a/src/renderer/src/views/teachingDesign/container/right.vue +++ b/src/renderer/src/views/teachingDesign/container/right.vue @@ -258,7 +258,7 @@ const listRef = ref() // 查询模板结果 const isStarted = ref([]); const getTempResult = (id) => { - tempResult({ mainModelId: id }).then(res => { + tempResult({ mainModelId: id, pageNum: 1, pageSize: 10000, ex1: curNode.id }).then(res => { let rows = res.rows if (rows.length > 0) { isStarted.value = new Array(rows.length).fill(true)