Compare commits

..

3 Commits

Author SHA1 Message Date
lyc 01fbb9d05c Merge pull request 'lyc-dev' (#171) from lyc-dev into main 2024-12-23 17:02:30 +08:00
lyc 1334becb54 Merge branch 'main' into lyc-dev 2024-12-23 17:01:53 +08:00
lyc c95508ed59 edit 模板 2024-12-23 17:01:40 +08:00
2 changed files with 6 additions and 3 deletions

View File

@ -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
}
}
// ### **

View File

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