Commit caba870f by zhangleyuan

feat:处理参培人数显示为0的问题

parent cabbd5fa
...@@ -55,7 +55,7 @@ class LearningData extends React.Component { ...@@ -55,7 +55,7 @@ class LearningData extends React.Component {
coverUrl: coverUrl || defaultCover, coverUrl: coverUrl || defaultCover,
courseNum, courseNum,
created, created,
cultureCustomerNum:0 cultureCustomerNum
}) })
}) })
} }
......
...@@ -141,10 +141,8 @@ class UserLearningData extends React.Component { ...@@ -141,10 +141,8 @@ class UserLearningData extends React.Component {
storeUserId:User.getStoreUserId() storeUserId:User.getStoreUserId()
} }
PlanService.removePlanCustomer(params).then((res) => { PlanService.removePlanCustomer(params).then((res) => {
this.handleFetchDataList(); this.handleFetchDataList();
message.success('解绑成功'); message.success('解绑成功');
}); });
} }
handleCloseUnbundEmployeeModal = ()=>{ handleCloseUnbundEmployeeModal = ()=>{
...@@ -389,6 +387,7 @@ class UserLearningData extends React.Component { ...@@ -389,6 +387,7 @@ class UserLearningData extends React.Component {
visible={unbundEmployeeModalVisible} visible={unbundEmployeeModalVisible}
onClose={this.handleCloseUnbundEmployeeModal} onClose={this.handleCloseUnbundEmployeeModal}
storeCustomerId={storeCustomerId} storeCustomerId={storeCustomerId}
onConfirm={()=>{this.handleFetchDataList();this.handleCloseUnbundEmployeeModal();}}
/> />
} }
......
...@@ -93,7 +93,7 @@ class UnbundEmployeeModal extends React.Component { ...@@ -93,7 +93,7 @@ class UnbundEmployeeModal extends React.Component {
} }
PlanService.removePlanCustomer(params).then((res) => { PlanService.removePlanCustomer(params).then((res) => {
message.success('解绑成功'); message.success('解绑成功');
this.props.onClose(); this.props.onConfirm();
}); });
} }
render() { render() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment