dingxin 5 years ago
parent
commit
cd33ca5c0c
1 changed files with 3 additions and 4 deletions
  1. 3
    4
      src/pages/activity/helpActivity/helpRecord.jsx

+ 3
- 4
src/pages/activity/helpActivity/helpRecord.jsx View File

41
   // 弹框确定按钮
41
   // 弹框确定按钮
42
   // eslint-disable-next-line react/sort-comp
42
   // eslint-disable-next-line react/sort-comp
43
   handleOk () {
43
   handleOk () {
44
+    this.setState({ visibleData: { visible: false, helpId: '', realtyConsultant: '' } })
44
     this.props.onCancel()
45
     this.props.onCancel()
45
-    this.setState({ dataSource: { records: [] } })
46
   }
46
   }
47
 
47
 
48
   // 弹框取消按钮
48
   // 弹框取消按钮
49
   handleCancel () {
49
   handleCancel () {
50
+    this.setState({ visibleData: { visible: false, helpId: '', realtyConsultant: '' } })
50
     this.props.onCancel()
51
     this.props.onCancel()
51
-    this.setState({ dataSource: { records: [] } })
52
   }
52
   }
53
 
53
 
54
   getList (params) {
54
   getList (params) {
55
-    console.log('paramsparamsparams', params)
56
-    if (params.helpId === '') {
55
+    if (params.helpRecordInitiateId === '') {
57
       return
56
       return
58
     }
57
     }
59
     request({ ...apis.helpActivity.helpPeopleDetails, params: { ...params } }).then(res => {
58
     request({ ...apis.helpActivity.helpPeopleDetails, params: { ...params } }).then(res => {