fix #I3UP7W 修复BUG(dvadmin): 修复定时任务只显示10条问题
parent
f95fee5771
commit
301f93cfd9
|
@ -57,7 +57,7 @@ class PeriodicTaskModelViewSet(CustomModelViewSet):
|
||||||
enabled 是否开启
|
enabled 是否开启
|
||||||
|
|
||||||
"""
|
"""
|
||||||
queryset = PeriodicTask.objects.all()
|
queryset = PeriodicTask.objects.exclude(name="celery.backend_cleanup")
|
||||||
serializer_class = PeriodicTaskSerializer
|
serializer_class = PeriodicTaskSerializer
|
||||||
filter_class = PeriodicTaskFilter
|
filter_class = PeriodicTaskFilter
|
||||||
search_fields = ('name', 'task', 'date_changed')
|
search_fields = ('name', 'task', 'date_changed')
|
||||||
|
|
|
@ -80,7 +80,7 @@
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
initData() {
|
initData() {
|
||||||
SyncDataApi.listCrontabSchedule({ page_size: 1000 }).then((response) => {
|
SyncDataApi.listCrontabSchedule({ pageSize: 1000 }).then((response) => {
|
||||||
this.detail = response.data.results || [];
|
this.detail = response.data.results || [];
|
||||||
this.$store.state.Crontab = this.detail;
|
this.$store.state.Crontab = this.detail;
|
||||||
});
|
});
|
||||||
|
|
|
@ -77,7 +77,7 @@
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
initData() {
|
initData() {
|
||||||
SyncDataApi.listIntervalschedule({ page_size: 1000 }).then((response) => {
|
SyncDataApi.listIntervalschedule({ pageSize: 1000 }).then((response) => {
|
||||||
this.detail = response.data.results || [];
|
this.detail = response.data.results || [];
|
||||||
this.$store.state.Interval = this.detail;
|
this.$store.state.Interval = this.detail;
|
||||||
});
|
});
|
||||||
|
|
|
@ -33,18 +33,18 @@
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
<!--以下是自定义新增的工具栏内容-->
|
<!--以下是自定义新增的工具栏内容-->
|
||||||
<template slot="tools">
|
<!-- <template slot="tools">-->
|
||||||
<el-popover placement="bottom" title="温馨提示" width="400" trigger="click" style="margin-left: 10px">
|
<!-- <el-popover placement="bottom" title="温馨提示" width="400" trigger="click" style="margin-left: 10px">-->
|
||||||
<li>待编写</li>
|
<!-- <li>待编写</li>-->
|
||||||
<el-button
|
<!-- <el-button-->
|
||||||
slot="reference"
|
<!-- slot="reference"-->
|
||||||
name="refresh"
|
<!-- name="refresh"-->
|
||||||
type="info"
|
<!-- type="info"-->
|
||||||
size="small"
|
<!-- size="small"-->
|
||||||
icon="el-icon-info"
|
<!-- icon="el-icon-info"-->
|
||||||
title="温馨提示"/>
|
<!-- title="温馨提示"/>-->
|
||||||
</el-popover>
|
<!-- </el-popover>-->
|
||||||
</template>
|
<!-- </template>-->
|
||||||
<!--以下是自定义新增的列的配置内容-->
|
<!--以下是自定义新增的列的配置内容-->
|
||||||
<template slot="column">
|
<template slot="column">
|
||||||
<el-table-column fixed="right" label="操作" align="center" width="150">
|
<el-table-column fixed="right" label="操作" align="center" width="150">
|
||||||
|
@ -146,7 +146,7 @@
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
initData() {
|
initData() {
|
||||||
SyncDataApi.listPeriodicTask({ page_size: 1000 }).then((response) => {
|
SyncDataApi.listPeriodicTask({ pageSize: 1000 }).then((response) => {
|
||||||
this.detail = response.data.results || [];
|
this.detail = response.data.results || [];
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue