mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-11-13 08:06:06 +00:00
fix: correct backup account name search (#14375)
This commit is contained in:
@@ -86,7 +86,7 @@ func (u *BackupService) SearchWithPage(req dto.SearchPageWithType) (int64, inter
|
||||
options = append(options, repo.WithByType(req.Type))
|
||||
}
|
||||
if len(req.Info) != 0 {
|
||||
options = append(options, repo.WithByType(req.Info))
|
||||
options = append(options, repo.WithByLikeName(req.Info))
|
||||
}
|
||||
count, accounts, err := backupRepo.Page(req.Page, req.PageSize, options...)
|
||||
if err != nil {
|
||||
|
||||
@@ -3,7 +3,7 @@ import { ReqPage } from '.';
|
||||
export namespace Backup {
|
||||
export interface SearchWithType extends ReqPage {
|
||||
type: string;
|
||||
name: string;
|
||||
info: string;
|
||||
}
|
||||
export interface BackupOption {
|
||||
id: number;
|
||||
|
||||
@@ -162,7 +162,7 @@ const search = async () => {
|
||||
page: paginationConfig.currentPage,
|
||||
pageSize: paginationConfig.pageSize,
|
||||
type: paginationConfig.type,
|
||||
name: paginationConfig.name,
|
||||
info: paginationConfig.name,
|
||||
};
|
||||
loading.value = true;
|
||||
await searchBackup(params)
|
||||
|
||||
Reference in New Issue
Block a user