讲师管理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

@@ -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>