Browse Source

查询设备方案列表

linhaohong 3 months ago
parent
commit
8ef46f6c00
1 changed files with 2 additions and 2 deletions
  1. 2 2
      AdminController/ProductsSchemeManageController.py

+ 2 - 2
AdminController/ProductsSchemeManageController.py

@@ -468,7 +468,7 @@ class ProductsSchemeManageView(View):
                 device_data = {
                     'id': device.id,
                     'serialNumber': device.serial_number,
-                    'type':'NVR' if device.device_type == 1 else 'IPC',
+                    'deviceType': device.device_type,
                     'phoneModel': device.phone_model,
                     'storageCode': device.storage_code,
                     'createdTime': device.created_time,
@@ -477,7 +477,7 @@ class ProductsSchemeManageView(View):
                 if product_scheme:
                     device_data.update({
                         'orderNumber': product_scheme.order_number if product_scheme.order_number else '',
-                        'deviceType': product_scheme.device_type if product_scheme.device_type else '',
+                        'type': 'NVR' if product_scheme.device_type == 1 else 'IPC',
                         'flash': product_scheme.flash if product_scheme.flash else '',
                         'ddr': product_scheme.ddr if product_scheme.ddr else '',
                         'mainController': product_scheme.main_controller if product_scheme.main_controller else '',