冲突检查

This commit is contained in:
2026-08-23 20:23:37 +08:00
parent 5fb95ae476
commit 26fe8ea334
2 changed files with 247 additions and 99 deletions
@@ -0,0 +1,45 @@
import request from '@/utils/request'
// 课表冲突检查:单维度检查(POST /timetable-conflict/check
// body: { nd 年度(必填), dimensionCode 维度编码(必填), writeToDb?(落库), jcpch?(批次号) }
// 返回 TimetableConflictCardVO { dimensionCode, title, description, checked, conflictCount }
export function checkConflict(data) {
return request({
url: '/timetable-conflict/check',
method: 'post',
data
})
}
// 课表冲突检查:执行全部维度检查(POST /timetable-conflict/check-all
// body: { nd 年度(必填), writeToDb? }
// 返回 TimetableConflictSummaryVO { nd, cards[], totalConflictCount, fullyChecked }
export function checkAllConflict(data) {
return request({
url: '/timetable-conflict/check-all',
method: 'post',
data
})
}
// 课表冲突检查:重置检查结果(POST /timetable-conflict/reset
// body: { nd 年度(必填), clearDb? 是否同时清空落库表 }
// 返回 TimetableConflictSummaryVO(所有卡片未检查状态)
export function resetConflict(data) {
return request({
url: '/timetable-conflict/reset',
method: 'post',
data
})
}
// 课表冲突检查:分页查询冲突明细(GET /timetable-conflict/details
// params: { nd 年度(必填), dimensionCode? 维度编码, pageNum?, pageSize?, useDb?, jcpch? }
// 返回 PageResult<TimetableConflictDetailVO>
export function getConflictDetails(params) {
return request({
url: '/timetable-conflict/details',
method: 'get',
params
})
}