Sfoglia il codice sorgente

feat: 放假前例行提交

lanjianrong 5 anni fa
parent
commit
a8ddc99c29
1 ha cambiato i file con 10 aggiunte e 11 eliminazioni
  1. 10 11
      src/pages/Product/Cloud/index.jsx

+ 10 - 11
src/pages/Product/Cloud/index.jsx

@@ -48,7 +48,6 @@ const Cloud = () => {
       dataIndex: 'mobile',
       key: 'mobile',
       fixed: 'left',
-      search: false,
       width: 50
     },
     {
@@ -71,14 +70,12 @@ const Cloud = () => {
       title: 'QQ',
       dataIndex: 'qq',
       key: 'qq',
-      search: false,
       ellipsis: true,
       width: 60
     },
     {
       title: '企业名称',
       dataIndex: 'company',
-      search: false,
       key: 'company',
       ellipsis: true,
       width: 100
@@ -86,7 +83,6 @@ const Cloud = () => {
     {
       title: 'CLD联系人',
       dataIndex: 'cld',
-      search: false,
       key: 'cld',
       ellipsis: true,
       width: 50,
@@ -96,7 +92,8 @@ const Cloud = () => {
       title: '最近使用',
       dataIndex: 'latestUsed',
       key: 'latestUsed',
-      valueType: 'select',
+      filters: true,
+      filterMultiple: false,
       width: 50,
       valueEnum: roadpricing.reduce((prev, curr) => {
         const obj = { ...prev }
@@ -114,8 +111,9 @@ const Cloud = () => {
       title: '截至上一次登录时长',
       dataIndex: 'onlineTimes',
       key: 'onlineTimes',
-      valueType: 'select',
-      width: 70,
+      filters: true,
+      filterMultiple: false,
+      width: 80,
       valueEnum: {
         1: { text: '超过30分钟' },
         2: { text: '超过1小时' },
@@ -152,7 +150,6 @@ const Cloud = () => {
       title: '注册时间',
       dataIndex: 'create_time',
       key: 'create_time',
-      search: false,
       sorter: true,
       ellipsis: true,
       width: 60,
@@ -163,7 +160,8 @@ const Cloud = () => {
       dataIndex: 'upGrade',
       key: 'upGrade',
       width: 150,
-      valueType: 'select',
+      filters: true,
+      filterMultiple: false,
       valueEnum: roadpricing.reduce((prev, curr) => {
         const obj = { ...prev }
         if (curr._id) {
@@ -238,9 +236,10 @@ const Cloud = () => {
             placeholder="请输入手机、QQ进行搜索"
             onSearch={handleSearch}
           />
-        )
+        ),
+        actions: []
       }}
-      search={{ filterType: 'light' }}
+      search={false}
       columns={columns}
       columnsStateMap={columnsMap}
     />