From c1b327e7e679e07039efd564b2fb71772f8e5dd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Thu, 21 Jul 2022 09:56:48 +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 --- .../xmTestPlanCase/XmTestPlanCaseEdit.vue | 22 ++++++++--------- .../core/xmTestPlanCase/XmTestPlanCaseMng.vue | 24 +++++++++---------- 2 files changed, 22 insertions(+), 24 deletions(-) diff --git a/src/views/xm/core/xmTestPlanCase/XmTestPlanCaseEdit.vue b/src/views/xm/core/xmTestPlanCase/XmTestPlanCaseEdit.vue index f2a3ab0a..9e7068da 100644 --- a/src/views/xm/core/xmTestPlanCase/XmTestPlanCaseEdit.vue +++ b/src/views/xm/core/xmTestPlanCase/XmTestPlanCaseEdit.vue @@ -150,11 +150,8 @@ - - - 继续下一条执行用例 - - + +
@@ -162,13 +159,14 @@ {{formatDicts(dicts,'testStepTcode',editForm.execStatus)}} - - - - {{item.name}} - - - + + + + {{item.name}} + + + + 下一条
diff --git a/src/views/xm/core/xmTestPlanCase/XmTestPlanCaseMng.vue b/src/views/xm/core/xmTestPlanCase/XmTestPlanCaseMng.vue index 9aba0f43..457921c1 100644 --- a/src/views/xm/core/xmTestPlanCase/XmTestPlanCaseMng.vue +++ b/src/views/xm/core/xmTestPlanCase/XmTestPlanCaseMng.vue @@ -70,7 +70,7 @@ - + @@ -330,18 +330,18 @@ export default { }, onEditFields(row){ Object.assign(this.editForm,row) - this.editFormBak={...this.editForm} - if(row.execStatus && row.next){ - var index=this.xmTestPlanCases.findIndex(k=>k.caseId==this.editForm.caseId) - if(index==this.xmTestPlanCases.length-1){ - this.editFormVisible=false; - this.$notify({position:'bottom-left',showClose:true,message:"已是最后一条数据",type:'error'}) - return; - } - this.editForm=this.xmTestPlanCases[index+1] - this.$refs.xmTestPlanCaseTable.setCurrentRow(this.editForm) - this.editFormBak={...this.editForm} + this.editFormBak={...this.editForm} + }, + nextEdit(){ + var index=this.xmTestPlanCases.findIndex(k=>k.caseId==this.editForm.caseId) + if(index==this.xmTestPlanCases.length-1){ + this.editFormVisible=false; + this.$notify({position:'bottom-left',showClose:true,message:"已是最后一条数据",type:'error'}) + return; } + this.editForm=this.xmTestPlanCases[index+1] + this.$refs.xmTestPlanCaseTable.setCurrentRow(this.editForm) + this.editFormBak={...this.editForm} } },//end methods mounted() {