|
@@ -118,6 +118,7 @@
|
|
|
:titleMsg="currentEditQuestion"
|
|
:titleMsg="currentEditQuestion"
|
|
|
@questionAnswerChange="HandleQuestionAnswerChange"
|
|
@questionAnswerChange="HandleQuestionAnswerChange"
|
|
|
:allowEdit="!isCurrentQuestionnaireTaskFinish"
|
|
:allowEdit="!isCurrentQuestionnaireTaskFinish"
|
|
|
|
|
+ :defaultTableData="questionTableData"
|
|
|
/>
|
|
/>
|
|
|
|
|
|
|
|
<!-- 星星评分 -->
|
|
<!-- 星星评分 -->
|
|
@@ -128,6 +129,7 @@
|
|
|
:titleMsg="currentEditQuestion"
|
|
:titleMsg="currentEditQuestion"
|
|
|
:allowEdit="!isCurrentQuestionnaireTaskFinish"
|
|
:allowEdit="!isCurrentQuestionnaireTaskFinish"
|
|
|
@questionAnswerChange="HandleQuestionAnswerChange"
|
|
@questionAnswerChange="HandleQuestionAnswerChange"
|
|
|
|
|
+ :defaultTableData="questionTableData"
|
|
|
/>
|
|
/>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -204,7 +206,7 @@ import { subjectToColor,fillOutStatusToColor,
|
|
|
import { useTimeCountDown } from '@/utils/dateTransform';
|
|
import { useTimeCountDown } from '@/utils/dateTransform';
|
|
|
import {getExcelColumn} from '@/utils/numberConvertExcelColumn'
|
|
import {getExcelColumn} from '@/utils/numberConvertExcelColumn'
|
|
|
|
|
|
|
|
-import { getEvaluationQuestionDataApi } from '@/api/questionnaireCommit'
|
|
|
|
|
|
|
+import { getEvaluationQuestionDataApi, getEvaluationQuestionDataSplitApi } from '@/api/questionnaireCommit'
|
|
|
|
|
|
|
|
import redTimeIcon from '@/assets/icon/red_time_icon.svg'
|
|
import redTimeIcon from '@/assets/icon/red_time_icon.svg'
|
|
|
import finishIcon from '@/assets/studentQuestionnaire/select_icon.png'
|
|
import finishIcon from '@/assets/studentQuestionnaire/select_icon.png'
|
|
@@ -675,9 +677,15 @@ const defaultQuestionnaireMode = ref('full') // split full
|
|
|
const QuestionnaireModeDisabled = ref(false)
|
|
const QuestionnaireModeDisabled = ref(false)
|
|
|
|
|
|
|
|
// 问卷填写模式变更
|
|
// 问卷填写模式变更
|
|
|
-const HandleQuestionnaireModeChange = (val)=>{
|
|
|
|
|
|
|
+const HandleQuestionnaireModeChange = async (val)=>{
|
|
|
console.log('当前选中的值',val)
|
|
console.log('当前选中的值',val)
|
|
|
defaultQuestionnaireMode.value = val
|
|
defaultQuestionnaireMode.value = val
|
|
|
|
|
+ // if(val == 'split'){
|
|
|
|
|
+ // let teacherIds = teacherList.value.map(item=>{
|
|
|
|
|
+ // return item.id
|
|
|
|
|
+ // })
|
|
|
|
|
+ // let res = await getEvaluationQuestionDataSplitApi(teacherIds)
|
|
|
|
|
+ // }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 监听从接口获取到的 历史问卷填写方式,变更当前页面的模式和模式的禁选状态
|
|
// 监听从接口获取到的 历史问卷填写方式,变更当前页面的模式和模式的禁选状态
|
|
@@ -804,7 +812,6 @@ watch(()=>currentEditQuestion.value?.questionType,(newVal)=>{
|
|
|
custom:true,
|
|
custom:true,
|
|
|
}
|
|
}
|
|
|
}) || []
|
|
}) || []
|
|
|
-
|
|
|
|
|
questionTableData.value = teacherList.value.map(item=>{
|
|
questionTableData.value = teacherList.value.map(item=>{
|
|
|
return {
|
|
return {
|
|
|
teacher:item.teacherName,
|
|
teacher:item.teacherName,
|
|
@@ -815,9 +822,13 @@ watch(()=>currentEditQuestion.value?.questionType,(newVal)=>{
|
|
|
}
|
|
}
|
|
|
case 5:{
|
|
case 5:{
|
|
|
//评分题
|
|
//评分题
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+ questionTableData.value = teacherList.value.map(item=>{
|
|
|
|
|
+ return {
|
|
|
|
|
+ teacher:item.teacherName,
|
|
|
|
|
+ score:'',
|
|
|
|
|
+ fullScore:10
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
break
|
|
break
|
|
|
}
|
|
}
|
|
|
case 2:{ //问答题
|
|
case 2:{ //问答题
|
|
@@ -830,8 +841,6 @@ watch(()=>currentEditQuestion.value?.questionType,(newVal)=>{
|
|
|
break
|
|
break
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
},{immediate:true})
|
|
},{immediate:true})
|
|
|
|
|
|
|
|
|
|
|