From 7206519e444d9abb8fc0dfbb62be6c7176c3bc38 Mon Sep 17 00:00:00 2001 From: shizhongming Date: Wed, 28 Feb 2024 09:58:20 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=96=87=E4=BB=B6=E6=A8=A1=E5=9D=97):=20?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=88=97=E8=A1=A8=E4=BC=98=E5=8C=96=E6=8E=92?= =?UTF-8?q?=E5=BA=8F=E3=80=81=E4=BC=98=E5=8C=96=E5=AD=98=E5=82=A8=E5=99=A8?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SmartFile/SmartFileListView.config.ts | 24 ++++++++++--------- .../views/SmartFile/SmartFileListView.vue | 2 ++ 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/src/modules/smart-file/views/SmartFile/SmartFileListView.config.ts b/src/modules/smart-file/views/SmartFile/SmartFileListView.config.ts index b63b4b26a..dfc7237b5 100644 --- a/src/modules/smart-file/views/SmartFile/SmartFileListView.config.ts +++ b/src/modules/smart-file/views/SmartFile/SmartFileListView.config.ts @@ -1,6 +1,8 @@ import type { SmartColumn, SmartSearchFormSchema } from '@/components/SmartTable'; import type { FormSchema } from '@/components/Form'; +import { listApi } from '../SmartFileStorage/SmartFileStorageListView.api'; + /** * 表格列表 */ @@ -158,21 +160,21 @@ export const getSearchFormSchemas = (t: Function): SmartSearchFormSchema[] => { { field: 'fileStorageId', label: t('system.views.file.title.fileStorageId'), - component: 'SmartApiSelectTable', + component: 'ApiSelect', componentProps: { style: { width: '150px', }, - modelClassName: 'com.smart.file.manager.model.SmartFileStoragePO', - valueFieldName: 'id', - labelFieldName: 'storageName', - params: { - sortName: 'seq', - parameter: { - 'deleteYn@<>': true, - 'useYn@=': true, - }, - }, + api: () => + listApi({ + sortName: 'seq', + parameter: { + 'deleteYn@<>': true, + 'useYn@=': true, + }, + }), + labelField: 'storageName', + valueField: 'id', }, searchSymbol: '=', }, diff --git a/src/modules/smart-file/views/SmartFile/SmartFileListView.vue b/src/modules/smart-file/views/SmartFile/SmartFileListView.vue index 98af6e32f..a71708ab3 100644 --- a/src/modules/smart-file/views/SmartFile/SmartFileListView.vue +++ b/src/modules/smart-file/views/SmartFile/SmartFileListView.vue @@ -66,6 +66,7 @@ border: true, pagerConfig: true, useSearchForm: true, + showOverflow: 'tooltip', rowConfig: { keyField: 'fileId', isCurrent: true, @@ -76,6 +77,7 @@ columnConfig: { resizable: true, }, + sortConfig: { remote: true, defaultSort: { field: 'createTime', order: 'desc' } }, searchFormConfig: { schemas: getSearchFormSchemas(t), searchWithSymbol: true,