|
@@ -7,7 +7,7 @@ import AddRecord from './AddRecord'
|
|
|
import { useDispatch } from 'dva'
|
|
import { useDispatch } from 'dva'
|
|
|
import ProTable from '@ant-design/pro-table'
|
|
import ProTable from '@ant-design/pro-table'
|
|
|
|
|
|
|
|
-const ContanctTabList = ({ clientId }) => {
|
|
|
|
|
|
|
+const ContanctTabList = ({ clientId, software }) => {
|
|
|
// console.log(clientId)
|
|
// console.log(clientId)
|
|
|
const dispatch = useDispatch()
|
|
const dispatch = useDispatch()
|
|
|
const [state, setState] = useState({
|
|
const [state, setState] = useState({
|
|
@@ -81,17 +81,18 @@ const ContanctTabList = ({ clientId }) => {
|
|
|
params={state.params}
|
|
params={state.params}
|
|
|
actionRef={tRef}
|
|
actionRef={tRef}
|
|
|
rowKey={record => record.id}
|
|
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}
|
|
pagination={false}
|
|
|
/>
|
|
/>
|
|
|
</div>
|
|
</div>
|