Merge pull request #1410 from kukinghan/master

fix issues 1409
This commit is contained in:
YuMao 2024-10-26 10:04:48 +08:00 committed by GitHub
commit bb825ec931
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 2 deletions

View File

@ -500,12 +500,17 @@ export const useFileManager = (instanceId?: string, daemonId?: string) => {
const handleTableChange = (e: { current: number; pageSize: number }) => {
selectedRowKeys.value = [];
selectionData.value = [];
operationForm.value.name = "";
// operationForm.value.name = "";
operationForm.value.current = e.current;
operationForm.value.pageSize = e.pageSize;
getFileList();
};
const handleSearchChange = () =>{
operationForm.value.current = 1;
getFileList();
}
const getFileStatus = async () => {
const { state, execute } = getFileStatusApi();
try {
@ -627,6 +632,7 @@ export const useFileManager = (instanceId?: string, daemonId?: string) => {
downloadFile,
handleChangeDir,
handleTableChange,
handleSearchChange,
getFileStatus,
changePermission,
toDisk,

View File

@ -70,6 +70,7 @@ const {
beforeUpload,
downloadFile,
handleChangeDir,
handleSearchChange,
selectedFile,
rowClickTable,
handleTableChange,
@ -383,7 +384,7 @@ onUnmounted(() => {
v-model:value.trim.lazy="operationForm.name"
:placeholder="t('TXT_CODE_7cad42a5')"
allow-clear
@change="getFileList()"
@change="handleSearchChange()"
>
<template #suffix>
<search-outlined />