feat: Mlogb返回增加树型结构
This commit is contained in:
parent
e333b84c1b
commit
abd6ca53f1
|
@ -12,6 +12,7 @@ from apps.system.models import User
|
||||||
|
|
||||||
from apps.mtm.models import Material, Process, Route
|
from apps.mtm.models import Material, Process, Route
|
||||||
from apps.utils.viewsets import CustomGenericViewSet, CustomModelViewSet
|
from apps.utils.viewsets import CustomGenericViewSet, CustomModelViewSet
|
||||||
|
from apps.utils.mixins import CustomListModelMixin
|
||||||
|
|
||||||
from .filters import StLogFilter, SfLogFilter, WMaterialFilter, MlogFilter, HandoverFilter, MlogbFilter, BatchStFilter
|
from .filters import StLogFilter, SfLogFilter, WMaterialFilter, MlogFilter, HandoverFilter, MlogbFilter, BatchStFilter
|
||||||
from .models import (SfLog, SfLogExp, StLog, WMaterial, Mlog, Handover, Mlogb,
|
from .models import (SfLog, SfLogExp, StLog, WMaterial, Mlog, Handover, Mlogb,
|
||||||
|
@ -453,7 +454,7 @@ class OtherLogViewSet(CustomModelViewSet):
|
||||||
ordering = ['-handle_date', '-create_time']
|
ordering = ['-handle_date', '-create_time']
|
||||||
|
|
||||||
|
|
||||||
class MlogbViewSet(ListModelMixin, CustomGenericViewSet):
|
class MlogbViewSet(CustomListModelMixin, CustomGenericViewSet):
|
||||||
perms_map = {'get': '*'}
|
perms_map = {'get': '*'}
|
||||||
queryset = Mlogb.objects.all()
|
queryset = Mlogb.objects.all()
|
||||||
serializer_class = MlogbDetailSerializer
|
serializer_class = MlogbDetailSerializer
|
||||||
|
|
Loading…
Reference in New Issue