创建报送任务
This commit is contained in:
parent
3475acae63
commit
99a113015b
|
|
@ -1,9 +1,10 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<div style="margin-top: 10px">
|
<div style="margin-top: 10px">
|
||||||
<el-button type="primary" icon="el-icon-plus" @click="handleAddContent"
|
<el-button type="primary" icon="el-icon-plus" @click="handleCreate"
|
||||||
>新增</el-button
|
>创建报送任务</el-button>
|
||||||
>
|
<el-button type="primary" icon="el-icon-plus" @click="handleCreate2"
|
||||||
|
>创建主动报送任务</el-button>
|
||||||
</div>
|
</div>
|
||||||
<el-card
|
<el-card
|
||||||
style="margin-top: 10px"
|
style="margin-top: 10px"
|
||||||
|
|
@ -197,7 +198,7 @@ export default {
|
||||||
this.listQuery.page = 1;
|
this.listQuery.page = 1;
|
||||||
this.getList();
|
this.getList();
|
||||||
},
|
},
|
||||||
handleAddContent() {
|
handleCreate() {
|
||||||
this.Content = Object.assign({}, defaultContent);
|
this.Content = Object.assign({}, defaultContent);
|
||||||
this.dialogType = "new";
|
this.dialogType = "new";
|
||||||
this.dialogVisible = true;
|
this.dialogVisible = true;
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,10 @@
|
||||||
from django.urls import path, include
|
from django.urls import path, include
|
||||||
from rest_framework import routers
|
from rest_framework import routers
|
||||||
from .views import ContentViewSet
|
from .views import ContentViewSet, TaskViewSet
|
||||||
|
|
||||||
router = routers.DefaultRouter()
|
router = routers.DefaultRouter()
|
||||||
router.register('content', ContentViewSet, basename="content")
|
router.register('content', ContentViewSet, basename="content")
|
||||||
|
router.register('task', TaskViewSet, basename="task")
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path('', include(router.urls))
|
path('', include(router.urls))
|
||||||
]
|
]
|
||||||
|
|
@ -1,7 +1,4 @@
|
||||||
from rest_framework import status
|
from django.db.models.query import QuerySet
|
||||||
from rest_framework.response import Response
|
|
||||||
from rest_framework.settings import api_settings
|
|
||||||
|
|
||||||
class CreateUpdateModelAMixin:
|
class CreateUpdateModelAMixin:
|
||||||
"""
|
"""
|
||||||
业务用基本表A用
|
业务用基本表A用
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue