fix(接口测试): 修复批量执行case后勾选case批量删除case提示删除成功实际删除失败的缺陷
--bug=1013019 --user=王孝刚 【接口测试】批量执行case后勾选case-批量删除case-提示删除成功-实际删除失败 https://www.tapd.cn/55049933/s/1153949
This commit is contained in:
parent
bf9df8f67a
commit
188df00759
|
@ -900,18 +900,18 @@ export default {
|
||||||
obj.projectId = this.projectId;
|
obj.projectId = this.projectId;
|
||||||
obj.selectAllDate = this.selectAll;
|
obj.selectAllDate = this.selectAll;
|
||||||
obj.unSelectIds = this.unSelection;
|
obj.unSelectIds = this.unSelection;
|
||||||
obj.ids = Array.from(this.selectRows).map(row => row.id);
|
|
||||||
obj = Object.assign(obj, this.condition);
|
obj = Object.assign(obj, this.condition);
|
||||||
|
obj.ids = Array.from(this.selectRows).map(row => row.id);
|
||||||
this.$post('/api/testcase/checkDeleteDatas/', obj, response => {
|
this.$post('/api/testcase/checkDeleteDatas/', obj, response => {
|
||||||
let checkResult = response.data;
|
let checkResult = response.data;
|
||||||
let alertMsg = this.$t('api_test.definition.request.delete_confirm') + " ?";
|
let alertMsg = this.$t('api_test.definition.request.delete_case_confirm') + " ?";
|
||||||
if (!checkResult.deleteFlag) {
|
if (!checkResult.deleteFlag) {
|
||||||
alertMsg = "";
|
alertMsg = "";
|
||||||
checkResult.checkMsg.forEach(item => {
|
checkResult.checkMsg.forEach(item => {
|
||||||
alertMsg += item + ";";
|
alertMsg += item + ";";
|
||||||
});
|
});
|
||||||
if (alertMsg === "") {
|
if (alertMsg === "") {
|
||||||
alertMsg = this.$t('api_test.definition.request.delete_confirm') + " ?";
|
alertMsg = this.$t('api_test.definition.request.delete_case_confirm') + " ?";
|
||||||
} else {
|
} else {
|
||||||
alertMsg += this.$t('api_test.is_continue') + " ?";
|
alertMsg += this.$t('api_test.is_continue') + " ?";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue