dev01 2 years ago
parent
commit
ebd773b6ea

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

@@ -690,7 +690,7 @@ class ChannelUnit extends Component {
                     ))}
                   </Select>
                 </FormItem>
-                <FormItem>
+                {/* <FormItem>
                   <AutoComplete
                     className="certain-category-search"
                     dropdownClassName="certain-category-search-dropdown"
@@ -705,7 +705,7 @@ class ChannelUnit extends Component {
                   >
                     <Input />
                   </AutoComplete>
-                </FormItem>
+                </FormItem> */}
                 <FormItem>
                   <Select
                     placeholder={"渠道类型"}

+ 11 - 10
js/component/manageCenter/channelList/channelunit/publist.jsx

@@ -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) {