From eed6a9a689abe12daa88fed4423fde93a35a1666 Mon Sep 17 00:00:00 2001 From: xingyu4j Date: Wed, 16 Nov 2022 11:32:47 +0800 Subject: [PATCH] fix --- .../src/views/system/errorCode/index.vue | 4 +- .../src/views/system/notice/index.vue | 4 +- .../src/views/system/notice/notice.data.ts | 2 +- .../views/system/oauth2/client/client.data.ts | 22 +++++-- .../src/views/system/oauth2/client/index.vue | 59 ++++++++++++++++++- .../src/views/system/role/index.vue | 4 +- .../src/views/system/sms/smsChannel/index.vue | 4 +- 7 files changed, 81 insertions(+), 18 deletions(-) diff --git a/yudao-ui-admin-vue3/src/views/system/errorCode/index.vue b/yudao-ui-admin-vue3/src/views/system/errorCode/index.vue index 0f1bcccb1..5e93dfcb0 100644 --- a/yudao-ui-admin-vue3/src/views/system/errorCode/index.vue +++ b/yudao-ui-admin-vue3/src/views/system/errorCode/index.vue @@ -110,18 +110,18 @@ const handleCreate = () => { // 修改操作 const handleUpdate = async (rowId: number) => { + setDialogTile('update') // 设置数据 const res = await ErrorCodeApi.getErrorCodeApi(rowId) unref(formRef)?.setValues(res) - setDialogTile('update') } // 详情操作 const handleDetail = async (rowId: number) => { + setDialogTile('detail') // 设置数据 const res = await ErrorCodeApi.getErrorCodeApi(rowId) detailRef.value = res - setDialogTile('detail') } // 删除操作 diff --git a/yudao-ui-admin-vue3/src/views/system/notice/index.vue b/yudao-ui-admin-vue3/src/views/system/notice/index.vue index 6eed9b537..c1b6a42bf 100644 --- a/yudao-ui-admin-vue3/src/views/system/notice/index.vue +++ b/yudao-ui-admin-vue3/src/views/system/notice/index.vue @@ -109,18 +109,18 @@ const handleCreate = () => { // 修改操作 const handleUpdate = async (rowId: number) => { + setDialogTile('update') // 设置数据 const res = await NoticeApi.getNoticeApi(rowId) unref(formRef)?.setValues(res) - setDialogTile('update') } // 详情操作 const handleDetail = async (rowId: number) => { + setDialogTile('detail') // 设置数据 const res = await NoticeApi.getNoticeApi(rowId) detailRef.value = res - setDialogTile('detail') } // 删除操作 diff --git a/yudao-ui-admin-vue3/src/views/system/notice/notice.data.ts b/yudao-ui-admin-vue3/src/views/system/notice/notice.data.ts index a2f9181bc..9023e4403 100644 --- a/yudao-ui-admin-vue3/src/views/system/notice/notice.data.ts +++ b/yudao-ui-admin-vue3/src/views/system/notice/notice.data.ts @@ -34,7 +34,7 @@ const crudSchemas = reactive({ isSearch: true }, { - title: '公告内容', // TODO 星语:详情时,公告展示有办法是 html 么? + title: '公告内容', field: 'content', table: { type: 'html' diff --git a/yudao-ui-admin-vue3/src/views/system/oauth2/client/client.data.ts b/yudao-ui-admin-vue3/src/views/system/oauth2/client/client.data.ts index 707e6a55e..6d81a3d0e 100644 --- a/yudao-ui-admin-vue3/src/views/system/oauth2/client/client.data.ts +++ b/yudao-ui-admin-vue3/src/views/system/oauth2/client/client.data.ts @@ -49,21 +49,31 @@ const crudSchemas = reactive({ }, { title: '访问令牌的有效期', - field: 'accessTokenValiditySeconds', // TODO 星语:展示时,要有 xxx 秒 + field: 'accessTokenValiditySeconds', form: { component: 'InputNumber' + }, + table: { + slots: { + default: 'accessTokenValiditySeconds_default' + } } }, { title: '刷新令牌的有效期', - field: 'refreshTokenValiditySeconds', // TODO 星语:展示时,要有 xxx 秒 + field: 'refreshTokenValiditySeconds', form: { component: 'InputNumber' + }, + table: { + slots: { + default: 'refreshTokenValiditySeconds_default' + } } }, { title: '授权类型', - field: 'authorizedGrantTypes', // TODO 星语:详情展示时,应该类似 table 也是多个 tag + field: 'authorizedGrantTypes', table: { width: 300, slots: { @@ -74,17 +84,17 @@ const crudSchemas = reactive({ { title: '授权范围', field: 'scopes', // TODO @星语:带输入的 SELECT - isTable: false // TODO 星语:详情展示时,应该类似 table 也是多个 tag + isTable: false }, { title: '自动授权范围', field: 'autoApproveScopes', // TODO @星语:带输入的 SELECT - isTable: false // TODO 星语:详情展示时,应该类似 table 也是多个 tag + isTable: false }, { title: '可重定向的 URI 地址', field: 'redirectUris', // TODO @星语:带输入的 SELECT - isTable: false // TODO 星语:详情展示时,应该类似 table 也是多个 tag + isTable: false }, { title: '权限', diff --git a/yudao-ui-admin-vue3/src/views/system/oauth2/client/index.vue b/yudao-ui-admin-vue3/src/views/system/oauth2/client/index.vue index 260287825..d651b11ac 100644 --- a/yudao-ui-admin-vue3/src/views/system/oauth2/client/index.vue +++ b/yudao-ui-admin-vue3/src/views/system/oauth2/client/index.vue @@ -12,6 +12,12 @@ @click="handleCreate()" /> + +