fix #I3UP7W 修复BUG(dvadmin): 修复定时任务只显示10条问题

pull/36/head
李强 2021-07-10 09:29:13 +08:00
parent f95fee5771
commit 301f93cfd9
4 changed files with 16 additions and 16 deletions

View File

@ -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')

View File

@ -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;
});

View File

@ -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;
});

View File

@ -33,18 +33,18 @@
</el-button>
</template>
<!--以下是自定义新增的工具栏内容-->
<template slot="tools">
<el-popover placement="bottom" title="温馨提示" width="400" trigger="click" style="margin-left: 10px">
<li>待编写</li>
<el-button
slot="reference"
name="refresh"
type="info"
size="small"
icon="el-icon-info"
title="温馨提示"/>
</el-popover>
</template>
<!-- <template slot="tools">-->
<!-- <el-popover placement="bottom" title="温馨提示" width="400" trigger="click" style="margin-left: 10px">-->
<!-- <li>待编写</li>-->
<!-- <el-button-->
<!-- slot="reference"-->
<!-- name="refresh"-->
<!-- type="info"-->
<!-- size="small"-->
<!-- icon="el-icon-info"-->
<!-- title="温馨提示"/>-->
<!-- </el-popover>-->
<!-- </template>-->
<!--以下是自定义新增的列的配置内容-->
<template slot="column">
<el-table-column fixed="right" label="操作" align="center" width="150">
@ -146,7 +146,7 @@
},
methods: {
initData() {
SyncDataApi.listPeriodicTask({ page_size: 1000 }).then((response) => {
SyncDataApi.listPeriodicTask({ pageSize: 1000 }).then((response) => {
this.detail = response.data.results || [];
});
},