diff --git a/apps/ecm/views.py b/apps/ecm/views.py index 5bb4d1f5..d3023c59 100644 --- a/apps/ecm/views.py +++ b/apps/ecm/views.py @@ -26,7 +26,7 @@ from apps.ecm.service import update_remind_read from apps.utils.viewsets import CustomGenericViewSet, CustomModelViewSet from apps.utils.export import export_excel_img -obj_cate_dict = {'people': '人员', 'operation': '作业', 'other': '其他'} +obj_cate_dict = {'people': '人员', 'opl': '作业', 'other': '其他'} mark_dict = {10: '正常', 20: '误报'} # Create your views here. @@ -171,7 +171,6 @@ class EventViewSet(ListModelMixin, RetrieveModelMixin, DestroyModelMixin, Custom for i in odata: cates_str = '' - ep_str = '' for m in i['cates_']: cates_str = cates_str + m['name'] + '/' data.append( @@ -188,7 +187,6 @@ class EventViewSet(ListModelMixin, RetrieveModelMixin, DestroyModelMixin, Custom i['face_img'] ] ) - print(data) return Response({'path': export_excel_img(field_data, data, '事件记录')})