1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-19 08:19:15 +08:00

style: 修改备份账号提示信息 (#3925)

This commit is contained in:
ssongliu 2024-02-20 16:18:08 +08:00 committed by GitHub
parent e346442d36
commit 319c21fc36
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 7 additions and 18 deletions

View File

@ -821,8 +821,7 @@ const message = {
default_download_path: 'Default Download Link',
saveLocal: 'Retain local backups (the same as the number of cloud storage copies)',
url: 'URL Address',
target: 'Target',
targetHelper: 'Third-party backup accounts are maintained in panel settings.',
targetHelper: 'Backup accounts are maintained in panel settings.',
retainCopies: 'Retain copies',
retainCopiesHelper: 'Number of copies to retain for execution records and logs',
retainCopiesHelper1: 'Number of copies to retain for backup files',
@ -1084,7 +1083,6 @@ const message = {
infoDetail: 'File Properties',
list: 'File List',
sub: 'Subdirectory',
downloadSuccess: 'Download Success',
theme: 'Theme',
language: 'Language',
eol: 'End Of Line',
@ -1403,7 +1401,6 @@ const message = {
backupData: 'Backup local backup directory for 1Panel',
compress: 'Create snapshot file',
upload: 'Upload snapshot file',
thirdPartySupport: 'Only third-party accounts are supported',
recoverDetail: 'Recover detail',
createSnapshot: 'Create snapshot',
importSnapshot: 'Sync snapshot',

View File

@ -781,8 +781,7 @@ const message = {
default_download_path: '默認下載地址',
saveLocal: '同時保留本地備份和雲存儲保留份數一致',
url: 'URL 地址',
target: '備份到',
targetHelper: '第三方備份賬號在面板設置中維護',
targetHelper: '備份賬號可在面板設置中維護',
retainCopies: '保留份數',
retainCopiesHelper: '執行記錄及日誌保留份数',
retainCopiesHelper1: '備份文件保留份数',
@ -1032,7 +1031,6 @@ const message = {
root: '根目錄',
list: '文件列表',
sub: '子目錄',
downloadSuccess: '下載完成',
theme: '主題',
language: '語言',
eol: '行尾符',
@ -1244,7 +1242,6 @@ const message = {
backupData: '備份 1Panel 本地備份目錄',
compress: '製作快照文件',
upload: '上傳快照文件',
thirdPartySupport: '僅支持第三方賬號',
recoverDetail: '恢復詳情',
createSnapshot: '創建快照',
importSnapshot: '同步快照',

View File

@ -782,8 +782,7 @@ const message = {
default_download_path: '默认下载地址',
saveLocal: '同时保留本地备份和云存储保留份数一致',
url: 'URL 地址',
target: '备份到',
targetHelper: '第三方备份账号在面板设置中维护',
targetHelper: '备份账号可在面板设置中维护',
retainCopies: '保留份数',
retainCopiesHelper: '执行记录及日志保留份数',
retainCopiesHelper1: '备份文件保留份数',
@ -1033,7 +1032,6 @@ const message = {
root: '根目录',
list: '文件列表',
sub: '子目录',
downloadSuccess: '下载完成',
theme: '主题',
language: '语言',
eol: '行尾符',
@ -1245,7 +1243,6 @@ const message = {
backupData: '备份 1Panel 本地备份目录',
compress: '制作快照文件',
upload: '上传快照文件',
thirdPartySupport: '仅支持第三方账号',
recoverDetail: '恢复详情',
createSnapshot: '创建快照',
importSnapshot: '同步快照',

View File

@ -113,7 +113,7 @@
{{ row.lastRecordTime }}
</template>
</el-table-column>
<el-table-column :min-width="80" :label="$t('cronjob.target')" prop="defaultDownload">
<el-table-column :min-width="80" :label="$t('setting.backupAccount')" prop="defaultDownload">
<template #default="{ row }">
<div v-for="(item, index) of row.backupAccounts?.split(',')" :key="index">
<div v-if="row.accountExpand || (!row.accountExpand && index < 3)">

View File

@ -248,7 +248,7 @@
</el-form-item>
<div v-if="isBackup()">
<el-form-item :label="$t('cronjob.target')" prop="backupAccountList">
<el-form-item :label="$t('setting.backupAccount')" prop="backupAccountList">
<el-select
multiple
class="selectClass"
@ -366,6 +366,7 @@ const acceptParams = (params: DialogProps): void => {
if (dialogData.value.title === 'create') {
changeType();
dialogData.value.rowData.dbType = 'mysql';
dialogData.value.rowData.defaultDownload = 'LOCAL';
}
if (dialogData.value.rowData.backupAccounts) {
dialogData.value.rowData.backupAccountList = dialogData.value.rowData.backupAccounts.split(',');

View File

@ -133,10 +133,7 @@
>
<el-row type="flex" justify="center">
<el-col :span="22">
<el-form-item
:label="$t('cronjob.target') + ' ( ' + $t('setting.thirdPartySupport') + ' )'"
prop="fromAccounts"
>
<el-form-item :label="$t('setting.backupAccount')" prop="fromAccounts">
<el-select multiple @change="changeAccount" v-model="snapInfo.fromAccounts" clearable>
<el-option
v-for="item in backupOptions"