From be2afadd43d7db0bf16c4194086f8890f207b85e Mon Sep 17 00:00:00 2001 From: lyc Date: Fri, 13 Dec 2024 10:10:36 +0800 Subject: [PATCH] edit --- .../src/components/template-study/container/right.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/renderer/src/components/template-study/container/right.vue b/src/renderer/src/components/template-study/container/right.vue index 2ac4a57..bc06fd4 100644 --- a/src/renderer/src/components/template-study/container/right.vue +++ b/src/renderer/src/components/template-study/container/right.vue @@ -161,7 +161,7 @@ const isStarted = ref([]); const listRef = ref() // 查询模板结果 const getTempResult = () => { - tempResult({ mainModelId: curTemplate.id, pageNum: 1, pageSize: 10000 }).then(res => { + tempResult({ mainModelId: curTemplate.id, pageNum: 1, pageSize: 10000, ex1: curNode.id }).then(res => { let rows = res.rows childTempList.value.forEach(item => { rows.forEach(el => { @@ -309,7 +309,7 @@ const againResult = async (index, item) => { await nextTick() childTempList.value[index].loading = true item.aiShow = true - params.prompt = `按照${item.name}的要求,针对${curNode.edustage}${curNode.edusubject}${modeType.value} 对${curNode.itemtitle}进行教学分析` + params.prompt = `按照${item.prompt}的要求,针对${curNode.edustage}${curNode.edusubject}${modeType.value} 对${curNode.itemtitle}进行教学分析` const { data } = await completion(params) childTempList.value[index].answer = getResult(data.answer); isStarted.value[index] = true @@ -333,7 +333,7 @@ const getCompletion = async () => { try { item.loading = true item.aiShow = true - params.prompt = `按照${item.name}的要求,针对${curNode.edustage}${curNode.edusubject}${modeType.value} 对${curNode.itemtitle}进行教学分析` + params.prompt = `按照${item.prompt}的要求,针对${curNode.edustage}${curNode.edusubject}${modeType.value} 对${curNode.itemtitle}进行教学分析` const { data } = await completion(params) item.answer = getResult(data.answer) onSaveTemp(item) @@ -377,7 +377,8 @@ const onSaveTemp = (item) => { mainModelId: curTemplate.id, modelId: item.id, examDocld: '', - content: item.answer + content: item.answer, + ex1: curNode.id } tempSave(data).then(res => { }) }