terminal页面国际化修改

This commit is contained in:
sonake
2020-04-01 21:04:36 +08:00
parent 51a6cdd548
commit 052de1f8ff
3 changed files with 10 additions and 5 deletions

View File

@@ -374,7 +374,7 @@ const cn = {
},
terminallog: {
terminallog: '终端',
enable: '可用',//"可用"
status: '状态',//"可用"
option: '操作',//"操作",
host: '主机',
cmd: '命令',
@@ -397,7 +397,9 @@ const cn = {
rows: '显示的行数',
uuid: '唯一标识',
path: '路径',
file: '文件'
file: '文件',
success: '成功',
fail: '失败'
},
},
alert: {

View File

@@ -530,7 +530,9 @@ const en = {
rows: 'Rows',
uuid: 'UUID',
path: 'Path',
file: 'File'
file: 'File',
success: 'Success',
fail: 'Fail'
},
mib:{
mib:'Mib',

View File

@@ -65,10 +65,11 @@
<span v-else-if="item.prop == 'status'">
<el-tag v-if="scope.row.status==='1'"
type="success"
disable-transitions>Success</el-tag>
disable-transitions>{{$t("config.terminallog.success")}}</el-tag>
<el-tag v-else
type="danger"
disable-transitions>Fail</el-tag>
disable-transitions>
{{$t("config.terminallog.fail")}}</el-tag>
</span>
<span v-else>{{scope.row[item.prop]}}</span>
</template>