mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-15 14:24:39 +00:00
perf: 资产批量更新平台字段,根据平台约束协议自动生效
This commit is contained in:
@@ -230,6 +230,7 @@
|
||||
"NoSQLProtocol": "NoSQL Protocol"
|
||||
},
|
||||
"assets": {
|
||||
"SyncProtocolToAsset": "Sync protocol to asset",
|
||||
"CommentHelpText": "Note: Note information will be hovered and displayed in the user authorization asset tree of Luna page, which can be viewed by ordinary users. Please do not fill in sensitive information.",
|
||||
"BulkUpdatePlatformHelpText": "Only when the original platform type of the asset is the same as the selected platform type will it be updated, if the platform type before and after the update is different, it will not be updated.",
|
||||
"ImportMessage": "Please go to the page of mapping type to import data",
|
||||
@@ -2319,4 +2320,4 @@
|
||||
"ApiKeyWarning": "To reduce the risk of AccessKey exposure, Secret is provided only during creation and cannot be queried again later. Please keep it safe.",
|
||||
"PasskeyAddDisableInfo": "Your authentication source is {source}, and Passkey addition is not supported."
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -230,6 +230,7 @@
|
||||
"NoSQLProtocol": "非リレーショナルデータベース"
|
||||
},
|
||||
"assets": {
|
||||
"SyncProtocolToAsset": "プロトコルをアセットに同期",
|
||||
"CommentHelpText": "注意:コメント情報はLunaページのユーザー認可資産ツリーに表示されます。一般ユーザーは表示できますので、機密情報を記入しないでください。",
|
||||
"BulkUpdatePlatformHelpText": "アセットの元のプラットフォーム タイプが選択したプラットフォーム タイプと同じ場合にのみ更新され、更新の前後のプラットフォーム タイプが異なる場合は更新されません。",
|
||||
"ImportMessage": "ミラータイプのページにデータをインポートしてください",
|
||||
@@ -2310,4 +2311,4 @@
|
||||
"ApiKeyWarning": "AccessKeyの漏洩リスクを低減するため、Secretは作成時にのみ提供され、後で再度クエリできません。安全に保管してください。",
|
||||
"PasskeyAddDisableInfo": "あなたの認証元は {source} であり、Passkeyの追加はサポートされていません。"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -230,6 +230,7 @@
|
||||
},
|
||||
"assets": {
|
||||
"CustomType": "自定义类型",
|
||||
"SyncProtocolToAsset": "同步协议到资产",
|
||||
"CustomHelpMessage": "自定义类型资产,依赖于远程应用,请前往系统设置在远程应用中配置",
|
||||
"CustomFields": "自定义属性",
|
||||
"CommentHelpText": "注意:备注信息会在 Luna 页面的用户授权资产树中进行悬停显示,普通用户可以查看,请不要填写敏感信息。",
|
||||
|
||||
@@ -131,6 +131,22 @@ export default {
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
{
|
||||
title: this.$t(`assets.SyncProtocolToAsset`),
|
||||
attrs: {
|
||||
type: 'primary',
|
||||
label: this.$t('accounts.Sync')
|
||||
},
|
||||
callbacks: Object.freeze({
|
||||
click: () => {
|
||||
const data = { platform_id: this.object.id }
|
||||
this.$axios.post(
|
||||
'/api/v1/assets/assets/sync-platform-protocols/', data).then(res => {
|
||||
this.$message.success(this.$tc('common.updateSuccessMsg'))
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
]
|
||||
this.quickActions = quickActions
|
||||
|
||||
Reference in New Issue
Block a user