|
@@ -347,7 +347,7 @@ class ChannelUnit extends Component {
|
|
|
informationTransferVisible: true,
|
|
|
});
|
|
|
},
|
|
|
- onCancel() {},
|
|
|
+ onCancel() { },
|
|
|
});
|
|
|
}
|
|
|
//转交
|
|
@@ -399,6 +399,7 @@ class ChannelUnit extends Component {
|
|
|
// 移出渠道
|
|
|
remove() {
|
|
|
const { dataSource, selectedRowKeys, ispage } = this.state;
|
|
|
+ const _this = this
|
|
|
Modal.confirm({
|
|
|
title: "您确定将以下渠道移至公共渠道吗??",
|
|
|
content: (
|
|
@@ -428,24 +429,24 @@ class ChannelUnit extends Component {
|
|
|
thedata = {};
|
|
|
} else {
|
|
|
message.success("移除成功");
|
|
|
- this.loadData(
|
|
|
- dataSource.length === 1
|
|
|
- ? ispage === 1
|
|
|
- ? 1
|
|
|
- : ispage - 1
|
|
|
- : ispage
|
|
|
- );
|
|
|
}
|
|
|
+ _this.loadData(
|
|
|
+ dataSource.length === 1
|
|
|
+ ? ispage === 1
|
|
|
+ ? 1
|
|
|
+ : ispage - 1
|
|
|
+ : ispage
|
|
|
+ )
|
|
|
}.bind(this),
|
|
|
}).always(
|
|
|
function () {
|
|
|
- this.setState({
|
|
|
+ _this.setState({
|
|
|
loading: false,
|
|
|
});
|
|
|
}.bind(this)
|
|
|
);
|
|
|
},
|
|
|
- onCancel() {},
|
|
|
+ onCancel() { },
|
|
|
});
|
|
|
}
|
|
|
selectAuto(value, options) {
|