解决冲突
This commit is contained in:
parent
ea59a18c5d
commit
6ccc1544c8
|
@ -2,7 +2,7 @@ export const baseurl = 'http://market.api.system.com'
|
||||||
|
|
||||||
// 通用公用方法(get和post)
|
// 通用公用方法(get和post)
|
||||||
const req = (method, url, params, responseType) => {
|
const req = (method, url, params, responseType) => {
|
||||||
var obj=null;
|
var obj = null;
|
||||||
if (method == "get") {
|
if (method == "get") {
|
||||||
if (params) {
|
if (params) {
|
||||||
let paramsArray = [];
|
let paramsArray = [];
|
||||||
|
@ -24,7 +24,7 @@ const req = (method, url, params, responseType) => {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
let http = fetch(url,obj).then(res => res.json());
|
let http = fetch(url, obj).then(res => res.json());
|
||||||
return http.then(response => response).catch(error => console.error('Error:', error));
|
return http.then(response => response).catch(error => console.error('Error:', error));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -143,6 +143,7 @@ export default class menu extends React.Component {
|
||||||
allChecked: false,
|
allChecked: false,
|
||||||
tableData: props.tableData,
|
tableData: props.tableData,
|
||||||
Column: props.Column,
|
Column: props.Column,
|
||||||
|
dataTotal:props.dataTotal,
|
||||||
indeterminate: false,
|
indeterminate: false,
|
||||||
pageNum:0,
|
pageNum:0,
|
||||||
pageCount:props.dataCount,
|
pageCount:props.dataCount,
|
||||||
|
@ -559,7 +560,7 @@ export default class menu extends React.Component {
|
||||||
<div className={this.state.pageLoading ? "pagebar hide":"pagebar"} >
|
<div className={this.state.pageLoading ? "pagebar hide":"pagebar"} >
|
||||||
<Pagination data = {
|
<Pagination data = {
|
||||||
{
|
{
|
||||||
count: 25
|
count: this.state.dataTotal
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
onPrevClick = {
|
onPrevClick = {
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue