mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-11-24 02:59:16 +08:00
parent
acf94b052b
commit
0c31ba1c5f
@ -141,7 +141,7 @@ const data = ref([]);
|
|||||||
const loading = ref(false);
|
const loading = ref(false);
|
||||||
const paths = ref<string[]>([]);
|
const paths = ref<string[]>([]);
|
||||||
const req = reactive({ path: '/', expand: true, page: 1, pageSize: 300, showHidden: true });
|
const req = reactive({ path: '/', expand: true, page: 1, pageSize: 300, showHidden: true });
|
||||||
const selectRow = ref();
|
const selectRow = ref({ path: '', name: '' });
|
||||||
const rowRefs = ref();
|
const rowRefs = ref();
|
||||||
const popoverVisible = ref(false);
|
const popoverVisible = ref(false);
|
||||||
const newFolder = ref();
|
const newFolder = ref();
|
||||||
@ -183,12 +183,12 @@ const selectFile = () => {
|
|||||||
|
|
||||||
const closePage = () => {
|
const closePage = () => {
|
||||||
popoverVisible.value = false;
|
popoverVisible.value = false;
|
||||||
selectRow.value = {};
|
selectRow.value = { path: '', name: '' };
|
||||||
};
|
};
|
||||||
|
|
||||||
const openPage = () => {
|
const openPage = () => {
|
||||||
popoverVisible.value = true;
|
popoverVisible.value = true;
|
||||||
selectRow.value = {};
|
selectRow.value.path = props.path || '/';
|
||||||
rowName.value = '';
|
rowName.value = '';
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -216,7 +216,7 @@ const open = async (row: File.File) => {
|
|||||||
}
|
}
|
||||||
await search(req);
|
await search(req);
|
||||||
}
|
}
|
||||||
selectRow.value = {};
|
selectRow.value.path = req.path;
|
||||||
rowName.value = '';
|
rowName.value = '';
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -230,7 +230,7 @@ const jump = async (index: number) => {
|
|||||||
}
|
}
|
||||||
path = path || '/';
|
path = path || '/';
|
||||||
req.path = path;
|
req.path = path;
|
||||||
selectRow.value = {};
|
selectRow.value.path = req.path;
|
||||||
rowName.value = '';
|
rowName.value = '';
|
||||||
await search(req);
|
await search(req);
|
||||||
popoverVisible.value = true;
|
popoverVisible.value = true;
|
||||||
@ -286,7 +286,7 @@ const cancelFolder = (row: any) => {
|
|||||||
data.value.shift();
|
data.value.shift();
|
||||||
row.isCreate = false;
|
row.isCreate = false;
|
||||||
disBtn.value = false;
|
disBtn.value = false;
|
||||||
selectRow.value = {};
|
selectRow.value.path = req.path;
|
||||||
rowName.value = '';
|
rowName.value = '';
|
||||||
newFolder.value = '';
|
newFolder.value = '';
|
||||||
};
|
};
|
||||||
|
@ -271,7 +271,11 @@
|
|||||||
>
|
>
|
||||||
<el-input v-model="dialogData.rowData!.sourceDir">
|
<el-input v-model="dialogData.rowData!.sourceDir">
|
||||||
<template #prepend>
|
<template #prepend>
|
||||||
<FileList @choose="loadDir" :dir="true"></FileList>
|
<FileList
|
||||||
|
@choose="loadDir"
|
||||||
|
:dir="true"
|
||||||
|
:path="dialogData.rowData!.sourceDir"
|
||||||
|
></FileList>
|
||||||
</template>
|
</template>
|
||||||
</el-input>
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
Loading…
Reference in New Issue
Block a user