mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-31 14:38:02 +00:00
Merge pull request #2906 from jumpserver/pr@dev@ticket_push_account
perf: 工单推荐账号过滤组织
This commit is contained in:
@@ -156,6 +156,7 @@ export default {
|
|||||||
options: []
|
options: []
|
||||||
},
|
},
|
||||||
push_now: {
|
push_now: {
|
||||||
|
helpText: this.$t('accounts.AccountPush.WindowsPushHelpText'),
|
||||||
hidden: () => {
|
hidden: () => {
|
||||||
const automation = this.iPlatform.automation || {}
|
const automation = this.iPlatform.automation || {}
|
||||||
return !automation.push_account_enabled || !automation.ansible_enabled || !this.$hasPerm('accounts.push_account')
|
return !automation.push_account_enabled || !automation.ansible_enabled || !this.$hasPerm('accounts.push_account')
|
||||||
|
@@ -78,6 +78,7 @@
|
|||||||
"AddSystemUser": "Add system user"
|
"AddSystemUser": "Add system user"
|
||||||
},
|
},
|
||||||
"AccountPush": {
|
"AccountPush": {
|
||||||
|
"WindowsPushHelpText": "Windows assets do not support pushing keys",
|
||||||
"AccountPushExecutionList": "Execution list",
|
"AccountPushExecutionList": "Execution list",
|
||||||
"AccountPushCreate": "Account push create",
|
"AccountPushCreate": "Account push create",
|
||||||
"AccountPushUpdate": "Account push update",
|
"AccountPushUpdate": "Account push update",
|
||||||
|
@@ -78,6 +78,7 @@
|
|||||||
"AddSystemUser": "システムユーザーを追加"
|
"AddSystemUser": "システムユーザーを追加"
|
||||||
},
|
},
|
||||||
"AccountPush": {
|
"AccountPush": {
|
||||||
|
"WindowsPushHelpText": "windows アセットはプッシュキーをサポートしていません",
|
||||||
"AccountPushExecutionList": "実行リスト",
|
"AccountPushExecutionList": "実行リスト",
|
||||||
"AccountPushCreate": "アカウントのプッシュ作成",
|
"AccountPushCreate": "アカウントのプッシュ作成",
|
||||||
"AccountPushUpdate": "アカウントプッシュ更新",
|
"AccountPushUpdate": "アカウントプッシュ更新",
|
||||||
|
@@ -14,6 +14,7 @@
|
|||||||
"PleaseClickLeftAssetToViewGatheredUser": "收集用户列表,点击左侧资产进行查看",
|
"PleaseClickLeftAssetToViewGatheredUser": "收集用户列表,点击左侧资产进行查看",
|
||||||
"AutoCreate": "自动创建",
|
"AutoCreate": "自动创建",
|
||||||
"AccountPush": {
|
"AccountPush": {
|
||||||
|
"WindowsPushHelpText": "windows 资产暂不支持推送密钥",
|
||||||
"AccountPushList": "账号推送",
|
"AccountPushList": "账号推送",
|
||||||
"AccountPushCreate": "账号推送创建",
|
"AccountPushCreate": "账号推送创建",
|
||||||
"AccountPushUpdate": "账号推送更新",
|
"AccountPushUpdate": "账号推送更新",
|
||||||
|
@@ -66,6 +66,10 @@ export default {
|
|||||||
nodes: {
|
nodes: {
|
||||||
type: [Array],
|
type: [Array],
|
||||||
default: () => []
|
default: () => []
|
||||||
|
},
|
||||||
|
oid: {
|
||||||
|
type: String,
|
||||||
|
default: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
@@ -144,7 +148,8 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
return item
|
return item
|
||||||
}
|
}
|
||||||
}).join(',')
|
}).join(','),
|
||||||
|
oid: this.oid
|
||||||
}
|
}
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (!res) {
|
if (!res) {
|
||||||
|
@@ -91,7 +91,8 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
apply_accounts: {
|
apply_accounts: {
|
||||||
component: AccountFormatter
|
component: AccountFormatter,
|
||||||
|
el: {}
|
||||||
},
|
},
|
||||||
org_id: {
|
org_id: {
|
||||||
component: Select2,
|
component: Select2,
|
||||||
@@ -105,6 +106,7 @@ export default {
|
|||||||
const fieldsMeta = this.fieldsMeta
|
const fieldsMeta = this.fieldsMeta
|
||||||
fieldsMeta.apply_assets.el.ajax.url = `/api/v1/assets/assets/suggestions/?oid=${form['org_id']}`
|
fieldsMeta.apply_assets.el.ajax.url = `/api/v1/assets/assets/suggestions/?oid=${form['org_id']}`
|
||||||
fieldsMeta.apply_nodes.el.ajax.url = `/api/v1/assets/nodes/suggestions/?oid=${form['org_id']}`
|
fieldsMeta.apply_nodes.el.ajax.url = `/api/v1/assets/nodes/suggestions/?oid=${form['org_id']}`
|
||||||
|
fieldsMeta.apply_accounts.el.oid = form['org_id']
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
change: ([event], updateForm) => {
|
change: ([event], updateForm) => {
|
||||||
|
Reference in New Issue
Block a user