Jelajahi Sumber

feat(组件): 修改bug

tangning 2 tahun lalu
induk
melakukan
3f84b30426
2 mengubah file dengan 8 tambahan dan 6 penghapusan
  1. 2 0
      src/views/product/drawer.data.ts
  2. 6 6
      src/views/product/list.data.ts

+ 2 - 0
src/views/product/drawer.data.ts

@@ -71,6 +71,8 @@ export const formSchema: FormSchema[] = [
       labelField: 'name',
       valueField: 'id',
       immediate: true,
+      showSearch: true,
+      optionFilterProp: 'label',
       params: {
         page: 1,
         limit: 1000,

+ 6 - 6
src/views/product/list.data.ts

@@ -66,7 +66,7 @@ export const columns: BasicColumn[] = [
     title: '商品分类',
     dataIndex: 'categoryName',
     // slots: { customRender: 'productType' },
-    sorter: true,
+    // sorter: true,
     width: 120,
   },
   {
@@ -76,32 +76,32 @@ export const columns: BasicColumn[] = [
     // customRender: ({ record }) => {
     //   return record.steamRoom.name as unknown as {};
     // },
-    sorter: true,
+    // sorter: true,
     width: 120,
   },
   {
     title: '销售价',
     dataIndex: 'retailPrice',
-    sorter: true,
+    // sorter: true,
     width: 80,
   },
   {
     title: '销售量',
     dataIndex: 'sellVolume',
-    sorter: true,
+    // sorter: true,
     width: 80,
   },
   {
     title: '市场价',
     dataIndex: 'marketPrice',
-    sorter: true,
+    // sorter: true,
     width: 80,
   },
   {
     title: '创建时间',
     dataIndex: 'addTime',
     slots: { customRender: 'addTime' },
-    sorter: true,
+    // sorter: true,
     width: 140,
   },
   {