mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-13 04:46:46 +08:00
Merge branch 'zcwy-teacher-manage' of https://codeup.aliyun.com/648097ddb583fece2f059e59/vue/fe-manage into zcwy-teacher-manage
This commit is contained in:
@@ -89,8 +89,16 @@ import * as lecturerApi from "@/api/Lecturer.js";
|
|||||||
return request(ORG_CHILD_LIST, { keyword: "", orgId: treeNode.id }).then(
|
return request(ORG_CHILD_LIST, { keyword: "", orgId: treeNode.id }).then(
|
||||||
(r) => {
|
(r) => {
|
||||||
//等待接口联调
|
//等待接口联调
|
||||||
// lecturerApi.getUnSelectOrg().then(res=>{})
|
r?.data?.map(item=>{
|
||||||
// r.data.map(item=>item.disabled = true)
|
notLists?.value?.some(i=>{
|
||||||
|
if(i.orgId == item.id){
|
||||||
|
item.disabled = true
|
||||||
|
item.name = item.name + '(' + i.orgName + ')'
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
})
|
||||||
|
return item
|
||||||
|
})
|
||||||
treeNode.dataRef.treeChildList = r.data;
|
treeNode.dataRef.treeChildList = r.data;
|
||||||
treeData.value = [...treeData.value];
|
treeData.value = [...treeData.value];
|
||||||
}
|
}
|
||||||
@@ -109,9 +117,26 @@ import * as lecturerApi from "@/api/Lecturer.js";
|
|||||||
checkedKeys.value = props?.AddContentList?.map(item=>item.orgId)
|
checkedKeys.value = props?.AddContentList?.map(item=>item.orgId)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
const notLists = ref([])
|
||||||
const getNot = () => {
|
const getNot = () => {
|
||||||
lecturerApi.getUnSelectOrg().then(res=>{
|
lecturerApi.getUnSelectOrg().then(res=>{
|
||||||
console.log(res,'ressss')
|
if(res.data.code == 200){
|
||||||
|
notLists.value = res.data.data
|
||||||
|
}
|
||||||
|
if(treeData.value.length){
|
||||||
|
treeData.value.map(item=>{
|
||||||
|
notLists.value.some(i=>{
|
||||||
|
if(i.orgId == item.id){
|
||||||
|
item.disabled = true
|
||||||
|
item.name = item.name + '(' + i.orgName + ')'
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
})
|
||||||
|
return item
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}).catch(err=>{
|
||||||
|
message.error(err.data.msg)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
const orgLists = ref([])
|
const orgLists = ref([])
|
||||||
|
|||||||
Reference in New Issue
Block a user