Browse Source

修复翻页问题

HW 4 years ago
parent
commit
95010af213
1 changed files with 22 additions and 2 deletions
  1. 22 2
      js/component/manageCenter/project/task/myTaskOutsource.jsx

+ 22 - 2
js/component/manageCenter/project/task/myTaskOutsource.jsx

@@ -3326,7 +3326,17 @@ const MyTaskOutsource = React.createClass({
           maskClosable={false}
           visible={this.state.visible}
           onOk={this.visitOk}
-          onCancel={this.visitCancel}
+          onCancel={()=>{
+            this.setState({
+              visible: false,
+              speVisible: false,
+              modKey: "1",
+              updataSwicth: false,
+              projectSituationVisible: false,
+            });
+            this.companyReset();
+            this.loadData(this.state.page);
+          }}
         >
           <div style={{position:"relative"}}>
             <div style={{
@@ -4783,7 +4793,17 @@ const MyTaskOutsource = React.createClass({
           maskClosable={false}
           visible={this.state.speVisible}
           onOk={this.visitOk}
-          onCancel={this.visitCancel}
+          onCancel={()=>{
+            this.setState({
+              visible: false,
+              speVisible: false,
+              modKey: "1",
+              updataSwicth: false,
+              projectSituationVisible: false,
+            });
+            this.companyReset();
+            this.loadData(this.state.page);
+          }}
           width="900px"
           title=""
           footer=""