Feat: Add chinese user specific page

This commit is contained in:
Suwings 2022-08-08 14:56:30 +08:00
parent 23d4b49b32
commit e8adc8b0ff
2 changed files with 12 additions and 18 deletions

View File

@ -29,7 +29,6 @@ app.use(i18n)
app.directive("iszh", {
// eslint-disable-next-line no-unused-vars
mounted(el, binding, vnode) {
console.log("ISZH:", i18n)
const language = i18n.global.locale
if (language != "zh_cn") el.style.display = 'none'
}

View File

@ -157,20 +157,7 @@
<template #title>{{ $t("terminal.functionGroup") }}</template>
<template #default>
<el-row :gutter="10">
<!-- <el-col :span="12" :offset="0">
<el-button style="width: 100%" size="small">自动重启 <span class="color-green">开启</span>
</el-button>
</el-col> -->
<el-col :lg="12" :offset="0" class="row-mb">
<el-button
:disabled="!instanceInfo.config.type"
icon="el-icon-s-operation"
style="width: 100%"
size="small"
@click="toProcessConfig"
>{{ $t("terminal.processConfig") }}
</el-button>
</el-col>
<el-col :lg="12" :offset="0" class="row-mb">
<el-button
:disabled="!available"
@ -212,7 +199,7 @@
>{{ $t("terminal.eventTask") }}
</el-button>
</el-col>
<el-col :lg="12" :offset="0" class="row-mb">
<el-col :lg="24" :offset="0" class="row-mb">
<el-button
:disabled="!available"
icon="el-icon-folder-opened"
@ -221,6 +208,16 @@
@click="toFileManager"
>{{ $t("instancesDetail.fileManager") }}
</el-button>
</el-col>
<el-col :lg="24" :offset="0" class="row-mb" v-iszh>
<el-button
:disabled="!instanceInfo.config.type"
icon="el-icon-s-operation"
style="width: 100%"
size="small"
@click="toProcessConfig"
>{{ $t("terminal.processConfig") }}
</el-button>
</el-col>
<el-col :lg="24" :offset="0" v-if="isTopPermission">
<el-button
@ -622,7 +619,6 @@ export default {
params: { uuid: this.instanceUuid, remote_uuid: this.serviceUuid }
});
this.instanceInfo = result;
// console.log(":", this.instanceInfo);
} catch (err) {
console.log("Error", err);
}
@ -683,7 +679,6 @@ export default {
//
this.socket.on("stream/detail", (packet) => {
this.instanceInfo = packet.data;
console.log("instanceInfo", this.instanceInfo);
this.resizePtyTerminalWindow();
this.initChart();
});