mirror of
https://github.com/jumpserver/lina.git
synced 2025-07-18 09:12:23 +00:00
perf: 修改 account template add error msg
This commit is contained in:
parent
a65436c16b
commit
7c81c913cb
@ -435,6 +435,7 @@
|
|||||||
"ReLoginErr": "Login time has exceeded 5 minutes, please login again"
|
"ReLoginErr": "Login time has exceeded 5 minutes, please login again"
|
||||||
},
|
},
|
||||||
"common": {
|
"common": {
|
||||||
|
"DownloadCenter": "Download center",
|
||||||
"ImportOrg": "Import organization",
|
"ImportOrg": "Import organization",
|
||||||
"About": "About",
|
"About": "About",
|
||||||
"PermissionCompany": "Permission company",
|
"PermissionCompany": "Permission company",
|
||||||
|
@ -436,6 +436,7 @@
|
|||||||
},
|
},
|
||||||
"common": {
|
"common": {
|
||||||
"RestoreDefault": "デフォルトに戻す",
|
"RestoreDefault": "デフォルトに戻す",
|
||||||
|
"DownloadCenter": "ダウンロードセンター",
|
||||||
"ImportOrg": "組織をインポート",
|
"ImportOrg": "組織をインポート",
|
||||||
"About": "について",
|
"About": "について",
|
||||||
"PermissionCompany": "授权公司",
|
"PermissionCompany": "授权公司",
|
||||||
|
@ -432,6 +432,7 @@
|
|||||||
},
|
},
|
||||||
"common": {
|
"common": {
|
||||||
"RestoreDefault": "恢复默认",
|
"RestoreDefault": "恢复默认",
|
||||||
|
"DownloadCenter": "下载中心",
|
||||||
"ImportOrg": "导入组织",
|
"ImportOrg": "导入组织",
|
||||||
"About": "关于",
|
"About": "关于",
|
||||||
"PermissionCompany": "授权公司",
|
"PermissionCompany": "授权公司",
|
||||||
|
@ -1,24 +1,24 @@
|
|||||||
<template>
|
<template>
|
||||||
<Dialog
|
<Dialog
|
||||||
v-if="iVisible"
|
v-if="iVisible"
|
||||||
:title="''"
|
|
||||||
class="about-dialog"
|
|
||||||
:visible.sync="iVisible"
|
|
||||||
width="50%"
|
|
||||||
top="10%"
|
|
||||||
:show-cancel="false"
|
:show-cancel="false"
|
||||||
:show-confirm="false"
|
:show-confirm="false"
|
||||||
|
:title="''"
|
||||||
|
:visible.sync="iVisible"
|
||||||
|
class="about-dialog"
|
||||||
|
top="10%"
|
||||||
|
width="50%"
|
||||||
>
|
>
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<div class="head">
|
<div class="head">
|
||||||
<img :src="logoTextSrc" class="sidebar-logo-text" alt="logo">
|
<img :src="logoTextSrc" alt="logo" class="sidebar-logo-text">
|
||||||
</div>
|
</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('ops.version') }}:<strong> dev </strong> <span v-if="!publicSettings.XPACK_LICENSE_IS_VALID"> GPLv3. </span></div>
|
||||||
<div class="text">{{ $tc('common.PermissionCompany') }}:{{ corporation }}</div>
|
<div class="text">{{ $tc('common.PermissionCompany') }}:{{ corporation }}</div>
|
||||||
<el-divider class="divider" />
|
<el-divider class="divider" />
|
||||||
<div class="text">
|
<div class="text">
|
||||||
<span v-for="(i, index) in actions" :key="index" class="text-link" @click="onClick(i.name)">
|
<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" />
|
<el-divider v-if="index !== actions.length - 1" direction="vertical" />
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
@ -46,12 +46,12 @@ export default {
|
|||||||
actions: [
|
actions: [
|
||||||
{
|
{
|
||||||
name: 'github',
|
name: 'github',
|
||||||
label: 'github',
|
label: 'GitHub',
|
||||||
icon: 'fa fa-github'
|
icon: 'fa fa-github'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'download',
|
name: 'download',
|
||||||
label: this.$tc('common.Download'),
|
label: this.$tc('common.DownloadCenter'),
|
||||||
icon: 'fa fa-download'
|
icon: 'fa fa-download'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -4,14 +4,14 @@
|
|||||||
<el-col :md="24" :sm="24">
|
<el-col :md="24" :sm="24">
|
||||||
<AccountListTable
|
<AccountListTable
|
||||||
ref="ListTable"
|
ref="ListTable"
|
||||||
v-bind="$attrs"
|
|
||||||
:asset="object"
|
:asset="object"
|
||||||
:url="iUrl"
|
|
||||||
:has-import="false"
|
|
||||||
:has-clone="false"
|
|
||||||
:has-left-actions="true"
|
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
|
:has-clone="false"
|
||||||
|
:has-import="false"
|
||||||
|
:has-left-actions="true"
|
||||||
:header-extra-actions="headerExtraActions"
|
:header-extra-actions="headerExtraActions"
|
||||||
|
:url="iUrl"
|
||||||
|
v-bind="$attrs"
|
||||||
/>
|
/>
|
||||||
<AccountTemplateDialog
|
<AccountTemplateDialog
|
||||||
v-if="templateDialogVisible"
|
v-if="templateDialogVisible"
|
||||||
@ -79,8 +79,6 @@ export default {
|
|||||||
this.templateDialogVisible = false
|
this.templateDialogVisible = false
|
||||||
this.$refs.ListTable.addAccountSuccess()
|
this.$refs.ListTable.addAccountSuccess()
|
||||||
this.$message.success(this.$tc('common.AddSuccessMsg'))
|
this.$message.success(this.$tc('common.AddSuccessMsg'))
|
||||||
}).catch(() => {
|
|
||||||
this.$message.error(this.$tc('common.AddFailMsg'))
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user