Parcourir la source

优化价格页,支持大小写模糊搜素

iszcz il y a 1 an
Parent
commit
472145aed6
1 fichiers modifiés avec 2 ajouts et 5 suppressions
  1. 2 5
      web/src/components/ModelPricing.js

+ 2 - 5
web/src/components/ModelPricing.js

@@ -93,10 +93,6 @@ const ModelPricing = () => {
           onChange: (selectedRowKeys, selectedRows) => {
             setSelectedRowKeys(selectedRowKeys);
           },
-          getCheckboxProps: record => ({
-              disabled: record.name === 'Michael James', // Column configuration not to be checked
-              name: record.model_name,
-          }),
       }),
       []
   );
@@ -158,7 +154,8 @@ const ModelPricing = () => {
           </>
         );
       },
-      onFilter: (value, record) => record.model_name.includes(value),
+      onFilter: (value, record) =>
+        record.name.toLowerCase().includes(value.toLowerCase()),
       filteredValue,
     },
     {