讲师管理bug

This commit is contained in:
zhangsir
2024-12-17 11:19:50 +08:00
parent c1d8b2256e
commit c2a31220b1
16 changed files with 91 additions and 43 deletions

View File

@@ -630,7 +630,27 @@ textarea {
}
//大型抽屉
.largeDrawerInside {
.ant-drawer-content-wrapper {
.ant-drawer-header {
display: none !important;
}
.ant-drawer-body {
padding: 0;
}
}
.drawerMain {
min-width: 700px;
margin: 0px 32px 0px 32px;
overflow-x: auto;
display: flex;
flex-direction: column;
}
}
//弹窗--------------------------------------------------------
.modalStyle {

View File

@@ -2,7 +2,7 @@
<a-drawer
:visible="visible"
:closable="false"
class="largeDrawerStyle"
class="largeDrawerInside"
placement="right"
width="70%"
>
@@ -301,7 +301,7 @@ const queryDrawer = () => {
<style lang="scss" scoped>
.largeDrawerStyle {
.largeDrawerInside {
.drawerMains {
min-width: 600px;
// margin: 0px 32px 0px 32px;

View File

@@ -2,7 +2,7 @@
<a-drawer
:visible="visible"
:closable="false"
class="largeDrawerStyle"
class="largeDrawerInside"
placement="right"
width="64%"
:zIndex="1001"
@@ -533,7 +533,7 @@ const config = () => {
}
}
.largeDrawerStyle {
.largeDrawerInside {
.drawerMains {
min-width: 600px;
// margin: 0px 32px 0px 32px;

View File

@@ -1,6 +1,6 @@
<template>
<a-drawer :visible="visible" class="largeDrawerStyle" placement="right" :closable="false" :maskClosable="false"
<a-drawer :visible="visible" class="largeDrawerInside" placement="right" :closable="false" :maskClosable="false"
width="80%" :title="false">
<!-- 外部讲师查看详情 -->
<div class="LookExternalLecturer">

View File

@@ -1,5 +1,5 @@
<template>
<a-drawer class="largeDrawerStyle" :visible="visible" placement="right" :closable="false" :maskClosable="false"
<a-drawer class="largeDrawerInside" :visible="visible" placement="right" :closable="false" :maskClosable="false"
width="80%" :title="false">
<!-- 内部讲师查看详情 -->
<div class="LookInsideLecturer">

View File

@@ -18,6 +18,7 @@
:dropdown-style="{ maxHeight: '400px', overflow: 'auto' }"
:placeholder="placeholder"
:labelInValue="true"
allow-clear
v-model:treeExpandedKeys="stuTreeExpandedKeys"
:loading="orgLoading"
:load-data="onLoadData"
@@ -65,10 +66,10 @@ const keydownEnter = (e) => {
}
watch(props, () => {
stuTreeExpandedKeys.value = [];
if (labelValue.value.value !== props.value) {
if (labelValue.value?.value !== props.value) {
labelValue.value = { value: props.value, label: props.name };
}
if (labelValue.value.label !== props.name) {
if (labelValue.value?.label !== props.name) {
labelValue.value = { value: props.value, label: props.name };
}
});
@@ -83,16 +84,17 @@ function onLoadData(treeNode) {
}
function change(
{ label, value },
values,
obj,
{
triggerNode: {
props: { namePath },
},
}
// {
// triggerNode: {
// props: { namePath },
// },
// }
node
) {
emit("update:name", label);
emit("update:fullName", namePath);
emit("update:value", value);
emit("update:name", values?.label);
emit("update:fullName", node?.triggerNode?.props?.namePath);
emit("update:value", values?.value);
}
</script>

View File

@@ -4089,8 +4089,9 @@ function onFocusEnd(){
state.addLoading = false;
})
.catch((err) => {
message.destroy()
message.error(err.data.msg)
state.loading = false;
state.addLoading = false;
console.log(err);
});
state.cstm_hs = false;

View File

@@ -63,7 +63,7 @@
</div>
</div>
<!-- 弹窗组件 -->
<a-drawer class="largeDrawerStyle" v-model:visible="teacherdialog" placement="right" :closable="false" :maskClosable="false"
<a-drawer class="largeDrawerInside" v-model:visible="teacherdialog" placement="right" :closable="false" :maskClosable="false"
width="700px" :title="false">
<div style="padding:24px">
<div class="headers" style="margin-top:-24px;width: 110%;margin-left: -24px;">

View File

@@ -131,7 +131,7 @@
</div>
</div>
<!-- 弹窗组件 -->
<a-drawer class="largeDrawerStyle" v-model:visible="teacherdialog" placement="right" :maskClosable="false" :closable="false"
<a-drawer class="largeDrawerInside" v-model:visible="teacherdialog" placement="right" :maskClosable="false" :closable="false"
width="60%" :title="false">
<div style="padding:24px;">
<div class="headers" style="margin-top:-24px;">
@@ -312,7 +312,7 @@
</div>
</a-drawer>
<!-- 查看授课记录 -->
<a-drawer class="largeDrawerStyle" v-model:visible="teachingdialog" placement="right" :maskClosable="false" :closable="false"
<a-drawer class="largeDrawerInside" v-model:visible="teachingdialog" placement="right" :maskClosable="false" :closable="false"
width="60%" :title="false">
<div style="padding:24px;">
<div class="headers" style="margin-top:-24px;">

View File

@@ -113,7 +113,7 @@
</div>
</div>
<!-- 弹窗组件 -->
<a-drawer class="largeDrawerStyle" v-model:visible="teacherdialog" placement="right" :closable="false" :maskClosable="false"
<a-drawer class="largeDrawerInside" v-model:visible="teacherdialog" placement="right" :closable="false" :maskClosable="false"
width="700" :title="false">
<div style="padding:24px">
<div class="headers" style="margin-top:-24px;margin-left: -25px;width: 110%;">

View File

@@ -140,7 +140,7 @@
</div>
</div>
<!-- 弹窗组件 -->
<a-drawer class="largeDrawerStyle" v-model:visible="teacherdialog" :closable="false" placement="right" :maskClosable="false"
<a-drawer class="largeDrawerInside" v-model:visible="teacherdialog" :closable="false" placement="right" :maskClosable="false"
width="60%" :title="false">
<div style="padding:24px;">
<div class="headers" style="margin-top:-24px;">
@@ -389,7 +389,7 @@
</div>
</a-drawer>
<!--查看授课详情 -->
<a-drawer class="largeDrawerStyle" v-model:visible="teachingdialog" :closable="false" placement="right" :maskClosable="false"
<a-drawer class="largeDrawerInside" v-model:visible="teachingdialog" :closable="false" placement="right" :maskClosable="false"
width="60%" :title="false">
<div style="padding:24px;">
<div class="headers" style="margin-top:-24px;">

View File

@@ -1,5 +1,5 @@
<template>
<a-drawer class="largeDrawerStyle" :visible="visible" placement="right" :closable="false" :maskClosable="false"
<a-drawer class="largeDrawerInside" :visible="visible" placement="right" :closable="false" :maskClosable="false"
width="60%" :title="false">
<div class="appedit">
<div class="header" style="margin-top: -24px;">
@@ -74,7 +74,7 @@
<button class="btn2" @click="paramsDrawer">提交</button>
</div>
</div>
<a-drawer class="largeDrawerStyle" v-model:visible="teacherdialog" placement="right" :closable="false" :maskClosable="false" dropdown-style="drawaer"
<a-drawer class="largeDrawerInside" v-model:visible="teacherdialog" placement="right" :closable="false" :maskClosable="false" dropdown-style="drawaer"
width="60%" :title="false">
<div style="padding:24px;">
<div class="headers" style="margin-top:-24px;">

View File

@@ -120,7 +120,7 @@
</div>
<!-- 弹窗组件 -->
<!--查看讲师费详情 -->
<a-drawer class="largeDrawerStyle" :closable="false" v-model:visible="teachingdialog" placement="right"
<a-drawer class="largeDrawerInside" :closable="false" v-model:visible="teachingdialog" placement="right"
@closa="cancelTeachingDialog" width="60%" :title="false">
<div style="padding:24px;">
<div class="headers" style="margin-top:-24px;">

View File

@@ -156,7 +156,7 @@
</div>
</div>
<!-- 弹窗组件 -->
<a-drawer class="largeDrawerStyle" v-model:visible="teacherdialog" placement="right" :closable="false" :maskClosable="false" dropdown-style="drawaer"
<a-drawer class="largeDrawerInside" v-model:visible="teacherdialog" placement="right" :closable="false" :maskClosable="false" dropdown-style="drawaer"
width="60%" :title="false">
<div style="padding:24px;">
<div class="headers" style="margin-top:-24px;">
@@ -501,7 +501,7 @@
</a-modal>
</div>
<!-- <div> <Upload/> </div> -->
<a-drawer class="largeDrawerStyle" v-model:visible="teachingdialog" placement="right"
<a-drawer class="largeDrawerInside" v-model:visible="teachingdialog" placement="right"
:closable="false" width="60%" :title="false">
<div style="padding:24px;">
<div class="headers" style="margin-top:-24px;">

View File

@@ -99,12 +99,20 @@
</div>
</div>
<!-- 抽屉 -->
<a-drawer class="largeDrawerStyle" v-model:visible="opendrawer" placement="right"
@closa="cancelTeachingDialog" :maskClosable="true" width="60%" title="查看详情">
<a-drawer class="largeDrawerInside" v-model:visible="opendrawer" placement="right"
@closa="cancelTeachingDialog" :maskClosable="true" width="60%" :title="false">
<div style="padding:24px;">
<div class="headers" style="margin-top:-24px;">
<div class="headerTitle">查看详情</div>
<img
style="width: 29px; height: 29px; cursor: pointer"
src="@/assets/images/basicinfo/close.png"
@click="cancelTeachingDialog"
/>
</div>
<a-form layout="inline">
<a-form-item class="select">
<a-input v-model:value="drawer.name" style="width: 260px; height: 40px; border-radius: 8px"
<a-input @pressEnter="searchSubmitdrawer" v-model:value="drawer.name" style="width: 260px; height: 40px; border-radius: 8px"
placeholder="请输入课程名称进行搜索" allowClear showSearch>
</a-input>
</a-form-item>
@@ -221,7 +229,7 @@ export default {
key: 'name',
ellipsis: true,
align: "center",
width: 200,
width: 160,
},
{
title: '讲师工号',
@@ -229,7 +237,7 @@ export default {
key: 'userNo',
align: "center",
ellipsis: true,
width: 200,
width: 160,
},
{
title: '所属组织 ',
@@ -248,7 +256,7 @@ export default {
key: 'payrollPlace',
ellipsis: true,
align: "center",
width: 200,
width: 160,
},
{
title: '授课时长(系统 ) ',
@@ -256,7 +264,7 @@ export default {
key: 'teachingSystem',
ellipsis: true,
align: "center",
width: 200,
width: 160,
},
{
title: '授课时长(录入) ',
@@ -264,7 +272,7 @@ export default {
key: 'teachingEnter',
ellipsis: true,
align: "center",
width: 200,
width: 160,
},
{
title: '开发课程时长 ',
@@ -272,7 +280,7 @@ export default {
key: 'expense',
ellipsis: true,
align: "center",
width: 200,
width: 160,
},
{
title: '计划费用 ',
@@ -280,7 +288,7 @@ export default {
key: 'expense',
ellipsis: true,
align: "center",
width: 200,
width: 160,
},
{
title: '应发费用 ',
@@ -288,16 +296,16 @@ export default {
key: 'payableExpense',
ellipsis: true,
align: "center",
width: 200,
width: 160,
},
{
title: '操作 ',
dataIndex: 'operation',
key: 'operation',
ellipsis: true,
align: "right",
align: "center",
fixed: "right",
width: 120,
width: 160,
scopedSlots: { customRender: "action" },
},
])
@@ -652,7 +660,24 @@ export default {
.select .ant-picker {
width: 410px !important;
}
.headers {
height: 73px;
border-bottom: 1px solid #e8e8e8;
display: flex;
justify-content: space-between;
align-items: center;
// background-color: red;
margin-bottom: 20px;
flex-shrink: 0;
.headerTitle {
font-size: 18px;
font-weight: 600;
color: #333333;
line-height: 25px;
// margin-left: 24px;
}
}
.addTimeBox {
position: relative;
display: flex;

View File

@@ -88,7 +88,7 @@
</a-modal>
</div>
<!-- 抽屉 -->
<a-drawer class="largeDrawerStyle" v-model:visible="teacherdialog" :closable="false" :title="false" placement="right" width="60%" :maskClosable="false" >
<a-drawer class="largeDrawerInside" v-model:visible="teacherdialog" :closable="false" :title="false" placement="right" width="60%" :maskClosable="false" >
<div style="padding:24px;">
<div class="headers" style="margin-top: -24px">
<div class="headerTitle">{{ teacherdialogtitle }}</div>