1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-03-14 01:34:47 +08:00

fix: 计划任务列表样式调整 (#589)

This commit is contained in:
ssongliu 2023-04-12 11:40:29 +08:00 committed by GitHub
parent aeb9135cde
commit 42531dae5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 4 deletions

View File

@ -1261,7 +1261,7 @@ const message = {
changeStrategyPortHelper1: changeStrategyPortHelper1:
'Change the port policy to [drop]. After the port policy is set, external access is denied. Do you want to continue?', 'Change the port policy to [drop]. After the port policy is set, external access is denied. Do you want to continue?',
changeStrategyPortHelper2: changeStrategyPortHelper2:
'Change the port policy to [accept]. After the policy is set, normal port access will be restored. Do you want to continue?', 'Change the port policy to [accept]. After the port policy is set, normal port access will be restored. Do you want to continue?',
stop: 'Stop', stop: 'Stop',
portFormatError: 'Please enter the correct port information!', portFormatError: 'Please enter the correct port information!',
portHelper1: 'Multiple ports, such as 8080 and 8081', portHelper1: 'Multiple ports, such as 8080 and 8081',

View File

@ -1248,7 +1248,7 @@ const message = {
changeStrategyIPHelper1: 'IP 策略修改为屏蔽设置后该 IP 将禁止访问服务器是否继续', changeStrategyIPHelper1: 'IP 策略修改为屏蔽设置后该 IP 将禁止访问服务器是否继续',
changeStrategyIPHelper2: 'IP 策略修改为放行设置后该 IP 将恢复正常访问是否继续', changeStrategyIPHelper2: 'IP 策略修改为放行设置后该 IP 将恢复正常访问是否继续',
changeStrategyPortHelper1: '端口策略修改为拒绝设置后端口将拒绝外部访问是否继续', changeStrategyPortHelper1: '端口策略修改为拒绝设置后端口将拒绝外部访问是否继续',
changeStrategyPortHelper2: '端口策略允许设置后端口将恢复正常访问是否继续', changeStrategyPortHelper2: '端口策略修改允许设置后端口将恢复正常访问是否继续',
stop: '禁止', stop: '禁止',
portFormatError: '请输入正确的端口信息', portFormatError: '请输入正确的端口信息',
portHelper1: '多个端口8080,8081', portHelper1: '多个端口8080,8081',

View File

@ -54,11 +54,18 @@
v-if="row.status === 'Enable'" v-if="row.status === 'Enable'"
@click="onChangeStatus(row.id, 'disable')" @click="onChangeStatus(row.id, 'disable')"
link link
icon="VideoPlay"
type="success" type="success"
> >
{{ $t('commons.status.enabled') }} {{ $t('commons.status.enabled') }}
</el-button> </el-button>
<el-button v-else link type="danger" @click="onChangeStatus(row.id, 'enable')"> <el-button
v-else
icon="VideoPause"
link
type="danger"
@click="onChangeStatus(row.id, 'enable')"
>
{{ $t('commons.status.disabled') }} {{ $t('commons.status.disabled') }}
</el-button> </el-button>
</template> </template>

View File

@ -61,7 +61,6 @@
> >
{{ $t('commons.button.disable') }} {{ $t('commons.button.disable') }}
</el-button> </el-button>
<el-divider direction="vertical" />
<el-button <el-button
type="primary" type="primary"
v-if="dialogData.rowData.status === 'Disable'" v-if="dialogData.rowData.status === 'Disable'"
@ -70,6 +69,7 @@
> >
{{ $t('commons.button.enable') }} {{ $t('commons.button.enable') }}
</el-button> </el-button>
<el-divider direction="vertical" />
<el-button type="primary" @click="deleteVisiable = true" link> <el-button type="primary" @click="deleteVisiable = true" link>
{{ $t('commons.button.clean') }} {{ $t('commons.button.clean') }}
</el-button> </el-button>