mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-31 22:48:27 +00:00
fix: 优化导出、导出、刷新按钮添加文字提示信息
This commit is contained in:
@@ -1,7 +1,12 @@
|
|||||||
<template>
|
<template>
|
||||||
<div :class="grouped ? 'el-button-group' : ''">
|
<div :class="grouped ? 'el-button-group' : ''">
|
||||||
<el-button v-for="item in iActions" :key="item.name" :size="size" v-bind="item" @click="handleClick(item.name)">
|
<el-button v-for="item in iActions" :key="item.name" :size="size" v-bind="item" @click="handleClick(item.name)">
|
||||||
<i v-if="item.fa" :class="'fa ' + item.fa" />{{ item.title }}
|
<el-tooltip v-if="['actionExport', 'actionImport', 'actionRefresh'].indexOf(item.name) !== -1" effect="dark" :content="item.tip" placement="top">
|
||||||
|
<i v-if="item.fa" :class="'fa ' + item.fa" />{{ item.title }}
|
||||||
|
</el-tooltip>
|
||||||
|
<span v-else>
|
||||||
|
<i v-if="item.fa" :class="'fa ' + item.fa" />{{ item.title }}
|
||||||
|
</span>
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-dropdown v-if="iMoreActions.length > 0" trigger="click" @command="handleClick">
|
<el-dropdown v-if="iMoreActions.length > 0" trigger="click" @command="handleClick">
|
||||||
<el-button :size="size" :type="moreActionsType" class="btn-more-actions">
|
<el-button :size="size" :type="moreActionsType" class="btn-more-actions">
|
||||||
|
@@ -54,9 +54,9 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
defaultRightSideActions: [
|
defaultRightSideActions: [
|
||||||
{ name: 'actionExport', fa: 'fa-download', has: this.hasExport, callback: this.handleExport.bind(this) },
|
{ name: 'actionExport', fa: 'fa-download', tip: this.$t('common.Export'), has: this.hasExport, callback: this.handleExport.bind(this) },
|
||||||
{ name: 'actionImport', fa: 'fa-upload', has: this.hasImport, callback: this.handleImport.bind(this) },
|
{ name: 'actionImport', fa: 'fa-upload', tip: this.$t('common.Import'), has: this.hasImport, callback: this.handleImport.bind(this) },
|
||||||
{ name: 'actionRefresh', fa: 'fa-refresh', has: this.hasRefresh, callback: this.handleRefresh }
|
{ name: 'actionRefresh', fa: 'fa-refresh', tip: this.$t('common.Refresh'), has: this.hasRefresh, callback: this.handleRefresh }
|
||||||
],
|
],
|
||||||
dialogExportVisible: false,
|
dialogExportVisible: false,
|
||||||
exportValue: 2
|
exportValue: 2
|
||||||
|
@@ -174,6 +174,7 @@
|
|||||||
"EnterForSearch": "按回车进行搜索",
|
"EnterForSearch": "按回车进行搜索",
|
||||||
"Export": "导出",
|
"Export": "导出",
|
||||||
"Import": "导入",
|
"Import": "导入",
|
||||||
|
"Refresh": "刷新",
|
||||||
"Info": "提示",
|
"Info": "提示",
|
||||||
"MFAConfirm": "MFA 认证",
|
"MFAConfirm": "MFA 认证",
|
||||||
"MFARequireForSecurity": "为了安全请输入MFA",
|
"MFARequireForSecurity": "为了安全请输入MFA",
|
||||||
|
@@ -175,6 +175,7 @@
|
|||||||
"EnterForSearch": "Press enter to search",
|
"EnterForSearch": "Press enter to search",
|
||||||
"Export": "Export",
|
"Export": "Export",
|
||||||
"Import": "Import",
|
"Import": "Import",
|
||||||
|
"Refresh": "Refresh",
|
||||||
"Info": "Info",
|
"Info": "Info",
|
||||||
"MFAConfirm": "MFA Confirm",
|
"MFAConfirm": "MFA Confirm",
|
||||||
"MFARequireForSecurity": "MFA required for security",
|
"MFARequireForSecurity": "MFA required for security",
|
||||||
|
Reference in New Issue
Block a user