Преглед изворни кода

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

zhangxc пре 5 година
родитељ
комит
b2cf981117
1 измењених фајлова са 4 додато и 4 уклоњено
  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
         showSaveModule: false
       })
       })
       diagShowTmp(false)
       diagShowTmp(false)
-      this.setState({ title: '',deptId:"",value:"",folderListShow:false })
+      this.setState({ title: '',deptId:"",value:"",folderListShow:false,folderNameVal:'未分类文件夹' })
       this.setState({fstName:''})
       this.setState({fstName:''})
     }
     }
   }
   }
@@ -376,7 +376,7 @@ class Operation extends Component {
     const { type } = this.state;
     const { type } = this.state;
     if (type == 3){
     if (type == 3){
       diagShowTmp(false)
       diagShowTmp(false)
-      this.setState({ title: '',deptId:"",value:"",folderListShow:false })
+      this.setState({ title: '',deptId:"",value:"",folderListShow:false,folderNameVal:'',folderId:'' })
     }
     }
   }
   }
   setDeptId(id,name){
   setDeptId(id,name){
@@ -509,8 +509,8 @@ class Operation extends Component {
       {<ConfirmModal
       {<ConfirmModal
         visible={diagShow}        //改为全局控制
         visible={diagShow}        //改为全局控制
         confirm={() => { this.makeSure() }}
         confirm={() => { this.makeSure() }}
-        close={() => { this.closeDiagBox()}}
-        cancel={() => {this.closeDiagBox()}}
+        // close={() => { this.closeDiagBox()}}
+        // cancel={() => {this.closeDiagBox()}}
         okText={this.state.okText}
         okText={this.state.okText}
         height={type==3&admin?365:type==3&!admin?275:200}
         height={type==3&admin?365:type==3&!admin?275:200}
         width={type==3?585:300}
         width={type==3?585:300}