Procházet zdrojové kódy

fix(product): #3791 增加搜索下拉选项

Lind před 4 roky
rodič
revize
298408944f
1 změnil soubory, kde provedl 15 přidání a 0 odebrání
  1. 15 0
      src/pages/device/Product/index.tsx

+ 15 - 0
src/pages/device/Product/index.tsx

@@ -218,6 +218,21 @@ const Product = observer(() => {
     {
       title: '设备类型',
       dataIndex: 'deviceType',
+      valueType: 'select',
+      valueEnum: {
+        device: {
+          text: '直连设备',
+          status: 'device',
+        },
+        childrenDevice: {
+          text: '网关子设备',
+          status: 'childrenDevice',
+        },
+        gateway: {
+          text: '网关设备',
+          status: 'gateway',
+        },
+      },
       render: (_, row) => <>{row.deviceType ? row.deviceType.text : undefined}</>,
     },
     {