lanjianrong 5 years ago
parent
commit
a1a4a1e729
1 changed files with 13 additions and 12 deletions
  1. 13 12
      src/pages/Customer/Contact/components/ContactDetail/ContanctTabList.jsx

+ 13 - 12
src/pages/Customer/Contact/components/ContactDetail/ContanctTabList.jsx

@@ -7,7 +7,7 @@ import AddRecord from './AddRecord'
 import { useDispatch } from 'dva'
 import ProTable from '@ant-design/pro-table'
 
-const ContanctTabList = ({ clientId }) => {
+const ContanctTabList = ({ clientId, software }) => {
   // console.log(clientId)
   const dispatch = useDispatch()
   const [state, setState] = useState({
@@ -81,17 +81,18 @@ const ContanctTabList = ({ clientId }) => {
                 params={state.params}
                 actionRef={tRef}
                 rowKey={record => record.id}
-                request={async (params, sort, filter) => {
-                  const {
-                    code = -1,
-                    data: { software = {}, total = 0 }
-                  } = await apiContactDetail({ ...params, ...sort, ...filter })
-                  return {
-                    data: software,
-                    success: code === consts.RET_CODE.SUCCESS,
-                    total
-                  }
-                }}
+                dataSource={software.longle}
+                // request={async (params, sort, filter) => {
+                //   const {
+                //     code = -1,
+                //     data: { software = {}, total = 0 }
+                //   } = await apiContactDetail({ ...params, ...sort, ...filter })
+                //   return {
+                //     data: software.longle,
+                //     success: code === consts.RET_CODE.SUCCESS,
+                //     total
+                //   }
+                // }}
                 pagination={false}
               />
             </div>