mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-18 07:16:46 +08:00
讲师管理bug
This commit is contained in:
@@ -87,7 +87,7 @@ import * as lecturerApi from "@/api/Lecturer.js";
|
||||
default: '',
|
||||
}
|
||||
})
|
||||
const emit = defineEmits({})
|
||||
const emit = defineEmits(['update:showContent','update:AddContentList'])
|
||||
const treeAddData = ref([])
|
||||
const { data: treeData, loading: orgLoading } = useRequest(
|
||||
ORG_LIST,
|
||||
@@ -120,9 +120,9 @@ import * as lecturerApi from "@/api/Lecturer.js";
|
||||
orgLists.value = []
|
||||
}else{
|
||||
getNot()
|
||||
console.log(props?.AddContentList,'props?.AddContentList')
|
||||
// console.log(props?.AddContentList,'props?.AddContentList')
|
||||
treeAddData.value = props?.AddContentList
|
||||
orgLists.value = props?.AddContentLists
|
||||
orgLists.value = [...props?.AddContentLists,...props?.AddContentLists]
|
||||
checkedKeys.value = props?.AddContentList?.map(item=>item.orgId)
|
||||
}
|
||||
});
|
||||
@@ -200,7 +200,7 @@ import * as lecturerApi from "@/api/Lecturer.js";
|
||||
})
|
||||
treeAddData.value = uniqueEndLists?.filter(item => checkedKeys.value?.checked?.includes(item.orgId));
|
||||
// treeAddData.value = checkedNodes;
|
||||
console.log(treeAddData.value,'checkedNodes',orgLists.value)
|
||||
// console.log(treeAddData.value,'checkedNodes',orgLists.value)
|
||||
}
|
||||
const clearTree = () => {
|
||||
treeAddData.value = [];
|
||||
|
||||
Reference in New Issue
Block a user