Merge pull request #3174 from jumpserver/pr@dev@account

perf: 修改创建资产账号的顺序及账号模版批量添加隐藏su_from_username字段
This commit is contained in:
feng626 2023-06-09 16:23:30 +08:00 committed by GitHub
commit 7aa8afec44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -170,7 +170,7 @@ export default {
su_from_username: {
label: this.$t('assets.UserSwitchFrom'),
hidden: (formValue) => {
return this.platform || this.asset
return this.platform || this.asset || this.addTemplate
}
},
secret: {

View File

@ -74,7 +74,6 @@ export default {
delete values['accounts']
} else {
const accounts = values?.accounts || []
accounts.reverse()
values.accounts = accounts.map((item) => {
item['secret'] = encryptPassword(item['secret'])
return item