feat: 计划任务创建增加第三方备份账号跳转 (#1282)

This commit is contained in:
ssongliu 2023-06-07 18:23:24 +08:00 committed by GitHub
parent a41d4e55aa
commit b3ecddb20f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 1 deletions

View file

@ -663,6 +663,7 @@ const message = {
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.',
retainCopies: 'Retain copies',
retainCopiesHelper: 'Number of copies of execution records, log files, and backup files',
cronSpecRule: 'Please enter a correct lifecycle',

View file

@ -612,7 +612,7 @@ const message = {
daemonJsonPathHelper: '请保证配置路径与 docker.service 中指定的配置路径保持一致',
mirrors: '镜像加速',
mirrorsHelper: '优先使用加速 URL 执行操作设置为空则取消镜像加速',
mirrorsHelper2: '具体操作配置请参照官方文档',
mirrorsHelper2: '具体操作配置请参照官方文档',
registries: '私有仓库',
cutLog: '日志切割',
cutLogHelper1: '当前配置只会影响新创建的容器',
@ -658,6 +658,7 @@ const message = {
saveLocal: '同时保留本地备份和云存储保留份数一致',
url: 'URL 地址',
target: '备份到',
targetHelper: '第三方备份账号在面板设置中维护',
retainCopies: '保留份数',
retainCopiesHelper: '执行记录日志文件备份文件保留份数',
cronSpecRule: '请输入正确的执行周期',

View file

@ -129,6 +129,17 @@
:label="item.label"
/>
</el-select>
<span class="input-help">
{{ $t('cronjob.targetHelper') }}
<el-link
style="font-size: 12px"
icon="Position"
@click="goRouter('/settings/backupaccount')"
type="primary"
>
{{ $t('firewall.quickJump') }}
</el-link>
</span>
</el-form-item>
<el-form-item v-if="dialogData.rowData!.targetDirID !== localDirID">
<el-checkbox v-model="dialogData.rowData!.keepLocal">
@ -193,6 +204,8 @@ import { CheckAppInstalled } from '@/api/modules/app';
import { GetWebsiteOptions } from '@/api/modules/website';
import DrawerHeader from '@/components/drawer-header/index.vue';
import { MsgError, MsgSuccess } from '@/utils/message';
import { useRouter } from 'vue-router';
const router = useRouter();
interface DialogProps {
title: string;
@ -220,6 +233,10 @@ const acceptParams = (params: DialogProps): void => {
};
const emit = defineEmits<{ (e: 'search'): void }>();
const goRouter = async (path: string) => {
router.push({ path: path });
};
const handleClose = () => {
drawerVisiable.value = false;
};