Переглянути джерело

[VersionBeta] V.1.0.0.0

[Adds]
1.修改公共文件夹拖动
master
zxm 4 роки тому
джерело
коміт
0eb288ac17
1 змінених файлів з 38 додано та 4 видалено
  1. +38
    -4
      src/views/main_web/workspace.vue

+ 38
- 4
src/views/main_web/workspace.vue Переглянути файл

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

/**新建文件分组 start*/
dialogNewFolderGroup: false, //新建文件分组组弹窗
@@ -2197,6 +2198,40 @@ export default {
/**新建文件分组 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() {
window["refreshFiles"] = () => {
this.refreshPages();
@@ -5898,7 +5933,6 @@ export default {
var thisApp = this;
var sourceData = evt.draggedContext.element;
var targetData = evt.relatedContext.element;
console.log(targetData.folderGroupID)
if (targetData.folderGroupID == "myFile" || targetData.folderGroupID == "myComFile") {
targetData.folderID = this.nowFolder.folderID;
}
@@ -5962,8 +5996,8 @@ export default {
offset: 100,
duration: 5000
});
thisApp.refreshPages();
}
thisApp.refreshPages();
})
.catch(error => {
console.log(error);