Commit 19b43bc6 by wufan

fix:修复替换bnn

parent f4a87aac
......@@ -108,6 +108,13 @@ class PlaybackData extends React.Component {
})
}
onShowSizeChange = (current, size) => {
if (current == size) {
return;
}
this.setState({ size }, this.fetchUserData)
}
render() {
const { playbackData, total, current, size, link} = this.state
return (
......@@ -135,6 +142,7 @@ class PlaybackData extends React.Component {
current={current - 1}
pageSize={size}
total={total}
onShowSizeChange={this.onShowSizeChange}
toPage={(page) => {
this.fetchPlaybackList(page + 1);
}}
......
......@@ -301,6 +301,7 @@ class FolderManage extends React.Component {
// 翻页
handleChangePage = (field, value) => {
debugger
const { query, folderPathList } = this.state;
const { currentRootDisk } = this.props;
const employeeDisk = currentRootDisk.disk === 'EMPLOYEE' && folderPathList.length === 2;
......@@ -310,7 +311,9 @@ class FolderManage extends React.Component {
const _query = _.clone(query);
_query[field] = value;
if (field === 'size') {
debugger
_query.current = 1;
_query.size = value;
}
this.setState({ query: _query }, () => {
......
......@@ -2,7 +2,7 @@
* @Author: wufan
* @Date: 2020-11-30 10:47:38
* @LastEditors: wufan
* @LastEditTime: 2020-12-23 10:58:10
* @LastEditTime: 2020-12-23 13:49:18
* @Description: web店铺banner页面
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
......@@ -133,6 +133,7 @@ class StoreWebDecoration extends React.Component {
this.setState({
showSelectFileModal: true,
choosedBannerId:""
});
};
......
......@@ -2,7 +2,7 @@
* @Author: wufan
* @Date: 2020-11-30 10:47:38
* @LastEditors: wufan
* @LastEditTime: 2020-12-23 11:07:32
* @LastEditTime: 2020-12-23 13:49:59
* @Description: web店铺banner页面
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
......@@ -132,6 +132,7 @@ class StoreWebDecoration extends React.Component {
}
this.setState({
showSelectFileModal: true,
choosedBannerId:""
});
};
......@@ -292,9 +293,6 @@ class StoreWebDecoration extends React.Component {
};
StoreService.editStoreBanner(params).then((res) => {
message.success("设置成功");
this.setState({
choosedBannerId:""
})
this.getStoreDecorationList();
this.state.photoclip.clear();
});
......
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