zhoulisen 5 yıl önce
ebeveyn
işleme
f77ec0c352

+ 7
- 6
src/pages/activity/dataRecord/index.jsx Dosyayı Görüntüle

@@ -39,6 +39,7 @@ const DataRecord = props => {
39 39
     }
40 40
 
41 41
     function tabsCallback(e) {
42
+        
42 43
         setTab(e)
43 44
     }
44 45
 
@@ -100,7 +101,7 @@ const DataRecord = props => {
100 101
                         <span style={{ fontSize: '46px', color: '#fff', marginLeft: '26px', fontFamily: 'fantasy' }}>{data.sharePersons || '0'}</span>
101 102
                     </div>
102 103
                     <div style={{
103
-                        textAlign: 'center', display: 'flex', justifyContent: 'center', lineHeight: '100px', background: 'linear-gradient(144deg,rgba(0,175,141,1) 0%,rgba(115,132,209,1) 100%)', height: '100px',
104
+                        textAlign: 'center', display: 'flex', justifyContent: 'center', lineHeight: '100px', background: 'linear-gradient(144deg,rgba(0,175,141,1) 0%,rgba(115,231,209,1) 100%)', height: '100px',
104 105
                         borderRadius: '12px', width: '32%'
105 106
                     }}>
106 107
                         <span style={{ fontSize: '20px', color: '#fff' }}>分享总次数 </span>
@@ -120,15 +121,15 @@ const DataRecord = props => {
120 121
             </Tabs>
121 122
             <div style={{ marginTop: '20px' }}>
122 123
                 {/* 访问人数 */}
123
-                {(tab === '1' && < Visitors id={id} type={type} />)}
124
+                {(tab === '1' && < Visitors id={id} type={type} getData={()=>getData({ id: id, type: type })}/>)}
124 125
                 {/* 访问次数 */}
125
-                {(tab === '2' && <VisitNum id={id} type={type}/>)}
126
+                {(tab === '2' && <VisitNum id={id} type={type} getData={()=>getData({ id: id, type: type })}/>)}
126 127
                 {/* 新增注册用户 */}
127
-                {(tab === '3' && <Newuser id={id} type={type}/>)}
128
+                {(tab === '3' && <Newuser id={id} type={type} getData={()=>getData({ id: id, type: type })}/>)}
128 129
                 {/* 分享人数 */}
129
-                {(tab === '4' && <Shares id={id} type={type}/>)}
130
+                {(tab === '4' && <Shares id={id} type={type} getData={()=>getData({ id: id, type: type })}/>)}
130 131
                 {/* 分享次数 */}
131
-                {(tab === '5' && <ShareNum id={id} type={type}/>)}
132
+                {(tab === '5' && <ShareNum id={id} type={type} getData={()=>getData({ id: id, type: type })}/>)}
132 133
 
133 134
                 {/* { (tab === 'desc' && <Icon type="question-circle" theme="filled" style={{ fontSize: '25px', color: '#F00', marginLeft:'30px'}} />)} */}
134 135
 

+ 1
- 0
src/pages/activity/dataRecord/table/newuser.jsx Dosyayı Görüntüle

@@ -28,6 +28,7 @@ const header = props => {
28 28
     console.log(params)
29 29
     request({ ...apis.activityDataStatis.activityAddRegist, params: {...params,activityId: activityId, activityType: activityType,...date  }}).then( data=> {
30 30
       console.log(data)
31
+      props.getData()
31 32
       setData(data)
32 33
     }).catch(e=>{
33 34
       console.log(e)

+ 1
- 0
src/pages/activity/dataRecord/table/shareNum.jsx Dosyayı Görüntüle

@@ -30,6 +30,7 @@ const date = {
30 30
       console.log(params)
31 31
       request({ ...apis.activityDataStatis.activityShareNum, params: {...params, activityId: activityId, activityType: activityType,...date  }}).then( data=> {
32 32
         console.log(data)
33
+        props.getData()
33 34
         setData(data)
34 35
       }).catch(e=>{
35 36
         console.log(e)

+ 1
- 0
src/pages/activity/dataRecord/table/shares.jsx Dosyayı Görüntüle

@@ -30,6 +30,7 @@ const header = props => {
30 30
     console.log(params)
31 31
     request({ ...apis.activityDataStatis.activitySharePersonNum, params: { ...params, activityId: activityId, activityType: activityType, ...date } }).then(data => {
32 32
       console.log(data)
33
+      props.getData()
33 34
       setData(data)
34 35
     }).catch(e => {
35 36
       console.log(e)

+ 1
- 0
src/pages/activity/dataRecord/table/visitNum.jsx Dosyayı Görüntüle

@@ -28,6 +28,7 @@ const header = props => {
28 28
     console.log(params)
29 29
     request({ ...apis.activityDataStatis.activityVisitNum, params: { ...params, activityId: activityId, activityType: activityType, ...date } }).then(data => {
30 30
       console.log(data)
31
+      props.getData()
31 32
       setData(data)
32 33
     }).catch(e => {
33 34
       console.log(e)

+ 1
- 0
src/pages/activity/dataRecord/table/visitors.jsx Dosyayı Görüntüle

@@ -32,6 +32,7 @@ const header = props => {
32 32
     console.log(params)
33 33
     request({ ...apis.activityDataStatis.activityVisitPersonNum, params: {...params, activityId: activityId, activityType: activityType ,...date  }}).then( data=> {
34 34
       console.log(data)
35
+      props.getData()
35 36
       setData(data)
36 37
     }).catch(e=>{
37 38
       console.log(e)

+ 2
- 2
src/pages/customer/customerlist/index.jsx Dosyayı Görüntüle

@@ -628,14 +628,14 @@ function body(props) {
628 628
           //     onClick: () => toCustomerDateil(record),
629 629
           //   };
630 630
           // }}
631
-          dataSource={dataSource.records} columns={privateColumns} pagination={{ current: dataSource.current, total: dataSource.total, pageSize: dataSource.size, onChange }} rowKey="customerList" /> :
631
+          dataSource={dataSource.records} columns={privateColumns} pagination={{ current: dataSource.current, total: dataSource.total, pageSize: dataSource.size, onChange }} rowKey={r=>r.personId} /> :
632 632
         <Table rowSelection={rowSelection}
633 633
           // onRow={record => {
634 634
           //   return {
635 635
           //     onClick: () => publicCustomerDetail(record),
636 636
           //   };
637 637
           // }}
638
-          dataSource={dataSource.records} columns={publicColumns} pagination={{ current: dataSource.current, total: dataSource.total, pageSize: dataSource.size, onChange }} rowKey="customerList" />
638
+          dataSource={dataSource.records} columns={publicColumns} pagination={{ current: dataSource.current, total: dataSource.total, pageSize: dataSource.size, onChange }} rowKey={r=>r.personId} />
639 639
       }
640 640
 
641 641
       {/* 调整归属 */}