diff --git a/src/api/admin/client.ts b/src/api/admin/client.ts new file mode 100644 index 00000000..e0b0c4db --- /dev/null +++ b/src/api/admin/client.ts @@ -0,0 +1,39 @@ +import request from "/@/utils/request" + +export function fetchList(query?: Object) { + return request({ + url: '/admin/client/page', + method: 'get', + params: query + }) +} + +export function addObj(obj?: Object) { + return request({ + url: '/admin/client', + method: 'post', + data: obj + }) +} + +export function getObj(id?: string) { + return request({ + url: '/admin/client/' + id, + method: 'get' + }) +} + +export function delObj(id?: string) { + return request({ + url: '/admin/client/' + id, + method: 'delete' + }) +} + +export function putObj(obj?: Object) { + return request({ + url: '/admin/client', + method: 'put', + data: obj + }) +} diff --git a/src/theme/app.scss b/src/theme/app.scss index 7deb26f6..da801789 100644 --- a/src/theme/app.scss +++ b/src/theme/app.scss @@ -321,3 +321,5 @@ body, padding-left: #{$i}px !important; } } + + diff --git a/src/theme/index.scss b/src/theme/index.scss index 4ac9b060..6de0b121 100644 --- a/src/theme/index.scss +++ b/src/theme/index.scss @@ -5,3 +5,4 @@ @import './media/media.scss'; @import './waves.scss'; @import './dark.scss'; +@import "./pigx.scss"; diff --git a/src/theme/pigx.scss b/src/theme/pigx.scss new file mode 100644 index 00000000..7541c71b --- /dev/null +++ b/src/theme/pigx.scss @@ -0,0 +1,7 @@ +.el-form-item__content { + .el-select{ + width: 100% !important; + } + +} + diff --git a/src/views/admin/client/form.vue b/src/views/admin/client/form.vue new file mode 100644 index 00000000..051d7808 --- /dev/null +++ b/src/views/admin/client/form.vue @@ -0,0 +1,237 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{item.label}} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ item.label }} + + + + + + + + + + + + + + + + + + 安全属性 + + + + + + + {{ item.label }} + + + + + + + + {{ item.label }} + + + + + + + + {{ item.label }} + + + + + + + + + + + + + {{ $t('common.cancelButtonText') }} + {{ $t('common.confirmButtonText') }} + + + + + + diff --git a/src/views/admin/client/i18n/en.ts b/src/views/admin/client/i18n/en.ts new file mode 100644 index 00000000..66fdd667 --- /dev/null +++ b/src/views/admin/client/i18n/en.ts @@ -0,0 +1,45 @@ +export default { + client: { + index: 'index', + importsysOauthClientDetailsTip: 'import SysOauthClientDetails', + id: 'id', + clientId: 'clientId', + resourceIds: 'resourceIds', + clientSecret: 'clientSecret', + scope: 'scope', + authorizedGrantTypes: 'authorizedGrantTypes', + webServerRedirectUri: 'webServerRedirectUri', + authorities: 'authorities', + accessTokenValidity: 'accessTokenValidity', + refreshTokenValidity: 'refreshTokenValidity', + additionalInformation: 'additionalInformation', + autoapprove: 'autoapprove', + delFlag: 'delFlag', + createBy: 'createBy', + updateBy: 'updateBy', + createTime: 'createTime', + updateTime: 'updateTime', + tenantId: 'tenantId', + captchaFlag: 'captchaFlag', + encFlag: 'encFlag', + onlineQuantity: 'onlineQuantity', + inputIdTip: 'input id', + inputClientIdTip: 'input clientId', + inputResourceIdsTip: 'input resourceIds', + inputClientSecretTip: 'input clientSecret', + inputScopeTip: 'input scope', + inputAuthorizedGrantTypesTip: 'input authorizedGrantTypes', + inputWebServerRedirectUriTip: 'input webServerRedirectUri', + inputAuthoritiesTip: 'input authorities', + inputAccessTokenValidityTip: 'input accessTokenValidity', + inputRefreshTokenValidityTip: 'input refreshTokenValidity', + inputAdditionalInformationTip: 'input additionalInformation', + inputAutoapproveTip: 'input autoapprove', + inputDelFlagTip: 'input delFlag', + inputCreateByTip: 'input createBy', + inputUpdateByTip: 'input updateBy', + inputCreateTimeTip: 'input createTime', + inputUpdateTimeTip: 'input updateTime', + inputTenantIdTip: 'input tenantId', + } +} diff --git a/src/views/admin/client/i18n/zh-cn.ts b/src/views/admin/client/i18n/zh-cn.ts new file mode 100644 index 00000000..76630b6b --- /dev/null +++ b/src/views/admin/client/i18n/zh-cn.ts @@ -0,0 +1,43 @@ +export default { + client: { + index: '序号', + importsysOauthClientDetailsTip: '导入终端信息表', + id: 'ID', + clientId: '编号', + resourceIds: '', + clientSecret: '密钥', + scope: '域', + authorizedGrantTypes: '授权模式', + webServerRedirectUri: '回调地址', + authorities: '权限', + accessTokenValidity: '令牌时效', + refreshTokenValidity: '刷新时效', + additionalInformation: '扩展信息', + autoapprove: '自动放行', + createBy: '创建人', + updateBy: '修改人', + createTime: '上传时间', + updateTime: '更新时间', + tenantId: '所属租户', + captchaFlag: '验证码开关', + encFlag: '前端密码加密', + onlineQuantity: '允许同时在线', + inputIdTip: '请输入ID', + inputClientIdTip: '请输入编号', + inputResourceIdsTip: '请输入', + inputClientSecretTip: '请输入密钥', + inputScopeTip: '请输入域', + inputAuthorizedGrantTypesTip: '请输入授权模式', + inputWebServerRedirectUriTip: '请输入回调地址', + inputAuthoritiesTip: '请输入权限', + inputAccessTokenValidityTip: '请输入令牌时效', + inputRefreshTokenValidityTip: '请输入刷新时效', + inputAdditionalInformationTip: '请输入扩展信息', + inputAutoapproveTip: '请输入自动放行', + inputCreateByTip: '请输入创建人', + inputUpdateByTip: '请输入修改人', + inputCreateTimeTip: '请输入上传时间', + inputUpdateTimeTip: '请输入更新时间', + inputTenantIdTip: '请输入所属租户', + } +} diff --git a/src/views/admin/client/index.vue b/src/views/admin/client/index.vue new file mode 100644 index 00000000..655217da --- /dev/null +++ b/src/views/admin/client/index.vue @@ -0,0 +1,123 @@ + + + + + + + {{ $t('common.addBtn') }} + + + {{ $t('common.exportBtn') }} + + + {{ $t('common.delBtn') }} + + + + + + + + + + + + + + + + + + + + {{ $t('common.editBtn') }} + + {{ + $t('common.delBtn') + }} + + + + + + + + + + + + + diff --git a/src/views/gen/table/edit.vue b/src/views/gen/table/edit.vue index 6f216535..84329de6 100644 --- a/src/views/gen/table/edit.vue +++ b/src/views/gen/table/edit.vue @@ -1,5 +1,5 @@ - +