Browse Source

[VersionBeta] V.1.0.0.0

[Adds]
1.修改文件拖拽至根目录的问题
new-cli
zxm 4 years ago
parent
commit
2ebf255101
1 changed files with 36 additions and 6 deletions
  1. +36
    -6
      src/views/main_web/workspace.vue

+ 36
- 6
src/views/main_web/workspace.vue View File

@@ -221,7 +221,7 @@
>{{item.title}}</span>
<!--文件分组面包屑-->
<span v-if="isShowBread" class="yiyun_text-title-workspace mr-20">
<draggable group="group" id="bread1-0" :list="myFileBreadNodeData">
<draggable group="group" sort=true id="bread1-0" :list="myFileBreadNodeData">
<a
class="yywenjiantitle_text1"
v-if="currentPageType==0"
@@ -6004,7 +6004,40 @@ export default {
var thisApp = this;
var sourceData = evt.draggedContext.element;
var targetData = evt.relatedContext.element;
if (!targetData && (targetData.folderGroupID == "myFile" || targetData.folderGroupID == "myComFile")){
if(typeof(targetData) == 'undefined' || typeof(targetData.folderGroupID) == 'undefined'){
if(!thisApp.isCommonPage){
targetData = {
archID: null,
childCount: 0,
createTime: "",
createUserID: "",
deleted: 0,
folderGroupID: "myFile",
folderGroupName: "我的文件",
folderID: "",
levelID: "",
modifyTime: "",
modifyUserID: "",
superID: ""
}
}else {
targetData = {
archID: null,
childCount: 0,
createTime: "",
createUserID: "",
deleted: 0,
folderGroupID: "myComFile",
folderGroupName: "公共文件",
folderID: "",
levelID: "",
modifyTime: "",
modifyUserID: "",
superID: ""
}
}
}
if (targetData != null && (targetData.folderGroupID == "myFile" || targetData.folderGroupID == "myComFile")){
targetData.folderID = this.nowFolder.folderID;
}
var draggableData = {};
@@ -6016,7 +6049,7 @@ export default {
userID: sessionStorage.userId
};
}
if (sourceData.folderGroupID != null) {
if (typeof(sourceData.folderGroupID) != 'undefined' && sourceData.folderGroupID != null) {
//把文件分组拖拽到文件分组
draggableData = {
sourceFolderGroupData: sourceData,
@@ -6069,9 +6102,6 @@ export default {
});
}
thisApp.refreshPages();
thisApp.$router.push({
name: "workspace"
});
})
.catch(error => {
console.log(error);


Loading…
Cancel
Save