|
|
@@ -3,6 +3,7 @@
|
|
|
<div class="page_search">
|
|
|
<div class="search_content">
|
|
|
<div class="content_left">
|
|
|
+ <!-- 班主任参与评价 ——不显示,且默认不统一模板 -->
|
|
|
<el-checkbox
|
|
|
v-if="!(store.state.evaluationManageStepData.isHeadTeacherInvolved)"
|
|
|
v-model="isUnifiedTemplate" >所有单科统一模版</el-checkbox>
|
|
|
@@ -166,7 +167,9 @@ const FinishQuestionnaireTemplateConfig = async ()=>{
|
|
|
gender: item.gender, //性别
|
|
|
}
|
|
|
})
|
|
|
- let res = await saveQuestionnaireTemplateListApi(params)
|
|
|
+
|
|
|
+
|
|
|
+ let res = await saveQuestionnaireTemplateListApi(params,isUnifiedTemplate.value ? 1 : 0)
|
|
|
if(res?.code == 200){
|
|
|
// 更新全局状态
|
|
|
await store.dispatch('updateEvaluationManageStepData',route.query.id)
|
|
|
@@ -199,8 +202,14 @@ onMounted(async ()=>{
|
|
|
|
|
|
watch(()=>store.state.evaluationManageStepData.isHeadTeacherInvolved,(newVal)=>{
|
|
|
// 初始值 和 班主任是否参与评价有关
|
|
|
- isUnifiedTemplate.value = !newVal
|
|
|
-})
|
|
|
+ // 已完成的问卷模板取存储的值
|
|
|
+ if(store.state.evaluationManageStepData.isFinishQuestionnaireTemplate){
|
|
|
+ isUnifiedTemplate.value = store.state.evaluationManageStepData.isUnifyTemplate
|
|
|
+ }else{
|
|
|
+ // 未完成的问卷模板 根据班主任是否参与评价来 取默认值
|
|
|
+ isUnifiedTemplate.value = !newVal
|
|
|
+ }
|
|
|
+},{immediate:true})
|
|
|
</script>
|
|
|
|
|
|
|