Browse Source

fix(文件模块): 文件模块页面优化

shizhongming 2 years ago
parent
commit
36feb999dc
  1. 22
      src/modules/smart-file/views/SmartFile/SmartFileListView.config.ts
  2. 2
      src/modules/smart-file/views/SmartFile/SmartFileListView.vue
  3. 11
      src/modules/smart-file/views/SmartFileStorage/SmartFileStorageListView.vue
  4. 2
      src/modules/smart-system/views/system/SysSystemListView.api.ts

22
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,
},

2
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,

11
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,

2
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',

Loading…
Cancel
Save