diff --git a/apps/enm/views.py b/apps/enm/views.py index 77db0ebc..2411a9db 100644 --- a/apps/enm/views.py +++ b/apps/enm/views.py @@ -151,11 +151,20 @@ class MpLogxViewSet(CustomListModelMixin, CustomGenericViewSet): serializer_class = MpLogxSerializer filterset_fields = { "timex": ["exact", "gte", "lte", "year", "month", "day"], - "mpoint": ["exact"], + "mpoint": ["exact", "in"], + "mpoint__ep_monitored": ["exact"] } ordering_fields = ["timex"] ordering = ["-timex"] + @action(methods=["get"], detail=False, perms_map={"get": "*"}) + def to_wide(self, request, *args, **kwargs): + """转换为宽表 + + 转换为宽表 + """ + queryset = self.filter_queryset(self.get_queryset()) + class MpointStatViewSet(BulkCreateModelMixin, BulkDestroyModelMixin, CustomListModelMixin, CustomGenericViewSet): """ diff --git a/server/settings.py b/server/settings.py index b4558da6..4498d0be 100755 --- a/server/settings.py +++ b/server/settings.py @@ -35,7 +35,7 @@ sys.path.insert(0, os.path.join(BASE_DIR, 'apps')) ALLOWED_HOSTS = ['*'] SYS_NAME = '星途工厂综合管理系统' -SYS_VERSION = '2.6.2025041613' +SYS_VERSION = '2.6.2025042311' X_FRAME_OPTIONS = 'SAMEORIGIN' # Application definition