mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-12 12:26:47 +08:00
讲师管理bug
This commit is contained in:
@@ -182,7 +182,7 @@
|
|||||||
|
|
||||||
function remove(i) {
|
function remove(i) {
|
||||||
rowSelectKeys.value.splice(i, 1);
|
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:selectedRowKeys", rowSelectKeys.value);
|
||||||
emit("update:selectedRows", selectsData.value);
|
emit("update:selectedRows", selectsData.value);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -131,7 +131,7 @@ const props = defineProps({
|
|||||||
title: {
|
title: {
|
||||||
type: String,
|
type: String,
|
||||||
default: ''
|
default: ''
|
||||||
}
|
},
|
||||||
});
|
});
|
||||||
onMounted(()=>{
|
onMounted(()=>{
|
||||||
// onlineLearningList()
|
// onlineLearningList()
|
||||||
@@ -237,7 +237,6 @@ function onLoadData(treeNode) {
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const openDrawer = () => {
|
const openDrawer = () => {
|
||||||
visiable.value = true;
|
visiable.value = true;
|
||||||
stuSelectRows.value = props.arrayList
|
stuSelectRows.value = props.arrayList
|
||||||
|
|||||||
@@ -283,7 +283,7 @@
|
|||||||
>
|
>
|
||||||
<a-button class="drabtn" @click="cancelTeacherDialog" >取消</a-button>
|
<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(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>
|
</div>
|
||||||
</a-drawer>
|
</a-drawer>
|
||||||
<AddOrgContent :Addtitle="'选择组织'" v-model:showContent="showContent" v-model:AddContentList="formParam.affiliationOrgList" />
|
<AddOrgContent :Addtitle="'选择组织'" v-model:showContent="showContent" v-model:AddContentList="formParam.affiliationOrgList" />
|
||||||
@@ -630,7 +630,7 @@ const getTableDate = (obj) => {
|
|||||||
const handleModify = (record) => {
|
const handleModify = (record) => {
|
||||||
lecturer.getAffiliationById(record.id).then(res=>{
|
lecturer.getAffiliationById(record.id).then(res=>{
|
||||||
console.log(res,'resssss')
|
console.log(res,'resssss')
|
||||||
state.editParams = false
|
res.data.data.status==3 && (state.editParams = false)
|
||||||
state.formParam = res.data.data
|
state.formParam = res.data.data
|
||||||
const actArray = res.data.data.affiliationUserList.filter(item=>item.type == 0).reduce((accumulator, current) => {
|
const actArray = res.data.data.affiliationUserList.filter(item=>item.type == 0).reduce((accumulator, current) => {
|
||||||
if (!accumulator.some(item => item.userId === current.userId)) {
|
if (!accumulator.some(item => item.userId === current.userId)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user