mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-22 17:26:46 +08:00
Merge remote-tracking branch 'zcwy/zcwy-teacher-manage' into zcwy-teacher-manage
This commit is contained in:
@@ -3,11 +3,11 @@ import {getCookieForName} from "@/api/method";
|
|||||||
//列表查询授课记录
|
//列表查询授课记录
|
||||||
export const getNewInTeacherCourseList = (obj) => http.get('/admin/teacherRecord/list', {params: obj})
|
export const getNewInTeacherCourseList = (obj) => http.get('/admin/teacherRecord/list', {params: obj})
|
||||||
//新增授课记录
|
//新增授课记录
|
||||||
export const insertInTeacherCourse = (obj) => http.post('/admin/teacherRecord/addTeacherRecord', obj)
|
export const insertInTeacherCourse = (obj) => http.post('/admin/teacher/addTeacherRecord', obj)
|
||||||
//删除讲师授课记录
|
//删除讲师授课记录
|
||||||
export const deleteInTeacherCourse= (obj) => http.post(`/admin/teacherRecord/delById?id=${obj}`)
|
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})
|
export const getTeacherCourseList = (obj) => http.get('/admin/teacherRecord/queryById', {params: obj})
|
||||||
//获取培训组织
|
//获取培训组织
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
<!-- <a-input v-model:value="searchParam.userNo" style="width: 276px; height: 40px; border-radius: 8px"
|
<!-- <a-input v-model:value="searchParam.userNo" style="width: 276px; height: 40px; border-radius: 8px"
|
||||||
placeholder="请输入工号/讲师姓名进行检索" allowClear showSearch>
|
placeholder="请输入工号/讲师姓名进行检索" allowClear showSearch>
|
||||||
</a-input> -->
|
</a-input> -->
|
||||||
<a-input style="width: 276px; height: 40px; border-radius: 8px" placeholder="请输入工号/讲师姓名进行检索" showSearch
|
<a-input style="width: 276px; height: 40px; border-radius: 8px" placeholder="请输入讲师姓名/手机号进行检索" showSearch
|
||||||
allowClear v-model:value="searchParam.name"></a-input>
|
allowClear v-model:value="searchParam.name"></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item class="select">
|
<a-form-item class="select">
|
||||||
@@ -60,7 +60,7 @@
|
|||||||
</a-tree-select>
|
</a-tree-select>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item class="select" v-if="moreid == 2">
|
<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>
|
:options="AuthenticationStatusList" allowClear>
|
||||||
</a-select>
|
</a-select>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
@@ -139,17 +139,17 @@
|
|||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
<!-- 课程名称:name 开课状态 status-->
|
<!-- 课程名称:name 开课状态 courseStatus-->
|
||||||
<a-row :gutter="16">
|
<a-row :gutter="16">
|
||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<a-form-item label="课程名称" name="coursename">
|
<a-form-item label="课程名称" name="courseName">
|
||||||
<a-input class="draitem" v-model:value="formParam.coursename" placeholder="请输入后搜索面授课" allowClear showSearch>
|
<a-input class="draitem" v-model:value="formParam.courseName" placeholder="请输入后搜索面授课" allowClear showSearch>
|
||||||
</a-input>
|
</a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<a-form-item label="开课状态">
|
<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="0">未开课</a-radio>
|
||||||
<a-radio :value="1">已开课</a-radio>
|
<a-radio :value="1">已开课</a-radio>
|
||||||
</a-radio-group>
|
</a-radio-group>
|
||||||
@@ -226,8 +226,8 @@
|
|||||||
<a-descriptions-item label="手机号码">{{ formParam.mobile }}</a-descriptions-item>
|
<a-descriptions-item label="手机号码">{{ formParam.mobile }}</a-descriptions-item>
|
||||||
<a-descriptions-item label="课程类型">{{ formParam.type == 1 ? '在线课' : formParam.type == 0 ? '面授课' : ''
|
<a-descriptions-item label="课程类型">{{ formParam.type == 1 ? '在线课' : formParam.type == 0 ? '面授课' : ''
|
||||||
}}</a-descriptions-item>
|
}}</a-descriptions-item>
|
||||||
<a-descriptions-item label="课程名称">{{ formParam.coursename }}</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>
|
||||||
<a-descriptions-item label="内容分类 ">{{ formParam.courseTypeName }}</a-descriptions-item>
|
<a-descriptions-item label="内容分类 ">{{ formParam.courseTypeName }}</a-descriptions-item>
|
||||||
<a-descriptions-item label="授课/课程日期 ">{{ formParam.teachingDate }}</a-descriptions-item>
|
<a-descriptions-item label="授课/课程日期 ">{{ formParam.teachingDate }}</a-descriptions-item>
|
||||||
@@ -340,7 +340,7 @@ export default {
|
|||||||
teachingDate: undefined, //选择时间
|
teachingDate: undefined, //选择时间
|
||||||
tableDataTotal: -1,//table列表总条数
|
tableDataTotal: -1,//table列表总条数
|
||||||
formParam: {
|
formParam: {
|
||||||
status: 1,
|
courseStatus: 1,
|
||||||
entryType: 1,
|
entryType: 1,
|
||||||
teaching: null,
|
teaching: null,
|
||||||
teachingDate: null,
|
teachingDate: null,
|
||||||
@@ -354,7 +354,7 @@ export default {
|
|||||||
teacherName: null,
|
teacherName: null,
|
||||||
name: null,
|
name: null,
|
||||||
address: null,
|
address: null,
|
||||||
status: null,
|
courseStatus: null,
|
||||||
beginTime: null,
|
beginTime: null,
|
||||||
endTime: null,
|
endTime: null,
|
||||||
entryType: null,
|
entryType: null,
|
||||||
@@ -376,7 +376,7 @@ export default {
|
|||||||
name: [{ required: true, message: '', log: '讲师不能为空' }],
|
name: [{ required: true, message: '', log: '讲师不能为空' }],
|
||||||
courseTypeId: [{ required: true, message: '', log: '内容分类不能为空' }],
|
courseTypeId: [{ required: true, message: '', log: '内容分类不能为空' }],
|
||||||
courseName: [{ required: true, message: '', log: '课程名称不能为空' }],
|
courseName: [{ required: true, message: '', log: '课程名称不能为空' }],
|
||||||
status: [{ required: true, message: '', log: '讲开课状态不能为空' }],
|
courseStatus: [{ required: true, message: '', log: '讲开课状态不能为空' }],
|
||||||
teaching: [{ required: true, message: '', log: '授课时长不能为空' }],
|
teaching: [{ required: true, message: '', log: '授课时长不能为空' }],
|
||||||
teachingDate: [{ required: true, message: '', log: '授课日期不能为空' }],
|
teachingDate: [{ required: true, message: '', log: '授课日期不能为空' }],
|
||||||
|
|
||||||
@@ -442,8 +442,8 @@ export default {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '课程名称 ',
|
title: '课程名称 ',
|
||||||
dataIndex: 'name',
|
dataIndex: 'courseName',
|
||||||
key: 'name',
|
key: 'courseName',
|
||||||
elipsis: true, align: "center",
|
elipsis: true, align: "center",
|
||||||
width: 120,
|
width: 120,
|
||||||
},
|
},
|
||||||
@@ -468,8 +468,8 @@ export default {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '授课时间 ',
|
title: '授课时间 ',
|
||||||
dataIndex: 'beginTime',
|
dataIndex: 'teachingDate',
|
||||||
key: 'beginTime',
|
key: 'teachingDate',
|
||||||
elipsis: true, align: "center",
|
elipsis: true, align: "center",
|
||||||
width: 120,
|
width: 120,
|
||||||
},
|
},
|
||||||
@@ -482,18 +482,18 @@ export default {
|
|||||||
// },
|
// },
|
||||||
{
|
{
|
||||||
title: '开课状态 ',
|
title: '开课状态 ',
|
||||||
dataIndex: 'status',
|
dataIndex: 'courseStatus',
|
||||||
key: 'status',
|
key: 'courseStatus',
|
||||||
elipsis: true, align: "center",
|
elipsis: true, align: "center",
|
||||||
width: 120,
|
width: 120,
|
||||||
customRender: (value) => {
|
customRender: (value) => {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
{value.record.status == 0 || value.record.status == 1
|
{value.record.courseStatus == 0 || value.record.courseStatus == 1
|
||||||
? {
|
? {
|
||||||
"0": "未开课",
|
"0": "未开课",
|
||||||
"1": "已开课",
|
"1": "已开课",
|
||||||
}[value.record.status + ""] || ""
|
}[value.record.courseStatus + ""] || ""
|
||||||
: "-"}
|
: "-"}
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
@@ -589,7 +589,7 @@ export default {
|
|||||||
name: null,
|
name: null,
|
||||||
manager: null,
|
manager: null,
|
||||||
entryType: null,
|
entryType: null,
|
||||||
status: 1,
|
courseStatus: null,
|
||||||
entryType: null,
|
entryType: null,
|
||||||
systemId: null,
|
systemId: null,
|
||||||
endTime: null,
|
endTime: null,
|
||||||
@@ -720,7 +720,7 @@ export default {
|
|||||||
//清空数据
|
//清空数据
|
||||||
const cancel = () => {
|
const cancel = () => {
|
||||||
state.formParam = {
|
state.formParam = {
|
||||||
status: 1,
|
courseStatus: 1,
|
||||||
recordType: 2,
|
recordType: 2,
|
||||||
teacherName: null,
|
teacherName: null,
|
||||||
mobile: null,
|
mobile: null,
|
||||||
@@ -741,7 +741,7 @@ export default {
|
|||||||
else if (state.moreid == 2) {
|
else if (state.moreid == 2) {
|
||||||
state.moreid = 1
|
state.moreid = 1
|
||||||
state.searchParam.type = null
|
state.searchParam.type = null
|
||||||
state.searchParam.status = null
|
state.searchParam.courseStatus = null
|
||||||
state.searchParam.id = null
|
state.searchParam.id = null
|
||||||
state.searchParam.entryType = null
|
state.searchParam.entryType = null
|
||||||
}
|
}
|
||||||
@@ -794,7 +794,7 @@ export default {
|
|||||||
&beginTime=${state.searchParam.beginTime ? state.searchParam.beginTime : ""}
|
&beginTime=${state.searchParam.beginTime ? state.searchParam.beginTime : ""}
|
||||||
&endTime=${state.searchParam.endTime ? state.searchParam.endTime : ""}
|
&endTime=${state.searchParam.endTime ? state.searchParam.endTime : ""}
|
||||||
&courseTypeId=${state.searchParam.courseTypeId ? state.searchParam.courseTypeId : ""}
|
&courseTypeId=${state.searchParam.courseTypeId ? state.searchParam.courseTypeId : ""}
|
||||||
&status=${state.searchParam.status ? state.searchParam.status : ""}`
|
&courseStatus=${state.searchParam.courseStatus ? state.searchParam.courseStatus : ""}`
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
const clearstudysNumber = () => {
|
const clearstudysNumber = () => {
|
||||||
|
|||||||
@@ -1566,7 +1566,7 @@ display: flex;
|
|||||||
justify-content: right;
|
justify-content: right;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.item_inp .i_upload_img[data-v-e369ffe0] {
|
.item_inp .i_upload_img[data-v-6b882d01] {
|
||||||
border-radius:50%
|
border-radius:50%
|
||||||
}
|
}
|
||||||
</style >
|
</style >
|
||||||
@@ -227,8 +227,8 @@
|
|||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<a-form-item label="开课状态">
|
<a-form-item label="开课状态">
|
||||||
<a-radio-group v-model:value="formParam.courseStatus" class="draitem">
|
<a-radio-group v-model:value="formParam.courseStatus" class="draitem">
|
||||||
<a-radio value="1">未开课</a-radio>
|
<a-radio :value="1">未开课</a-radio>
|
||||||
<a-radio value="0">已开课</a-radio>
|
<a-radio :value="0">已开课</a-radio>
|
||||||
</a-radio-group>
|
</a-radio-group>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
@@ -296,14 +296,13 @@
|
|||||||
<a-descriptions bordered :column="2" :contentStyle="rowCenter" :labelStyle="rowCenter">
|
<a-descriptions bordered :column="2" :contentStyle="rowCenter" :labelStyle="rowCenter">
|
||||||
<a-descriptions-item label="讲师名称">{{ formParam.teacherName }}</a-descriptions-item>
|
<a-descriptions-item label="讲师名称">{{ formParam.teacherName }}</a-descriptions-item>
|
||||||
<a-descriptions-item label="讲师工号">{{ formParam.userNo }}</a-descriptions-item>
|
<a-descriptions-item label="讲师工号">{{ formParam.userNo }}</a-descriptions-item>
|
||||||
<a-descriptions-item label="讲师组织" :span="2">{{ formParam.organizationName }}</a-descriptions-item>
|
<a-descriptions-item label="讲师组织" :span="2">{{ formParam.orgName }}</a-descriptions-item>
|
||||||
<a-descriptions-item label="讲师体系">{{ formParam.tsystemName }}</a-descriptions-item>
|
<a-descriptions-item label="讲师体系">{{ formParam.tsystemName }}</a-descriptions-item>
|
||||||
<a-descriptions-item label="讲师级别">{{ formParam.tlevelName
|
<a-descriptions-item label="讲师级别">{{ formParam.tlevelName
|
||||||
}}</a-descriptions-item>
|
}}</a-descriptions-item>
|
||||||
<a-descriptions-item label="录入方式">
|
<a-descriptions-item label="录入方式">
|
||||||
{{ formParam.createFrom == 0 ? '系统生成' : formParam.createFrom == 1 ? '手动录入' : '' }}</a-descriptions-item>
|
{{ formParam.createFrom == 0 ? '系统生成' : formParam.createFrom == 1 ? '手动录入' : '' }}</a-descriptions-item>
|
||||||
<a-descriptions-item label="课程类型">{{ formParam.type == 1 ? '项目开课' : formParam.type == 2 ? '路径开课' : formParam.type == 3
|
<a-descriptions-item label="课程类型">{{ formParam.type == 1 ? '在线课' : formParam.type == 0 ? '面授课' : '' }}</a-descriptions-item>
|
||||||
? '面授开课' : '' }}</a-descriptions-item>
|
|
||||||
<a-descriptions-item label="课程名称">{{ formParam.courseName }}</a-descriptions-item>
|
<a-descriptions-item label="课程名称">{{ formParam.courseName }}</a-descriptions-item>
|
||||||
<a-descriptions-item label="开课状态">{{ formParam.courseStatus == 1? '未开课' : formParam.courseStatus == 0
|
<a-descriptions-item label="开课状态">{{ formParam.courseStatus == 1? '未开课' : formParam.courseStatus == 0
|
||||||
? '已开课' : '' }}</a-descriptions-item>
|
? '已开课' : '' }}</a-descriptions-item>
|
||||||
@@ -448,7 +447,7 @@ export default {
|
|||||||
levelVoList: []
|
levelVoList: []
|
||||||
},
|
},
|
||||||
formParam: {
|
formParam: {
|
||||||
courseStatus: '1',
|
courseStatus: 1,
|
||||||
createFrom: 1,
|
createFrom: 1,
|
||||||
teaching: null,
|
teaching: null,
|
||||||
name:null,
|
name:null,
|
||||||
@@ -525,8 +524,8 @@ export default {
|
|||||||
{ value: 3, label: "面授开课" },
|
{ value: 3, label: "面授开课" },
|
||||||
])
|
])
|
||||||
const AuthenticationStatusList = ref([
|
const AuthenticationStatusList = ref([
|
||||||
{ value: 0, label: "未开课" },
|
{ value: 1, label: "未开课" },
|
||||||
{ value: 1, label: "已开课" },
|
{ value: 0, label: "已开课" },
|
||||||
])
|
])
|
||||||
const entryTypeList = ref([
|
const entryTypeList = ref([
|
||||||
{ value: 0, label: "系统生成" },
|
{ value: 0, label: "系统生成" },
|
||||||
@@ -806,7 +805,8 @@ export default {
|
|||||||
endTime: null,
|
endTime: null,
|
||||||
beginTime: null,
|
beginTime: null,
|
||||||
studysranges: [],
|
studysranges: [],
|
||||||
score: null
|
score: null,
|
||||||
|
status:null,
|
||||||
};
|
};
|
||||||
getTableDate();
|
getTableDate();
|
||||||
};
|
};
|
||||||
@@ -936,7 +936,7 @@ export default {
|
|||||||
const cancel = () => {
|
const cancel = () => {
|
||||||
state.formParam = {
|
state.formParam = {
|
||||||
recordType: 1,
|
recordType: 1,
|
||||||
courseStatus:'1',
|
courseStatus:1,
|
||||||
teacher: null,
|
teacher: null,
|
||||||
orgName: null,
|
orgName: null,
|
||||||
tsystemName: null,
|
tsystemName: null,
|
||||||
|
|||||||
Reference in New Issue
Block a user