Merge pull request #2798 from jumpserver/pr@dev@lina_point_out

perf: lina 提示优化
This commit is contained in:
feng626
2023-02-27 13:29:11 +08:00
committed by GitHub
6 changed files with 28 additions and 8 deletions

View File

@@ -1,5 +1,11 @@
<template>
<div>
<PageContent>
<el-alert v-if="notice" type="success">
<span class="announcement-main" v-html="notice" />
</el-alert>
<slot />
</PageContent>
<TableAction
v-if="hasActions"
:date-pick="handleDateChange"
@@ -30,10 +36,12 @@ import TableAction from './TableAction'
import Emitter from '@/mixins/emitter'
import AutoDataTable from '../AutoDataTable'
import { getDayEnd, getDaysAgo } from '@/utils/common'
import { PageContent } from '@/layout/components/Page'
export default {
name: 'ListTable',
components: {
PageContent,
AutoDataTable,
TableAction,
IBox
@@ -49,6 +57,10 @@ export default {
headerActions: {
type: Object,
default: () => ({})
},
notice: {
type: String,
default: ''
}
},
data() {

View File

@@ -290,6 +290,7 @@
"Domain": "Domain",
"DomainDetail": "Domain detail",
"DomainHelpMessage": "The domain function is added to address the fact that some environments (such as the hybrid cloud) cannot be connected directly by jumping on the gateway server.\nJMS => Domain gateway => Target assets",
"WebHelpMessage": "Web type assets depend on remote applications. Please go to System Settings to configure the publisher in the remote application.",
"FullName": "Full name",
"Gateway": "Gateway",
"GatewayList": "Gateway",
@@ -999,7 +1000,7 @@
"ManualInput": "Manual input",
"SameAccount": "Same account",
"SpecifyAccounts": "Specify accounts",
"AccountsHelp": "All accounts: accounts exists on the asset; Specify accounts: specify accounts by usernameManual input: username/password; Same account: The account username name same with login user",
"AccountsHelp": "All accounts: accounts exists on the asset; specify accounts: Specify the account user name associated with the current system assetManual input: username/password; Same account: The account username name same with login user",
"Input": "Input",
"permAccount": "Accounts",
"Actions": "Actions",
@@ -2061,4 +2062,4 @@
"PublishStatus": "Publish status",
"NoPublished": "Unpublished"
}
}
}

View File

@@ -283,6 +283,7 @@
"Domain": "ドメイン",
"DomainDetail": "ドメインの詳細",
"DomainHelpMessage": "ドメイン機能は、一部の環境 (ハイブリッドクラウドなど) が直接接続できないことを解決するために追加された機能で、ゲートウェイサーバを介してジャンプ登録を行うのが原理です。JMS => ドメインゲートウェイ => ターゲット資産",
"WebHelpMessage": "Web タイプ資産はリモートアプリケーションに依存しており、システム設定のリモートアプリケーションでパブリッシャを構成してください。",
"FullName": "フルネーム",
"Gateway": "ゲートウェイ",
"GatewayProtocolHelpText": "SSHゲートウェイ、プロキシSSH、RDP、VNCをサポート",
@@ -997,7 +998,7 @@
"ManualInput": "手動入力",
"SameAccount": "同じ名前のアカウント",
"SpecifyAccounts": "入力の指定",
"AccountsHelp": "すべてのアカウント: アカウントはアセットに存在します。 アカウントの指定: ユーザー名でアカウントを指定します。手入力: ユーザー名/パスワード; 同一アカウント:ログインユーザーと同じアカウントのユーザー名",
"AccountsHelp": "すべてのアカウント: アカウントはアセットに存在します。 アカウントの指定: 現在のシステム資産に関連付けられているアカウントユーザー名を指定します。手入力: ユーザー名/パスワード; 同一アカウント:ログインユーザーと同じアカウントのユーザー名",
"Input": "入力",
"permAccount": "認定アカウント",
"Actions": "アクション",
@@ -2051,4 +2052,4 @@
"PublishStatus": "投稿ステータス",
"NoPublished": "未発表"
}
}
}

View File

@@ -297,6 +297,7 @@
"Domain": "网域",
"DomainDetail": "网域详情",
"DomainHelpMessage": "网域功能是为了解决部分环境混合云无法直接连接而新增的功能原理是通过网关服务器进行跳转登录。JMS => 网域网关 => 目标资产",
"WebHelpMessage": "Web 类型资产依赖于远程应用,请前往系统设置在远程应用中配置发布机。",
"FullName": "全称",
"Gateway": "网关",
"GatewayProtocolHelpText": "SSH网关支持代理SSH,RDP和VNC",
@@ -989,7 +990,7 @@
},
"perms": {
"": "",
"AccountsHelp": "所有账号: 资产上添加的账号; 指定账号:指定账号的用户名;手动输入: 用户名/密码 手动输入; 同名账号: 与被授权人用户名相同的账号;",
"AccountsHelp": "所有账号: 资产上添加的账号; 指定账号:指定当前系统资产所关联账号的用户名;手动输入: 用户名/密码 手动输入; 同名账号: 与被授权人用户名相同的账号;",
"AllAccounts": "所有账号",
"ManualInput": "手动输入",
"SameAccount": "同名账号",

View File

@@ -27,7 +27,8 @@ export default {
width: '100px'
}
}
}
},
notice: this.$t('assets.WebHelpMessage')
}
}
}

View File

@@ -1,6 +1,6 @@
<template>
<div>
<ListTable ref="ListTable" :header-actions="iHeaderActions" :table-config="iTableConfig" />
<ListTable ref="ListTable" :header-actions="iHeaderActions" :notice="notice" :table-config="iTableConfig" />
<PlatformDialog :category="category" :visible.sync="showPlatform" />
<AssetBulkUpdateDialog
:visible.sync="updateSelectedDialogSetting.visible"
@@ -52,6 +52,10 @@ export default {
addExtraMoreActions: {
type: Array,
default: () => []
},
notice: {
type: String,
default: ''
}
},
data() {
@@ -255,6 +259,6 @@ export default {
}
</script>
<style>
<style lang="scss" scoped>
</style>