feat: 文件库
This commit is contained in:
parent
b87a62647d
commit
20621a4bbf
@ -240,7 +240,6 @@ const list = ref<any>([]);
|
||||
const getList = () => {
|
||||
try {
|
||||
loading.value = true;
|
||||
console.log("搜索", originalList.value);
|
||||
setTimeout(() => {
|
||||
list.value = shuffleArray(originalList.value);
|
||||
loading.value = false;
|
||||
@ -266,6 +265,10 @@ const shuffleArray = (arr: any) => {
|
||||
}
|
||||
return arr;
|
||||
};
|
||||
|
||||
defineExpose({
|
||||
getList
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
@ -30,7 +30,6 @@ const emit = defineEmits(["onNode"]);
|
||||
|
||||
const onNode = (selectedKeys: Array<string>) => {
|
||||
let list = findParentsTailRecursive(treeData.value, selectedKeys[0]);
|
||||
console.log("节点", list);
|
||||
emit("onNode", list);
|
||||
};
|
||||
|
||||
|
||||
@ -15,7 +15,7 @@
|
||||
</a-breadcrumb>
|
||||
</div>
|
||||
<a-divider margin="0" />
|
||||
<FileTable class="file-table-style" />
|
||||
<FileTable ref="FileTableRef" class="file-table-style" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -26,9 +26,11 @@
|
||||
import FileTree from "@/views/file-management/document-library/components/file-tree.vue";
|
||||
import FileTable from "@/views/file-management/document-library/components/file-table.vue";
|
||||
|
||||
const FileTableRef = ref();
|
||||
const breadcrumb = ref<any>([]);
|
||||
const onNode = (list: any) => {
|
||||
breadcrumb.value = list;
|
||||
FileTableRef.value && FileTableRef.value.getList();
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user