Commit 4f7b45bf by zhangleyuan

feat:联调云盘相关的接口

parent 60e3ec46
...@@ -364,7 +364,7 @@ class FolderList extends React.Component { ...@@ -364,7 +364,7 @@ class FolderList extends React.Component {
const currentFolder = folderPathList[folderPathList.length - 1]; const currentFolder = folderPathList[folderPathList.length - 1];
const { instId } = window.currentUserInstInfo; const { instId } = window.currentUserInstInfo;
const params = { const params = {
instId, createId:User.getUserId(),
name: folderName, name: folderName,
disk: currentRootDisk.disk, disk: currentRootDisk.disk,
parentId: currentFolder.id, parentId: currentFolder.id,
...@@ -565,7 +565,6 @@ class FolderList extends React.Component { ...@@ -565,7 +565,6 @@ class FolderList extends React.Component {
const hasManagementAuthority = currentRootDisk.uploadPower; const hasManagementAuthority = currentRootDisk.uploadPower;
// 公共文件权限和复制权限 // 公共文件权限和复制权限
const { folderType, rights } = record; const { folderType, rights } = record;
console.log("rights",rights);
const menu = ( const menu = (
<Menu> <Menu>
{ {
......
...@@ -215,11 +215,13 @@ class FolderManage extends React.Component { ...@@ -215,11 +215,13 @@ class FolderManage extends React.Component {
let params = { let params = {
disk, disk,
moveIds: sourceFileIds, moveIds: sourceFileIds,
storeId:User.getStoreId(),
createId:User.getUserId()
} }
if (selectFolderPathList.length > 1) { if (selectFolderPathList.length > 1) {
params.newParentId = id params.newParentId = id
} }
Service.Hades('public/hadesStore/moveFolderr', params).then((res) => { Service.Hades('public/hadesStore/moveFolder', params).then((res) => {
// 判断是否将文件移动到了自身或者子目录 // 判断是否将文件移动到了自身或者子目录
const { result = {} } = res; const { result = {} } = res;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment