fix bug 默认选项问题
This commit is contained in:
parent
1837f512a3
commit
9ddb243bc4
|
|
@ -37,8 +37,8 @@ export default class CumDeduct extends React.Component {
|
|||
selectedKey: [],
|
||||
slideSelectedKey: [], //详情表格的选中项
|
||||
visiable: false,
|
||||
monthValue: "",
|
||||
taxAgentId: "",
|
||||
monthValue: moment(new Date()).format("YYYY-MM"),
|
||||
taxAgentId: "All",
|
||||
datetime: "",
|
||||
inited: false,
|
||||
modalParam: {
|
||||
|
|
@ -54,7 +54,7 @@ export default class CumDeduct extends React.Component {
|
|||
cumDeductStore: { doInit },
|
||||
taxAgentStore: { fetchTaxAgentOption },
|
||||
} = this.props;
|
||||
doInit();
|
||||
doInit({declareMonth: [this.state.monthValue], taxAgentId: ""});
|
||||
fetchTaxAgentOption().then((res) => {
|
||||
this.setState({
|
||||
inited: true,
|
||||
|
|
|
|||
|
|
@ -52,8 +52,8 @@ export default class CumSituation extends React.Component {
|
|||
slideSelectedKey: [], //详情表格的选中项
|
||||
visiable: false,
|
||||
inited: false,
|
||||
monthValue: "",
|
||||
taxAgentId: "",
|
||||
monthValue: moment(new Date()).format("YYYY-MM"),
|
||||
taxAgentId: "All",
|
||||
modalParam: {
|
||||
taxYearMonth: "",
|
||||
},
|
||||
|
|
@ -66,7 +66,7 @@ export default class CumSituation extends React.Component {
|
|||
cumSituationStore: { doInit },
|
||||
taxAgentStore: { fetchTaxAgentOption },
|
||||
} = this.props;
|
||||
doInit();
|
||||
doInit({taxYearMonth: [this.state.monthValue], taxAgentId: ""});
|
||||
fetchTaxAgentOption().then(() => {
|
||||
this.setState({
|
||||
inited: true,
|
||||
|
|
|
|||
|
|
@ -48,8 +48,8 @@ export default class OtherDeduct extends React.Component {
|
|||
selectedKey: [],
|
||||
slideSelectedKey: [], //详情表格的选中项
|
||||
visiable: false,
|
||||
monthValue: "",
|
||||
taxAgentId: "",
|
||||
monthValue: moment(new Date()).format("YYYY-MM"),
|
||||
taxAgentId: "All",
|
||||
inited: false,
|
||||
modalParam: {
|
||||
declareMonth: "",
|
||||
|
|
@ -63,7 +63,7 @@ export default class OtherDeduct extends React.Component {
|
|||
otherDeductStore: { doInit },
|
||||
taxAgentStore: { fetchTaxAgentOption },
|
||||
} = this.props;
|
||||
doInit();
|
||||
doInit({declareMonth: [this.state.monthValue],taxAgentId:"" });
|
||||
fetchTaxAgentOption().then(() => {
|
||||
this.setState({
|
||||
inited: true,
|
||||
|
|
|
|||
|
|
@ -76,9 +76,9 @@ export class CumDeductStore {
|
|||
|
||||
// 初始化操作
|
||||
@action
|
||||
doInit = () => {
|
||||
doInit = (params = {}) => {
|
||||
this.getCondition();
|
||||
this.getTableDatas();
|
||||
this.getTableDatas(params);
|
||||
};
|
||||
|
||||
// 获得高级搜索表单数据
|
||||
|
|
|
|||
|
|
@ -75,9 +75,9 @@ export class CumSituationStore {
|
|||
|
||||
// 初始化操作
|
||||
@action
|
||||
doInit = () => {
|
||||
doInit = (params = {}) => {
|
||||
this.getCondition();
|
||||
this.getTableDatas();
|
||||
this.getTableDatas(params);
|
||||
};
|
||||
|
||||
// 获得高级搜索表单数据
|
||||
|
|
|
|||
|
|
@ -77,9 +77,9 @@ export class OtherDeductStore {
|
|||
|
||||
// 初始化操作
|
||||
@action
|
||||
doInit = () => {
|
||||
doInit = (params = {}) => {
|
||||
this.getCondition();
|
||||
this.getTableDatas();
|
||||
this.getTableDatas(params);
|
||||
};
|
||||
|
||||
// 获得高级搜索表单数据
|
||||
|
|
|
|||
Loading…
Reference in New Issue