讲师管理bug

This commit is contained in:
zhangsir
2024-11-25 18:58:44 +08:00
parent 777dec4020
commit e6d8907a2b
4 changed files with 29 additions and 28 deletions

View File

@@ -1060,7 +1060,7 @@ export default {
href: "/organization", href: "/organization",
openKeys: "sub24", openKeys: "sub24",
selectedKeys: "sub24-5", selectedKeys: "sub24-5",
pagename: "归属组织管理", pagename: "培训发生组织",
}, },
{ {
href: "/lecturerSystem", href: "/lecturerSystem",

View File

@@ -200,7 +200,7 @@
<a-form-item label="初始授课时长" name="defaultTeachingTime"> <a-form-item label="初始授课时长" name="defaultTeachingTime">
<a-input v-model:value="formParam.defaultTeachingTime" style="width:80%; height: 40px; border-radius: 8px; " <a-input v-model:value="formParam.defaultTeachingTime" style="width:80%; height: 40px; border-radius: 8px; "
:maxLength="8" :maxLength="8"
@blur="clearNonNumber" placeholder="0" allowClear suffix="分钟"> @change="clearNonNumber" placeholder="0" allowClear suffix="分钟">
</a-input> </a-input>
<span style="margin-left: 5px ;" v-if="formParam.defaultTeachingTime === null">0.00小时</span> <span style="margin-left: 5px ;" v-if="formParam.defaultTeachingTime === null">0.00小时</span>
<span style="margin-left: 5px ;" v-if="formParam.defaultTeachingTime != null">{{ <span style="margin-left: 5px ;" v-if="formParam.defaultTeachingTime != null">{{
@@ -988,6 +988,7 @@ export default {
state.formParam.expertise = state.formParam?.orgLists?.map(item => item.id).join(',') state.formParam.expertise = state.formParam?.orgLists?.map(item => item.id).join(',')
state.formParam.expertiseNames = state.formParam?.orgLists?.map(item => item.name).join(',') state.formParam.expertiseNames = state.formParam?.orgLists?.map(item => item.name).join(',')
state.formParam = {...state.formParam,...state.tSystemNames} state.formParam = {...state.formParam,...state.tSystemNames}
delete state.formParam.teaching
if (state.vf == false) { if (state.vf == false) {
updateInTeacher(state.formParam).then(response => { updateInTeacher(state.formParam).then(response => {
message.success("编辑成功"); message.success("编辑成功");

View File

@@ -833,6 +833,29 @@ getAllLevelList().then((res) => {
ellipsis: true, align: "center", ellipsis: true, align: "center",
width: 120, width: 120,
}, },
{
title: '课程类型 ',
dataIndex: ' courseType',
key: ' courseType',
ellipsis: true,
align: "center",
width: 120,
customRender: (value) => {
return (
<div>
{String(value.record. courseType)
? {
"0": "在线课",
"1": "面授课",
"2": "课程开发",
"3": "作业员入模培训",
"4": "其他",
}[value.record. courseType + ""]
: "-"}
</div>
)
}
},
{ {
title: '状态 ', title: '状态 ',
dataIndex: 'status', dataIndex: 'status',
@@ -857,29 +880,6 @@ getAllLevelList().then((res) => {
) )
} }
}, },
{
title: '课程类型 ',
dataIndex: ' courseType',
key: ' courseType',
ellipsis: true,
align: "center",
width: 120,
customRender: (value) => {
return (
<div>
{String(value.record. courseType)
? {
"0": "在线课",
"1": "面授课",
"2": "课程开发",
"3": "作业员入模培训",
"4": "其他",
}[value.record. courseType + ""]
: "-"}
</div>
)
}
},
{ {
title: '讲师组织', title: '讲师组织',
dataIndex: 'orgName', dataIndex: 'orgName',

View File

@@ -284,9 +284,9 @@ export default{
}, },
}) })
const PlaceOfPayList = ref([ const PlaceOfPayList = ref([
{ value: '1', label: "一级审批" }, { value: '1', label: "一级审批" },
{ value: '2', label: "二级审批" }, { value: '2', label: "二级审批" },
{ value: '3', label: "三级审批" }, { value: '3', label: "三级审批" },
]) ])
const placeData = () => { const placeData = () => {
lecturer.parentList().then(res=>{ lecturer.parentList().then(res=>{