mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-19 08:19:15 +08:00
fix: 主机快捷、批量输入样式调整
This commit is contained in:
parent
4f15e49b2e
commit
2adbfa230c
@ -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',
|
||||
|
@ -493,7 +493,7 @@ export default {
|
||||
createVolume: '创建存储卷',
|
||||
|
||||
repo: '仓库',
|
||||
createRepo: '创建仓库',
|
||||
createRepo: '添加仓库',
|
||||
name: '名称',
|
||||
protocol: '协议',
|
||||
downloadUrl: '下载地址',
|
||||
|
@ -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)">
|
||||
|
@ -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);
|
||||
},
|
||||
|
@ -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>
|
||||
|
@ -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…
x
Reference in New Issue
Block a user