fix(UI 自动化): 关联测试用例-弹框用例无法选择所有数据
--bug=1016215 --user=张大海 【测试跟踪】测试计划-UI测试用例-关联测试用例-弹框用例无法选择所有数据 https://www.tapd.cn/55049933/s/1231879
This commit is contained in:
parent
f7f20fd6bc
commit
cef91e3065
|
@ -19,7 +19,6 @@
|
|||
@order="search"
|
||||
@filter="filterSearch"
|
||||
:disable-header-config="true"
|
||||
:show-select-all="false"
|
||||
@selectCountChange="selectCountChange">
|
||||
|
||||
<el-table-column v-if="!customNum" prop="num" label="ID" sortable="custom"
|
||||
|
|
|
@ -151,6 +151,15 @@ export default {
|
|||
param.envGroupId = envGroupId;
|
||||
param.selectIds = selectIds;
|
||||
|
||||
//查找所有数据
|
||||
let params = this.$refs.apiScenarioList.condition;
|
||||
if (params.selectAll) {
|
||||
let result = await this.$post("/ui/automation/listAllIds", {
|
||||
projectId: params.projectId
|
||||
});
|
||||
param.selectIds = result.data.data;
|
||||
}
|
||||
|
||||
this.result = this.$post(url, param, () => {
|
||||
this.$success(this.$t('commons.save_success'));
|
||||
this.$emit('refresh');
|
||||
|
@ -188,4 +197,12 @@ export default {
|
|||
width: 243px;
|
||||
}
|
||||
|
||||
/deep/ .table-select-icon {
|
||||
position: absolute;
|
||||
display: inline-block;
|
||||
top: -13px !important;
|
||||
left: -30px;
|
||||
width: 30px;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
|
Loading…
Reference in New Issue