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

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