Browse Source

关闭保存模板弹窗重置文件夹(3029)

zhangxc 5 years ago
parent
commit
b2cf981117
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/components/Operation/index.jsx

+ 4 - 4
src/components/Operation/index.jsx

@@ -222,7 +222,7 @@ class Operation extends Component {
         showSaveModule: false
       })
       diagShowTmp(false)
-      this.setState({ title: '',deptId:"",value:"",folderListShow:false })
+      this.setState({ title: '',deptId:"",value:"",folderListShow:false,folderNameVal:'未分类文件夹' })
       this.setState({fstName:''})
     }
   }
@@ -376,7 +376,7 @@ class Operation extends Component {
     const { type } = this.state;
     if (type == 3){
       diagShowTmp(false)
-      this.setState({ title: '',deptId:"",value:"",folderListShow:false })
+      this.setState({ title: '',deptId:"",value:"",folderListShow:false,folderNameVal:'',folderId:'' })
     }
   }
   setDeptId(id,name){
@@ -509,8 +509,8 @@ class Operation extends Component {
       {<ConfirmModal
         visible={diagShow}        //改为全局控制
         confirm={() => { this.makeSure() }}
-        close={() => { this.closeDiagBox()}}
-        cancel={() => {this.closeDiagBox()}}
+        // close={() => { this.closeDiagBox()}}
+        // cancel={() => {this.closeDiagBox()}}
         okText={this.state.okText}
         height={type==3&admin?365:type==3&!admin?275:200}
         width={type==3?585:300}