diff --git a/src/views/xm/core/xmTestPlanCase/TestStepResult.vue b/src/views/xm/core/xmTestPlanCase/TestStepResult.vue
new file mode 100644
index 00000000..21677edb
--- /dev/null
+++ b/src/views/xm/core/xmTestPlanCase/TestStepResult.vue
@@ -0,0 +1,141 @@
+
+
+
+
+
+
+
+ 步骤
+
+
+ 操作
+
+
+ 预期结果
+
+
+ 实际结果
+
+
+ 结论
+
+
+ 缺陷
+
+
+
+
+
+ {{index+1}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/xm/core/xmTestPlanCase/XmTestPlanCaseEdit.vue b/src/views/xm/core/xmTestPlanCase/XmTestPlanCaseEdit.vue
index 3fd43d1f..7d0931b2 100644
--- a/src/views/xm/core/xmTestPlanCase/XmTestPlanCaseEdit.vue
+++ b/src/views/xm/core/xmTestPlanCase/XmTestPlanCaseEdit.vue
@@ -1,53 +1,49 @@
-
@@ -56,10 +52,12 @@
import config from "@/common/config"; //全局公共库import
import { initDicts, addXmTestPlanCase,editXmTestPlanCase,editSomeFieldsXmTestPlanCase } from '@/api/xm/core/xmTestPlanCase';
import { mapGetters } from 'vuex'
+import TestStepResult from './TestStepResult.vue';
export default {
name:'xmTestPlanCaseEdit',
components: {
+TestStepResult,
},
computed: {
@@ -94,6 +92,9 @@
editForm: {
bugs:'',execUserid:'',caseId:'',ltime:'',ctime:'',execStatus:'',execUsername:'',planId:'',caseName:'',priority:'',remark:'',testStep:''
},
+ editFormBak: {
+ bugs:'',execUserid:'',caseId:'',ltime:'',ctime:'',execStatus:'',execUsername:'',planId:'',caseName:'',priority:'',remark:'',testStep:''
+ },
maxTableHeight:300,
}//end return
},//end data
@@ -159,7 +160,8 @@
func(params).then(res=>{
let tips = res.data.tips;
if(tips.isOk){
- this.editFormBak=[...this.editForm]
+ this.editFormBak={...this.editForm}
+ this.$emit('edit-fields',params)
}else{
Object.assign(this.editForm,this.editFormBak)
this.$notify({position:'bottom-left',showClose:true,message:tips.msg,type:tips.isOk?'success':'error'})
diff --git a/src/views/xm/core/xmTestPlanCase/XmTestPlanCaseMng.vue b/src/views/xm/core/xmTestPlanCase/XmTestPlanCaseMng.vue
index 345938fd..36dffced 100644
--- a/src/views/xm/core/xmTestPlanCase/XmTestPlanCaseMng.vue
+++ b/src/views/xm/core/xmTestPlanCase/XmTestPlanCaseMng.vue
@@ -69,9 +69,9 @@
-
-
-
+
+
+
@@ -328,6 +328,10 @@ export default {
this.filters.xmFunc=row
this.searchXmTestPlanCases();
},
+ onEditFields(row){
+ Object.assign(this.editForm,row)
+ this.editFormBak={...this.editForm}
+ }
},//end methods
mounted() {
this.$nextTick(() => {