fix(接口自动化): 批量添加到测试计划,关闭处理

This commit is contained in:
fit2-zhao 2021-01-29 18:14:39 +08:00
parent dffdc19fe0
commit 5f45c0d486
2 changed files with 8 additions and 2 deletions

View File

@ -122,7 +122,7 @@
<!--测试计划-->
<el-drawer :visible.sync="planVisible" :destroy-on-close="true" direction="ltr" :withHeader="false"
:title="$t('test_track.plan_view.test_result')" :modal="false" size="90%">
<ms-test-plan-list @addTestPlan="addTestPlan"/>
<ms-test-plan-list @addTestPlan="addTestPlan" @cancel="cancel"/>
</el-drawer>
</div>
</el-card>
@ -426,6 +426,9 @@
});
});
},
cancel(){
this.planVisible = false;
},
addTestPlan(plans) {
let obj = {planIds: plans, scenarioIds: this.selection};

View File

@ -127,7 +127,7 @@
</ms-delete-confirm>
<ms-dialog-footer style="float: right;margin: 20px"
@confirm="confirm">
@confirm="confirm" @cancel="cancel">
</ms-dialog-footer>
</el-card>
@ -206,6 +206,9 @@
}
this.$emit('addTestPlan', this.selection);
},
cancel(){
this.$emit('cancel');
},
select(selection) {
this.selection = selection.map(s => s.id);
this.$emit('selection', selection);