release: 2.6.2025042311

This commit is contained in:
caoqianming 2025-04-23 11:03:38 +08:00
parent 75503fc7e8
commit ba9d7d041d
2 changed files with 11 additions and 2 deletions

View File

@ -151,11 +151,20 @@ class MpLogxViewSet(CustomListModelMixin, CustomGenericViewSet):
serializer_class = MpLogxSerializer serializer_class = MpLogxSerializer
filterset_fields = { filterset_fields = {
"timex": ["exact", "gte", "lte", "year", "month", "day"], "timex": ["exact", "gte", "lte", "year", "month", "day"],
"mpoint": ["exact"], "mpoint": ["exact", "in"],
"mpoint__ep_monitored": ["exact"]
} }
ordering_fields = ["timex"] ordering_fields = ["timex"]
ordering = ["-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): class MpointStatViewSet(BulkCreateModelMixin, BulkDestroyModelMixin, CustomListModelMixin, CustomGenericViewSet):
""" """

View File

@ -35,7 +35,7 @@ sys.path.insert(0, os.path.join(BASE_DIR, 'apps'))
ALLOWED_HOSTS = ['*'] ALLOWED_HOSTS = ['*']
SYS_NAME = '星途工厂综合管理系统' SYS_NAME = '星途工厂综合管理系统'
SYS_VERSION = '2.6.2025041613' SYS_VERSION = '2.6.2025042311'
X_FRAME_OPTIONS = 'SAMEORIGIN' X_FRAME_OPTIONS = 'SAMEORIGIN'
# Application definition # Application definition