fix(接口自动化): 批量添加到测试计划,关闭处理
This commit is contained in:
parent
dffdc19fe0
commit
5f45c0d486
|
@ -122,7 +122,7 @@
|
||||||
<!--测试计划-->
|
<!--测试计划-->
|
||||||
<el-drawer :visible.sync="planVisible" :destroy-on-close="true" direction="ltr" :withHeader="false"
|
<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%">
|
: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>
|
</el-drawer>
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
@ -426,6 +426,9 @@
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
cancel(){
|
||||||
|
this.planVisible = false;
|
||||||
|
},
|
||||||
addTestPlan(plans) {
|
addTestPlan(plans) {
|
||||||
let obj = {planIds: plans, scenarioIds: this.selection};
|
let obj = {planIds: plans, scenarioIds: this.selection};
|
||||||
|
|
||||||
|
|
|
@ -127,7 +127,7 @@
|
||||||
</ms-delete-confirm>
|
</ms-delete-confirm>
|
||||||
|
|
||||||
<ms-dialog-footer style="float: right;margin: 20px"
|
<ms-dialog-footer style="float: right;margin: 20px"
|
||||||
@confirm="confirm">
|
@confirm="confirm" @cancel="cancel">
|
||||||
</ms-dialog-footer>
|
</ms-dialog-footer>
|
||||||
|
|
||||||
</el-card>
|
</el-card>
|
||||||
|
@ -206,6 +206,9 @@
|
||||||
}
|
}
|
||||||
this.$emit('addTestPlan', this.selection);
|
this.$emit('addTestPlan', this.selection);
|
||||||
},
|
},
|
||||||
|
cancel(){
|
||||||
|
this.$emit('cancel');
|
||||||
|
},
|
||||||
select(selection) {
|
select(selection) {
|
||||||
this.selection = selection.map(s => s.id);
|
this.selection = selection.map(s => s.id);
|
||||||
this.$emit('selection', selection);
|
this.$emit('selection', selection);
|
||||||
|
|
Loading…
Reference in New Issue