From 36feb999dc0509a0fb297dfabc66aa18f371f546 Mon Sep 17 00:00:00 2001 From: shizhongming Date: Wed, 28 Feb 2024 13:39:44 +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=E6=A8=A1=E5=9D=97=E9=A1=B5=E9=9D=A2=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SmartFile/SmartFileListView.config.ts | 22 +++++++++---------- .../views/SmartFile/SmartFileListView.vue | 2 ++ .../SmartFileStorageListView.vue | 11 +++++++++- .../views/system/SysSystemListView.api.ts | 2 +- 4 files changed, 24 insertions(+), 13 deletions(-) diff --git a/src/modules/smart-file/views/SmartFile/SmartFileListView.config.ts b/src/modules/smart-file/views/SmartFile/SmartFileListView.config.ts index dfc7237b5..b96bdae6e 100644 --- a/src/modules/smart-file/views/SmartFile/SmartFileListView.config.ts +++ b/src/modules/smart-file/views/SmartFile/SmartFileListView.config.ts @@ -97,18 +97,18 @@ export const getFormSchemas = (t: Function): FormSchema[] => { { field: 'fileStorageId', label: t('system.views.file.title.fileStorageId'), - component: 'SmartApiSelectTable', + component: 'ApiSelect', componentProps: { - 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', }, required: true, }, diff --git a/src/modules/smart-file/views/SmartFile/SmartFileListView.vue b/src/modules/smart-file/views/SmartFile/SmartFileListView.vue index a71708ab3..6f1d68222 100644 --- a/src/modules/smart-file/views/SmartFile/SmartFileListView.vue +++ b/src/modules/smart-file/views/SmartFile/SmartFileListView.vue @@ -66,10 +66,12 @@ border: true, pagerConfig: true, useSearchForm: true, + stripe: true, showOverflow: 'tooltip', rowConfig: { keyField: 'fileId', isCurrent: true, + isHover: true, }, customConfig: { storage: true, diff --git a/src/modules/smart-file/views/SmartFileStorage/SmartFileStorageListView.vue b/src/modules/smart-file/views/SmartFileStorage/SmartFileStorageListView.vue index f92760a1b..68b9d795b 100644 --- a/src/modules/smart-file/views/SmartFileStorage/SmartFileStorageListView.vue +++ b/src/modules/smart-file/views/SmartFileStorage/SmartFileStorageListView.vue @@ -54,7 +54,7 @@ return [ { label: t('common.button.edit'), - auth: 'smart:fileStorage:edit', + auth: 'smart:fileStorage:update', onClick: () => editByRowModal(row), }, { @@ -93,6 +93,11 @@ height: 'auto', pagerConfig: true, useSearchForm: true, + stripe: true, + rowConfig: { + isHover: true, + isCurrent: true, + }, searchFormConfig: { schemas: getSearchFormSchemas(t), searchWithSymbol: true, @@ -118,6 +123,10 @@ }, sortConfig: { remote: true, + defaultSort: { + field: 'seq', + order: 'asc', + }, }, columnConfig: { resizable: true, diff --git a/src/modules/smart-system/views/system/SysSystemListView.api.ts b/src/modules/smart-system/views/system/SysSystemListView.api.ts index 48880c274..f47b1f253 100644 --- a/src/modules/smart-system/views/system/SysSystemListView.api.ts +++ b/src/modules/smart-system/views/system/SysSystemListView.api.ts @@ -1,7 +1,7 @@ import { ApiServiceEnum, defHttp } from '@/utils/http/axios'; enum Api { - list = 'sys/system/listAuthUser', + list = 'sys/system/list', saveUpdate = 'sys/system/saveUpdate', delete = 'sys/system/batchDeleteById', getById = 'sys/system/getById',