|
|
@@ -592,6 +592,26 @@ provide('notifySpeakingProgress', (status: 'active' | 'completed', payload: { co
|
|
|
})
|
|
|
})
|
|
|
|
|
|
+provide('recordSpeakingStart', async (sessionId: string) => {
|
|
|
+ if (props.type !== '2') return // 只有学生客户端写作业记录
|
|
|
+ if (!sessionId || !props.courseid || !props.userid) return
|
|
|
+ try {
|
|
|
+ await api.submitWork({
|
|
|
+ uid: props.userid as string,
|
|
|
+ cid: props.courseid as string,
|
|
|
+ stage: '0',
|
|
|
+ task: String(slideIndex.value),
|
|
|
+ tool: '0',
|
|
|
+ atool: '77',
|
|
|
+ content: sessionId,
|
|
|
+ type: '21',
|
|
|
+ })
|
|
|
+ }
|
|
|
+ catch (err) {
|
|
|
+ console.error('[speaking] recordSpeakingStart failed:', err)
|
|
|
+ }
|
|
|
+})
|
|
|
+
|
|
|
// 提供给子组件使用
|
|
|
provide('choiceQuestionDetailDialogOpenList', choiceQuestionDetailDialogOpenList)
|
|
|
|