diff --git a/.env.development b/.env.development index 68e91e6..dd24911 100644 --- a/.env.development +++ b/.env.development @@ -17,5 +17,5 @@ VITE_OPEN_DEVTOOLS = false # 应用配置面板 VITE_APP_SETTING = true -# 客户端ID +# 终端ID VITE_CLIENT_ID = 'ef51c9a3e9046c4f2ea45142c8a8344a' \ No newline at end of file diff --git a/.env.production b/.env.production index debf235..183cd0e 100644 --- a/.env.production +++ b/.env.production @@ -13,5 +13,5 @@ VITE_BASE = '/' # 应用配置面板 VITE_APP_SETTING = true -# 客户端ID +# 终端ID VITE_CLIENT_ID = 'ef51c9a3e9046c4f2ea45142c8a8344a' \ No newline at end of file diff --git a/.env.test b/.env.test index 5e7189f..20919c2 100644 --- a/.env.test +++ b/.env.test @@ -18,5 +18,5 @@ VITE_OPEN_DEVTOOLS = true # 应用配置面板 VITE_APP_SETTING = false -# 客户端ID +# 终端ID VITE_CLIENT_ID = 'ef51c9a3e9046c4f2ea45142c8a8344a' diff --git a/src/apis/system/client.ts b/src/apis/system/client.ts index 592167f..a5ae56e 100644 --- a/src/apis/system/client.ts +++ b/src/apis/system/client.ts @@ -5,27 +5,27 @@ export type * from './type' const BASE_URL = '/system/client' -/** @desc 查询客户端列表 */ +/** @desc 查询终端列表 */ export function listClient(query: T.ClientPageQuery) { return http.get>(`${BASE_URL}`, query) } -/** @desc 查询客户端详情 */ +/** @desc 查询终端详情 */ export function getClient(id: string) { return http.get(`${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(ids: string | Array) { return http.del(`${BASE_URL}/${ids}`) } diff --git a/src/apis/system/type.ts b/src/apis/system/type.ts index c245a58..c9ef24c 100644 --- a/src/apis/system/type.ts +++ b/src/apis/system/type.ts @@ -259,7 +259,7 @@ export interface StorageQuery { export interface StoragePageQuery extends StorageQuery, PageQuery { } -/** 客户端类型 */ +/** 终端类型 */ export interface ClientResp { id: string clientId: string diff --git a/src/views/system/client/ClientAddModal.vue b/src/views/system/client/ClientAddModal.vue index f1ea777..3157f77 100644 --- a/src/views/system/client/ClientAddModal.vue +++ b/src/views/system/client/ClientAddModal.vue @@ -32,7 +32,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>() const { client_type, auth_type_enum } = useDict('auth_type_enum', 'client_type') @@ -56,20 +56,20 @@ const handleGenerate = () => { const columns: Columns = reactive([ { - label: '客户端 Key', + label: '终端 Key', field: 'clientKey', type: 'input', - rules: [{ required: true, message: '请输入客户端 Key' }], + rules: [{ required: true, message: '请输入终端 Key' }], span: 2, disabled: () => { return isUpdate.value }, }, { - label: '客户端秘钥', + label: '终端秘钥', field: 'clientSecret', type: 'input', - rules: [{ required: true, message: '请输入客户端秘钥' }], + rules: [{ required: true, message: '请输入终端秘钥' }], span: 2, disabled: () => { return isUpdate.value @@ -97,11 +97,11 @@ const columns: Columns = reactive([ rules: [{ required: true, message: '请选择认证类型' }], }, { - label: '客户端类型', + label: '终端类型', field: 'clientType', type: 'select', options: client_type, - rules: [{ required: true, message: '请选择客户端类型' }], + rules: [{ required: true, message: '请选择终端类型' }], }, { label: () => ( diff --git a/src/views/system/client/ClientDetailDrawer.vue b/src/views/system/client/ClientDetailDrawer.vue index afb75ce..26a5c2e 100644 --- a/src/views/system/client/ClientDetailDrawer.vue +++ b/src/views/system/client/ClientDetailDrawer.vue @@ -1,16 +1,16 @@