dev01 3 years ago
parent
commit
ebe226cabc

+ 12 - 12
js/component/manageCenter/channelList/channelunit/index.jsx

@@ -22,7 +22,7 @@ import AddChannel from "./addchannel"; //新增渠道
 import ChannelLog from "./channellog"; //转交日志
 import ChangeLog from "./changelog"; //更名日志
 import ChannelDetail from "./channeldetail"; //渠道详情
-import FollowDetail from "../../../../component/manageCenter/customer/NEW/intentionCustomer/followDetail";
+import FollowDetail from "../../../../component/manageCenter/customer/NEW/intentionCustomer/followDetail";//新增渠道跟进
 
 const { TabPane } = Tabs;
 const FormItem = Form.Item;
@@ -150,7 +150,6 @@ class ChannelUnit extends Component {
       }
     }
   }
-
   changeList(arr) {
     const newArr = [];
     this.state.columns.forEach((item) => {
@@ -328,7 +327,7 @@ class ChannelUnit extends Component {
           informationTransferVisible: true,
         });
       },
-      onCancel() {},
+      onCancel() { },
     });
   }
   //转交
@@ -380,6 +379,7 @@ class ChannelUnit extends Component {
   // 移出渠道
   remove() {
     const { dataSource, selectedRowKeys, ispage } = this.state;
+    const _this = this
     Modal.confirm({
       title: "您确定将以下渠道移至公共渠道吗??",
       content: (
@@ -409,24 +409,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) {

+ 1 - 1
js/component/manageCenter/customer/NEW/intentionCustomer/followDetail.jsx

@@ -502,7 +502,7 @@ const FollowDetail = React.createClass({
           maskClosable={false}
           className="customeDetails"
           footer=""
-          title="新增客户跟进"
+          title="新增渠道跟进"
           width="1000px"
           visible={this.state.visitModul}
           onOk={this.visitOk}