diff --git a/dvadmin-backend/apps/vadmin/celery/views.py b/dvadmin-backend/apps/vadmin/celery/views.py index 15fabfc..cc93e5e 100644 --- a/dvadmin-backend/apps/vadmin/celery/views.py +++ b/dvadmin-backend/apps/vadmin/celery/views.py @@ -57,7 +57,7 @@ class PeriodicTaskModelViewSet(CustomModelViewSet): enabled 是否开启 """ - queryset = PeriodicTask.objects.all() + queryset = PeriodicTask.objects.exclude(name="celery.backend_cleanup") serializer_class = PeriodicTaskSerializer filter_class = PeriodicTaskFilter search_fields = ('name', 'task', 'date_changed') diff --git a/dvadmin-ui/src/views/vadmin/monitor/celery/crontab-task/crontab-index.vue b/dvadmin-ui/src/views/vadmin/monitor/celery/crontab-task/crontab-index.vue index c49d01a..e040788 100644 --- a/dvadmin-ui/src/views/vadmin/monitor/celery/crontab-task/crontab-index.vue +++ b/dvadmin-ui/src/views/vadmin/monitor/celery/crontab-task/crontab-index.vue @@ -80,7 +80,7 @@ }, methods: { initData() { - SyncDataApi.listCrontabSchedule({ page_size: 1000 }).then((response) => { + SyncDataApi.listCrontabSchedule({ pageSize: 1000 }).then((response) => { this.detail = response.data.results || []; this.$store.state.Crontab = this.detail; }); diff --git a/dvadmin-ui/src/views/vadmin/monitor/celery/interval-task/interval-index.vue b/dvadmin-ui/src/views/vadmin/monitor/celery/interval-task/interval-index.vue index ff561b7..5d6ddcf 100644 --- a/dvadmin-ui/src/views/vadmin/monitor/celery/interval-task/interval-index.vue +++ b/dvadmin-ui/src/views/vadmin/monitor/celery/interval-task/interval-index.vue @@ -77,7 +77,7 @@ }, methods: { initData() { - SyncDataApi.listIntervalschedule({ page_size: 1000 }).then((response) => { + SyncDataApi.listIntervalschedule({ pageSize: 1000 }).then((response) => { this.detail = response.data.results || []; this.$store.state.Interval = this.detail; }); diff --git a/dvadmin-ui/src/views/vadmin/monitor/celery/periodic-task/periodic-index.vue b/dvadmin-ui/src/views/vadmin/monitor/celery/periodic-task/periodic-index.vue index a4f81c2..f4a9e15 100644 --- a/dvadmin-ui/src/views/vadmin/monitor/celery/periodic-task/periodic-index.vue +++ b/dvadmin-ui/src/views/vadmin/monitor/celery/periodic-task/periodic-index.vue @@ -33,18 +33,18 @@ - + + + + + + + + + + + +