|
@@ -28,7 +28,7 @@
|
|
|
</TabSearch>
|
|
</TabSearch>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="content_right">
|
|
<div class="content_right">
|
|
|
- <el-button class="delete_button_border_no_bg">清空授课</el-button>
|
|
|
|
|
|
|
+ <el-button class="delete_button_border_no_bg" @click="ClearTeachingRelationship">清空授课</el-button>
|
|
|
<el-button class="button_refresh">批量导出</el-button>
|
|
<el-button class="button_refresh">批量导出</el-button>
|
|
|
<el-button class="button_refresh">批量导入</el-button>
|
|
<el-button class="button_refresh">批量导入</el-button>
|
|
|
<el-button class="button_background" @click="FinishTeachingRelationship">完成</el-button>
|
|
<el-button class="button_background" @click="FinishTeachingRelationship">完成</el-button>
|
|
@@ -155,7 +155,7 @@ import TabSearch from '@/baseComponents/TabSearch.vue';
|
|
|
import {
|
|
import {
|
|
|
getTeachingRelationshipTableDataApi, getTeacherListDataApi,
|
|
getTeachingRelationshipTableDataApi, getTeacherListDataApi,
|
|
|
saveTeachingRelationshipApi, deleteTeachingRelationshipApi,
|
|
saveTeachingRelationshipApi, deleteTeachingRelationshipApi,
|
|
|
- finishTeachingRelationshipApi,
|
|
|
|
|
|
|
+ finishTeachingRelationshipApi,clearTeachingRelationshipApi
|
|
|
} from '@/api/step2Component'
|
|
} from '@/api/step2Component'
|
|
|
|
|
|
|
|
import {getEvaluationDataDetailApi} from '@/api/step1Component'
|
|
import {getEvaluationDataDetailApi} from '@/api/step1Component'
|
|
@@ -495,6 +495,17 @@ const FinishTeachingRelationship = async ()=>{
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+// 6. 清空授课关系
|
|
|
|
|
+const ClearTeachingRelationship = async ()=>{
|
|
|
|
|
+ let id = searchParmams.value.gradeId
|
|
|
|
|
+ let classType = searchParmams.value.classType == 'teach' ? 1 : 0 //班级类型,0-行政班,1-教学班
|
|
|
|
|
+ let res = await clearTeachingRelationshipApi(id,classType)
|
|
|
|
|
+ if(res?.code == 200){
|
|
|
|
|
+ ElMessage.success(res?.msg)
|
|
|
|
|
+ // 重查页面
|
|
|
|
|
+ await GetTeachingRelationshipData()
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
|
|
|
// 重新加载页面数据
|
|
// 重新加载页面数据
|
|
|
const reloadData =async ()=>{
|
|
const reloadData =async ()=>{
|