Browse Source

fix: 主机快捷、批量输入样式调整

pull/138/head
ssongliu 2 years ago committed by ssongliu
parent
commit
2adbfa230c
  1. 2
      frontend/src/lang/modules/en.ts
  2. 2
      frontend/src/lang/modules/zh.ts
  3. 2
      frontend/src/views/container/repo/index.vue
  4. 9
      frontend/src/views/cronjob/index.vue
  5. 4
      frontend/src/views/host/terminal/host/index.vue
  6. 21
      frontend/src/views/host/terminal/terminal/index.vue

2
frontend/src/lang/modules/en.ts

@ -465,7 +465,7 @@ export default {
createVolume: 'Create volume',
repo: 'Repo',
createRepo: 'Create repo',
createRepo: 'Add repo',
name: 'Name',
protocol: 'protocol',
httpRepo: 'The http repository needs to restart the docker service to add credit',

2
frontend/src/lang/modules/zh.ts

@ -493,7 +493,7 @@ export default {
createVolume: '创建存储卷',
repo: '仓库',
createRepo: '创建仓库',
createRepo: '添加仓库',
name: '名称',
protocol: '协议',
downloadUrl: '下载地址',

2
frontend/src/views/container/repo/index.vue

@ -12,7 +12,7 @@
<template #toolbar>
<el-row>
<el-col :span="16">
<el-button type="primary" @click="onOpenDialog('create')">
<el-button type="primary" @click="onOpenDialog('add')">
{{ $t('container.createRepo') }}
</el-button>
<el-button type="primary" plain :disabled="selects.length === 0" @click="onBatchDelete(null)">

9
frontend/src/views/cronjob/index.vue

@ -263,21 +263,24 @@ const loadDetail = (row: any) => {
const buttons = [
{
label: i18n.global.t('commons.button.handle'),
icon: 'Pointer',
click: (row: Cronjob.CronjobInfo) => {
onHandle(row);
},
},
{
label: i18n.global.t('commons.button.edit'),
icon: 'Edit',
click: (row: Cronjob.CronjobInfo) => {
onOpenDialog('edit', row);
},
},
{
label: i18n.global.t('cronjob.record'),
click: (row: Cronjob.CronjobInfo) => {
loadDetail(row);
},
},
{
label: i18n.global.t('commons.button.delete'),
icon: 'Delete',
click: (row: Cronjob.CronjobInfo) => {
onBatchDelete(row);
},

4
frontend/src/views/host/terminal/host/index.vue

@ -47,7 +47,9 @@
<template #default="{ node, data }">
<span class="custom-tree-node" @mouseover="hover = data.id" @mouseleave="hover = null">
<div v-if="node.label !== currentGroup || !data.onEdit">
<span v-if="node.label.length <= 35">{{ node.label }}</span>
<span v-if="node.label.length <= 35" @click="onEdit(node, data)">
{{ node.label }}
</span>
<el-tooltip v-else :content="node.label" placement="top-start">
<span>{{ node.label.substring(0, 32) }}...</span>
</el-tooltip>

21
frontend/src/views/host/terminal/terminal/index.vue

@ -40,14 +40,8 @@
:key="item.Refresh"
></Terminal>
<div>
<el-select
v-model="quickCmd"
clearable
filterable
@change="quickInput"
style="width: 25%"
:placeholder="$t('terminal.quickCommand')"
>
<el-select v-model="quickCmd" clearable filterable @change="quickInput" style="width: 25%">
<template #prefix>{{ $t('terminal.quickCommand') }}</template>
<el-option
v-for="cmd in commandList"
:key="cmd.id"
@ -55,14 +49,9 @@
:value="cmd.command"
/>
</el-select>
<el-input
:placeholder="$t('terminal.batchInput')"
v-model="batchVal"
@keyup.enter="batchInput"
style="width: 75%"
>
<template #append>
<el-switch v-model="isBatch" class="ml-2" />
<el-input v-model="batchVal" @keyup.enter="batchInput" style="width: 75%">
<template #prepend>
<el-checkbox :label="$t('terminal.batchInput')" v-model="isBatch" />
</template>
</el-input>
</div>

Loading…
Cancel
Save