diff --git a/src/views/main_web/workspace.vue b/src/views/main_web/workspace.vue
index fc6e54f9..4d97886e 100644
--- a/src/views/main_web/workspace.vue
+++ b/src/views/main_web/workspace.vue
@@ -613,11 +613,14 @@
-
+
@@ -850,18 +853,20 @@
{{ file.version }}
-
-
+
+
-
+
+ @mouseout="ishideIcon">
@@ -877,8 +882,10 @@
{{foldergroup.childCount}}个项目
-
+
+
@@ -5703,18 +5710,6 @@ export default {
this.showAllAppManagement();
},
/****协作空间 拖拽功能方法 start*/
- draggableStart: function (evt) {
- },
- draggableEnd: function (evt) {
- },
- draggableChange: function (evt) {
- },
- draggableMove: function (evt, orginoverflow) {
- },
- draggableClone: function (evt) {
- },
- handleListChange: function (event) {
- },
/**
* 新建文件夹显示弹窗
*/
@@ -6008,7 +6003,75 @@ export default {
duration: 5000
});
});
- }
+ },
+ /**
+ * 托拽移动
+ */
+ draggableMove: function (evt) {
+ var thisApp = this
+ var sourceData = evt.draggedContext.element
+ var targetData =evt.relatedContext.element
+ var draggableData = {}
+ console.log(sourceData)
+ console.log(targetData)
+ if(sourceData.archID != null){
+ alert("把文件拖拽到文件分组");
+ //把文件拖拽到文件分组
+ draggableData={
+ sourceArchData:sourceData,
+ targetFolderGroupData:targetData,
+ userID:sessionStorage.userId
+ }
+ }
+ if(sourceData.folderGroupID != null){
+ alert("把文件分组拖拽到文件分组");
+ //把文件分组拖拽到文件分组
+ draggableData={
+ sourceFolderGroupData:sourceData,
+ targetFolderGroupData:targetData,
+ userID:sessionStorage.userId
+ }
+ }
+ //说明目标数据时文件分组
+ this.$axios({
+ method: "post",
+ url: encodeURI(process.env.API_HOST + "folders/foldergroup/draggable"),
+ data: draggableData
+ }).then(response => {
+ if (response.data.state == 1) {
+ if (this.dbClickSelectedFolderGroupData == null || JSON.stringify(this.dbClickSelectedFolderGroupData) == '{}') {
+ this.folderGroupBreads=[]
+ this.listFiles();
+ }else {
+ this.intoFoldergroup(this.dbClickSelectedFolderGroupData);
+ }
+ this.$notify({
+ title: "恭喜您",
+ message: "操作成功!",
+ type: "success",
+ offset: 100,
+ duration: 2500
+ });
+ } else {
+ this.$notify({
+ title: "温馨提示",
+ message: response.data.message,
+ type: "error",
+ offset: 100,
+ duration: 5000
+ });
+ }
+ }).catch(error => {
+ console.log(error);
+ this.$notify({
+ title: "温馨提示",
+ message: "操作失败!",
+ type: "error",
+ offset: 100,
+ duration: 5000
+ });
+ });
+ },
/****协作空间 拖拽功能方法 end*/
},
watch: {