浏览代码

修改参数

guanhailong 3 年之前
父节点
当前提交
1fc6bf9342
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      AdminController/dataSystemManagement/DeviceDataController.py

+ 3 - 3
AdminController/dataSystemManagement/DeviceDataController.py

@@ -440,7 +440,7 @@ class DeviceDataView(View):
                     count_remain = count_part - count
                     rate = round(count_remain / count_part * 100, 2)
                     type_list.append({
-                        'name': name,
+                        'type': name,
                         'count': count_remain,
                         'rate': rate
                     })
@@ -453,7 +453,7 @@ class DeviceDataView(View):
                         type_count = test_list.count(Type)
                         rate = round(type_count / count_part * 100, 2)
                         type_list.append({
-                            'name': name,
+                            'type': name,
                             'count': type_count,
                             'rate': rate
                         })
@@ -555,8 +555,8 @@ class DeviceDataView(View):
             name = '未知类型'
             rate = round(count / count_all * 100, 2)
             device_info_list.append({
+                'type': name,
                 'count': count,
-                'name': name,
                 'rate': rate
             })
             for device_info in device_type_qs: