|
|
@@ -46,7 +46,7 @@
|
|
|
</template>
|
|
|
<!-- 底部确认按钮 -->
|
|
|
<div class="bottom_action_bar">
|
|
|
- <el-button class="button_background" @click="handle_confirm">确认</el-button>
|
|
|
+ <el-button class="button_background" @click="HandleConfirm">确认</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
@@ -102,7 +102,7 @@ const handleSelectChange = (val)=>{
|
|
|
|
|
|
|
|
|
// 点击确认
|
|
|
-const handle_confirm = async () => {
|
|
|
+const HandleConfirm = async () => {
|
|
|
// 最终提交只保留 展示的项
|
|
|
let exitstSelectedKeys = Object.keys(selectedTeachingClass.value)
|
|
|
let fixedKeys= noElectiveTeachingSubjectFormItms.value?.map(item=>item.key)
|
|
|
@@ -117,14 +117,26 @@ const handle_confirm = async () => {
|
|
|
// 添加选科校验
|
|
|
let evaluationClassIds = Object.values(selectedTeachingClass.value)
|
|
|
if(selectedElectives.value.length > electiveNeedCount.value){
|
|
|
- ElMessage.warning(`选科数量最多为${electiveNeedCount.value}个`)
|
|
|
+ ElMessage({
|
|
|
+ message:`选科数量最多为${electiveNeedCount.value}个`,
|
|
|
+ type: 'warning',
|
|
|
+ customClass:'app_el_message',
|
|
|
+ })
|
|
|
return
|
|
|
}else if(selectedElectives.value.length < electiveNeedCount.value){
|
|
|
- ElMessage.warning(`选科数量最少为${electiveNeedCount.value}个`)
|
|
|
+ ElMessage({
|
|
|
+ message:`选科数量最少为${electiveNeedCount.value}个`,
|
|
|
+ type: 'warning',
|
|
|
+ customClass:'app_el_message',
|
|
|
+ })
|
|
|
return
|
|
|
}
|
|
|
if(evaluationClassIds.length < (noElectiveTeachingSubjectFormItms.value.length + electiveTeachingSubjectFormItms.value.length)){
|
|
|
- ElMessage.warning('请确保选科班级填写完整')
|
|
|
+ ElMessage({
|
|
|
+ message:'请确保选科班级填写完整',
|
|
|
+ type: 'warning',
|
|
|
+ customClass:'app_el_message',
|
|
|
+ })
|
|
|
return
|
|
|
}
|
|
|
|