From 9d8e668dd2b3361515590175e8fbd0014c89f81b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Mon, 21 Feb 2022 02:03:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/xm/core/xmProject/XmProjectMng.vue | 70 ++++++++++++++++--- .../xm/core/xmProject/XmProjectTplMng.vue | 12 ++-- 2 files changed, 66 insertions(+), 16 deletions(-) diff --git a/src/views/xm/core/xmProject/XmProjectMng.vue b/src/views/xm/core/xmProject/XmProjectMng.vue index 91484ba6..a9a56f7b 100644 --- a/src/views/xm/core/xmProject/XmProjectMng.vue +++ b/src/views/xm/core/xmProject/XmProjectMng.vue @@ -3,7 +3,7 @@ - + @@ -81,7 +81,7 @@
{{p.name}}
-
{{p.code}}
+
{{p.code}} 复制
{{p.totalBugCnt==null?0:p.totalBugCnt}} @@ -148,11 +148,11 @@ - - + 取消关注 - 关注 - 日志 + 关注 + 日志 + 复制 - + --> @@ -201,6 +200,32 @@ + + + + + + + + + + 复制为新的模板 + 复制为新的项目 + + + 拷贝计划 + 拷贝任务 + 拷贝项目组成员 + + + + 取 消 + 确 定 + + { + this.load.add=false; + var tips = res.data.tips; + if(tips.isOk){ + if(this.xmProjectCopy.isTpl=='0'){ + this.searchXmProjects() + } + } + this.$message({showClose: true, message: tips.msg, type: tips.isOk?'success':'error' }); + + }) + }, /**end 自定义函数请在上面加**/ },//end methods diff --git a/src/views/xm/core/xmProject/XmProjectTplMng.vue b/src/views/xm/core/xmProject/XmProjectTplMng.vue index 5c3ed403..6417a174 100644 --- a/src/views/xm/core/xmProject/XmProjectTplMng.vue +++ b/src/views/xm/core/xmProject/XmProjectTplMng.vue @@ -12,14 +12,14 @@ - + @@ -50,7 +50,7 @@ 取 消 - 确 定 + 确 定 @@ -339,12 +339,12 @@ copyTo(this.xmProjectCopy).then(res=>{ this.load.add=false; - var tips = res.tips; + var tips = res.data.tips; if(tips.isOk){ if(this.xmProjectCopy.isTpl){ this.searchXmProjects() } - + this.$emit("copy",res.data.data) } this.$message({showClose: true, message: tips.msg, type: tips.isOk?'success':'error' });