fix(UI 自动化): 关联测试用例-弹框用例无法选择所有数据

--bug=1016215 --user=张大海 【测试跟踪】测试计划-UI测试用例-关联测试用例-弹框用例无法选择所有数据 https://www.tapd.cn/55049933/s/1231879
This commit is contained in:
zhangdahai112 2022-08-24 01:43:53 +08:00 committed by zhangdahai112
parent f7f20fd6bc
commit cef91e3065
2 changed files with 17 additions and 1 deletions

View File

@ -19,7 +19,6 @@
@order="search" @order="search"
@filter="filterSearch" @filter="filterSearch"
:disable-header-config="true" :disable-header-config="true"
:show-select-all="false"
@selectCountChange="selectCountChange"> @selectCountChange="selectCountChange">
<el-table-column v-if="!customNum" prop="num" label="ID" sortable="custom" <el-table-column v-if="!customNum" prop="num" label="ID" sortable="custom"

View File

@ -151,6 +151,15 @@ export default {
param.envGroupId = envGroupId; param.envGroupId = envGroupId;
param.selectIds = selectIds; 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.result = this.$post(url, param, () => {
this.$success(this.$t('commons.save_success')); this.$success(this.$t('commons.save_success'));
this.$emit('refresh'); this.$emit('refresh');
@ -188,4 +197,12 @@ export default {
width: 243px; width: 243px;
} }
/deep/ .table-select-icon {
position: absolute;
display: inline-block;
top: -13px !important;
left: -30px;
width: 30px;
}
</style> </style>