Explorar el Código

保存重置文件夹

zhangxc hace 5 años
padre
commit
117ca6ab10
Se han modificado 1 ficheros con 6 adiciones y 5 borrados
  1. 6 5
      src/components/Operation/index.jsx

+ 6 - 5
src/components/Operation/index.jsx

@@ -351,17 +351,18 @@ class Operation extends Component {
             return false;
           }
         }
-        // this.setState({
-        //   folderNameVal:'',
-        //   folderId:'',
-        //   fstName:''
-        // })
+        
         if(folderNameVal=="未分类文件夹") {
           let folderIdNull =  floderListAdmin.find(item =>item.name == "未分类文件夹").id
           saveDataAlls(title,sex,deptId,fstName,folderIdNull,folderNameVal);
         }else {
           saveDataAlls(title,sex,deptId,fstName,folderId,folderNameVal);
         }
+        this.setState({
+          folderNameVal:'未分类文件夹',
+          folderId:'',
+          fstName:''
+        })
       }else{
         saveDataAll(title,sex,fstName);
       }