讲师管理bug

This commit is contained in:
zhangsir
2024-12-14 18:09:52 +08:00
parent ea86a35087
commit b877b22ae7
3 changed files with 4 additions and 5 deletions

View File

@@ -182,7 +182,7 @@
function remove(i) {
rowSelectKeys.value.splice(i, 1);
selectsData.value.splice(i, 1);
selectsData.value = selectsData.value.filter((_, index) => index !== i);
emit("update:selectedRowKeys", rowSelectKeys.value);
emit("update:selectedRows", selectsData.value);
}

View File

@@ -131,7 +131,7 @@ const props = defineProps({
title: {
type: String,
default: ''
}
},
});
onMounted(()=>{
// onlineLearningList()
@@ -237,7 +237,6 @@ function onLoadData(treeNode) {
}
);
}
const openDrawer = () => {
visiable.value = true;
stuSelectRows.value = props.arrayList

View File

@@ -283,7 +283,7 @@
>
<a-button class="drabtn" @click="cancelTeacherDialog" >取消</a-button>
<a-button class="drabtn" type="primary" @click="createTeacherDialog(0)" :loading="buttonLoading">保存</a-button>
<a-button class="drabtn" type="primary" @click="createTeacherDialog(1)" :loading="buttonLoading">提交</a-button>
<a-button v-if="editParams||editIndex>1" class="drabtn" type="primary" @click="createTeacherDialog(1)" :loading="buttonLoading">提交</a-button>
</div>
</a-drawer>
<AddOrgContent :Addtitle="'选择组织'" v-model:showContent="showContent" v-model:AddContentList="formParam.affiliationOrgList" />
@@ -630,7 +630,7 @@ const getTableDate = (obj) => {
const handleModify = (record) => {
lecturer.getAffiliationById(record.id).then(res=>{
console.log(res,'resssss')
state.editParams = false
res.data.data.status==3 && (state.editParams = false)
state.formParam = res.data.data
const actArray = res.data.data.affiliationUserList.filter(item=>item.type == 0).reduce((accumulator, current) => {
if (!accumulator.some(item => item.userId === current.userId)) {