소스 검색

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

shizhongming 2 년 전
부모
커밋
36feb999dc

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

+ 10 - 1
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,

+ 1 - 1
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',