Browse Source

优化

master
陈裕财 4 years ago
parent
commit
c1b327e7e6
  1. 6
      src/views/xm/core/xmTestPlanCase/XmTestPlanCaseEdit.vue
  2. 6
      src/views/xm/core/xmTestPlanCase/XmTestPlanCaseMng.vue

6
src/views/xm/core/xmTestPlanCase/XmTestPlanCaseEdit.vue

@ -151,10 +151,7 @@
</el-form>
</el-row>
<el-row>
<el-col :span="8">
<el-checkbox v-model="next">继续下一条执行用例</el-checkbox>
</el-col>
<el-col :span="8" class="avater-box">
<el-col :offset="16" :span="8" class="avater-box">
<div>
<el-button size="medium " :type="getType(editForm.execStatus)" :icon="getExecStatusIcon(editForm.execStatus)" circle></el-button>
</div>
@ -169,6 +166,7 @@
</span>
</el-option>
</el-select>
<el-button style="margin-left:10px;" @click="$emit('next')">下一条</el-button>
</el-col>
</el-row>

6
src/views/xm/core/xmTestPlanCase/XmTestPlanCaseMng.vue

@ -70,7 +70,7 @@
<el-row>
<!--编辑 XmTestPlanCase 测试计划与用例关系表界面-->
<el-dialog title="测试执行" :visible.sync="editFormVisible" width="90%" top="20px" append-to-body :close-on-click-modal="false">
<xm-test-plan-case-edit op-type="edit" :xm-test-plan-case="editForm" :visible="editFormVisible" @cancel="editFormVisible=false" @submit="afterEditSubmit" @edit-fields="onEditFields"></xm-test-plan-case-edit>
<xm-test-plan-case-edit op-type="edit" :xm-test-plan-case="editForm" :visible="editFormVisible" @cancel="editFormVisible=false" @submit="afterEditSubmit" @edit-fields="onEditFields" @next="nextEdit"></xm-test-plan-case-edit>
</el-dialog>
<!--新增 XmTestPlanCase 测试计划与用例关系表界面-->
@ -331,7 +331,8 @@ export default {
onEditFields(row){
Object.assign(this.editForm,row)
this.editFormBak={...this.editForm}
if(row.execStatus && row.next){
},
nextEdit(){
var index=this.xmTestPlanCases.findIndex(k=>k.caseId==this.editForm.caseId)
if(index==this.xmTestPlanCases.length-1){
this.editFormVisible=false;
@ -342,7 +343,6 @@ export default {
this.$refs.xmTestPlanCaseTable.setCurrentRow(this.editForm)
this.editFormBak={...this.editForm}
}
}
},//end methods
mounted() {
this.$nextTick(() => {

Loading…
Cancel
Save