mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-16 06:16:46 +08:00
保存接口
This commit is contained in:
@@ -101,10 +101,13 @@ import * as lecturerApi from "@/api/Lecturer.js";
|
||||
expandedKeys.value = []
|
||||
selectedKeys.value = []
|
||||
checkedKeys.value = []
|
||||
}else{
|
||||
console.log(props.AddContentList,'xixiixix')
|
||||
treeAddData.value = props?.AddContentList
|
||||
checkedKeys.value = props?.AddContentList?.map(item=>item.id)
|
||||
}
|
||||
});
|
||||
const onCheck = (checkedKeys, {checked: bool, checkedNodes, node, event}) => {
|
||||
console.log(checkedKeys.value,'选中的id值')
|
||||
// "965356037047586816"
|
||||
let length = treeAddData.value.length
|
||||
if(checkedNodes.length > length){
|
||||
@@ -131,7 +134,7 @@ import * as lecturerApi from "@/api/Lecturer.js";
|
||||
clearTree()
|
||||
};
|
||||
const queryCreate = () => {
|
||||
emit("AddContentList", treeAddData.value);
|
||||
emit("update:AddContentList", treeAddData.value);
|
||||
closeCodeModal()
|
||||
}
|
||||
const expandedKeys = ref([]);
|
||||
|
||||
Reference in New Issue
Block a user