custom-艾志工业-合并个税

This commit is contained in:
黎永顺 2024-03-29 16:00:39 +08:00
parent 3d143f0073
commit 338a4a4053
2 changed files with 4 additions and 2 deletions

View File

@ -47,7 +47,8 @@ class Index extends Component {
getDeclareList(payload).then(({ status, data }) => {
this.setState({ loading: false });
if (status) {
const { columns, list: dataSource, pageNum, pageSize, total } = data;
const { canOperate, pageInfo: result } = data;
const { columns, list: dataSource, pageNum, pageSize, total } = result;
this.setState({
dataSource, pageInfo: { ...pageInfo, pageNum, pageSize, total },
columns: _.map(columns, o => {

View File

@ -164,7 +164,8 @@ class Index extends Component {
getDetailList(payload).then(({ status, data }) => {
this.setState({ loading: { ...loading, query: false } });
if (status) {
const { columns, list: dataSource, pageNum: current, pageSize, total } = data;
const { canOperate, pageInfo: result } = data;
const { columns, list: dataSource, pageNum: current, pageSize, total } = result;
this.setState({
dataSource, pageInfo: { ...pageInfo, current, pageSize, total },
columns: _.map(columns, (it, idx) => {