授课记录调整

This commit is contained in:
wangxuemei
2024-11-05 15:48:48 +08:00
parent 5ee9a77b07
commit 6182bd1a3e
3 changed files with 18 additions and 17 deletions

View File

@@ -7,7 +7,7 @@ export const insertInTeacherCourse = (obj) => http.post('/admin/teacherRecord/ad
//删除讲师授课记录
export const deleteInTeacherCourse= (obj) => http.post(`/admin/teacherRecord/delById?id=${obj}`)
//修改讲师授课记录
export const updateInTeacherCourse = (obj) => http.post('/admin/teacherRecord/editTeacher', obj)
export const updateInTeacherCourse = (obj) => http.post('/admin/teacherRecord/editTeacherRecord', obj)
//讲师授课记录详情
export const getTeacherCourseList = (obj) => http.get('/admin/teacherRecord/queryById', {params: obj})
//获取培训组织

View File

@@ -60,7 +60,7 @@
</a-tree-select>
</a-form-item>
<a-form-item class="select" v-if="moreid == 2">
<a-select style="width: 230px" v-model:value="searchParam.status" placeholder="开课状态"
<a-select style="width: 230px" v-model:value="searchParam.courseStatus" placeholder="开课状态"
:options="AuthenticationStatusList" allowClear>
</a-select>
</a-form-item>
@@ -139,7 +139,7 @@
</a-form-item>
</a-col>
</a-row>
<!-- 课程名称name 开课状态 status-->
<!-- 课程名称name 开课状态 courseStatus-->
<a-row :gutter="16">
<a-col :span="12">
<a-form-item label="课程名称" name="coursename">
@@ -149,7 +149,7 @@
</a-col>
<a-col :span="12">
<a-form-item label="开课状态">
<a-radio-group v-model:value="formParam.status" class="draitem">
<a-radio-group v-model:value="formParam.courseStatus" class="draitem">
<a-radio :value="0">未开课</a-radio>
<a-radio :value="1">已开课</a-radio>
</a-radio-group>
@@ -227,7 +227,7 @@
<a-descriptions-item label="课程类型">{{ formParam.type == 1 ? '在线课' : formParam.type == 0 ? '面授课' : ''
}}</a-descriptions-item>
<a-descriptions-item label="课程名称">{{ formParam.coursename }}</a-descriptions-item>
<a-descriptions-item label="开课状态">{{ formParam.status == 0 ? '未开课' : formParam.status == 1
<a-descriptions-item label="开课状态">{{ formParam.courseStatus == 0 ? '未开课' : formParam.courseStatus == 1
? '已开课' : '' }}</a-descriptions-item>
<a-descriptions-item label="内容分类 ">{{ formParam.courseTypeName }}</a-descriptions-item>
<a-descriptions-item label="授课/课程日期 ">{{ formParam.teachingDate }}</a-descriptions-item>
@@ -340,7 +340,7 @@ export default {
teachingDate: undefined, //选择时间
tableDataTotal: -1,//table列表总条数
formParam: {
status: 1,
courseStatus: 1,
entryType: 1,
teaching: null,
teachingDate: null,
@@ -354,7 +354,7 @@ export default {
teacherName: null,
name: null,
address: null,
status: null,
courseStatus: null,
beginTime: null,
endTime: null,
entryType: null,
@@ -376,7 +376,7 @@ export default {
name: [{ required: true, message: '', log: '讲师不能为空' }],
courseTypeId: [{ required: true, message: '', log: '内容分类不能为空' }],
courseName: [{ required: true, message: '', log: '课程名称不能为空' }],
status: [{ required: true, message: '', log: '讲开课状态不能为空' }],
courseStatus: [{ required: true, message: '', log: '讲开课状态不能为空' }],
teaching: [{ required: true, message: '', log: '授课时长不能为空' }],
teachingDate: [{ required: true, message: '', log: '授课日期不能为空' }],
@@ -482,18 +482,18 @@ export default {
// },
{
title: '开课状态 ',
dataIndex: 'status',
key: 'status',
dataIndex: 'courseStatus',
key: 'courseStatus',
elipsis: true, align: "center",
width: 120,
customRender: (value) => {
return (
<div>
{value.record.status == 0 || value.record.status == 1
{value.record.courseStatus == 0 || value.record.courseStatus == 1
? {
"0": "未开课",
"1": "已开课",
}[value.record.status + ""] || ""
}[value.record.courseStatus + ""] || ""
: "-"}
</div>
)
@@ -589,7 +589,7 @@ export default {
name: null,
manager: null,
entryType: null,
status: 1,
courseStatus: null,
entryType: null,
systemId: null,
endTime: null,
@@ -720,7 +720,7 @@ export default {
//清空数据
const cancel = () => {
state.formParam = {
status: 1,
courseStatus: 1,
recordType: 2,
teacherName: null,
mobile: null,
@@ -741,7 +741,7 @@ export default {
else if (state.moreid == 2) {
state.moreid = 1
state.searchParam.type = null
state.searchParam.status = null
state.searchParam.courseStatus = null
state.searchParam.id = null
state.searchParam.entryType = null
}
@@ -794,7 +794,7 @@ export default {
&beginTime=${state.searchParam.beginTime ? state.searchParam.beginTime : ""}
&endTime=${state.searchParam.endTime ? state.searchParam.endTime : ""}
&courseTypeId=${state.searchParam.courseTypeId ? state.searchParam.courseTypeId : ""}
&status=${state.searchParam.status ? state.searchParam.status : ""}`
&courseStatus=${state.searchParam.courseStatus ? state.searchParam.courseStatus : ""}`
);
}
const clearstudysNumber = () => {

View File

@@ -806,7 +806,8 @@ export default {
endTime: null,
beginTime: null,
studysranges: [],
score: null
score: null,
status:null,
};
getTableDate();
};