programme insert

This commit is contained in:
MustangDeng 2022-04-01 10:39:01 +08:00
parent f77ce9dc98
commit 7104035b17
3 changed files with 9 additions and 3 deletions

View File

@ -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)} */}

View File

@ -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)
}

View File

@ -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;