|
@@ -462,6 +462,9 @@ const sendAction = async (action: string) => {
|
|
|
case '15':
|
|
case '15':
|
|
|
choice = '问答题'
|
|
choice = '问答题'
|
|
|
break
|
|
break
|
|
|
|
|
+ case '78':
|
|
|
|
|
+ choice = '投票'
|
|
|
|
|
+ break
|
|
|
default:
|
|
default:
|
|
|
choice = ''
|
|
choice = ''
|
|
|
break
|
|
break
|
|
@@ -479,6 +482,13 @@ const sendAction = async (action: string) => {
|
|
|
student_answer += `第${i + 1}题:${testJson[i].userAnswer}` + '\n'
|
|
student_answer += `第${i + 1}题:${testJson[i].userAnswer}` + '\n'
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ else if (props.workJson.atool === '78') {
|
|
|
|
|
+ const testJson = workContent.testJson || []
|
|
|
|
|
+ for (let i = 0; i < testJson.length; i++) {
|
|
|
|
|
+ question_content += `第${i + 1}题:${testJson[i].teststitle}\n 选项:${testJson[i].checkList}`
|
|
|
|
|
+ student_answer += `第${i + 1}题:${testJson[i].userAnswer}` + '\n'
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
else if (props.workJson.atool === '15') {
|
|
else if (props.workJson.atool === '15') {
|
|
|
question_content = workContent.answerQ || ''
|
|
question_content = workContent.answerQ || ''
|
|
|
correct_answer = workContent.evaluationCriteria || '无'
|
|
correct_answer = workContent.evaluationCriteria || '无'
|
|
@@ -495,6 +505,14 @@ const sendAction = async (action: string) => {
|
|
|
- 学生提交的回答:${student_answer}
|
|
- 学生提交的回答:${student_answer}
|
|
|
`
|
|
`
|
|
|
}
|
|
}
|
|
|
|
|
+ else if (props.workJson.atool === '78') {
|
|
|
|
|
+ promptText += `
|
|
|
|
|
+ 当前题目信息:
|
|
|
|
|
+ - 题目类型:${choice}
|
|
|
|
|
+ - 投票题目:${question_content}
|
|
|
|
|
+ - 学生提交的投票:${student_answer}
|
|
|
|
|
+ `
|
|
|
|
|
+ }
|
|
|
else if (props.workJson.atool === '15') {
|
|
else if (props.workJson.atool === '15') {
|
|
|
promptText += `
|
|
promptText += `
|
|
|
当前题目信息:
|
|
当前题目信息:
|