mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-11-10 17:13:30 +08:00
parent
10bd640a9b
commit
df513c49e9
2 changed files with 3 additions and 5 deletions
|
@ -8,9 +8,9 @@
|
||||||
<el-col :span="22">
|
<el-col :span="22">
|
||||||
<el-form ref="hostInfoRef" label-position="top" :model="dialogData.rowData" :rules="rules">
|
<el-form ref="hostInfoRef" label-position="top" :model="dialogData.rowData" :rules="rules">
|
||||||
<el-form-item :label="$t('terminal.ip')" prop="addr">
|
<el-form-item :label="$t('terminal.ip')" prop="addr">
|
||||||
<span v-if="dialogData.rowData!.addr === '127.0.0.1' && dialogData.title === 'edit'">
|
<el-tag v-if="dialogData.rowData!.addr === '127.0.0.1' && dialogData.title === 'edit'">
|
||||||
{{ dialogData.rowData!.addr }}
|
{{ dialogData.rowData!.addr }}
|
||||||
</span>
|
</el-tag>
|
||||||
<el-input @change="isOK = false" v-else clearable v-model.trim="dialogData.rowData!.addr" />
|
<el-input @change="isOK = false" v-else clearable v-model.trim="dialogData.rowData!.addr" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="$t('commons.login.username')" prop="user">
|
<el-form-item :label="$t('commons.login.username')" prop="user">
|
||||||
|
|
|
@ -17,9 +17,7 @@
|
||||||
/>
|
/>
|
||||||
<el-form-item :label="$t('terminal.ip')" prop="addr">
|
<el-form-item :label="$t('terminal.ip')" prop="addr">
|
||||||
<el-input @change="isOK = false" v-if="!isLocal" clearable v-model.trim="hostInfo.addr" />
|
<el-input @change="isOK = false" v-if="!isLocal" clearable v-model.trim="hostInfo.addr" />
|
||||||
<div style="margin-left: 12px">
|
<el-tag v-if="isLocal">{{ hostInfo.addr }}</el-tag>
|
||||||
<span v-if="isLocal">{{ hostInfo.addr }}</span>
|
|
||||||
</div>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="$t('commons.login.username')" prop="user">
|
<el-form-item :label="$t('commons.login.username')" prop="user">
|
||||||
<el-input @change="isOK = false" clearable v-model="hostInfo.user" />
|
<el-input @change="isOK = false" clearable v-model="hostInfo.user" />
|
||||||
|
|
Loading…
Reference in a new issue