班次编号生成,改为XYD+年度+补零序号
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// ======================== 班次教学任务(实体 XYDRWB 学员队任务表,不是班历) ========================
|
||||
// ======================== 班次课程(实体 XYDRWB 学员队任务表,不是班历) ========================
|
||||
// 接口依据:api2.txt「班次学期日历(班历)」分组 + StudentTeamTaskController
|
||||
// 每个班次学期(xydxqbh)下挂若干条课程任务记录:
|
||||
// bh 编号、nd 年度、xydbh 学员队编号、kbh 课编号、xqdc 学期第次、jybh 教员编号、kcxh 课次序号、
|
||||
|
||||
@@ -133,7 +133,7 @@
|
||||
<el-row :gutter="16">
|
||||
<el-col :span="12">
|
||||
<el-form-item label="学员队编号" prop="xydbh">
|
||||
<el-input v-model="form.xydbh" placeholder="请输入学员队编号" :disabled="!isAdd" />
|
||||
<el-input v-model="form.xydbh" placeholder="留空自动生成(XYD+年级+四位序号)" :disabled="!isAdd" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
@@ -408,7 +408,7 @@ export default {
|
||||
formSaving: false,
|
||||
form: this.createEmptyForm(),
|
||||
formRules: {
|
||||
xydbh: [{ required: true, message: '请输入学员队编号', trigger: 'blur' }],
|
||||
xydbh: [{ required: false }],
|
||||
xydmc: [{ required: true, message: '请输入学员队名称', trigger: 'blur' }],
|
||||
xydrs: [{ required: true, message: '请输入学员队人数', trigger: 'change' }],
|
||||
zydh: [{ required: true, message: '请选择专业', trigger: 'change' }],
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<el-dialog
|
||||
:visible="dialogVisible"
|
||||
:title="`班次教学任务——${semesterTitle}`"
|
||||
:title="`班次课程——${semesterTitle}`"
|
||||
width="1200px"
|
||||
top="6vh"
|
||||
:close-on-click-modal="false"
|
||||
@@ -33,7 +33,7 @@
|
||||
<el-button size="small" :disabled="!selection.length" @click="handleSyncPlan">同步人培</el-button>
|
||||
<el-button size="small" type="danger" plain :disabled="!selection.length" @click="handleBatchDelete">批量删除</el-button>
|
||||
<el-button size="small" @click="handleApplyRegion">选定区域应用于其它班次</el-button>
|
||||
<el-button size="small" @click="handleApplyWhole">整个班次教学任务应用于其它班次</el-button>
|
||||
<el-button size="small" @click="handleApplyWhole">整个班次课程应用于其它班次</el-button>
|
||||
<el-button size="small" icon="el-icon-refresh" @click="handleRefresh">刷新</el-button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -912,7 +912,7 @@ export default {
|
||||
|
||||
handleApplyWhole() {
|
||||
this.applyMode = 'whole'
|
||||
this.copyNote = '将整个班次教学任务复制到所选班次'
|
||||
this.copyNote = '将整个班次课程复制到所选班次'
|
||||
this.teamSelectVisible = true
|
||||
},
|
||||
|
||||
@@ -935,7 +935,7 @@ export default {
|
||||
targetBhList: targetBhList
|
||||
}).then(res => {
|
||||
const data = (res && res.data) || {}
|
||||
this.$message.success(`已复制整个班次教学任务,共新增 ${data.count || 0} 条记录`)
|
||||
this.$message.success(`已复制整个班次课程,共新增 ${data.count || 0} 条记录`)
|
||||
this.loadData()
|
||||
})
|
||||
} else {
|
||||
@@ -1051,7 +1051,7 @@ export default {
|
||||
/* ---------- 刷新 ---------- */
|
||||
handleRefresh() {
|
||||
this.loadData()
|
||||
this.$message.success('已刷新班次教学任务')
|
||||
this.$message.success('已刷新班次课程')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -151,7 +151,7 @@
|
||||
</tr>
|
||||
<tr v-if="!view.tasks.length">
|
||||
<td :colspan="12 + axisCols.length" class="empty-row">
|
||||
该班次学期暂无课程任务,请先在「班次教学任务」中生成/添加课程。
|
||||
该班次学期暂无课程任务,请先在「班次课程」中生成/添加课程。
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
@@ -62,7 +62,7 @@
|
||||
<el-button type="warning" plain :disabled="!selection.length" @click="handleWaveSplit">预设拆班</el-button>
|
||||
<el-button type="primary" plain :disabled="!selection.length" @click="handleBatchGenerateTasks">批量生成必修课程</el-button>
|
||||
<el-button type="success" plain icon="el-icon-date" :disabled="selection.length !== 1" @click="handleEditEventCalendar()">编辑班历</el-button>
|
||||
<el-button type="success" plain icon="el-icon-calendar" :disabled="selection.length !== 1" @click="handleEditCalendar()">编辑班次教学任务</el-button>
|
||||
<el-button type="success" plain icon="el-icon-calendar" :disabled="selection.length !== 1" @click="handleEditCalendar()">编辑班次课程</el-button>
|
||||
<el-button type="success" plain icon="el-icon-data-line" :disabled="selection.length !== 1" @click="handleAllocation()">教学配当</el-button>
|
||||
<el-button type="success" plain icon="el-icon-download" :disabled="!selection.length" @click="handleExportAllocation">导出配当</el-button>
|
||||
<el-button type="primary" plain icon="el-icon-upload2" :disabled="!selection.length" @click="handlePublishRunning">发布运行课表</el-button>
|
||||
@@ -124,7 +124,7 @@
|
||||
<template slot-scope="{ row }">
|
||||
<el-button type="text" size="small" @click="handleEdit(row)">编辑</el-button>
|
||||
<el-button type="text" size="small" @click="handleEditEventCalendar(row)">班历</el-button>
|
||||
<el-button type="text" size="small" @click="handleEditCalendar(row)">教学任务</el-button>
|
||||
<el-button type="text" size="small" @click="handleEditCalendar(row)">班次课程</el-button>
|
||||
<el-button type="text" size="small" @click="handleSchedule(row)">排课</el-button>
|
||||
<el-button type="text" size="small" class="text-danger" @click="handleDeleteRow(row)">删除</el-button>
|
||||
</template>
|
||||
@@ -156,7 +156,7 @@
|
||||
@submit="handleDetailSubmit"
|
||||
/>
|
||||
|
||||
<!-- ==================== 班次教学任务弹窗 ==================== -->
|
||||
<!-- ==================== 班次课程弹窗 ==================== -->
|
||||
<ClassCalendarDialog
|
||||
:visible="calendarVisible"
|
||||
:semester="calendarSemester"
|
||||
@@ -763,7 +763,7 @@ export default {
|
||||
}).catch(() => {})
|
||||
},
|
||||
|
||||
/* ==================== 编辑班次教学任务 ==================== */
|
||||
/* ==================== 编辑班次课程 ==================== */
|
||||
handleEditCalendar(row) {
|
||||
const target = row || this.selection[0]
|
||||
if (!target) {
|
||||
|
||||
Reference in New Issue
Block a user