From fc1d741b223ff73149707981d1cca745226cdc4c Mon Sep 17 00:00:00 2001 From: xingyuv Date: Fri, 24 Mar 2023 14:22:55 +0800 Subject: [PATCH] feat: add permission --- src/views/base/profile/PasswordModal.vue | 2 +- src/views/infra/apiAccessLog/index.vue | 10 ++--- src/views/infra/apiErrorLog/index.vue | 11 ++--- src/views/infra/codegen/index.vue | 17 ++++---- src/views/infra/config/index.vue | 25 +++++------ src/views/infra/dataSourceConfig/index.vue | 22 ++++++---- src/views/infra/file/index.vue | 6 +-- .../infra/fileConfig/FileConfigModal.vue | 2 +- src/views/infra/fileConfig/index.vue | 25 +++++------ src/views/infra/job/JobModal.vue | 2 +- src/views/infra/job/index.vue | 33 +++++++-------- .../infra/redis/components/RedisModal.vue | 2 +- src/views/system/area/AreaModal.vue | 2 +- src/views/system/dept/index.vue | 5 +-- src/views/system/errorCode/index.vue | 7 +--- src/views/system/loginlog/index.vue | 5 +-- src/views/system/mail/account/index.vue | 5 +-- src/views/system/mail/log/index.vue | 5 +-- src/views/system/mail/template/index.vue | 40 +++++++++++------- src/views/system/menu/index.vue | 21 ++++------ src/views/system/notice/index.vue | 21 ++++------ src/views/system/notify/message/index.vue | 5 +-- src/views/system/notify/my/index.vue | 5 +-- src/views/system/notify/template/index.vue | 26 ++++++------ src/views/system/oauth2/client/index.vue | 21 ++++------ src/views/system/oauth2/token/index.vue | 6 +-- src/views/system/operatelog/index.vue | 5 +-- src/views/system/post/index.vue | 5 +-- src/views/system/role/RoleScopeModal.vue | 2 +- src/views/system/role/index.vue | 41 +++++++++++-------- .../sensitiveWord/SensitiveWordModal.vue | 2 +- src/views/system/sensitiveWord/index.vue | 30 +++++++------- src/views/system/sms/SmsTemplateModal.vue | 2 +- src/views/system/sms/smsChannel.vue | 21 ++++------ src/views/system/sms/smsLog.vue | 10 ++--- src/views/system/sms/smsTemplate.vue | 32 ++++++++------- src/views/system/tenant/index.vue | 25 +++++------ src/views/system/tenantPackage/index.vue | 26 ++++++------ src/views/system/user/index.vue | 20 ++++----- 39 files changed, 259 insertions(+), 293 deletions(-) diff --git a/src/views/base/profile/PasswordModal.vue b/src/views/base/profile/PasswordModal.vue index 6f93b4a4..64293fae 100644 --- a/src/views/base/profile/PasswordModal.vue +++ b/src/views/base/profile/PasswordModal.vue @@ -15,7 +15,7 @@ const emit = defineEmits(['success', 'register']) const title = ref('修改密码') const [registerForm, { resetFields, validate }] = useForm({ - labelWidth: 100, + labelWidth: 120, baseColProps: { span: 24 }, schemas: passwordSchema, showActionButtonGroup: false, diff --git a/src/views/infra/apiAccessLog/index.vue b/src/views/infra/apiAccessLog/index.vue index 4daad82f..07102472 100644 --- a/src/views/infra/apiAccessLog/index.vue +++ b/src/views/infra/apiAccessLog/index.vue @@ -2,7 +2,9 @@
@@ -11,6 +13,7 @@ import { useI18n } from '@/hooks/web/useI18n' import { useMessage } from '@/hooks/web/useMessage' import { BasicTable, useTable } from '@/components/Table' +import { IconEnum } from '@/enums/appEnum' import { getApiAccessLogPage, exportApiAccessLog, ApiAccessLogExportReqVO } from '@/api/infra/apiAccessLog' import { columns, searchFormSchema } from './apiAccessLog.data' @@ -20,10 +23,7 @@ const [registerTable, { getForm }] = useTable({ title: '访问日志列表', api: getApiAccessLogPage, columns, - formConfig: { - labelWidth: 120, - schemas: searchFormSchema - }, + formConfig: { labelWidth: 120, schemas: searchFormSchema }, useSearchForm: true, showTableSetting: true, showIndexColumn: false diff --git a/src/views/infra/apiErrorLog/index.vue b/src/views/infra/apiErrorLog/index.vue index 3c733341..46e6c903 100644 --- a/src/views/infra/apiErrorLog/index.vue +++ b/src/views/infra/apiErrorLog/index.vue @@ -2,7 +2,9 @@