From 892c84f32a12f10b0b21b74801fd28ccdf248e06 Mon Sep 17 00:00:00 2001
From: "Michelle.Chung" <1242874891@qq.com>
Date: Tue, 27 Jun 2023 09:03:51 +0800
Subject: [PATCH] =?UTF-8?q?update=20=E6=9B=B4=E6=96=B0=E5=AD=97=E6=AE=B5?=
=?UTF-8?q?=E5=91=BD=E5=90=8D=20activityTimeout=20->=20activeTimeout=20;?=
=?UTF-8?q?=20update=20=E6=96=B0=E5=A2=9E=E5=AD=97=E6=AE=B5=E8=AE=BE?=
=?UTF-8?q?=E5=A4=87=E7=B1=BB=E5=9E=8B=20deviceType=20;?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/system/client/types.ts | 21 ++++++++++++++++++---
src/views/system/client/index.vue | 29 ++++++++++++++++++++++++-----
2 files changed, 42 insertions(+), 8 deletions(-)
diff --git a/src/api/system/client/types.ts b/src/api/system/client/types.ts
index 1c505ac..e67f95f 100644
--- a/src/api/system/client/types.ts
+++ b/src/api/system/client/types.ts
@@ -24,10 +24,15 @@ export interface ClientVO {
*/
grantTypeList: string[];
+ /**
+ * 设备类型
+ */
+ deviceType: string;
+
/**
* token活跃超时时间
*/
- activityTimeout: number;
+ activeTimeout: number;
/**
* token固定超时
@@ -67,10 +72,15 @@ export interface ClientForm extends BaseEntity {
*/
grantTypeList?: string[];
+ /**
+ * 设备类型
+ */
+ deviceType?: string;
+
/**
* token活跃超时时间
*/
- activityTimeout?: number;
+ activeTimeout?: number;
/**
* token固定超时
@@ -105,10 +115,15 @@ export interface ClientQuery extends PageQuery {
*/
grantType?: string;
+ /**
+ * 设备类型
+ */
+ deviceType?: string;
+
/**
* token活跃超时时间
*/
- activityTimeout?: number;
+ activeTimeout?: number;
/**
* token固定超时
diff --git a/src/views/system/client/index.vue b/src/views/system/client/index.vue
index 5191108..2130d03 100644
--- a/src/views/system/client/index.vue
+++ b/src/views/system/client/index.vue
@@ -56,7 +56,12 @@
-
+
+
+
+
+
+
@@ -100,7 +105,15 @@
>
-
+
+
+
+
+
+
@@ -109,7 +122,7 @@
Token活跃超时时间
-
+
@@ -149,6 +162,7 @@ import { ElForm } from 'element-plus';
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
const { sys_normal_disable } = toRefs(proxy?.useDict("sys_normal_disable"));
const { sys_grant_type } = toRefs(proxy?.useDict("sys_grant_type"));
+const { sys_device_type } = toRefs(proxy?.useDict("sys_device_type"));
const clientList = ref([]);
const buttonLoading = ref(false);
@@ -173,7 +187,8 @@ const initFormData: ClientForm = {
clientKey: undefined,
clientSecret: undefined,
grantTypeList: undefined,
- activityTimeout: undefined,
+ deviceType: undefined,
+ activeTimeout: undefined,
timeout: undefined,
status: undefined,
}
@@ -186,7 +201,8 @@ const data = reactive>({
clientKey: undefined,
clientSecret: undefined,
grantType: undefined,
- activityTimeout: undefined,
+ deviceType: undefined,
+ activeTimeout: undefined,
timeout: undefined,
status: undefined,
},
@@ -206,6 +222,9 @@ const data = reactive>({
grantTypeList: [
{ required: true, message: "授权类型不能为空", trigger: "change" }
],
+ deviceType: [
+ { required: true, message: "设备类型不能为空", trigger: "change" }
+ ],
}
});