mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-20 02:31:43 +00:00
[Update] 修改button透传
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
<template>
|
||||
<DataForm ref="dataForm" v-loading="loading" :fields="totalFields" v-bind="$attrs" v-on="$listeners">
|
||||
<FormGroupHeader v-for="(group, i) in groups" :slot="'id:'+group.name" :key="'group-'+group.name" :title="group.title" :line="i != 0" />
|
||||
<template #button-start>
|
||||
<slot name="button-start" />
|
||||
</template>
|
||||
<template #button-end>
|
||||
<slot name="button-end" />
|
||||
</template>
|
||||
</DataForm>
|
||||
</template>
|
||||
|
||||
|
@@ -572,8 +572,7 @@ const cn = {
|
||||
'securityPasswordLowerCase': '必须包含小写字母',
|
||||
'securityPasswordNumber': '必须包含数字字符',
|
||||
'securityPasswordSpecialChar': '必须包含特殊字符',
|
||||
'Hostname': '主机名'
|
||||
},
|
||||
'Hostname': '主机名',
|
||||
helpText: {
|
||||
'siteUrl': 'eg: http://jumpserver.abc.com:8080',
|
||||
'userGuideUrl': '用户第一次登录,修改profile后重定向到地址',
|
||||
@@ -605,6 +604,7 @@ const cn = {
|
||||
'securityPasswordLowerCase': '开启后,用户密码修改、重置必须包含小写字母',
|
||||
'securityPasswordNumber': '开启后,用户密码修改、重置必须包含数字字符',
|
||||
'securityPasswordSpecialChar': '开启后,用户密码修改、重置必须包含特殊字符'
|
||||
}
|
||||
},
|
||||
...zhLocale
|
||||
}
|
||||
|
@@ -384,8 +384,7 @@ const en = {
|
||||
'securityPasswordLowerCase': 'Must contain lowercase letters',
|
||||
'securityPasswordNumber': 'Must contain numeric characters',
|
||||
'securityPasswordSpecialChar': 'Must contain special characters',
|
||||
'Hostname': 'Hostname'
|
||||
},
|
||||
'Hostname': 'Hostname',
|
||||
helpText: {
|
||||
'siteUrl': 'eg: http://jumpserver.abc.com:8080',
|
||||
'userGuideUrl': 'User first login update profile done redirect to it',
|
||||
@@ -419,6 +418,7 @@ const en = {
|
||||
'securityPasswordLowerCase': '开启后,用户密码修改、重置必须包含小写字母',
|
||||
'securityPasswordNumber': '开启后,用户密码修改、重置必须包含数字字符',
|
||||
'securityPasswordSpecialChar': '开启后,用户密码修改、重置必须包含特殊字符'
|
||||
}
|
||||
},
|
||||
...enLocale
|
||||
}
|
||||
|
@@ -9,7 +9,14 @@
|
||||
v-bind="$attrs"
|
||||
v-on="$listeners"
|
||||
@submit="handleSubmit"
|
||||
/>
|
||||
>
|
||||
<template #button-start>
|
||||
<slot name="button-start" />
|
||||
</template>
|
||||
<template #button-end>
|
||||
<slot name="button-end" />
|
||||
</template>
|
||||
</AutoDataForm>
|
||||
</template>
|
||||
<script>
|
||||
import AutoDataForm from '@/components/AutoDataForm'
|
||||
|
@@ -1,7 +1,14 @@
|
||||
<template>
|
||||
<Page>
|
||||
<IBox>
|
||||
<GenericCreateUpdateForm v-bind="$attrs" v-on="$listeners" />
|
||||
<GenericCreateUpdateForm v-bind="$attrs" v-on="$listeners">
|
||||
<template #button-start>
|
||||
<slot name="button-start" />
|
||||
</template>
|
||||
<template #button-end>
|
||||
<slot name="button-end" />
|
||||
</template>
|
||||
</GenericCreateUpdateForm>
|
||||
</IBox>
|
||||
</Page>
|
||||
</template>
|
||||
|
@@ -17,7 +17,7 @@ export default {
|
||||
columns: [
|
||||
{
|
||||
prop: 'name',
|
||||
label: this.$t('common.name'),
|
||||
label: this.$t('common.Name'),
|
||||
formatter: DetailFormatter,
|
||||
sortable: true,
|
||||
route: 'AdminUserDetail'
|
||||
|
@@ -17,7 +17,7 @@ export default {
|
||||
columns: [
|
||||
{
|
||||
prop: 'name',
|
||||
label: this.$t('common.name'),
|
||||
label: this.$t('common.Name'),
|
||||
formatter: DetailFormatter,
|
||||
sortable: true,
|
||||
route: 'SystemUserDetail'
|
||||
|
@@ -37,18 +37,18 @@ export default {
|
||||
rules: [
|
||||
{ required: true }
|
||||
],
|
||||
helpText: this.$t('helpText.siteUrl')
|
||||
helpText: this.$t('setting.helpText.siteUrl')
|
||||
},
|
||||
USER_GUIDE_URL: {
|
||||
label: this.$t('setting.userGuideUrl'),
|
||||
helpText: this.$t('helpText.userGuideUrl')
|
||||
helpText: this.$t('setting.helpText.userGuideUrl')
|
||||
},
|
||||
EMAIL_SUBJECT_PREFIX: {
|
||||
label: this.$t('setting.emailSubjectPrefix'),
|
||||
rules: [
|
||||
{ required: true }
|
||||
],
|
||||
helpText: this.$t('helpText.emailSubjectPrefix')
|
||||
helpText: this.$t('setting.helpText.emailSubjectPrefix')
|
||||
}
|
||||
},
|
||||
url: '/api/v1/settings/setting/'
|
||||
|
@@ -51,25 +51,25 @@ export default {
|
||||
},
|
||||
EMAIL_HOST_PASSWORD: {
|
||||
label: this.$t('setting.emailHostPassword'),
|
||||
helpText: this.$t('helpText.emailHostPassword')
|
||||
helpText: this.$t('setting.helpText.emailHostPassword')
|
||||
},
|
||||
EMAIL_FROM: {
|
||||
label: this.$t('setting.emailEmailFrom'),
|
||||
helpText: this.$t('helpText.emailEmailFrom')
|
||||
helpText: this.$t('setting.helpText.emailEmailFrom')
|
||||
},
|
||||
EMAIL_RECIPIENT: {
|
||||
label: this.$t('setting.emailRecipient'),
|
||||
helpText: this.$t('helpText.emailRecipient')
|
||||
helpText: this.$t('setting.helpText.emailRecipient')
|
||||
},
|
||||
EMAIL_USE_SSL: {
|
||||
label: this.$t('setting.emailUserSSL'),
|
||||
type: 'checkbox',
|
||||
helpTips: this.$t('helpTip.emailUserSSL')
|
||||
helpTips: this.$t('setting.helpTip.emailUserSSL')
|
||||
},
|
||||
EMAIL_USE_TLS: {
|
||||
label: this.$t('setting.emailUserTLS'),
|
||||
type: 'checkbox',
|
||||
helpTips: this.$t('helpTip.emailUserTLS')
|
||||
helpTips: this.$t('setting.helpTip.emailUserTLS')
|
||||
}
|
||||
},
|
||||
url: '/api/v1/settings/setting/'
|
||||
|
@@ -35,22 +35,22 @@ export default {
|
||||
fieldsMeta: {
|
||||
EMAIL_CUSTOM_USER_CREATED_SUBJECT: {
|
||||
label: this.$t('setting.emailCustomUserCreatedSubject'),
|
||||
helpText: this.$t('helpText.emailCustomUserCreatedSubject')
|
||||
helpText: this.$t('setting.helpText.emailCustomUserCreatedSubject')
|
||||
},
|
||||
EMAIL_CUSTOM_USER_CREATED_HONORIFIC: {
|
||||
label: this.$t('setting.emailCustomUserCreatedHonorific'),
|
||||
helpText: this.$t('helpText.emailCustomUserCreatedHonorific')
|
||||
helpText: this.$t('setting.helpText.emailCustomUserCreatedHonorific')
|
||||
},
|
||||
EMAIL_CUSTOM_USER_CREATED_BODY: {
|
||||
label: this.$t('setting.emailCustomUserCreatedBody'),
|
||||
el: {
|
||||
type: 'textarea'
|
||||
},
|
||||
helpText: this.$t('helpText.emailCustomUserCreatedBody')
|
||||
helpText: this.$t('setting.helpText.emailCustomUserCreatedBody')
|
||||
},
|
||||
EMAIL_CUSTOM_USER_CREATED_SIGNATURE: {
|
||||
label: this.$t('setting.emailCustomUserCreatedSignature'),
|
||||
helpText: this.$t('helpText.emailCustomUserCreatedSignature')
|
||||
helpText: this.$t('setting.helpText.emailCustomUserCreatedSignature')
|
||||
}
|
||||
},
|
||||
url: '/api/v1/settings/setting/'
|
||||
|
@@ -44,14 +44,14 @@ export default {
|
||||
},
|
||||
AUTH_LDAP_SEARCH_OU: {
|
||||
label: this.$t('setting.authLdapSearchOu'),
|
||||
helpText: this.$t('helpText.authLdapSearchOu')
|
||||
helpText: this.$t('setting.helpText.authLdapSearchOu')
|
||||
},
|
||||
AUTH_LDAP_SEARCH_FILTER: {
|
||||
label: this.$t('setting.authLdapSearchFilter'),
|
||||
rules: [
|
||||
{ required: true }
|
||||
],
|
||||
helpText: this.$t('helpText.authLdapSearchFilter')
|
||||
helpText: this.$t('setting.helpText.authLdapSearchFilter')
|
||||
},
|
||||
AUTH_LDAP_USER_ATTR_MAP: {
|
||||
label: this.$t('setting.authLdapUserAttrMap'),
|
||||
@@ -61,7 +61,7 @@ export default {
|
||||
rules: [
|
||||
{ required: true }
|
||||
],
|
||||
helpText: this.$t('helpText.authLdapUserAttrMap')
|
||||
helpText: this.$t('setting.helpText.authLdapUserAttrMap')
|
||||
},
|
||||
AUTH_LDAP: {
|
||||
label: this.$t('setting.authLdap'),
|
||||
|
@@ -38,17 +38,17 @@ export default {
|
||||
SECURITY_MFA_AUTH: {
|
||||
label: this.$t('setting.securityMfaAuth'),
|
||||
type: 'checkbox',
|
||||
helpTips: this.$t('helpTip.securityMfaAuth')
|
||||
helpTips: this.$t('setting.helpTip.securityMfaAuth')
|
||||
},
|
||||
SECURITY_COMMAND_EXECUTION: {
|
||||
label: this.$t('setting.securityCommandExecution'),
|
||||
type: 'checkbox',
|
||||
helpTips: this.$t('helpTip.securityCommandExecution')
|
||||
helpTips: this.$t('setting.helpTip.securityCommandExecution')
|
||||
},
|
||||
SECURITY_SERVICE_ACCOUNT_REGISTRATION: {
|
||||
label: this.$t('setting.securityServiceAccountRegistration'),
|
||||
type: 'checkbox',
|
||||
helpTips: this.$t('helpTip.securityServiceAccountRegistration')
|
||||
helpTips: this.$t('setting.helpTip.securityServiceAccountRegistration')
|
||||
},
|
||||
SECURITY_LOGIN_LIMIT_COUNT: {
|
||||
label: this.$t('setting.securityLoginLimitCount'),
|
||||
@@ -61,18 +61,18 @@ export default {
|
||||
rules: [
|
||||
{ required: true }
|
||||
],
|
||||
helpText: this.$t('helpText.securityLoginLimitTime')
|
||||
helpText: this.$t('setting.helpText.securityLoginLimitTime')
|
||||
},
|
||||
SECURITY_MAX_IDLE_TIME: {
|
||||
label: this.$t('setting.securityMaxIdleTime'),
|
||||
helpText: this.$t('helpText.securityMaxIdleTime')
|
||||
helpText: this.$t('setting.helpText.securityMaxIdleTime')
|
||||
},
|
||||
SECURITY_PASSWORD_EXPIRATION_TIME: {
|
||||
label: this.$t('setting.securityPasswordExpirationTime'),
|
||||
rules: [
|
||||
{ required: true }
|
||||
],
|
||||
helpText: this.$t('helpText.securityPasswordExpirationTime')
|
||||
helpText: this.$t('setting.helpText.securityPasswordExpirationTime')
|
||||
},
|
||||
SECURITY_PASSWORD_MIN_LENGTH: {
|
||||
label: this.$t('setting.securityPasswordMinLength'),
|
||||
@@ -83,22 +83,22 @@ export default {
|
||||
SECURITY_PASSWORD_UPPER_CASE: {
|
||||
label: this.$t('setting.securityPasswordUpperCase'),
|
||||
type: 'checkbox',
|
||||
helpTips: this.$t('helpTip.securityPasswordUpperCase')
|
||||
helpTips: this.$t('setting.helpTip.securityPasswordUpperCase')
|
||||
},
|
||||
SECURITY_PASSWORD_LOWER_CASE: {
|
||||
label: this.$t('setting.securityPasswordLowerCase'),
|
||||
type: 'checkbox',
|
||||
helpTips: this.$t('helpTip.securityPasswordLowerCase')
|
||||
helpTips: this.$t('setting.helpTip.securityPasswordLowerCase')
|
||||
},
|
||||
SECURITY_PASSWORD_NUMBER: {
|
||||
label: this.$t('setting.securityPasswordNumber'),
|
||||
type: 'checkbox',
|
||||
helpTips: this.$t('helpTip.securityPasswordNumber')
|
||||
helpTips: this.$t('setting.helpTip.securityPasswordNumber')
|
||||
},
|
||||
SECURITY_PASSWORD_SPECIAL_CHAR: {
|
||||
label: this.$t('setting.securityPasswordSpecialChar'),
|
||||
type: 'checkbox',
|
||||
helpTips: this.$t('helpTip.securityPasswordSpecialChar')
|
||||
helpTips: this.$t('setting.helpTip.securityPasswordSpecialChar')
|
||||
}
|
||||
},
|
||||
url: '/api/v1/settings/setting/'
|
||||
|
@@ -46,7 +46,7 @@ export default {
|
||||
rules: [
|
||||
{ required: true }
|
||||
],
|
||||
helpText: this.$t('helpText.terminalHeartbeatInterval')
|
||||
helpText: this.$t('setting.helpText.terminalHeartbeatInterval')
|
||||
},
|
||||
TERMINAL_ASSET_LIST_SORT_BY: {
|
||||
label: this.$t('setting.terminalAssetListSortBy'),
|
||||
@@ -84,11 +84,11 @@ export default {
|
||||
rules: [
|
||||
{ required: true }
|
||||
],
|
||||
helpText: this.$t('helpText.terminalSessionKeepDuration')
|
||||
helpText: this.$t('setting.helpText.terminalSessionKeepDuration')
|
||||
},
|
||||
TERMINAL_TELNET_REGEX: {
|
||||
label: this.$t('setting.terminalTelnetRegex'),
|
||||
helpText: this.$t('helpText.terminalTelnetRegex')
|
||||
helpText: this.$t('setting.helpText.terminalTelnetRegex')
|
||||
}
|
||||
},
|
||||
url: '/api/v1/settings/setting/'
|
||||
|
Reference in New Issue
Block a user