Compare commits

...

3 Commits

Author SHA1 Message Date
Michael Bai
2ee6fef2bc fix: 修改基本设置项
fix: 修改基本设置项
2021-10-29 19:24:35 +08:00
xinwen
f56a3f5085 fix: 非本地用户不能绑定三方认证 2021-10-29 13:19:19 +08:00
Michael Bai
66beab9ded fix: 修改基本设置工单启用控制 2021-10-29 13:17:57 +08:00
5 changed files with 10 additions and 29 deletions

View File

@@ -73,8 +73,7 @@ export default {
title: this.$t('users.setWeCom'),
attrs: {
type: 'primary',
label: this.$store.state.users.profile.is_wecom_bound ? this.$t('common.unbind') : this.$t('common.bind'),
disabled: this.$store.state.users.profile.source !== 'local'
label: this.$store.state.users.profile.is_wecom_bound ? this.$t('common.unbind') : this.$t('common.bind')
},
has: this.$store.getters.publicSettings.AUTH_WECOM,
callbacks: {
@@ -88,8 +87,7 @@ export default {
title: this.$t('users.setDingTalk'),
attrs: {
type: 'primary',
label: this.$store.state.users.profile.is_dingtalk_bound ? this.$t('common.unbind') : this.$t('common.bind'),
disabled: this.$store.state.users.profile.source !== 'local'
label: this.$store.state.users.profile.is_dingtalk_bound ? this.$t('common.unbind') : this.$t('common.bind')
},
has: this.$store.getters.publicSettings.AUTH_DINGTALK,
callbacks: {
@@ -103,8 +101,7 @@ export default {
title: this.$t('users.setFeiShu'),
attrs: {
type: 'primary',
label: this.$store.state.users.profile.is_feishu_bound ? this.$t('common.unbind') : this.$t('common.bind'),
disabled: this.$store.state.users.profile.source !== 'local'
label: this.$store.state.users.profile.is_feishu_bound ? this.$t('common.unbind') : this.$t('common.bind')
},
has: this.$store.getters.publicSettings.AUTH_FEISHU,
callbacks: {

View File

@@ -50,6 +50,11 @@ export default {
return !this.$store.getters.hasValidLicense
}
},
TICKETS_ENABLED: {
hidden: () => {
return !this.$store.getters.hasValidLicense
}
},
ANNOUNCEMENT_ENABLED: {
// label: '公告',
component: Announcement

View File

@@ -39,17 +39,12 @@ export default {
return {
visible: false,
fields: [
'SECURITY_LOGIN_LIMIT_COUNT', 'SECURITY_LOGIN_LIMIT_TIME', 'LOGIN_CONFIRM_ENABLE',
'SECURITY_LOGIN_LIMIT_COUNT', 'SECURITY_LOGIN_LIMIT_TIME',
'USER_LOGIN_SINGLE_MACHINE_ENABLED', 'ONLY_ALLOW_EXIST_USER_AUTH',
'ONLY_ALLOW_AUTH_FROM_SOURCE'
],
successUrl: { name: 'Settings', params: { activeMenu: 'EmailContent' }},
fieldsMeta: {
LOGIN_CONFIRM_ENABLE: {
hidden: () => {
return !this.$store.getters.hasValidLicense
}
}
},
url: '/api/v1/settings/setting/?category=security'
}

View File

@@ -99,26 +99,13 @@ export default {
}
}
},
LOGIN_CONFIRM_ENABLE: {
hidden: () => {
return !this.$store.getters.hasValidLicense
}
},
SECURITY_WATERMARK_ENABLED: {
hidden: () => {
return !this.$store.getters.hasValidLicense
}
},
PasswordRule: {
label: this.$t('setting.PasswordCheckRule'),
component: PasswordRule
},
AuthLimit: {
label: this.$t('setting.AuthLimit'),
component: AuthLimit,
hidden: () => {
return !this.$store.getters.hasValidLicense
}
component: AuthLimit
}
},
url: '/api/v1/settings/setting/?category=security'

View File

@@ -195,9 +195,6 @@ export default {
}
},
computed: {
loginConfirmEnabled() {
return this.$store.getters.publicSettings.LOGIN_CONFIRM_ENABLE
},
detailItems() {
return [
{