讲师管理

This commit is contained in:
zhangsir
2024-11-11 17:04:11 +08:00
parent e3b897dc1f
commit 6b4412aa9a
3 changed files with 74 additions and 13 deletions

View File

@@ -101,7 +101,7 @@
</div>
</div>
</a-drawer>
<a-button @click="openDrawer" type="link">
<a-button @click="openDrawer" type="link" style="width:100%">
<slot></slot>
</a-button>
</div>
@@ -149,16 +149,16 @@ watch(stuSelectRows,(val)=>{
teaunm.value = []
return
}
console.log(stuSelectRowKeys.value,'xixixixi')
teaunm.value = val.map((res,index)=>{
return {
userName:res.realName,
userNo:res.userNo,
type: props.type,
userId: res.id,
label: res.realName + res.userNo,
...res
}
})
console.log(teaunm.value);
},{deep:true})
const person = ref(false);
const visiable = ref(false);
@@ -238,6 +238,8 @@ function onLoadData(treeNode) {
const openDrawer = () => {
visiable.value = true;
stuSelectRows.value = props.arrayList
stuSelectRowKeys.value = props.arrayList.map(item=>item.userId)
};
function onSearchStu() {