|
|
@@ -114,16 +114,18 @@ class Approvel extends Component {
|
|
|
height={this.state.height}>
|
|
|
<Skeleton loading={this.state.isMyapplyding} active paragraph={{rows: 3}}>
|
|
|
{
|
|
|
+ this.state.applyList.length > 0 ?
|
|
|
this.state.applyList.map((itemdata,index) =>
|
|
|
<ApprovelItem itemdata={itemdata} isMyApply={true} index={index} onItemClick={this.onItemClick.bind(this)}/>
|
|
|
- )
|
|
|
+ ) :
|
|
|
+ <List dataSource={this.state.applyList}
|
|
|
+ renderItem={(applyListBean,index) => (
|
|
|
+ <List.Item>
|
|
|
+ <ApprovelItem itemdata={applyListBean} isMyApply={true} index={index} onItemClick={this.onItemClick.bind(this)}/>
|
|
|
+ </List.Item>
|
|
|
+ )}/>
|
|
|
}
|
|
|
- {/*<List dataSource={this.state.applyList}*/}
|
|
|
- {/*renderItem={(applyListBean,index) => (*/}
|
|
|
- {/*<List.Item>*/}
|
|
|
- {/*<ApprovelItem itemdata={applyListBean} isMyApply={true} index={index} onItemClick={this.onItemClick.bind(this)}/>*/}
|
|
|
- {/*</List.Item>*/}
|
|
|
- {/*)}/>*/}
|
|
|
+
|
|
|
</Skeleton>
|
|
|
</RefreshLayout>
|
|
|
|
|
|
@@ -137,16 +139,18 @@ class Approvel extends Component {
|
|
|
height={this.state.height}>
|
|
|
<Skeleton loading={this.state.isMyapprovedload} active paragraph={{rows: 3}}>
|
|
|
{
|
|
|
+ this.state.approvelList.length > 0 ?
|
|
|
this.state.approvelList.map((itemdata,index) =>
|
|
|
<ApprovelItem itemdata={itemdata}isMyApply={false} index={index} onItemClick={this.onItemClick.bind(this)}/>
|
|
|
- )
|
|
|
+ ) :
|
|
|
+ <List dataSource={this.state.approvelList}
|
|
|
+ renderItem={(approvelListBean,index) => (
|
|
|
+ <List.Item>
|
|
|
+ <ApprovelItem itemdata={approvelListBean}isMyApply={false} index={index} onItemClick={this.onItemClick.bind(this)}/>
|
|
|
+ </List.Item>
|
|
|
+ )}/>
|
|
|
}
|
|
|
- {/*<List dataSource={this.state.approvelList}*/}
|
|
|
- {/*renderItem={(approvelListBean,index) => (*/}
|
|
|
- {/*<List.Item>*/}
|
|
|
- {/*<ApprovelItem itemdata={approvelListBean}isMyApply={false} index={index} onItemClick={this.onItemClick.bind(this)}/>*/}
|
|
|
- {/*</List.Item>*/}
|
|
|
- {/*)}/>*/}
|
|
|
+
|
|
|
</Skeleton>
|
|
|
</RefreshLayout>
|
|
|
|