fix: 测试计划关联接口用例数量错误
This commit is contained in:
parent
c24633d69a
commit
a8fcadbd1d
|
@ -165,7 +165,6 @@
|
||||||
import ShowMoreBtn from "../../../../track/case/components/ShowMoreBtn";
|
import ShowMoreBtn from "../../../../track/case/components/ShowMoreBtn";
|
||||||
import MsBatchEdit from "../../../definition/components/basis/BatchEdit";
|
import MsBatchEdit from "../../../definition/components/basis/BatchEdit";
|
||||||
import {API_METHOD_COLOUR, CASE_PRIORITY} from "../../../definition/model/JsonData";
|
import {API_METHOD_COLOUR, CASE_PRIORITY} from "../../../definition/model/JsonData";
|
||||||
import {getCurrentProjectID} from "@/common/js/utils";
|
|
||||||
import ApiListContainer from "../../../definition/components/list/ApiListContainer";
|
import ApiListContainer from "../../../definition/components/list/ApiListContainer";
|
||||||
import PriorityTableItem from "../../../../track/common/tableItems/planview/PriorityTableItem";
|
import PriorityTableItem from "../../../../track/common/tableItems/planview/PriorityTableItem";
|
||||||
import MsEnvironmentSelect from "../../../definition/components/case/MsEnvironmentSelect";
|
import MsEnvironmentSelect from "../../../definition/components/case/MsEnvironmentSelect";
|
||||||
|
@ -419,6 +418,11 @@
|
||||||
let param = buildBatchParam(this);
|
let param = buildBatchParam(this);
|
||||||
param.ids = Array.from(sampleSelectRows).map(row => row.id);
|
param.ids = Array.from(sampleSelectRows).map(row => row.id);
|
||||||
return param;
|
return param;
|
||||||
|
},
|
||||||
|
clear() {
|
||||||
|
if (this.$refs.apitable) {
|
||||||
|
this.$refs.apitable.clear();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -99,51 +99,6 @@
|
||||||
</ms-table-column>
|
</ms-table-column>
|
||||||
</template>
|
</template>
|
||||||
</ms-table>
|
</ms-table>
|
||||||
<!-- <el-table v-loading="result.loading"-->
|
|
||||||
<!-- border-->
|
|
||||||
<!-- :data="tableData"-->
|
|
||||||
<!-- row-key="id"-->
|
|
||||||
<!-- class="test-content adjust-table"-->
|
|
||||||
<!-- @select-all="handleSelectAll"-->
|
|
||||||
<!-- @filter-change="filter"-->
|
|
||||||
<!-- @sort-change="sort"-->
|
|
||||||
<!-- @select="handleSelect" ref="table">-->
|
|
||||||
<!-- <el-table-column reserve-selection type="selection"/>-->
|
|
||||||
|
|
||||||
<!-- <el-table-column prop="name" :label="$t('api_test.definition.api_name')" show-overflow-tooltip/>-->
|
|
||||||
|
|
||||||
<!-- <el-table-column-->
|
|
||||||
<!-- prop="priority"-->
|
|
||||||
<!-- :filters="priorityFilters"-->
|
|
||||||
<!-- column-key="priority"-->
|
|
||||||
<!-- :label="$t('test_track.case.priority')"-->
|
|
||||||
<!-- show-overflow-tooltip>-->
|
|
||||||
<!-- <template v-slot:default="scope">-->
|
|
||||||
<!-- <priority-table-item :value="scope.row.priority"/>-->
|
|
||||||
<!-- </template>-->
|
|
||||||
<!-- </el-table-column>-->
|
|
||||||
|
|
||||||
<!-- <el-table-column-->
|
|
||||||
<!-- prop="path"-->
|
|
||||||
<!-- :label="$t('api_test.definition.api_path')"-->
|
|
||||||
<!-- show-overflow-tooltip/>-->
|
|
||||||
|
|
||||||
<!-- <el-table-column-->
|
|
||||||
<!-- prop="createUser"-->
|
|
||||||
<!-- :label="'创建人'"-->
|
|
||||||
<!-- show-overflow-tooltip/>-->
|
|
||||||
|
|
||||||
<!-- <el-table-column-->
|
|
||||||
<!-- sortable="custom"-->
|
|
||||||
<!-- width="160"-->
|
|
||||||
<!-- :label="$t('api_test.definition.api_last_time')"-->
|
|
||||||
<!-- prop="updateTime">-->
|
|
||||||
<!-- <template v-slot:default="scope">-->
|
|
||||||
<!-- <span>{{ scope.row.updateTime | timestampFormatDate }}</span>-->
|
|
||||||
<!-- </template>-->
|
|
||||||
<!-- </el-table-column>-->
|
|
||||||
|
|
||||||
<!-- </el-table>-->
|
|
||||||
<ms-table-pagination :change="initTable" :current-page.sync="currentPage" :page-size.sync="pageSize"
|
<ms-table-pagination :change="initTable" :current-page.sync="currentPage" :page-size.sync="pageSize"
|
||||||
:total="total"/>
|
:total="total"/>
|
||||||
</api-list-container>
|
</api-list-container>
|
||||||
|
@ -303,7 +258,11 @@ export default {
|
||||||
});
|
});
|
||||||
getLabel(this, API_CASE_LIST);
|
getLabel(this, API_CASE_LIST);
|
||||||
},
|
},
|
||||||
|
clear() {
|
||||||
|
if (this.$refs.table) {
|
||||||
|
this.$refs.table.clear();
|
||||||
|
}
|
||||||
|
},
|
||||||
showExecResult(row) {
|
showExecResult(row) {
|
||||||
this.visible = false;
|
this.visible = false;
|
||||||
this.$emit('showExecResult', row);
|
this.$emit('showExecResult', row);
|
||||||
|
|
|
@ -156,6 +156,9 @@
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
clear() {
|
||||||
|
this.selectRows.clear();
|
||||||
|
},
|
||||||
handleSelectAll(selection) {
|
handleSelectAll(selection) {
|
||||||
_handleSelectAll(this, selection, this.tableData, this.selectRows);
|
_handleSelectAll(this, selection, this.tableData, this.selectRows);
|
||||||
this.initProjectIds();
|
this.initProjectIds();
|
||||||
|
|
|
@ -86,6 +86,12 @@
|
||||||
open() {
|
open() {
|
||||||
this.init();
|
this.init();
|
||||||
this.$refs.baseRelevance.open();
|
this.$refs.baseRelevance.open();
|
||||||
|
if (this.$refs.apiList) {
|
||||||
|
this.$refs.apiList.clear();
|
||||||
|
}
|
||||||
|
if (this.$refs.apiCaseList) {
|
||||||
|
this.$refs.apiCaseList.clear();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
init() {
|
init() {
|
||||||
if (this.$refs.apiList) {
|
if (this.$refs.apiList) {
|
||||||
|
|
|
@ -76,6 +76,7 @@
|
||||||
open() {
|
open() {
|
||||||
this.$refs.baseRelevance.open();
|
this.$refs.baseRelevance.open();
|
||||||
if (this.$refs.apiScenarioList) {
|
if (this.$refs.apiScenarioList) {
|
||||||
|
this.$refs.apiScenarioList.clear();
|
||||||
this.$refs.apiScenarioList.search();
|
this.$refs.apiScenarioList.search();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue