|
@@ -4,14 +4,12 @@ import ScrollLoading from '@/components/ScrollLoading';
|
|
|
import { queryGateOpList } from '@/services/safety';
|
|
|
import { useParams, useRequest } from '@umijs/max';
|
|
|
import { Table } from 'antd';
|
|
|
-import { useRef, useState } from 'react';
|
|
|
+import { useState } from 'react';
|
|
|
const DoorDetail = () => {
|
|
|
const { projectId } = useParams();
|
|
|
const [list, setList] = useState([]);
|
|
|
const [curPagination, setCurPagination] = useState({});
|
|
|
|
|
|
- const bottomAreaOfList = useRef();
|
|
|
-
|
|
|
const { run, loading } = useRequest((data) => queryGateOpList(data), {
|
|
|
defaultParams: [{ project_id: projectId }],
|
|
|
onSuccess: (data) => {
|
|
@@ -69,7 +67,6 @@ const DoorDetail = () => {
|
|
|
|
|
|
<ScrollLoading
|
|
|
loading={loading}
|
|
|
- totalLength={list?.length}
|
|
|
pagination={curPagination}
|
|
|
handleLoadData={(current) => run({ project_id: projectId, current })}
|
|
|
>
|