修改代理地址

This commit is contained in:
何童崇 2021-12-17 13:38:16 +08:00
parent d24ac15228
commit 0e0bf2176f
4 changed files with 15 additions and 12 deletions

View File

@ -3,7 +3,7 @@ import { Table, Pagination } from 'antd';
import './index.scss';
export default (props) => {
const { loading, dataSource, columns, handleRow, total, setPage, current } =props;
const { loading, dataSource, columns, handleRow, total, setCurrentPage, current } =props;
return (
<Fragment>
@ -18,7 +18,7 @@ export default (props) => {
/>
{total > 10 &&
<Pagination
onChange={setPage}
onChange={setCurrentPage}
current={current}
total={total}
/>}

View File

@ -7,10 +7,11 @@ import './index.scss';
function List(){
const [loading, setLoading] = useState(false);
const [page, setPage] = useState(1);
const [currentPage, setCurrentPage] = useState(1);
const [dataList, setDataList] = useState([]);
const [total, setTotal] = useState(0);
const [pageSize,setPageSize] =useState(10);
const [searchObj, setSearchObj] = useState({});
const [pageSize,setCurrentPageSize] =useState(10);
const columns = useMemo(() => {
return [{
@ -43,12 +44,12 @@ function List(){
useEffect(() => {
setLoading(true);
let params = {
// ...searchObj,
checkStatus: '1',
...searchObj,
pageSize,
page,
currentPage,
status: '',
parentId:0,
reviewArea:'',
statusString:''
}
expertList(params).then(data => {
if (data && Array.isArray(data.rows)) {
@ -60,7 +61,7 @@ function List(){
setLoading(false);
setTotal(data.total);
});
}, [page]);
}, [currentPage]);
return(
@ -71,8 +72,8 @@ function List(){
columns={columns}
// handleRow
total={total}
setPage={setPage}
current={page}
setCurrentPage={setCurrentPage}
current={currentPage}
/>
</div>)
}

View File

@ -3,7 +3,8 @@ import javaFetch from '../javaFetch';
let settings=JSON.parse(localStorage.chromesetting);
let actionUrl = settings.api_urls && settings.api_urls.expert ? settings.api_urls.expert :'http://10.47.38.56:8088';
let actionUrl = settings.api_urls && settings.api_urls.expert ? settings.api_urls.expert :'http://117.50.100.12:8067';
// 'http://10.47.38.56:8088';
const service = javaFetch(actionUrl);
export const httpUrl = actionUrl;

View File

@ -4,6 +4,7 @@ import { Link } from "react-router-dom";
import { unitType, natureOfWork, highestEducation, positionLevel, professionalType, reviewArea } from '../static';
import './index.scss';
import '../index.scss';
const Option = Select.Option;
export default Form.create()(({ match, history, showNotification, form }) => {
const { getFieldDecorator, validateFields, setFieldsValue } = form;