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

pull/1283/head
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)', saveLocal: 'Retain local backups (the same as the number of cloud storage copies)',
url: 'URL Address', url: 'URL Address',
target: 'Target', target: 'Target',
targetHelper: 'Third-party backup accounts are maintained in panel settings.',
retainCopies: 'Retain copies', retainCopies: 'Retain copies',
retainCopiesHelper: 'Number of copies of execution records, log files, and backup files', retainCopiesHelper: 'Number of copies of execution records, log files, and backup files',
cronSpecRule: 'Please enter a correct lifecycle', cronSpecRule: 'Please enter a correct lifecycle',

View File

@ -612,7 +612,7 @@ const message = {
daemonJsonPathHelper: ' docker.service ', daemonJsonPathHelper: ' docker.service ',
mirrors: '', mirrors: '',
mirrorsHelper: '使 URL ', mirrorsHelper: '使 URL ',
mirrorsHelper2: '', mirrorsHelper2: '',
registries: '', registries: '',
cutLog: '', cutLog: '',
cutLogHelper1: '', cutLogHelper1: '',
@ -658,6 +658,7 @@ const message = {
saveLocal: '', saveLocal: '',
url: 'URL ', url: 'URL ',
target: '', target: '',
targetHelper: '',
retainCopies: '', retainCopies: '',
retainCopiesHelper: '', retainCopiesHelper: '',
cronSpecRule: '', cronSpecRule: '',

View File

@ -129,6 +129,17 @@
:label="item.label" :label="item.label"
/> />
</el-select> </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>
<el-form-item v-if="dialogData.rowData!.targetDirID !== localDirID"> <el-form-item v-if="dialogData.rowData!.targetDirID !== localDirID">
<el-checkbox v-model="dialogData.rowData!.keepLocal"> <el-checkbox v-model="dialogData.rowData!.keepLocal">
@ -193,6 +204,8 @@ import { CheckAppInstalled } from '@/api/modules/app';
import { GetWebsiteOptions } from '@/api/modules/website'; import { GetWebsiteOptions } from '@/api/modules/website';
import DrawerHeader from '@/components/drawer-header/index.vue'; import DrawerHeader from '@/components/drawer-header/index.vue';
import { MsgError, MsgSuccess } from '@/utils/message'; import { MsgError, MsgSuccess } from '@/utils/message';
import { useRouter } from 'vue-router';
const router = useRouter();
interface DialogProps { interface DialogProps {
title: string; title: string;
@ -220,6 +233,10 @@ const acceptParams = (params: DialogProps): void => {
}; };
const emit = defineEmits<{ (e: 'search'): void }>(); const emit = defineEmits<{ (e: 'search'): void }>();
const goRouter = async (path: string) => {
router.push({ path: path });
};
const handleClose = () => { const handleClose = () => {
drawerVisiable.value = false; drawerVisiable.value = false;
}; };