perf: 修改 account template add error msg

This commit is contained in:
ibuler 2023-02-21 21:49:37 +08:00
parent a65436c16b
commit 7c81c913cb
5 changed files with 17 additions and 16 deletions

View File

@ -435,6 +435,7 @@
"ReLoginErr": "Login time has exceeded 5 minutes, please login again"
},
"common": {
"DownloadCenter": "Download center",
"ImportOrg": "Import organization",
"About": "About",
"PermissionCompany": "Permission company",

View File

@ -436,6 +436,7 @@
},
"common": {
"RestoreDefault": "デフォルトに戻す",
"DownloadCenter": "ダウンロードセンター",
"ImportOrg": "組織をインポート",
"About": "について",
"PermissionCompany": "授权公司",

View File

@ -432,6 +432,7 @@
},
"common": {
"RestoreDefault": "恢复默认",
"DownloadCenter": "下载中心",
"ImportOrg": "导入组织",
"About": "关于",
"PermissionCompany": "授权公司",

View File

@ -1,24 +1,24 @@
<template>
<Dialog
v-if="iVisible"
:title="''"
class="about-dialog"
:visible.sync="iVisible"
width="50%"
top="10%"
:show-cancel="false"
:show-confirm="false"
:title="''"
:visible.sync="iVisible"
class="about-dialog"
top="10%"
width="50%"
>
<div class="box">
<div class="head">
<img :src="logoTextSrc" class="sidebar-logo-text" alt="logo">
<img :src="logoTextSrc" alt="logo" class="sidebar-logo-text">
</div>
<div class="text">{{ $tc('ops.version') }}<strong> dev </strong> <span v-if="!publicSettings.XPACK_LICENSE_IS_VALID"> GPLv3. </span></div>
<div class="text">{{ $tc('common.PermissionCompany') }}{{ corporation }}</div>
<el-divider class="divider" />
<div class="text">
<span v-for="(i, index) in actions" :key="index" class="text-link" @click="onClick(i.name)">
<i class="icon" :class="i.icon" />{{ i.label }}
<i :class="i.icon" class="icon" />{{ i.label }}
<el-divider v-if="index !== actions.length - 1" direction="vertical" />
</span>
</div>
@ -46,12 +46,12 @@ export default {
actions: [
{
name: 'github',
label: 'github',
label: 'GitHub',
icon: 'fa fa-github'
},
{
name: 'download',
label: this.$tc('common.Download'),
label: this.$tc('common.DownloadCenter'),
icon: 'fa fa-download'
}
]

View File

@ -4,14 +4,14 @@
<el-col :md="24" :sm="24">
<AccountListTable
ref="ListTable"
v-bind="$attrs"
:asset="object"
:url="iUrl"
:has-import="false"
:has-clone="false"
:has-left-actions="true"
:columns="columns"
:has-clone="false"
:has-import="false"
:has-left-actions="true"
:header-extra-actions="headerExtraActions"
:url="iUrl"
v-bind="$attrs"
/>
<AccountTemplateDialog
v-if="templateDialogVisible"
@ -79,8 +79,6 @@ export default {
this.templateDialogVisible = false
this.$refs.ListTable.addAccountSuccess()
this.$message.success(this.$tc('common.AddSuccessMsg'))
}).catch(() => {
this.$message.error(this.$tc('common.AddFailMsg'))
})
}
}