讲师管理bug

This commit is contained in:
zhangsir
2024-12-14 16:06:18 +08:00
parent 6c065e10dd
commit f13cf1802c
2 changed files with 36 additions and 8 deletions

View File

@@ -264,6 +264,13 @@ const deleteDepSelect = () => {
//确定添加授权
const submitAuth = () => {
teaunm.value.map(item=>{
props.arrayList.map(i=>{
if(item.id === i.userId){
item.affiliationUserId = i.affiliationUserId
}
})
})
emit('update:arrayList',teaunm.value)
emit('valueChange',teaunm.value,props.type)
visiable.value = false;

View File

@@ -217,14 +217,14 @@
</a-form-item>
</a-col>
<a-col :span="12" v-if="formParam.isParent==0">
<a-form-item name="isConSelect">
<a-form-item name="isContains">
<template v-slot:label>
<img
style="margin-right:4px;width: 7px;height: 7px"
src="@/assets/images/coursewareManage/asterisk.png"
alt=""
/>
审批流程是否加担当
审批流程是否加担当
</template>
<a-select v-model:value="formParam.isContains" placeholder="请选择审批流程是否加担当"
:options="isConSelect" allowClear showSearch/>
@@ -344,7 +344,7 @@ export default{
leveTwoArray: [],
leveThreeArray: [],
code: null,
isContains: null,
isContains: '0',
affiliationOrgList: [],
},
})
@@ -632,10 +632,30 @@ const getTableDate = (obj) => {
console.log(res,'resssss')
state.editParams = false
state.formParam = res.data.data
const actArray = res.data.data.affiliationUserList.filter(item=>item.type == 0)
const leveOneArray = res.data.data.affiliationUserList.filter(item=>item.type == 1)
const leveTwoArray = res.data.data.affiliationUserList.filter(item=>item.type == 2)
const leveThreeArray = res.data.data.affiliationUserList.filter(item=>item.type == 3)
const actArray = res.data.data.affiliationUserList.filter(item=>item.type == 0).reduce((accumulator, current) => {
if (!accumulator.some(item => item.userId === current.userId)) {
accumulator.push(current);
}
return accumulator;
}, []);
const leveOneArray = res.data.data.affiliationUserList.filter(item=>item.type == 1).reduce((accumulator, current) => {
if (!accumulator.some(item => item.userId === current.userId)) {
accumulator.push(current);
}
return accumulator;
}, []);
const leveTwoArray = res.data.data.affiliationUserList.filter(item=>item.type == 2).reduce((accumulator, current) => {
if (!accumulator.some(item => item.userId === current.userId)) {
accumulator.push(current);
}
return accumulator;
}, []);
const leveThreeArray = res.data.data.affiliationUserList.filter(item=>item.type == 3).reduce((accumulator, current) => {
if (!accumulator.some(item => item.userId === current.userId)) {
accumulator.push(current);
}
return accumulator;
}, []);
state.formParam.actArray = actArray.map(item => {
return {
label: item.userName + item.userNo,
@@ -682,6 +702,7 @@ const getTableDate = (obj) => {
}
})
})
state.formParam.isContains = String(state.formParam.isContains)
console.log(state.formParam.affiliationOrgList,'state.formParam.affiliationOrgList')
state.teacherdialog = true;
state.teacherdialogtitle = '编辑培训发生组织'
@@ -710,7 +731,7 @@ const getTableDate = (obj) => {
leveTwoArray: [],
leveThreeArray: [],
code: null,
isContains: null,
isContains: '0',
affiliationOrgList: [],
}
}