From 5c6ad9c59b64f631dc7a849143e407b349ab5d5a Mon Sep 17 00:00:00 2001 From: revive <1664535558@qq.com> Date: Wed, 4 Nov 2020 17:00:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B1=95=E7=A4=BA=E5=8E=86=E5=8F=B2=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/main_web/workspace/workspace.vue | 36 ++++++++++++++-------- 1 file changed, 23 insertions(+), 13 deletions(-) diff --git a/src/views/main_web/workspace/workspace.vue b/src/views/main_web/workspace/workspace.vue index 78d2866c..d440612d 100644 --- a/src/views/main_web/workspace/workspace.vue +++ b/src/views/main_web/workspace/workspace.vue @@ -2421,7 +2421,7 @@ >{{ currentMilestone.archName }} 版本{{ currentMilestone.number }}版本{{ currentMilestone.version }} {{ currentMilestone.strCreateTime @@ -2446,7 +2446,7 @@ {{ item.archName }} - 版本{{ item.number }} + 版本{{ item.version }} {{ item.strCreateTime }} { //耗时操作 @@ -4204,6 +4204,16 @@ export default { this.openOffice(file); } }, + /** + * 获取历史文件过滤 + */ + getMilstoneFile(archName){ + var files=this.folderFileList.listMyFiles.concat([]); + files.push(...this.folderFileList.listOtherFiles); + return files.filter(file=>{ + return(file.archName===archName && file.milestone===2) + }) + }, /** * 点击文件事件:直接打开文件 */ @@ -5296,9 +5306,9 @@ export default { }); return; } - + this.currentMilestone=file; this.dialogFileHistory = true; - this.loadFileMilestones(file); + this.listMilestones=this.getMilstoneFile(file.archName); this.currentArchID = file.archID; }, /** @@ -5306,7 +5316,7 @@ export default { */ currMilestoneChange: function () { if (this.currentMilestone.check) { - this.currentMileArchID = this.currentMilestone.archID; + this.currentMileArchID = this.currentMilestone.id; this.listMilestones.forEach((milestone) => { milestone.check = false; }); @@ -5471,7 +5481,7 @@ export default { * 设置历史文件 */ setMilestones: function () { - if (this.currentMileArchID == this.currentMilestone.archID) { + if (this.currentMileArchID == this.currentMilestone.id) { this.dialogFileHistory = false; return; }