Compare commits

...

2 Commits

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

View File

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

View File

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