通过AI比对原操作文档,生成系统功能完善方案,根据方案进行增补,完善从学期新增到最终的排课功能

This commit is contained in:
2026-09-15 14:42:43 +08:00
parent 5187435285
commit e8a58b19fe
54 changed files with 4577 additions and 134 deletions
@@ -63,6 +63,7 @@
<div class="right-group">
<el-button type="success" plain icon="el-icon-date" :disabled="!currentRow" @click="handleEditEventCalendar">编辑班历</el-button>
<el-button type="success" plain icon="el-icon-calendar" :disabled="!currentRow" @click="handleEditCalendar">编辑班次教学任务</el-button>
<el-button type="success" plain icon="el-icon-data-line" :disabled="!currentRow" @click="handleAllocation">教学配当</el-button>
</div>
</div>
@@ -170,6 +171,12 @@
@update:visible="val => eventCalendarVisible = val"
/>
<TeachingAllocationDialog
:visible="allocationVisible"
:semester="allocationSemester"
@update:visible="val => allocationVisible = val"
/>
<!-- ==================== 批量创建班次学期弹窗 ==================== -->
<el-dialog
:visible="batchAddVisible"
@@ -320,6 +327,7 @@
import ClassSemesterDetailDialog from './ClassSemesterDetailDialog.vue'
import ClassCalendarDialog from './ClassCalendarDialog.vue'
import ClassEventCalendarDialog from './ClassEventCalendarDialog.vue'
import TeachingAllocationDialog from './TeachingAllocationDialog.vue'
import { batchAutoGenerateTasks } from '@/api/studentRecords/classCalendar'
import { listSemester, allSemester, addSemester, updateSemester, delSemester, batchDeleteSemester, batchUpdateDateRange, batchUpdateJxrwbh, batchCreateSemester, batchUpdateXqdc, batchUpdateKfjypk, batchWaveMerge, batchWaveSplit, listCreatableClasses, presetSemesterDates } from '@/api/studentRecords/semester'
import { listAllSemester } from '@/api/teachBusiness/semester'
@@ -330,7 +338,8 @@ export default {
components: {
ClassSemesterDetailDialog,
ClassCalendarDialog,
ClassEventCalendarDialog
ClassEventCalendarDialog,
TeachingAllocationDialog
},
data() {
return {
@@ -628,6 +637,16 @@ export default {
this.eventCalendarVisible = true
},
handleAllocation(row) {
const target = row || this.currentRow
if (!target) {
this.$message.warning('请先在列表中选择一条班次学期信息')
return
}
this.allocationSemester = target
this.allocationVisible = true
},
handleBatchGenerateTasks() {
if (!this.selection.length) {
this.$message.warning('请先勾选班次学期')