mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-24 10:12:54 +08:00
组织列表查看
This commit is contained in:
@@ -106,6 +106,10 @@ const props = defineProps({
|
||||
type: String,
|
||||
default: ""
|
||||
},
|
||||
moduleType:{
|
||||
type: Number,
|
||||
default: null
|
||||
},
|
||||
parentName: String,
|
||||
});
|
||||
const emit = defineEmits({});
|
||||
@@ -287,20 +291,40 @@ watch(visible, (val)=>{
|
||||
if(val){
|
||||
threeList.value = false
|
||||
activeKey.value = '1'
|
||||
api.getAffiliationById(props.id).then(res=>{
|
||||
if(res.data.code == 200){
|
||||
formData.value = res.data.data
|
||||
formData.value.parentName = props.parentName
|
||||
formData.value.act = filterList(formData.value.affiliationUserList,0)
|
||||
formData.value.one = filterList(formData.value.affiliationUserList,1)
|
||||
formData.value.two = filterList(formData.value.affiliationUserList,2)
|
||||
formData.value.three = filterList(formData.value.affiliationUserList,3)
|
||||
formData.value.tableData = res.data.data.affiliationOrgList
|
||||
}
|
||||
}).catch(err=>{
|
||||
message.destroy()
|
||||
message.error(err.data.msg)
|
||||
})
|
||||
if(!props.moduleType){
|
||||
console.log("getAffiliationModuleTypeById props.moduleType",props.moduleType)
|
||||
api.getAffiliationModuleTypeById(props.id,props.moduleType).then(res=>{
|
||||
if(res.data.code == 200){
|
||||
formData.value = res.data.data
|
||||
formData.value.parentName = props.parentName
|
||||
formData.value.act = filterList(formData.value.affiliationUserList,0)
|
||||
formData.value.one = filterList(formData.value.affiliationUserList,1)
|
||||
formData.value.two = filterList(formData.value.affiliationUserList,2)
|
||||
formData.value.three = filterList(formData.value.affiliationUserList,3)
|
||||
formData.value.tableData = res.data.data.affiliationOrgList
|
||||
}
|
||||
}).catch(err=>{
|
||||
message.destroy()
|
||||
message.error(err.data.msg)
|
||||
})
|
||||
}else{
|
||||
console.log("getAffiliationById props.moduleType")
|
||||
api.getAffiliationById(props.id).then(res=>{
|
||||
if(res.data.code == 200){
|
||||
formData.value = res.data.data
|
||||
formData.value.parentName = props.parentName
|
||||
formData.value.act = filterList(formData.value.affiliationUserList,0)
|
||||
formData.value.one = filterList(formData.value.affiliationUserList,1)
|
||||
formData.value.two = filterList(formData.value.affiliationUserList,2)
|
||||
formData.value.three = filterList(formData.value.affiliationUserList,3)
|
||||
formData.value.tableData = res.data.data.affiliationOrgList
|
||||
}
|
||||
}).catch(err=>{
|
||||
message.destroy()
|
||||
message.error(err.data.msg)
|
||||
})
|
||||
}
|
||||
|
||||
// getTwoData()
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user