diff --git a/src/apis/system/index.ts b/src/apis/system/index.ts index bbf216d..d164d8d 100644 --- a/src/apis/system/index.ts +++ b/src/apis/system/index.ts @@ -5,7 +5,6 @@ export * from './dept' export * from './notice' export * from './dict' export * from './file' -export * from './storage' export * from './option' export * from './user-center' export * from './message' diff --git a/src/apis/system/storage.ts b/src/apis/system/storage.ts deleted file mode 100644 index 6336a55..0000000 --- a/src/apis/system/storage.ts +++ /dev/null @@ -1,31 +0,0 @@ -import type * as T from './type' -import http from '@/utils/http' - -export type * from './type' - -const BASE_URL = '/system/storage' - -/** @desc 查询存储列表 */ -export function listStorage(query: T.StoragePageQuery) { - return http.get>(`${BASE_URL}`, query) -} - -/** @desc 查询存储详情 */ -export function getStorage(id: string) { - return http.get(`${BASE_URL}/${id}`) -} - -/** @desc 新增存储 */ -export function addStorage(data: any) { - return http.post(`${BASE_URL}`, data) -} - -/** @desc 修改存储 */ -export function updateStorage(data: any, id: string) { - return http.put(`${BASE_URL}/${id}`, data) -} - -/** @desc 删除存储 */ -export function deleteStorage(id: string) { - return http.del(`${BASE_URL}/${id}`) -} diff --git a/src/apis/system/type.ts b/src/apis/system/type.ts index c245a58..0b5c725 100644 --- a/src/apis/system/type.ts +++ b/src/apis/system/type.ts @@ -231,34 +231,6 @@ export interface FileQuery { export interface FilePageQuery extends FileQuery, PageQuery { } -/** 存储类型 */ -export interface StorageResp { - id: string - name: string - code: string - type: number - accessKey: string - secretKey: string - endpoint: string - bucketName: string - domain: string - description: string - isDefault: boolean - sort: number - status: number - createUserString: string - createTime: string - updateUserString: string - updateTime: string -} -export interface StorageQuery { - description?: string - status?: number - sort: Array -} -export interface StoragePageQuery extends StorageQuery, PageQuery { -} - /** 客户端类型 */ export interface ClientResp { id: string @@ -334,6 +306,7 @@ export interface SiteConfig { SITE_TITLE: OptionResp SITE_DESCRIPTION: OptionResp SITE_COPYRIGHT: OptionResp + SITE_DOMAIN: OptionResp SITE_BEIAN: OptionResp } @@ -360,6 +333,18 @@ export interface MailConfig { MAIL_SSL_PORT: OptionResp } +/** 存储配置类型 */ +export interface StorageConfig { + STORAGE_DEFAULT: OptionResp + STORAGE_LOCAL_BUCKET: OptionResp + STORAGE_LOCAL_ENDPOINT: OptionResp + STORAGE_OSS_ACCESS_KEY: OptionResp + STORAGE_OSS_SECRET_KEY: OptionResp + STORAGE_OSS_BUCKET: OptionResp + STORAGE_OSS_ENDPOINT: OptionResp + STORAGE_OSS_REGION: OptionResp +} + /** 登录配置类型 */ export interface LoginConfig { LOGIN_CAPTCHA_ENABLED: OptionResp diff --git a/src/views/system/config/components/MailSetting.vue b/src/views/system/config/components/MailSetting.vue index bb7fd88..b7b5abd 100644 --- a/src/views/system/config/components/MailSetting.vue +++ b/src/views/system/config/components/MailSetting.vue @@ -9,25 +9,56 @@ :layout="width >= 500 ? 'horizontal' : 'vertical'" :disabled="!isUpdate" scroll-to-first-error + class="form" > - + - - + + - - + + - - + + - - + + - + - + @@ -186,7 +220,8 @@ onMounted(() => { margin-bottom: 5px; } -.input-width, :deep(.arco-select-view-single) { +:deep(.form .arco-input-wrapper), +:deep(.arco-select-view-single) { width: 220px; } diff --git a/src/views/system/config/components/SecuritySetting.vue b/src/views/system/config/components/SecuritySetting.vue index 3c8e1f6..6892751 100644 --- a/src/views/system/config/components/SecuritySetting.vue +++ b/src/views/system/config/components/SecuritySetting.vue @@ -9,35 +9,49 @@ :layout="width >= 500 ? 'horizontal' : 'vertical'" :disabled="!isUpdate" scroll-to-first-error + class="form" > @@ -45,43 +59,62 @@ - + - + @@ -138,7 +171,7 @@ const rules: FormInstance['rules'] = { { validator: (value, callback) => { if (form.PASSWORD_EXPIRATION_DAYS > 0 && value >= form.PASSWORD_EXPIRATION_DAYS) { - callback('密码到期前的提示时间应小于密码有效期') + callback('密码到期提醒时间应小于密码有效期') } else { callback() } @@ -238,7 +271,7 @@ onMounted(() => { margin-bottom: 5px; } -.input-width { +:deep(.form .arco-input-wrapper) { width: 200px; } diff --git a/src/views/system/config/components/BasicSetting.vue b/src/views/system/config/components/SiteSetting.vue similarity index 86% rename from src/views/system/config/components/BasicSetting.vue rename to src/views/system/config/components/SiteSetting.vue index 6e3ec5e..638c32a 100644 --- a/src/views/system/config/components/BasicSetting.vue +++ b/src/views/system/config/components/SiteSetting.vue @@ -72,24 +72,26 @@ - - + + - + - - + + - - + + - + + + +