+
{{ loadDetailInfo(form.repoID) }}/
diff --git a/frontend/src/views/cronjob/index.vue b/frontend/src/views/cronjob/index.vue
index 0b94bc46c..8a59ba9fe 100644
--- a/frontend/src/views/cronjob/index.vue
+++ b/frontend/src/views/cronjob/index.vue
@@ -45,7 +45,14 @@
- {{ row.name }}
+
+
+ {{ row.name.substring(0, 15) }}...
+
+
+
+ {{ row.name }}
+
diff --git a/frontend/src/views/cronjob/operate/index.vue b/frontend/src/views/cronjob/operate/index.vue
index f020a85ff..a5a063841 100644
--- a/frontend/src/views/cronjob/operate/index.vue
+++ b/frontend/src/views/cronjob/operate/index.vue
@@ -7,13 +7,19 @@
-
+
+ {{ dialogData.rowData!.type }}
@@ -120,6 +126,8 @@
@@ -184,7 +192,9 @@ const dialogData = ref({
});
const acceptParams = (params: DialogProps): void => {
dialogData.value = params;
- changeType();
+ if (dialogData.value.title === 'create') {
+ changeType();
+ }
title.value = i18n.global.t('commons.button.' + dialogData.value.title);
drawerVisiable.value = true;
checkMysqlInstalled();
diff --git a/frontend/src/views/cronjob/record/index.vue b/frontend/src/views/cronjob/record/index.vue
index 5c182c360..d77fe111e 100644
--- a/frontend/src/views/cronjob/record/index.vue
+++ b/frontend/src/views/cronjob/record/index.vue
@@ -126,153 +126,136 @@
-
-
-
- {{ $t('cronjob.shellContent') }}
-
-
-
-
-
- {{ dialogData.rowData!.website }}
-
-
-
-
- {{ dialogData.rowData!.dbName }}
-
-
-
-
-
- {{ dialogData.rowData!.sourceDir }}
-
-
-
-
- {{ dialogData.rowData!.sourceDir.substring(0, 20) }}...
-
-
-
-
-
-
-
- {{ dialogData.rowData!.targetDir }}
-
- {{ $t('file.download') }}
-
-
-
-
-
- {{ dialogData.rowData!.retainCopies }}
-
-
-
-
- {{ dialogData.rowData!.url }}
-
-
-
+
+
+
+ {{ $t('cronjob.target') }}
+
+ {{ dialogData.rowData!.targetDir }}
+
-
-
- -
-
-
-
-
-
-
- {{ dateFormat(0, 0, currentRecord?.startTime) }}
-
-
-
-
-
- {{ currentRecord?.interval }} ms
-
-
- {{ currentRecord?.interval! / 1000 }} s
-
-
-
-
-
-
- {{ $t('commons.table.statusFailed') }}
-
-
- {{ $t('commons.table.statusSuccess') }}
-
-
- {{ $t('commons.table.statusWaiting') }}
-
-
-
-
-
- {{ $t('commons.table.records') }}
-
-
-
-
+ {{ $t('file.download') }}
+
+
+
+
+ {{ $t('cronjob.website') }}
+
+ {{ dialogData.rowData!.website }}
+
+
+
+ {{ $t('cronjob.database') }}
+
+ {{ dialogData.rowData!.dbName }}
+
+
+
+ {{ $t('cronjob.directory') }}
+
+
+ {{ dialogData.rowData!.sourceDir }}
+
+
+
+
+
+ {{ dialogData.rowData!.sourceDir.substring(0, 12) }}...
+
+
+
+
+
+
+
+ {{ $t('cronjob.retainCopies') }}
+
+ {{ dialogData.rowData!.retainCopies }}
+
+
+
+
+ {{ $t('cronjob.exclusionRules') }}
+
+
+ -
+
+
+
+
+ {{ $t('commons.search.timeStart') }}
+
+ {{ dateFormat(0, 0, currentRecord?.startTime) }}
+
+
+
+ {{ $t('commons.table.interval') }}
+
+
+ {{ currentRecord?.interval }} ms
+
+
+ {{ currentRecord?.interval! / 1000 }} s
+
+
+
+
+ {{ $t('commons.table.status') }}
+
+
+ {{ $t('commons.table.statusFailed') }}
+
+
+ {{ $t('commons.table.statusSuccess') }}
+
+
+ {{ $t('commons.table.statusWaiting') }}
+
+
+
+
+ {{ $t('commons.table.records') }}
+
+
+
@@ -416,6 +399,8 @@ const onHandle = async (row: Cronjob.CronjobInfo) => {
.then(() => {
loading.value = false;
MsgSuccess(i18n.global.t('commons.msg.operationSuccess'));
+ searchInfo.page = 1;
+ records.value = [];
search();
})
.catch(() => {
@@ -451,13 +436,14 @@ const search = async () => {
endTime: searchInfo.endTime,
status: searchInfo.status,
};
- records.value = [];
const res = await searchRecords(params);
- if (!res.data.items) {
+ if (searchInfo.page === 1 && !res.data.items) {
hasRecords.value = false;
return;
}
- records.value = res.data.items;
+ for (const item of res.data.items) {
+ records.value.push(item);
+ }
hasRecords.value = true;
currentRecord.value = records.value[0];
currentRecordIndex.value = 0;
@@ -490,7 +476,7 @@ const nextPage = async () => {
if (searchInfo.pageSize >= searchInfo.recordTotal) {
return;
}
- searchInfo.pageSize = searchInfo.pageSize + 5;
+ searchInfo.page = searchInfo.page + 1;
search();
};
const forDetail = async (row: Cronjob.Record, index: number) => {
@@ -515,9 +501,6 @@ function isBackup() {
dialogData.value.rowData!.type === 'directory'
);
}
-function hasScript() {
- return dialogData.value.rowData!.type === 'shell' || dialogData.value.rowData!.type === 'sync';
-}
function loadWeek(i: number) {
for (const week of weekOptions) {
if (week.value === i) {
@@ -534,7 +517,7 @@ defineExpose({
diff --git a/frontend/src/views/database/mysql/setting/status/index.vue b/frontend/src/views/database/mysql/setting/status/index.vue
index 867f83a5a..28e7d36c6 100644
--- a/frontend/src/views/database/mysql/setting/status/index.vue
+++ b/frontend/src/views/database/mysql/setting/status/index.vue
@@ -213,13 +213,6 @@ defineExpose({