mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-09-07 20:57:08 +08:00
revert: 还原 终端 => 客户端(终端容易被误解)
This commit is contained in:
@@ -17,5 +17,5 @@ VITE_OPEN_DEVTOOLS = false
|
||||
# 应用配置面板
|
||||
VITE_APP_SETTING = true
|
||||
|
||||
# 终端ID
|
||||
# 客户端ID
|
||||
VITE_CLIENT_ID = 'ef51c9a3e9046c4f2ea45142c8a8344a'
|
@@ -13,5 +13,5 @@ VITE_BASE = '/'
|
||||
# 应用配置面板
|
||||
VITE_APP_SETTING = true
|
||||
|
||||
# 终端ID
|
||||
# 客户端ID
|
||||
VITE_CLIENT_ID = 'ef51c9a3e9046c4f2ea45142c8a8344a'
|
@@ -18,5 +18,5 @@ VITE_OPEN_DEVTOOLS = true
|
||||
# 应用配置面板
|
||||
VITE_APP_SETTING = false
|
||||
|
||||
# 终端ID
|
||||
# 客户端ID
|
||||
VITE_CLIENT_ID = 'ef51c9a3e9046c4f2ea45142c8a8344a'
|
||||
|
@@ -131,7 +131,7 @@ public class DeptController extends BaseController<DeptService, DeptResp, DeptDe
|
||||
- 邮件配置:提供系统发件箱配置,也支持通过配置文件指定
|
||||
- 短信配置:提供系统短信服务配置,也支持通过配置文件指定
|
||||
- 存储配置:管理文件存储配置,支持本地存储、兼容 S3 协议对象存储
|
||||
- 终端配置:多端认证管理,可设置不同的 token 有效期
|
||||
- 客户端配置:多客户端(PC端、小程序端等)认证管理,可设置不同的 token 有效期
|
||||
- 在线用户:管理当前登录用户,可一键踢除下线
|
||||
- 日志管理:管理系统登录日志、操作日志,支持查看日志详情,包含请求头、响应头等报文信息
|
||||
- 短信日志:管理系统短信发送日志,支持删除、导出
|
||||
|
@@ -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] })
|
||||
}
|
||||
|
@@ -264,7 +264,7 @@ export interface StorageQuery {
|
||||
sort: Array<string>
|
||||
}
|
||||
|
||||
/** 终端类型 */
|
||||
/** 客户端类型 */
|
||||
export interface ClientResp {
|
||||
id: string
|
||||
clientId: string
|
||||
|
@@ -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,
|
||||
|
@@ -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">
|
||||
|
@@ -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,
|
||||
})
|
||||
}
|
||||
|
@@ -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(() => {
|
||||
|
Reference in New Issue
Block a user