Browse Source

[VersionBeta] V.1.0.0.0

[Adds]
1.历史文件操作限制,操作提示
master
xzx 4 years ago
parent
commit
e9fb83a052
1 changed files with 23 additions and 0 deletions
  1. +23
    -0
      src/views/main_web/workspace.vue

+ 23
- 0
src/views/main_web/workspace.vue View File

@@ -4233,6 +4233,18 @@ export default {
* 设置历史文件界面
*/
showFileMilestone: function(file) {
if(file.status == 1 && file.modifyUserID != sessionStorage.userId)
{
this.$notify({
title: "温馨提示",
message: "其他人编辑中,不能设置历史文件",
type: "warning",
offset: 100,
duration: 5000
});
return;
}

this.dialogFileHistory = true;
this.loadFileMilestones(file);
this.currentArchID = file.archID;
@@ -4275,6 +4287,17 @@ export default {
if (this.isCreating) {
return;
}
if(file.status == 1 && file.modifyUserID != sessionStorage.userId)
{
this.$notify({
title: "温馨提示",
message: "其他人编辑中,不能设置历史文件",
type: "warning",
offset: 100,
duration: 5000
});
return;
}
this.isCreating = true;
var thisApp = this;
this.$axios({