|
@@ -1,4 +1,4 @@
|
|
-// 渠道列表
|
|
|
|
|
|
+// 私有渠道列表
|
|
import React, { Component } from "react";
|
|
import React, { Component } from "react";
|
|
import {
|
|
import {
|
|
Form,
|
|
Form,
|
|
@@ -306,7 +306,7 @@ class ChannelUnit extends Component {
|
|
this.setState({
|
|
this.setState({
|
|
mvisible: "",
|
|
mvisible: "",
|
|
});
|
|
});
|
|
- this.loadData();
|
|
|
|
|
|
+ this.loadData(this.pageNo);
|
|
}
|
|
}
|
|
// 转交提示
|
|
// 转交提示
|
|
showConfirm() {
|
|
showConfirm() {
|
|
@@ -385,7 +385,7 @@ class ChannelUnit extends Component {
|
|
}
|
|
}
|
|
this.loadData(
|
|
this.loadData(
|
|
Math.min(
|
|
Math.min(
|
|
- this.state.ispage == undefined ? 1 : this.state.ispage,
|
|
|
|
|
|
+ this.state.pageNo == undefined ? 1 : this.state.pageNo,
|
|
Math.ceil((this.state.pagination.total - 1) / 10)
|
|
Math.ceil((this.state.pagination.total - 1) / 10)
|
|
)
|
|
)
|
|
);
|
|
);
|
|
@@ -397,7 +397,7 @@ class ChannelUnit extends Component {
|
|
}
|
|
}
|
|
// 移出渠道
|
|
// 移出渠道
|
|
remove() {
|
|
remove() {
|
|
- const { dataSource, selectedRows, ispage } = this.state;
|
|
|
|
|
|
+ const { dataSource, selectedRows, pageNo } = this.state;
|
|
const _this = this
|
|
const _this = this
|
|
Modal.confirm({
|
|
Modal.confirm({
|
|
title: "您确定将以下渠道移至公共渠道吗??",
|
|
title: "您确定将以下渠道移至公共渠道吗??",
|
|
@@ -448,10 +448,10 @@ class ChannelUnit extends Component {
|
|
}
|
|
}
|
|
_this.loadData(
|
|
_this.loadData(
|
|
dataSource.length === 1
|
|
dataSource.length === 1
|
|
- ? ispage === 1
|
|
|
|
|
|
+ ? pageNo === 1
|
|
? 1
|
|
? 1
|
|
- : ispage - 1
|
|
|
|
- : ispage
|
|
|
|
|
|
+ : pageNo - 1
|
|
|
|
+ : pageNo
|
|
)
|
|
)
|
|
}.bind(this),
|
|
}.bind(this),
|
|
}).always(
|
|
}).always(
|
|
@@ -575,7 +575,7 @@ class ChannelUnit extends Component {
|
|
this.state.paginations.current = data.data.pageNo;
|
|
this.state.paginations.current = data.data.pageNo;
|
|
this.state.paginations.total = data.data.totalCount;
|
|
this.state.paginations.total = data.data.totalCount;
|
|
this.setState({
|
|
this.setState({
|
|
- ispage: data.data.pageNo,
|
|
|
|
|
|
+ pageNo: data.data.pageNo,
|
|
});
|
|
});
|
|
}
|
|
}
|
|
if (data.data.list && !data.data.list.length) {
|
|
if (data.data.list && !data.data.list.length) {
|
|
@@ -797,6 +797,13 @@ class ChannelUnit extends Component {
|
|
>
|
|
>
|
|
重置
|
|
重置
|
|
</Button>
|
|
</Button>
|
|
|
|
+ <Button
|
|
|
|
+ type="primary"
|
|
|
|
+ onClick={this.addClick.bind(this)}
|
|
|
|
+ style={{ display: "float", float: "right" }}
|
|
|
|
+ >
|
|
|
|
+ 新增渠道
|
|
|
|
+ </Button>
|
|
</Form>
|
|
</Form>
|
|
</div>
|
|
</div>
|
|
</TabPane>
|
|
</TabPane>
|