Browse Source

[VersionBeta] V.1.0.0.0

[Adds]
1.修改公共文件夹拖动
new-cli
zxm 4 years ago
parent
commit
0eb288ac17
1 changed files with 38 additions and 4 deletions
  1. +38
    -4
      src/views/main_web/workspace.vue

+ 38
- 4
src/views/main_web/workspace.vue View File

@@ -358,8 +358,9 @@
:list="myFilesList" :list="myFilesList"
group="group" group="group"
:move="draggableMove" :move="draggableMove"
@end="draggableEnd"
@end="draggableEnd"
> >
<!-- @remove="draggableRemove"-->
<div <div
class="lisy-group-item" class="lisy-group-item"
v-for="file in myFilesList" v-for="file in myFilesList"
@@ -2131,7 +2132,7 @@ export default {
dialogNewSuperMapVisible: false, dialogNewSuperMapVisible: false,
newSuperMap: { showName: "", description: "" }, newSuperMap: { showName: "", description: "" },
mapAddress: "北京天安门", mapAddress: "北京天安门",
isClient: true, // 是否是客户端
isClient: false, // 是否是客户端


/**新建文件分组 start*/ /**新建文件分组 start*/
dialogNewFolderGroup: false, //新建文件分组组弹窗 dialogNewFolderGroup: false, //新建文件分组组弹窗
@@ -2197,6 +2198,40 @@ export default {
/**新建文件分组 end*/ /**新建文件分组 end*/
}; };
}, },
created:function(){
this.myFileBreadNodeData= [
{
archID: null,
childCount: 0,
createTime: "",
createUserID: "",
deleted: 0,
folderGroupID: "myFile",
folderGroupName: "我的文件",
folderID: "",
levelID: "",
modifyTime: "",
modifyUserID: "",
superID: ""
}
]
this.myComFileBreadNodeData= [
{
archID: null,
childCount: 0,
createTime: "",
createUserID: "",
deleted: 0,
folderGroupID: "myComFile",
folderGroupName: "公共文件",
folderID: "",
levelID: "",
modifyTime: "",
modifyUserID: "",
superID: ""
}
]
},
mounted: function() { mounted: function() {
window["refreshFiles"] = () => { window["refreshFiles"] = () => {
this.refreshPages(); this.refreshPages();
@@ -5898,7 +5933,6 @@ export default {
var thisApp = this; var thisApp = this;
var sourceData = evt.draggedContext.element; var sourceData = evt.draggedContext.element;
var targetData = evt.relatedContext.element; var targetData = evt.relatedContext.element;
console.log(targetData.folderGroupID)
if (targetData.folderGroupID == "myFile" || targetData.folderGroupID == "myComFile") { if (targetData.folderGroupID == "myFile" || targetData.folderGroupID == "myComFile") {
targetData.folderID = this.nowFolder.folderID; targetData.folderID = this.nowFolder.folderID;
} }
@@ -5962,8 +5996,8 @@ export default {
offset: 100, offset: 100,
duration: 5000 duration: 5000
}); });
thisApp.refreshPages();
} }
thisApp.refreshPages();
}) })
.catch(error => { .catch(error => {
console.log(error); console.log(error);


Loading…
Cancel
Save