From 97f708b9ef4b344d58bca0b78f3e8f18a0011bb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Chuailei000=E2=80=9D?= <2280131253@qq.com> Date: Mon, 31 Oct 2022 20:02:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E5=BF=AB=E9=80=9F?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/acl/UserLoginACL/UserDetail/Detail.vue | 2 +- src/views/assets/Asset/AssetDetail/Detail.vue | 2 +- src/views/assets/Platform/PlatformDetail/Detail.vue | 2 +- .../AppliactionPermissionDetail.vue | 2 +- .../AssetPermissionDetail/AssetPermissionDetail.vue | 2 +- src/views/profile/ProfileInfo.vue | 6 +++--- .../settings/Applet/AppletHosts/AppletHostDetail/Detail.vue | 2 +- src/views/users/User/UserDetail/UserInfo.vue | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/views/acl/UserLoginACL/UserDetail/Detail.vue b/src/views/acl/UserLoginACL/UserDetail/Detail.vue index c2c9c69b3..4256d9f97 100644 --- a/src/views/acl/UserLoginACL/UserDetail/Detail.vue +++ b/src/views/acl/UserLoginACL/UserDetail/Detail.vue @@ -55,7 +55,7 @@ export default { quickActions: [ { title: this.$t('common.Active'), - type: 'switcher', + type: 'switch', attrs: { model: this.object.is_active }, diff --git a/src/views/assets/Asset/AssetDetail/Detail.vue b/src/views/assets/Asset/AssetDetail/Detail.vue index 61e8d1957..28892298b 100644 --- a/src/views/assets/Asset/AssetDetail/Detail.vue +++ b/src/views/assets/Asset/AssetDetail/Detail.vue @@ -39,7 +39,7 @@ export default { quickActions: [ { title: this.$t('assets.IsActive'), - type: 'switcher', + type: 'switch', attrs: { label: this.$t('common.Test'), model: this.object.is_active, diff --git a/src/views/assets/Platform/PlatformDetail/Detail.vue b/src/views/assets/Platform/PlatformDetail/Detail.vue index eba97ba5d..42dcbf785 100644 --- a/src/views/assets/Platform/PlatformDetail/Detail.vue +++ b/src/views/assets/Platform/PlatformDetail/Detail.vue @@ -79,7 +79,7 @@ export default { const quickActions = [ { title: this.$t('assets.DomainEnabled'), - type: 'switcher', + type: 'switch', attrs: { label: this.$t('common.Update'), model: object['domain_enabled'], diff --git a/src/views/perms/ApplicationPermission/ApplicationPermissionDetail/AppliactionPermissionDetail.vue b/src/views/perms/ApplicationPermission/ApplicationPermissionDetail/AppliactionPermissionDetail.vue index b4b498a57..e4357c552 100644 --- a/src/views/perms/ApplicationPermission/ApplicationPermissionDetail/AppliactionPermissionDetail.vue +++ b/src/views/perms/ApplicationPermission/ApplicationPermissionDetail/AppliactionPermissionDetail.vue @@ -31,7 +31,7 @@ export default { quickActions: [ { title: this.$t('common.Active'), - type: 'switcher', + type: 'switch', attrs: { model: this.object.is_active, disabled: !this.$hasPerm('perms.change_applicationpermission') diff --git a/src/views/perms/AssetPermission/AssetPermissionDetail/AssetPermissionDetail.vue b/src/views/perms/AssetPermission/AssetPermissionDetail/AssetPermissionDetail.vue index 8bb35ec48..7adae44ca 100644 --- a/src/views/perms/AssetPermission/AssetPermissionDetail/AssetPermissionDetail.vue +++ b/src/views/perms/AssetPermission/AssetPermissionDetail/AssetPermissionDetail.vue @@ -32,7 +32,7 @@ export default { quickActions: [ { title: this.$t('common.Active'), - type: 'switcher', + type: 'switch', attrs: { model: this.object.is_active, disabled: !this.$hasPerm('perms.change_assetpermission') diff --git a/src/views/profile/ProfileInfo.vue b/src/views/profile/ProfileInfo.vue index 2fc36f842..6c962795e 100644 --- a/src/views/profile/ProfileInfo.vue +++ b/src/views/profile/ProfileInfo.vue @@ -179,7 +179,7 @@ export default { }, { title: this.$t('setting.WeCom'), - type: 'switcher', + type: 'switch', attrs: { name: 'wecom', model: this.object.receive_backends.indexOf('wecom') !== -1 @@ -191,7 +191,7 @@ export default { }, { title: this.$t('setting.DingTalk'), - type: 'switcher', + type: 'switch', attrs: { name: 'dingtalk', model: this.object.receive_backends.indexOf('dingtalk') !== -1 @@ -203,7 +203,7 @@ export default { }, { title: this.$t('setting.FeiShu'), - type: 'switcher', + type: 'switch', attrs: { name: 'feishu', model: this.object.receive_backends.indexOf('feishu') !== -1 diff --git a/src/views/settings/Applet/AppletHosts/AppletHostDetail/Detail.vue b/src/views/settings/Applet/AppletHosts/AppletHostDetail/Detail.vue index 4b35c6585..288e7c684 100644 --- a/src/views/settings/Applet/AppletHosts/AppletHostDetail/Detail.vue +++ b/src/views/settings/Applet/AppletHosts/AppletHostDetail/Detail.vue @@ -33,7 +33,7 @@ export default { quickActions: [ { title: this.$t('assets.IsActive'), - type: 'switcher', + type: 'switch', attrs: { label: this.$t('common.Test'), model: this.object.is_active, diff --git a/src/views/users/User/UserDetail/UserInfo.vue b/src/views/users/User/UserDetail/UserInfo.vue index 997f387db..48ea464c3 100644 --- a/src/views/users/User/UserDetail/UserInfo.vue +++ b/src/views/users/User/UserDetail/UserInfo.vue @@ -35,7 +35,7 @@ export default { quickActions: [ { title: this.$t('common.Activate'), - type: 'switcher', + type: 'switch', attrs: { model: this.object.is_active, disabled: !vm.$hasPerm('users.change_user')