revert: 还原 终端 => 客户端(终端容易被误解)

This commit is contained in:
2025-04-15 22:25:39 +08:00
parent d927d8f58a
commit 471f30e1e7
10 changed files with 20 additions and 20 deletions

View File

@@ -17,5 +17,5 @@ VITE_OPEN_DEVTOOLS = false
# 应用配置面板
VITE_APP_SETTING = true
# 端ID
# 客户端ID
VITE_CLIENT_ID = 'ef51c9a3e9046c4f2ea45142c8a8344a'

View File

@@ -13,5 +13,5 @@ VITE_BASE = '/'
# 应用配置面板
VITE_APP_SETTING = true
# 端ID
# 客户端ID
VITE_CLIENT_ID = 'ef51c9a3e9046c4f2ea45142c8a8344a'

View File

@@ -18,5 +18,5 @@ VITE_OPEN_DEVTOOLS = true
# 应用配置面板
VITE_APP_SETTING = false
# 端ID
# 客户端ID
VITE_CLIENT_ID = 'ef51c9a3e9046c4f2ea45142c8a8344a'

View File

@@ -131,7 +131,7 @@ public class DeptController extends BaseController<DeptService, DeptResp, DeptDe
- 邮件配置:提供系统发件箱配置,也支持通过配置文件指定
- 短信配置:提供系统短信服务配置,也支持通过配置文件指定
- 存储配置:管理文件存储配置,支持本地存储、兼容 S3 协议对象存储
- 端配置:多认证管理,可设置不同的 token 有效期
- 客户端配置:多客户端PC端、小程序端等认证管理,可设置不同的 token 有效期
- 在线用户:管理当前登录用户,可一键踢除下线
- 日志管理:管理系统登录日志、操作日志,支持查看日志详情,包含请求头、响应头等报文信息
- 短信日志:管理系统短信发送日志,支持删除、导出

View File

@@ -5,27 +5,27 @@ export type * from './type'
const BASE_URL = '/system/client'
/** @desc 查询端列表 */
/** @desc 查询客户端列表 */
export function listClient(query: T.ClientPageQuery) {
return http.get<PageRes<T.ClientResp[]>>(`${BASE_URL}`, query)
}
/** @desc 查询端详情 */
/** @desc 查询客户端详情 */
export function getClient(id: string) {
return http.get<T.ClientDetailResp>(`${BASE_URL}/${id}`)
}
/** @desc 新增端 */
/** @desc 新增客户端 */
export function addClient(data: any) {
return http.post(`${BASE_URL}`, data)
}
/** @desc 修改端 */
/** @desc 修改客户端 */
export function updateClient(data: any, id: string) {
return http.put(`${BASE_URL}/${id}`, data)
}
/** @desc 删除端 */
/** @desc 删除客户端 */
export function deleteClient(id: string) {
return http.del(`${BASE_URL}`, { ids: [id] })
}

View File

@@ -264,7 +264,7 @@ export interface StorageQuery {
sort: Array<string>
}
/** 端类型 */
/** 客户端类型 */
export interface ClientResp {
id: string
clientId: string

View File

@@ -31,7 +31,7 @@ const { width } = useWindowSize()
const dataId = ref('')
const visible = ref(false)
const isUpdate = computed(() => !!dataId.value)
const title = computed(() => (isUpdate.value ? '修改端' : '新增端'))
const title = computed(() => (isUpdate.value ? '修改客户端' : '新增客户端'))
const formRef = ref<InstanceType<typeof GiForm>>()
const { client_type, auth_type_enum } = useDict('auth_type_enum', 'client_type')
@@ -45,7 +45,7 @@ const [form, resetForm] = useResetReactive({
const columns: ColumnItem[] = reactive([
{
label: '端类型',
label: '客户端类型',
field: 'clientType',
type: 'select',
span: 12,

View File

@@ -1,9 +1,9 @@
<template>
<a-drawer v-model:visible="visible" title="端详情" :width="width >= 600 ? 600 : '100%'" :footer="false">
<a-drawer v-model:visible="visible" title="客户端详情" :width="width >= 600 ? 600 : '100%'" :footer="false">
<a-descriptions :column="2" size="large" class="general-description">
<a-descriptions-item label="ID">{{ dataDetail?.id }}</a-descriptions-item>
<a-descriptions-item label="端ID" :span="2"><a-typography-paragraph :copyable="!!dataDetail?.clientId">{{ dataDetail?.clientId }}</a-typography-paragraph></a-descriptions-item>
<a-descriptions-item label="端类型" :span="2">
<a-descriptions-item label="客户端ID" :span="2"><a-typography-paragraph :copyable="!!dataDetail?.clientId">{{ dataDetail?.clientId }}</a-typography-paragraph></a-descriptions-item>
<a-descriptions-item label="客户端类型" :span="2">
<GiCellTag :value="dataDetail?.clientType" :dict="client_type" />
</a-descriptions-item>
<a-descriptions-item label="认证类型" :span="2">

View File

@@ -15,7 +15,7 @@
<a-select
v-model="queryForm.clientType"
:options="client_type"
placeholder="请选择端类型"
placeholder="请选择客户端类型"
allow-clear
style="width: 160px"
@change="search"
@@ -109,7 +109,7 @@ const columns: TableInstance['columns'] = [
fixed: !isMobile() ? 'left' : undefined,
},
{
title: '端 ID',
title: '客户端 ID',
dataIndex: 'clientId',
slotName: 'clientId',
ellipsis: true,
@@ -121,7 +121,7 @@ const columns: TableInstance['columns'] = [
},
},
{
title: '端类型',
title: '客户端类型',
dataIndex: 'clientType',
slotName: 'clientType',
ellipsis: true,
@@ -181,7 +181,7 @@ const reset = () => {
// 删除
const onDelete = (record: ClientResp) => {
return handleDelete(() => deleteClient(record.id), {
content: `是否确定删除端「${record.clientKey}(${record.clientId})」?`,
content: `是否确定删除客户端「${record.clientId}」?`,
showModal: true,
})
}

View File

@@ -57,7 +57,7 @@ const data = [
{ name: '邮件配置', key: 'mail', icon: 'email', permissions: ['system:mailConfig:get'], value: MailConfig },
{ name: '短信配置', key: 'sms', icon: 'message', permissions: ['system:smsConfig:list'], value: SmsConfig },
{ name: '存储配置', key: 'storage', icon: 'storage', permissions: ['system:storage:list'], value: StorageConfig },
{ name: '端配置', key: 'client', icon: 'mobile', permissions: ['system:client:list'], value: ClientConfig },
{ name: '客户端配置', key: 'client', icon: 'mobile', permissions: ['system:client:list'], value: ClientConfig },
]
const menuList = computed(() => {