Commit 19b43bc6 by wufan

fix:修复替换bnn

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