mirror of
https://github.com/jumpserver/lina.git
synced 2025-07-18 09:12:23 +00:00
Merge branch 'dev' of github.com:jumpserver/lina into dev
This commit is contained in:
commit
cd4da8409b
@ -1,6 +1,8 @@
|
|||||||
# just a flag
|
# 全局环境变量 请勿随意改动
|
||||||
ENV = 'development'
|
ENV = 'development'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# base api
|
# base api
|
||||||
VUE_APP_BASE_API = ''
|
VUE_APP_BASE_API = ''
|
||||||
VUE_APP_PUBLIC_PATH = '/ui/'
|
VUE_APP_PUBLIC_PATH = '/ui/'
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# just a flag
|
# 全局环境变量 请勿随意改动
|
||||||
ENV = 'production'
|
ENV = 'production'
|
||||||
|
|
||||||
# base api
|
# base api
|
||||||
|
@ -379,7 +379,9 @@
|
|||||||
"userCount": "用户数量",
|
"userCount": "用户数量",
|
||||||
"userGroupCount": "用户组数量",
|
"userGroupCount": "用户组数量",
|
||||||
"usersAndUserGroups": "用户或用户组",
|
"usersAndUserGroups": "用户或用户组",
|
||||||
"": ""
|
"Inherit": "继承",
|
||||||
|
"Include": "包含",
|
||||||
|
"Exclude": "不包含"
|
||||||
},
|
},
|
||||||
"route": {
|
"route": {
|
||||||
"AdminUserCreate": "创建管理用户",
|
"AdminUserCreate": "创建管理用户",
|
||||||
@ -691,7 +693,7 @@
|
|||||||
"RunUser": "运行用户"
|
"RunUser": "运行用户"
|
||||||
},
|
},
|
||||||
"users": {
|
"users": {
|
||||||
"LoginConfirm": "登录确认人",
|
"LoginConfirm": "登录复核",
|
||||||
"SSHKey": "SSH公钥",
|
"SSHKey": "SSH公钥",
|
||||||
"TermsAndConditions": "条款和条件",
|
"TermsAndConditions": "条款和条件",
|
||||||
"IAgree": "我同意",
|
"IAgree": "我同意",
|
||||||
@ -781,6 +783,7 @@
|
|||||||
"Label": "标签",
|
"Label": "标签",
|
||||||
"assetAndNode": "资产或节点",
|
"assetAndNode": "资产或节点",
|
||||||
"Success": "成功",
|
"Success": "成功",
|
||||||
|
"Execute": "执行",
|
||||||
"ChangeAuthPlan": {
|
"ChangeAuthPlan": {
|
||||||
"Asset": "资产",
|
"Asset": "资产",
|
||||||
"Success": "成功",
|
"Success": "成功",
|
||||||
|
@ -376,7 +376,9 @@
|
|||||||
"userCount": "User count",
|
"userCount": "User count",
|
||||||
"userGroupCount": "User group count",
|
"userGroupCount": "User group count",
|
||||||
"usersAndUserGroups": "Users and user groups",
|
"usersAndUserGroups": "Users and user groups",
|
||||||
"": ""
|
"Inherit": "Inherit",
|
||||||
|
"Include": "Include",
|
||||||
|
"Exclude": "Exclude"
|
||||||
},
|
},
|
||||||
"route": {
|
"route": {
|
||||||
"AdminUserCreate": "Admin user create",
|
"AdminUserCreate": "Admin user create",
|
||||||
@ -674,7 +676,7 @@
|
|||||||
"showNodeInfo": "Show node information"
|
"showNodeInfo": "Show node information"
|
||||||
},
|
},
|
||||||
"users": {
|
"users": {
|
||||||
"LoginConfirm": "Login approvers",
|
"LoginConfirm": "Login confirm",
|
||||||
"SSHKey": "SSH Key",
|
"SSHKey": "SSH Key",
|
||||||
"TermsAndConditions": "Terms and conditions",
|
"TermsAndConditions": "Terms and conditions",
|
||||||
"IAgree": "I agree",
|
"IAgree": "I agree",
|
||||||
@ -756,6 +758,7 @@
|
|||||||
"Admin": "Admin",
|
"Admin": "Admin",
|
||||||
"AssetCount": "Asset count",
|
"AssetCount": "Asset count",
|
||||||
"Auditor": "Auditor",
|
"Auditor": "Auditor",
|
||||||
|
"Execute": "Execute",
|
||||||
"ChangeAuthPlan": {
|
"ChangeAuthPlan": {
|
||||||
"PasswordStrategy": "Password strategy",
|
"PasswordStrategy": "Password strategy",
|
||||||
"HelpText": {
|
"HelpText": {
|
||||||
|
@ -38,7 +38,11 @@ export default {
|
|||||||
]),
|
]),
|
||||||
// eslint-disable-next-line vue/return-in-computed-property
|
// eslint-disable-next-line vue/return-in-computed-property
|
||||||
logoSrc() {
|
logoSrc() {
|
||||||
return this.publicSettings.LOGO_URLS.logo_index
|
if (this.publicSettings.LOGO_URLS.logo_index !== '/static/img/logo_text.png') {
|
||||||
|
return this.publicSettings.LOGO_URLS.logo_index
|
||||||
|
} else {
|
||||||
|
return this.logoText
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
@ -24,17 +24,6 @@ export default {
|
|||||||
url: '/api/v1/perms/asset-permissions/',
|
url: '/api/v1/perms/asset-permissions/',
|
||||||
hasSelection: false,
|
hasSelection: false,
|
||||||
hasTree: true,
|
hasTree: true,
|
||||||
tagSearch: [
|
|
||||||
{ label: this.$t('common.Name'), key: 'name' },
|
|
||||||
{ label: this.$t('perms.isValid'), key: 'is_valid' },
|
|
||||||
{ label: this.$t('common.Username'), key: 'username' },
|
|
||||||
{ label: this.$t('perms.UserGroups'), key: 'user_group' },
|
|
||||||
{ label: this.$t('perms.IP'), key: 'ip' },
|
|
||||||
{ label: this.$t('perms.hostName'), key: 'hostname' },
|
|
||||||
{ label: this.$t('perms.Node'), key: 'node' },
|
|
||||||
{ label: this.$t('perms.SystemUser'), key: 'system_user' },
|
|
||||||
{ label: '继承(先占位)', key: 'all=0' }
|
|
||||||
],
|
|
||||||
columns: ['name', 'users_amount', 'user_groups_amount', 'assets_amount', 'nodes_amount', 'system_users_amount', 'is_active', 'actions'],
|
columns: ['name', 'users_amount', 'user_groups_amount', 'assets_amount', 'nodes_amount', 'system_users_amount', 'is_active', 'actions'],
|
||||||
columnsMeta: {
|
columnsMeta: {
|
||||||
name: {
|
name: {
|
||||||
@ -101,6 +90,32 @@ export default {
|
|||||||
name: 'AssetPermissionCreate',
|
name: 'AssetPermissionCreate',
|
||||||
query: this.$route.query
|
query: this.$route.query
|
||||||
},
|
},
|
||||||
|
searchConfig: {
|
||||||
|
url: '',
|
||||||
|
options: [
|
||||||
|
{ label: this.$t('common.Name'), value: 'name' },
|
||||||
|
{ label: this.$t('perms.isValid'), value: 'is_valid' },
|
||||||
|
{ label: this.$t('common.Username'), value: 'username' },
|
||||||
|
{ label: this.$t('perms.UserGroups'), value: 'user_group' },
|
||||||
|
{ label: this.$t('perms.IP'), value: 'ip' },
|
||||||
|
{ label: this.$t('perms.hostName'), value: 'hostname' },
|
||||||
|
{ label: this.$t('perms.Node'), value: 'node' },
|
||||||
|
{ label: this.$t('perms.SystemUser'), value: 'system_user' },
|
||||||
|
{
|
||||||
|
label: this.$t('perms.Inherit'), value: 'all',
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
value: '1',
|
||||||
|
label: this.$t('perms.Include')
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: '0',
|
||||||
|
label: this.$t('perms.Exclude')
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
hasRightActions: false,
|
hasRightActions: false,
|
||||||
hasBulkDelete: false,
|
hasBulkDelete: false,
|
||||||
hasBulkUpdate: false,
|
hasBulkUpdate: false,
|
||||||
|
@ -81,7 +81,33 @@ export default {
|
|||||||
headerActions: {
|
headerActions: {
|
||||||
hasLeftActions: false,
|
hasLeftActions: false,
|
||||||
hasExport: false,
|
hasExport: false,
|
||||||
hasImport: false
|
hasImport: false,
|
||||||
|
searchConfig: {
|
||||||
|
url: '',
|
||||||
|
options: [
|
||||||
|
{ label: this.$t('common.Name'), value: 'name' },
|
||||||
|
{ label: this.$t('perms.isValid'), value: 'is_valid' },
|
||||||
|
{ label: this.$t('common.Username'), value: 'username' },
|
||||||
|
{ label: this.$t('perms.UserGroups'), value: 'user_group' },
|
||||||
|
{ label: this.$t('perms.IP'), value: 'ip' },
|
||||||
|
{ label: this.$t('perms.hostName'), value: 'hostname' },
|
||||||
|
{ label: this.$t('perms.Node'), value: 'node' },
|
||||||
|
{ label: this.$t('perms.SystemUser'), value: 'system_user' },
|
||||||
|
{
|
||||||
|
label: this.$t('perms.Inherit'), value: 'all',
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
value: '1',
|
||||||
|
label: this.$t('perms.Include')
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: '0',
|
||||||
|
label: this.$t('perms.Exclude')
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -49,7 +49,12 @@ export default {
|
|||||||
headerActions: {
|
headerActions: {
|
||||||
hasLeftActions: false,
|
hasLeftActions: false,
|
||||||
hasImport: false,
|
hasImport: false,
|
||||||
hasExport: false
|
hasExport: false,
|
||||||
|
searchConfig: {
|
||||||
|
url: '',
|
||||||
|
options: [
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -60,7 +60,10 @@ export default {
|
|||||||
headerActions: {
|
headerActions: {
|
||||||
hasLeftActions: false,
|
hasLeftActions: false,
|
||||||
hasImport: false,
|
hasImport: false,
|
||||||
hasExport: false
|
hasExport: false,
|
||||||
|
searchConfig: {
|
||||||
|
url: ''
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -48,7 +48,7 @@ export default {
|
|||||||
formatterArgs: {
|
formatterArgs: {
|
||||||
extraActions: [
|
extraActions: [
|
||||||
{
|
{
|
||||||
title: vm.$t('xpack.ChangeAuthPlan.Execute'),
|
title: vm.$t('xpack.Execute'),
|
||||||
name: 'execute',
|
name: 'execute',
|
||||||
type: 'info',
|
type: 'info',
|
||||||
callback: function(data) {
|
callback: function(data) {
|
||||||
|
@ -10,6 +10,7 @@ export default {
|
|||||||
ListTable
|
ListTable
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
const vm = this
|
||||||
return {
|
return {
|
||||||
tableConfig: {
|
tableConfig: {
|
||||||
url: '/api/v1/xpack/cloud/sync-instance-tasks/',
|
url: '/api/v1/xpack/cloud/sync-instance-tasks/',
|
||||||
@ -22,7 +23,21 @@ export default {
|
|||||||
formatterArgs: {
|
formatterArgs: {
|
||||||
onUpdate: ({ row }) => {
|
onUpdate: ({ row }) => {
|
||||||
this.$router.push({ name: 'SyncInstanceTaskUpdate', params: { id: row.id }})
|
this.$router.push({ name: 'SyncInstanceTaskUpdate', params: { id: row.id }})
|
||||||
}
|
},
|
||||||
|
extraActions: [
|
||||||
|
{
|
||||||
|
title: vm.$t('xpack.Execute'),
|
||||||
|
name: 'execute',
|
||||||
|
type: 'info',
|
||||||
|
callback: function(data) {
|
||||||
|
this.$axios.get(
|
||||||
|
`/api/v1/xpack/cloud/sync-instance-tasks/${data.row.id}/run/`
|
||||||
|
).then(res => {
|
||||||
|
}).catch(res => {
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
name: {
|
name: {
|
||||||
|
@ -27,7 +27,7 @@ export default {
|
|||||||
updateRoute: 'GatherUserTaskUpdate',
|
updateRoute: 'GatherUserTaskUpdate',
|
||||||
extraActions: [
|
extraActions: [
|
||||||
{
|
{
|
||||||
title: vm.$t('xpack.ChangeAuthPlan.Execute'),
|
title: vm.$t('xpack.Execute'),
|
||||||
name: 'execute',
|
name: 'execute',
|
||||||
type: 'info',
|
type: 'info',
|
||||||
callback: function(data) {
|
callback: function(data) {
|
||||||
|
Loading…
Reference in New Issue
Block a user