mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-19 16:29:17 +08:00
fix: 主机快捷、批量输入样式调整
This commit is contained in:
parent
4f15e49b2e
commit
2adbfa230c
@ -465,7 +465,7 @@ export default {
|
|||||||
createVolume: 'Create volume',
|
createVolume: 'Create volume',
|
||||||
|
|
||||||
repo: 'Repo',
|
repo: 'Repo',
|
||||||
createRepo: 'Create repo',
|
createRepo: 'Add repo',
|
||||||
name: 'Name',
|
name: 'Name',
|
||||||
protocol: 'protocol',
|
protocol: 'protocol',
|
||||||
httpRepo: 'The http repository needs to restart the docker service to add credit',
|
httpRepo: 'The http repository needs to restart the docker service to add credit',
|
||||||
|
@ -493,7 +493,7 @@ export default {
|
|||||||
createVolume: '创建存储卷',
|
createVolume: '创建存储卷',
|
||||||
|
|
||||||
repo: '仓库',
|
repo: '仓库',
|
||||||
createRepo: '创建仓库',
|
createRepo: '添加仓库',
|
||||||
name: '名称',
|
name: '名称',
|
||||||
protocol: '协议',
|
protocol: '协议',
|
||||||
downloadUrl: '下载地址',
|
downloadUrl: '下载地址',
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
<template #toolbar>
|
<template #toolbar>
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="16">
|
<el-col :span="16">
|
||||||
<el-button type="primary" @click="onOpenDialog('create')">
|
<el-button type="primary" @click="onOpenDialog('add')">
|
||||||
{{ $t('container.createRepo') }}
|
{{ $t('container.createRepo') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button type="primary" plain :disabled="selects.length === 0" @click="onBatchDelete(null)">
|
<el-button type="primary" plain :disabled="selects.length === 0" @click="onBatchDelete(null)">
|
||||||
|
@ -263,21 +263,24 @@ const loadDetail = (row: any) => {
|
|||||||
const buttons = [
|
const buttons = [
|
||||||
{
|
{
|
||||||
label: i18n.global.t('commons.button.handle'),
|
label: i18n.global.t('commons.button.handle'),
|
||||||
icon: 'Pointer',
|
|
||||||
click: (row: Cronjob.CronjobInfo) => {
|
click: (row: Cronjob.CronjobInfo) => {
|
||||||
onHandle(row);
|
onHandle(row);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: i18n.global.t('commons.button.edit'),
|
label: i18n.global.t('commons.button.edit'),
|
||||||
icon: 'Edit',
|
|
||||||
click: (row: Cronjob.CronjobInfo) => {
|
click: (row: Cronjob.CronjobInfo) => {
|
||||||
onOpenDialog('edit', row);
|
onOpenDialog('edit', row);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: i18n.global.t('cronjob.record'),
|
||||||
|
click: (row: Cronjob.CronjobInfo) => {
|
||||||
|
loadDetail(row);
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: i18n.global.t('commons.button.delete'),
|
label: i18n.global.t('commons.button.delete'),
|
||||||
icon: 'Delete',
|
|
||||||
click: (row: Cronjob.CronjobInfo) => {
|
click: (row: Cronjob.CronjobInfo) => {
|
||||||
onBatchDelete(row);
|
onBatchDelete(row);
|
||||||
},
|
},
|
||||||
|
@ -47,7 +47,9 @@
|
|||||||
<template #default="{ node, data }">
|
<template #default="{ node, data }">
|
||||||
<span class="custom-tree-node" @mouseover="hover = data.id" @mouseleave="hover = null">
|
<span class="custom-tree-node" @mouseover="hover = data.id" @mouseleave="hover = null">
|
||||||
<div v-if="node.label !== currentGroup || !data.onEdit">
|
<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">
|
<el-tooltip v-else :content="node.label" placement="top-start">
|
||||||
<span>{{ node.label.substring(0, 32) }}...</span>
|
<span>{{ node.label.substring(0, 32) }}...</span>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
|
@ -40,14 +40,8 @@
|
|||||||
:key="item.Refresh"
|
:key="item.Refresh"
|
||||||
></Terminal>
|
></Terminal>
|
||||||
<div>
|
<div>
|
||||||
<el-select
|
<el-select v-model="quickCmd" clearable filterable @change="quickInput" style="width: 25%">
|
||||||
v-model="quickCmd"
|
<template #prefix>{{ $t('terminal.quickCommand') }}</template>
|
||||||
clearable
|
|
||||||
filterable
|
|
||||||
@change="quickInput"
|
|
||||||
style="width: 25%"
|
|
||||||
:placeholder="$t('terminal.quickCommand')"
|
|
||||||
>
|
|
||||||
<el-option
|
<el-option
|
||||||
v-for="cmd in commandList"
|
v-for="cmd in commandList"
|
||||||
:key="cmd.id"
|
:key="cmd.id"
|
||||||
@ -55,14 +49,9 @@
|
|||||||
:value="cmd.command"
|
:value="cmd.command"
|
||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
<el-input
|
<el-input v-model="batchVal" @keyup.enter="batchInput" style="width: 75%">
|
||||||
:placeholder="$t('terminal.batchInput')"
|
<template #prepend>
|
||||||
v-model="batchVal"
|
<el-checkbox :label="$t('terminal.batchInput')" v-model="isBatch" />
|
||||||
@keyup.enter="batchInput"
|
|
||||||
style="width: 75%"
|
|
||||||
>
|
|
||||||
<template #append>
|
|
||||||
<el-switch v-model="isBatch" class="ml-2" />
|
|
||||||
</template>
|
</template>
|
||||||
</el-input>
|
</el-input>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user