创建报送任务

This commit is contained in:
caoqianming 2021-03-12 17:05:47 +08:00
parent 3475acae63
commit 99a113015b
3 changed files with 8 additions and 9 deletions

View File

@ -1,9 +1,10 @@
<template>
<div class="app-container">
<div style="margin-top: 10px">
<el-button type="primary" icon="el-icon-plus" @click="handleAddContent"
>新增</el-button
>
<el-button type="primary" icon="el-icon-plus" @click="handleCreate"
>创建报送任务</el-button>
<el-button type="primary" icon="el-icon-plus" @click="handleCreate2"
>创建主动报送任务</el-button>
</div>
<el-card
style="margin-top: 10px"
@ -197,7 +198,7 @@ export default {
this.listQuery.page = 1;
this.getList();
},
handleAddContent() {
handleCreate() {
this.Content = Object.assign({}, defaultContent);
this.dialogType = "new";
this.dialogVisible = true;

View File

@ -1,9 +1,10 @@
from django.urls import path, include
from rest_framework import routers
from .views import ContentViewSet
from .views import ContentViewSet, TaskViewSet
router = routers.DefaultRouter()
router.register('content', ContentViewSet, basename="content")
router.register('task', TaskViewSet, basename="task")
urlpatterns = [
path('', include(router.urls))
]

View File

@ -1,7 +1,4 @@
from rest_framework import status
from rest_framework.response import Response
from rest_framework.settings import api_settings
from django.db.models.query import QuerySet
class CreateUpdateModelAMixin:
"""
业务用基本表A用