programme insert
This commit is contained in:
parent
f77ce9dc98
commit
7104035b17
|
|
@ -15,10 +15,11 @@ export default class CustomNewModal extends React.Component {
|
|||
handleOK() {
|
||||
const { programmeStore: {createSICategory, setCustomRequest, customRequest}} = this.props;
|
||||
createSICategory(customRequest)
|
||||
this.props.onCancel()
|
||||
}
|
||||
|
||||
render() {
|
||||
const { programmeStore: {customRequest}} = this.props;
|
||||
const { programmeStore: {customRequest, setCustomRequest}} = this.props;
|
||||
return (
|
||||
<Modal visible={this.props.visible} onCancel={() => {this.props.onCancel()}} title="新建自定义福利" onOk={() => {this.handleOK()}}>
|
||||
{/* {getCustomSearchs(this.props.form, toJS(this.props.condition), 1)} */}
|
||||
|
|
|
|||
|
|
@ -200,6 +200,10 @@ export default class Programme extends React.Component {
|
|||
];
|
||||
|
||||
const options = [
|
||||
{
|
||||
showname: "全部",
|
||||
key: ""
|
||||
},
|
||||
{
|
||||
showname: "社保",
|
||||
key: "SOCIAL_SECURITY"
|
||||
|
|
@ -221,8 +225,9 @@ export default class Programme extends React.Component {
|
|||
}
|
||||
|
||||
const handleCustomNewClick = () => {
|
||||
const { programmeStore : { getCustomForm, getCumCustomForm, setCustomNewVisible }} = this.props;
|
||||
const { programmeStore : { getCustomForm, getCumCustomForm, setCustomNewVisible, setCustomRequest }} = this.props;
|
||||
getCustomForm()
|
||||
setCustomRequest({})
|
||||
setCustomNewVisible(true)
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -99,7 +99,7 @@ export class ProgrammeStore {
|
|||
|
||||
// 渲染自定义福利
|
||||
@action
|
||||
getCustomCategoryList = (selectKey = "SOCIAL_SECURITY", params) => {
|
||||
getCustomCategoryList = (selectKey = "", params) => {
|
||||
this.loading = true;
|
||||
const formParams = this.form.getFormParams() || {};
|
||||
params = params || formParams;
|
||||
|
|
|
|||
Loading…
Reference in New Issue