fix: 解决上传界面分页错误的问题

pull/185/head
ssongliu 2023-03-06 18:35:35 +08:00 committed by ssongliu
parent 507dd44465
commit a1c3fa644c
1 changed files with 11 additions and 4 deletions

View File

@ -31,7 +31,12 @@
</el-button>
<el-divider />
<ComplexTable :pagination-config="paginationConfig" v-model:selects="selects" :data="data">
<ComplexTable
:pagination-config="paginationConfig"
@search="search"
v-model:selects="selects"
:data="data"
>
<template #toolbar>
<el-button
style="margin-left: 10px"
@ -164,9 +169,11 @@ const beforeAvatarUpload = (rawFile) => {
return true;
}
if (
!rawFile.name.endsWith('.sql') ||
!rawFile.name.endsWith('.gz') ||
!rawFile.name.endsWith('.zip') ||
!rawFile.name.endsWith('.sql') &&
!rawFile.name.endsWith('.zip') &&
!rawFile.name.endsWith('.tar.gz') &&
!rawFile.name.endsWith('.sql.gz') &&
!rawFile.name.endsWith('.zip') &&
!rawFile.name.endsWith('.tgz')
) {
MsgError(i18n.global.t('database.unSupportType'));