讲师管理

This commit is contained in:
zhangsir
2024-11-06 18:51:13 +08:00
parent 11af2977c2
commit 8c846fb111
9 changed files with 53 additions and 23 deletions

View File

@@ -24,6 +24,7 @@
:pagination="false"
:scroll="{ x: 'max-content' }"
row-key="id"
:loading="loading"
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
>
<template #action="{ record }">
@@ -59,17 +60,21 @@ const props = defineProps({
});
watch(()=>props.visible,(val)=>{
if(val){
loading.value = true
api.getListByStatus().then(res=>{
if(res.data.code == 200 ){
tableData.value = res.data.data
}else{
message.error(res.data.msg)
}
loading.value = false
}).catch(err=>{
message.error(err.data.msg)
loading.value = false
})
}
})
const loading = ref(false)
const selectedRowKeys = ref([])
const selectsData = ref([]);
const onSelectChange = (e, l) => {
@@ -203,6 +208,10 @@ const closeDrawer = () => {
selectsData.value = []
}
const queryDrawer = () => {
if(!selectedRowKeys.value.length){
message.error('请选择需要审批的数据')
return
}
emit("selectedRowKeys", selectedRowKeys.value)
closeDrawer()
}