|
|
@@ -2681,7 +2681,7 @@ |
|
|
|
</div> |
|
|
|
<el-form-item> |
|
|
|
<el-input |
|
|
|
v-model="folderGroupData.folderGroupName" |
|
|
|
v-model="folderGroupData.FolderName" |
|
|
|
@keyup.enter.native="createFolderGroupSure" |
|
|
|
></el-input> |
|
|
|
</el-form-item> |
|
|
@@ -2938,16 +2938,23 @@ export default { |
|
|
|
isClient: back.isClient, // 是否是客户端 |
|
|
|
dialogNewFolderGroup: false, //新建文件分组组弹窗 |
|
|
|
folderGroupData: { |
|
|
|
folderGroupID: "", |
|
|
|
folderID: "", |
|
|
|
superID: "", |
|
|
|
levelId: "", |
|
|
|
folderGroupName: "", |
|
|
|
childCount: 0, |
|
|
|
createUserID: "", |
|
|
|
createTime: "", |
|
|
|
modifyUserID: "", |
|
|
|
modifyTime: "", |
|
|
|
Id:"", |
|
|
|
ProjId:"", |
|
|
|
SuperId:"", |
|
|
|
LevelId:"", |
|
|
|
FirstFolderId:"", |
|
|
|
FolderName:"", |
|
|
|
TemplateId:"", |
|
|
|
NodeId:"", |
|
|
|
SysCode:"", |
|
|
|
FileCount:0, |
|
|
|
ChildCount:0, |
|
|
|
Deleted:0, |
|
|
|
Customed:0, |
|
|
|
CreateUserId:"", |
|
|
|
CreateTime:"", |
|
|
|
ModifyUserId:"", |
|
|
|
ModifyTime:"", |
|
|
|
}, //文件分组数据 |
|
|
|
myListFolderGroups: [], // 我的文件分组数据 |
|
|
|
dbClickSelectedFolderGroupData: {}, //双击选中的当前文件夹分组对象 |
|
|
@@ -6412,27 +6419,27 @@ export default { |
|
|
|
*/ |
|
|
|
newCreateFolderGroup: function () { |
|
|
|
this.dialogNewFolderGroup = true; |
|
|
|
this.folderGroupData = { |
|
|
|
folderGroupID: "", |
|
|
|
folderID: "", |
|
|
|
superID: "", |
|
|
|
levelId: "", |
|
|
|
folderGroupName: "", |
|
|
|
childCount: 0, |
|
|
|
createUserID: "", |
|
|
|
createTime: "", |
|
|
|
modifyUserID: "", |
|
|
|
modifyTime: "", |
|
|
|
}; |
|
|
|
// this.folderGroupData = { |
|
|
|
// folderGroupID: "", |
|
|
|
// folderID: "", |
|
|
|
// superID: "", |
|
|
|
// levelId: "", |
|
|
|
// folderGroupName: "", |
|
|
|
// childCount: 0, |
|
|
|
// createUserID: "", |
|
|
|
// createTime: "", |
|
|
|
// modifyUserID: "", |
|
|
|
// modifyTime: "", |
|
|
|
// }; |
|
|
|
|
|
|
|
}, |
|
|
|
/** |
|
|
|
* 点击确定 保存文件夹组 |
|
|
|
*/ |
|
|
|
createFolderGroupSure: function () { |
|
|
|
var thisApp = this; |
|
|
|
async createFolderGroupSure(){ |
|
|
|
if ( |
|
|
|
this.folderGroupData.folderGroupName == null || |
|
|
|
this.folderGroupData.folderGroupName == "" |
|
|
|
this.folderGroupData.FolderName == null || |
|
|
|
this.folderGroupData.FolderName == "" |
|
|
|
) { |
|
|
|
this.$notify({ |
|
|
|
title: "温馨提示", |
|
|
@@ -6443,49 +6450,87 @@ export default { |
|
|
|
}); |
|
|
|
return; |
|
|
|
} |
|
|
|
this.folderGroupData.folderGroupID = this.dbClickSelectedFolderGroupData.folderGroupID; |
|
|
|
this.folderGroupData.superID = this.dbClickSelectedFolderGroupData.folderGroupID; |
|
|
|
this.folderGroupData.levelId = this.dbClickSelectedFolderGroupData.levelId; |
|
|
|
this.folderGroupData.folderID = this.nowFolder.folderID; |
|
|
|
this.folderGroupData.createUserID = sessionStorage.userId; |
|
|
|
debugger; |
|
|
|
this.$axios({ |
|
|
|
method: "post", |
|
|
|
url: encodeURI(process.env.API_HOST + "folders/foldergroup"), |
|
|
|
data: this.folderGroupData, |
|
|
|
}) |
|
|
|
.then((response) => { |
|
|
|
this.dialogNewFolderGroup = false; |
|
|
|
if (response.data.state == 1) { |
|
|
|
thisApp.refreshPages(); |
|
|
|
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, |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.folderGroupData={ |
|
|
|
Id:sessionStorage.userId, |
|
|
|
ProjId:sessionStorage.projId, |
|
|
|
SuperId:this.nowFolder.id, |
|
|
|
LevelId:this.nowFolder.levelId, |
|
|
|
FirstFolderId:this.nowFolder.firstFolderId, |
|
|
|
FolderName:this.folderGroupData.FolderName, |
|
|
|
TemplateId:this.nowFolder.templateId, |
|
|
|
SysCode:this.nowFolder.sysCode, |
|
|
|
FileCount:0, |
|
|
|
ChildCount:0, |
|
|
|
Deleted:0, |
|
|
|
Customed:2, |
|
|
|
CreateUserId:sessionStorage.userId, |
|
|
|
CreateTime:new Date(), |
|
|
|
ModifyUserId:sessionStorage.userId, |
|
|
|
ModifyTime:new Date(), |
|
|
|
} |
|
|
|
console.log(this.folderGroupData); |
|
|
|
const Res = await services.createSubFolder(this.folderGroupData); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
// createFolderGroupSure: function () { |
|
|
|
// var thisApp = this; |
|
|
|
// if ( |
|
|
|
// this.folderGroupData.folderGroupName == null || |
|
|
|
// this.folderGroupData.folderGroupName == "" |
|
|
|
// ) { |
|
|
|
// this.$notify({ |
|
|
|
// title: "温馨提示", |
|
|
|
// message: "请输入文件夹名称!", |
|
|
|
// type: "error", |
|
|
|
// offset: 100, |
|
|
|
// duration: 5000, |
|
|
|
// }); |
|
|
|
// return; |
|
|
|
// } |
|
|
|
// this.folderGroupData.folderGroupID = this.dbClickSelectedFolderGroupData.folderGroupID; |
|
|
|
// this.folderGroupData.superID = this.dbClickSelectedFolderGroupData.folderGroupID; |
|
|
|
// this.folderGroupData.levelId = this.dbClickSelectedFolderGroupData.levelId; |
|
|
|
// this.folderGroupData.folderID = this.nowFolder.folderID; |
|
|
|
// this.folderGroupData.createUserID = sessionStorage.userId; |
|
|
|
// debugger; |
|
|
|
// this.$axios({ |
|
|
|
// method: "post", |
|
|
|
// url: encodeURI(process.env.API_HOST + "folders/foldergroup"), |
|
|
|
// data: this.folderGroupData, |
|
|
|
// }) |
|
|
|
// .then((response) => { |
|
|
|
// this.dialogNewFolderGroup = false; |
|
|
|
// if (response.data.state == 1) { |
|
|
|
// thisApp.refreshPages(); |
|
|
|
// 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, |
|
|
|
// }); |
|
|
|
// }); |
|
|
|
// }, |
|
|
|
/** |
|
|
|
* 双击文件夹组名称 进入文件夹 |
|
|
|
*/ |
|
|
|