|
|
@@ -17,10 +17,10 @@
|
|
|
}}</div>
|
|
|
<div class="c_t45_msg">
|
|
|
<div>{{ lang.ssAnswerCount }} {{ props.showData.workArray.length }}<span
|
|
|
- v-if="props.showData.unsubmittedStudents.length > 0">/{{ props.showData.unsubmittedStudents.length
|
|
|
+ v-if="props.showData.unsubmittedStudents.length > 0">/{{ props.showData.workArray.length + props.showData.unsubmittedStudents.length
|
|
|
}}</span></div>
|
|
|
<span v-if="props.showData.unsubmittedStudents.length > 0" @click="viewUnsubmittedStudents()">{{
|
|
|
- lang.ssViewUnsubmittedStudents }}</span>
|
|
|
+ lang.ssViewSubmitStatus2 }}</span>
|
|
|
</div>
|
|
|
<!--<span class="c_t45_t_btn" :class="{'c_t45_t_btn_noActive': props.showData.workIndex <= 0}" @click="changeWorkIndex(0)">{{ lang.ssPrevQ }}</span>-->
|
|
|
<!--<span class="c_t45_t_btn" :class="{'c_t45_t_btn_noActive': props.showData.workIndex >= props.showData.choiceQuestionListData.length - 1}" @click="changeWorkIndex(1)">{{ lang.ssNextQ }}</span>-->
|
|
|
@@ -869,7 +869,7 @@ watch(
|
|
|
|
|
|
// 查看未提交学生
|
|
|
const viewUnsubmittedStudents = () => {
|
|
|
- selectUserDialogRef.value.open(lang.ssUnsubmittedStudents, { user: props.showData.unsubmittedStudents.map((item: any) => item.name) })
|
|
|
+ selectUserDialogRef.value.open(lang.ssSubmitStatus, { user: props.showData.unsubmittedStudents.map((item: any) => item.name),notFiledUser:props.showData.unsubmittedStudents.map((item: any) => item.name),isSubmitUser: props.workArray.map((item: any) => item.name)})
|
|
|
// if (props.unsubmittedStudents.length > 0) {
|
|
|
// unsubmittedStudentsDialogRef.value.open(props.unsubmittedStudents)
|
|
|
// }
|
|
|
@@ -910,7 +910,7 @@ const aiAnalysisRefresh45 = () => {
|
|
|
|
|
|
if (!currentAnalysis.value) {
|
|
|
aiAnalysisData.value.push({
|
|
|
- pid: props.workId,
|
|
|
+ pid: props.workId+(props.cid?','+props.cid:''),
|
|
|
index: props.showData.workIndex,
|
|
|
loading: true,
|
|
|
generatingContent: true,
|
|
|
@@ -922,32 +922,32 @@ const aiAnalysisRefresh45 = () => {
|
|
|
}
|
|
|
else {
|
|
|
aiAnalysisData.value.find((item: any) => {
|
|
|
- return item.pid === props.workId && item.index === props.showData.workIndex
|
|
|
+ return item.pid === props.workId+(props.cid?','+props.cid:'') && item.index === props.showData.workIndex
|
|
|
}).loading = true
|
|
|
aiAnalysisData.value.find((item: any) => {
|
|
|
- return item.pid === props.workId && item.index === props.showData.workIndex
|
|
|
+ return item.pid === props.workId+(props.cid?','+props.cid:'') && item.index === props.showData.workIndex
|
|
|
}).json = { text: '', echartsData: '' }
|
|
|
}
|
|
|
|
|
|
chat_stream(msg, 'a7741704-ba56-40b7-a6b8-62a423ef9376', props.userId, lang.lang, (event) => {
|
|
|
if (event.type === 'message') {
|
|
|
aiAnalysisData.value.find((item: any) => {
|
|
|
- return item.pid === props.workId && item.index === props.showData.workIndex
|
|
|
+ return item.pid === props.workId+(props.cid?','+props.cid:'') && item.index === props.showData.workIndex
|
|
|
}).json.text = event.data
|
|
|
|
|
|
aiAnalysisData.value.find((item: any) => {
|
|
|
- return item.pid === props.workId && item.index === props.showData.workIndex
|
|
|
+ return item.pid === props.workId+(props.cid?','+props.cid:'') && item.index === props.showData.workIndex
|
|
|
}).loading = false
|
|
|
}
|
|
|
else if (event.type === 'messageEnd') {
|
|
|
aiAnalysisData.value.find((item: any) => {
|
|
|
- return item.pid === props.workId && item.index === props.showData.workIndex
|
|
|
+ return item.pid === props.workId+(props.cid?','+props.cid:'') && item.index === props.showData.workIndex
|
|
|
}).json.text = event.data
|
|
|
aiAnalysisData.value.find((item: any) => {
|
|
|
- return item.pid === props.workId && item.index === props.showData.workIndex
|
|
|
+ return item.pid === props.workId+(props.cid?','+props.cid:'') && item.index === props.showData.workIndex
|
|
|
}).noEnd = false
|
|
|
aiAnalysisData.value.find((item: any) => {
|
|
|
- return item.pid === props.workId && item.index === props.showData.workIndex
|
|
|
+ return item.pid === props.workId+(props.cid?','+props.cid:'') && item.index === props.showData.workIndex
|
|
|
}).update_at = new Date().toLocaleString('zh-CN', { year: 'numeric', month: '2-digit', day: '2-digit', hour: '2-digit', minute: '2-digit', second: '2-digit', hour12: false }).replace(/\//g, '-')
|
|
|
saveAnalysis()
|
|
|
}
|
|
|
@@ -989,7 +989,7 @@ const aiAnalysisRefresh15 = () => {
|
|
|
30人中15人提交问答题(参与率50%),核心概念“同理心地图”掌握薄弱。发现学生13在智能体对话中6次答“不知道”,需单独辅导设计思维基础概念。建议课程增加POV框架实例演练,强化痛点识别能力训练。`
|
|
|
if (!currentAnalysis.value) {
|
|
|
aiAnalysisData.value.push({
|
|
|
- pid: props.workId,
|
|
|
+ pid: props.workId+(props.cid?','+props.cid:''),
|
|
|
index: props.showData.workIndex,
|
|
|
loading: true,
|
|
|
generatingContent: true,
|
|
|
@@ -1001,19 +1001,19 @@ const aiAnalysisRefresh15 = () => {
|
|
|
}
|
|
|
else {
|
|
|
aiAnalysisData.value.find((item: any) => {
|
|
|
- return item.pid === props.workId && item.index === props.showData.workIndex
|
|
|
+ return item.pid === props.workId+(props.cid?','+props.cid:'') && item.index === props.showData.workIndex
|
|
|
}).loading = true
|
|
|
aiAnalysisData.value.find((item: any) => {
|
|
|
- return item.pid === props.workId && item.index === props.showData.workIndex
|
|
|
+ return item.pid === props.workId+(props.cid?','+props.cid:'') && item.index === props.showData.workIndex
|
|
|
}).json = { text: '', echartsData: '' }
|
|
|
aiAnalysisData.value.find((item: any) => {
|
|
|
- return item.pid === props.workId && item.index === props.showData.workIndex
|
|
|
+ return item.pid === props.workId+(props.cid?','+props.cid:'') && item.index === props.showData.workIndex
|
|
|
}).generatingContent = true
|
|
|
}
|
|
|
getWordCloud15().then((res) => {
|
|
|
flag += 1
|
|
|
aiAnalysisData.value.find((item: any) => {
|
|
|
- return item.pid === props.workId && item.index === props.showData.workIndex
|
|
|
+ return item.pid === props.workId+(props.cid?','+props.cid:'') && item.index === props.showData.workIndex
|
|
|
}).generatingContent = false
|
|
|
if (flag == 2) {
|
|
|
saveAnalysis()
|
|
|
@@ -1023,22 +1023,22 @@ const aiAnalysisRefresh15 = () => {
|
|
|
console.log(event)
|
|
|
if (event.type === 'message') {
|
|
|
aiAnalysisData.value.find((item: any) => {
|
|
|
- return item.pid === props.workId && item.index === props.showData.workIndex
|
|
|
+ return item.pid === props.workId+(props.cid?','+props.cid:'') && item.index === props.showData.workIndex
|
|
|
}).json.text = event.data
|
|
|
|
|
|
aiAnalysisData.value.find((item: any) => {
|
|
|
- return item.pid === props.workId && item.index === props.showData.workIndex
|
|
|
+ return item.pid === props.workId+(props.cid?','+props.cid:'') && item.index === props.showData.workIndex
|
|
|
}).loading = false
|
|
|
}
|
|
|
else if (event.type === 'messageEnd') {
|
|
|
aiAnalysisData.value.find((item: any) => {
|
|
|
- return item.pid === props.workId && item.index === props.showData.workIndex
|
|
|
+ return item.pid === props.workId+(props.cid?','+props.cid:'') && item.index === props.showData.workIndex
|
|
|
}).json.text = event.data
|
|
|
aiAnalysisData.value.find((item: any) => {
|
|
|
- return item.pid === props.workId && item.index === props.showData.workIndex
|
|
|
+ return item.pid === props.workId+(props.cid?','+props.cid:'') && item.index === props.showData.workIndex
|
|
|
}).noEnd = false
|
|
|
aiAnalysisData.value.find((item: any) => {
|
|
|
- return item.pid === props.workId && item.index === props.showData.workIndex
|
|
|
+ return item.pid === props.workId+(props.cid?','+props.cid:'') && item.index === props.showData.workIndex
|
|
|
}).update_at = new Date().toLocaleString('zh-CN', { year: 'numeric', month: '2-digit', day: '2-digit', hour: '2-digit', minute: '2-digit', second: '2-digit', hour12: false }).replace(/\//g, '-')
|
|
|
flag += 1
|
|
|
if (flag == 2) {
|
|
|
@@ -1090,7 +1090,7 @@ const getWordCloud15 = () => {
|
|
|
|
|
|
chat_no_stream(msg, 'a7741704-ba56-40b7-a6b8-62a423ef9376', props.userId, lang.lang).promise.then((res) => {
|
|
|
aiAnalysisData.value.find((item: any) => {
|
|
|
- return item.pid === props.workId && item.index === props.showData.workIndex
|
|
|
+ return item.pid === props.workId+(props.cid?','+props.cid:'') && item.index === props.showData.workIndex
|
|
|
}).json.echartsData = JSON.parse(res)
|
|
|
resolve(1)
|
|
|
}).catch(err => {
|
|
|
@@ -1151,7 +1151,7 @@ ${a.content}\n`
|
|
|
console.log("cs", msg)
|
|
|
if (!currentAnalysis.value) {
|
|
|
aiAnalysisData.value.push({
|
|
|
- pid: props.workId,
|
|
|
+ pid: props.workId+(props.cid?','+props.cid:''),
|
|
|
index: props.showData.workIndex,
|
|
|
loading: true,
|
|
|
json: { text: '', echartsData: '' },
|
|
|
@@ -1162,32 +1162,32 @@ ${a.content}\n`
|
|
|
}
|
|
|
else {
|
|
|
aiAnalysisData.value.find((item: any) => {
|
|
|
- return item.pid === props.workId && item.index === props.showData.workIndex
|
|
|
+ return item.pid === props.workId+(props.cid?','+props.cid:'') && item.index === props.showData.workIndex
|
|
|
}).loading = true
|
|
|
aiAnalysisData.value.find((item: any) => {
|
|
|
- return item.pid === props.workId && item.index === props.showData.workIndex
|
|
|
+ return item.pid === props.workId+(props.cid?','+props.cid:'') && item.index === props.showData.workIndex
|
|
|
}).json = { text: '', echartsData: '' }
|
|
|
}
|
|
|
|
|
|
chat_stream(msg, 'a7741704-ba56-40b7-a6b8-62a423ef9376', props.userId, lang.lang, (event) => {
|
|
|
if (event.type === 'message') {
|
|
|
aiAnalysisData.value.find((item: any) => {
|
|
|
- return item.pid === props.workId && item.index === props.showData.workIndex
|
|
|
+ return item.pid === props.workId+(props.cid?','+props.cid:'') && item.index === props.showData.workIndex
|
|
|
}).json.text = event.data
|
|
|
|
|
|
aiAnalysisData.value.find((item: any) => {
|
|
|
- return item.pid === props.workId && item.index === props.showData.workIndex
|
|
|
+ return item.pid === props.workId+(props.cid?','+props.cid:'') && item.index === props.showData.workIndex
|
|
|
}).loading = false
|
|
|
}
|
|
|
else if (event.type === 'messageEnd') {
|
|
|
aiAnalysisData.value.find((item: any) => {
|
|
|
- return item.pid === props.workId && item.index === props.showData.workIndex
|
|
|
+ return item.pid === props.workId+(props.cid?','+props.cid:'') && item.index === props.showData.workIndex
|
|
|
}).json.text = event.data
|
|
|
aiAnalysisData.value.find((item: any) => {
|
|
|
- return item.pid === props.workId && item.index === props.showData.workIndex
|
|
|
+ return item.pid === props.workId+(props.cid?','+props.cid:'') && item.index === props.showData.workIndex
|
|
|
}).noEnd = false
|
|
|
aiAnalysisData.value.find((item: any) => {
|
|
|
- return item.pid === props.workId && item.index === props.showData.workIndex
|
|
|
+ return item.pid === props.workId+(props.cid?','+props.cid:'') && item.index === props.showData.workIndex
|
|
|
}).update_at = new Date().toLocaleString('zh-CN', { year: 'numeric', month: '2-digit', day: '2-digit', hour: '2-digit', minute: '2-digit', second: '2-digit', hour12: false }).replace(/\//g, '-')
|
|
|
saveAnalysis()
|
|
|
}
|
|
|
@@ -1200,7 +1200,7 @@ ${a.content}\n`
|
|
|
// 当前分析
|
|
|
const currentAnalysis = computed(() => {
|
|
|
let _result = aiAnalysisData.value.find((item: any) => {
|
|
|
- return item.pid === props.workId && item.index === props.showData.workIndex
|
|
|
+ return item.pid === props.workId+(props.cid?','+props.cid:'') && item.index === props.showData.workIndex
|
|
|
})
|
|
|
|
|
|
if (_result?.json?.echartsData) {
|