创建报送任务
This commit is contained in:
parent
3475acae63
commit
99a113015b
|
@ -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;
|
||||
|
|
|
@ -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))
|
||||
]
|
|
@ -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用
|
||||
|
|
Loading…
Reference in New Issue