fix: 修复新增弹框 title 错误问题

This commit is contained in:
@changcode
2021-07-19 11:18:13 +08:00
parent 1cf3da9003
commit 35873de962
9 changed files with 19 additions and 13 deletions

View File

@@ -32,6 +32,7 @@ const cn = {
administration: '系统管理',
configuration: '设置',
create: '新增',
createLabel: '新增标签',
edit: '编辑',
delete: '删除',
view: '查看',
@@ -73,6 +74,7 @@ const cn = {
batchEndpoint: '批量修改Endpoint',
createAsset: '新增资产',
createAlertRule: '新增告警规则',
createAlertSilence: '新增告警规则',
createUser: '新增用户',
createRole: '新增角色',
createTemplate: '新增模板',
@@ -88,6 +90,7 @@ const cn = {
createMib: '新增MIB',
createAssetType: '新增设备类型',
createAssetState: '新增设备状态',
createdCredentials: '新增凭证',
exportExcel: '导出',
importExcel: '导入',
importExcelLower: '导入',

View File

@@ -37,6 +37,7 @@ const en = {
administration: 'Administration',
configuration: 'configuration',
create: 'New', // '新增'
createLabel: 'New label',
edit: 'Edit', // '编辑'
delete: 'Delete', // '删除'
view: 'View',
@@ -79,6 +80,7 @@ const en = {
batchEndpoint: 'Batch modify endpoint',
createAsset: 'New asset',
createAlertRule: 'New alert rule',
createAlertSilence: 'New alert silence',
createUser: 'New user',
createRole: 'New role',
createPrometheusServer: 'New agent',
@@ -87,6 +89,7 @@ const en = {
createModel: 'New model',
createModule: 'New module',
createMib: 'New MIB',
createdCredentials: 'New credential',
createAssetType: 'New asset type',
createAssetState: 'New asset state',
createTemplate: 'New template',
@@ -914,7 +917,7 @@ const en = {
vendor: 'Vendor',
type: 'Type',
mibBrowser: 'MIB browser',
credentials: 'Credentials',
credentials: 'Credential',
noData: 'No Data',
credential: {
type: 'Protocol type',
@@ -1520,13 +1523,13 @@ const en = {
add: 'Add',
edit: 'Edit',
delete: 'Delete',
mibBrowser: 'Mib browser',
mibBrowser: 'Mib browser'
},
credential: {
view: 'View',
add: 'Add',
edit: 'Edit',
delete: 'Delete',
delete: 'Delete'
},
system: {
basic: 'Basic',
@@ -1536,7 +1539,7 @@ const en = {
apiKey: {
add: 'Add',
edit: 'Edit',
delete: 'Delete',
delete: 'Delete'
}
},
terminalLog: {
@@ -1552,7 +1555,7 @@ const en = {
reset: 'Reset'
},
apikey: {
apiKey: 'Api Key',
apiKey: 'Api Key'
}
},
...enLocale

View File

@@ -10,7 +10,7 @@
@search="search"
>
<template v-slot:top-tool-right>
<button id="roles-add" v-has="'alertSilence_add'" :title="$t('overall.create')" class="top-tool-btn margin-r-10"
<button id="roles-add" v-has="'alertSilence_add'" :title="$t('overall.createAlertSilence')" class="top-tool-btn margin-r-10"
type="button" @click="add">
<i class="nz-icon-create-square nz-icon"></i>
</button>

View File

@@ -24,7 +24,7 @@
</select-group>
</template>
<template v-slot:top-tool-right>
<button id="meta-add-meta" v-has="'asset_label_add'" :title="$t('overall.exportExcelLower')" class="top-tool-btn margin-r-10"
<button id="meta-add-meta" v-has="'asset_label_add'" :title="$t('overall.createLabel')" class="top-tool-btn margin-r-10"
type="button" @click="add">
<i class="nz-icon nz-icon-create-square"></i>
</button>

View File

@@ -22,7 +22,7 @@
</div>
</template>
<template v-slot:top-tool-right>
<button id="mib-add" v-has="'credential_add'" :title="$t('overall.createMib')" class="top-tool-btn margin-r-10" type="button" @click="add">
<button id="mib-add" v-has="'credential_add'" :title="$t('overall.createdCredentials')" class="top-tool-btn margin-r-10" type="button" @click="add">
<i class="nz-icon-create-square nz-icon"></i>
</button>
<delete-button id="mib-list-batch-delete" v-has="'credential_delete'" :api="url" :delete-objs="batchDeleteObjs" @after="getTableData" @before="delFlag=true"></delete-button>

View File

@@ -10,7 +10,7 @@
@search="search"
>
<template v-slot:top-tool-right>
<button id="account-add" v-has="'model_add'" :title="$t('overall.createUser')" class="top-tool-btn margin-r-10"
<button id="account-add" v-has="'model_add'" :title="$t('overall.createModel')" class="top-tool-btn margin-r-10"
type="button" @click="add">
<i class="nz-icon-create-square nz-icon"></i>
</button>

View File

@@ -13,7 +13,7 @@
<button id="asset-filter" :class="{ 'is-focus': dataListLayout.indexOf('clickSearch') > -1 }" class="top-tool-btn margin-r-10" @click.stop="showClickSearch">
<i class="nz-icon nz-icon-funnel"></i>
</button>
<button id="account-add" v-has="'monitor_endpoint_add'" class="top-tool-btn"
<button id="account-add" v-has="'monitor_endpoint_add'" :title="$t('overall.createEndpoint')" class="top-tool-btn"
type="button" @click="add">
<i class="nz-icon-create-square nz-icon"></i>
</button>

View File

@@ -23,7 +23,7 @@
class="top-tool-export margin-r-10"
>
<template slot="optionZone">
<button id="account-add" v-has="'monitor_module_add'" :title="$t('overall.createUser')" class="top-tool-btn"
<button id="account-add" v-has="'monitor_module_add'" :title="$t('overall.createModule')" class="top-tool-btn"
type="button" @click="add">
<i class="nz-icon-create-square nz-icon"></i>
</button>

View File

@@ -11,7 +11,7 @@
@search="search"
>
<template v-slot:top-tool-right>
<button id="account-add" v-has="'project_add'" :title="$t('overall.createUser')" class="top-tool-btn margin-r-10"
<button id="account-add" v-has="'project_add'" :title="$t('overall.createProject')" class="top-tool-btn margin-r-10"
type="button" @click="add">
<i class="nz-icon-create-square nz-icon"></i>
</button>