fix: MessageBox显示层级的错乱
--bug=1018527 --user=陈建星 【测试跟踪】测试计划-接口测试-选择运行环境-通用配置-设置变量-批量删除 https://www.tapd.cn/55049933/s/1269286 --bug=1018315 --user=陈建星 【测试跟踪】测试计划-点击取消关联缺陷无反应 https://www.tapd.cn/55049933/s/1269563
This commit is contained in:
parent
2060d78fba
commit
8f261f14b5
|
@ -1090,7 +1090,7 @@ export default {
|
||||||
alertMsg += this.$t('api_test.is_continue') + " ?";
|
alertMsg += this.$t('api_test.is_continue') + " ?";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
operationConfirm(alertMsg, () => {
|
operationConfirm(this, alertMsg, () => {
|
||||||
removeScenarioToGcByBatch(param).then(() => {
|
removeScenarioToGcByBatch(param).then(() => {
|
||||||
this.$success(this.$t('commons.delete_success'));
|
this.$success(this.$t('commons.delete_success'));
|
||||||
this.search();
|
this.search();
|
||||||
|
@ -1259,7 +1259,7 @@ export default {
|
||||||
// 删除提供列表删除和全部版本删除
|
// 删除提供列表删除和全部版本删除
|
||||||
this.$refs.apiDeleteConfirm.open(row, alertMsg);
|
this.$refs.apiDeleteConfirm.open(row, alertMsg);
|
||||||
} else {
|
} else {
|
||||||
operationConfirm(alertMsg, () => {
|
operationConfirm(this, alertMsg, () => {
|
||||||
this._handleDelete(row, false);
|
this._handleDelete(row, false);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -87,7 +87,7 @@ export default {
|
||||||
message = this.$t('api_test.home_page.running_task_list.confirm.open_title');
|
message = this.$t('api_test.home_page.running_task_list.confirm.open_title');
|
||||||
}
|
}
|
||||||
row.enable = !row.enable;
|
row.enable = !row.enable;
|
||||||
operationConfirm(message, () => {
|
operationConfirm(this, message, () => {
|
||||||
row.enable = !row.enable
|
row.enable = !row.enable
|
||||||
this.updateTask(row);
|
this.updateTask(row);
|
||||||
});
|
});
|
||||||
|
|
|
@ -1006,7 +1006,7 @@ export default {
|
||||||
alertMsg += this.$t('api_test.is_continue') + " ?";
|
alertMsg += this.$t('api_test.is_continue') + " ?";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
operationConfirm(alertMsg, () => {
|
operationConfirm(this, alertMsg, () => {
|
||||||
delCaseToGcByParam(obj).then(() => {
|
delCaseToGcByParam(obj).then(() => {
|
||||||
this.$refs.caseTable.clearSelectRows();
|
this.$refs.caseTable.clearSelectRows();
|
||||||
this.initTable();
|
this.initTable();
|
||||||
|
@ -1099,7 +1099,7 @@ export default {
|
||||||
alertMsg += this.$t('api_test.is_continue') + " ?";
|
alertMsg += this.$t('api_test.is_continue') + " ?";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
operationConfirm(alertMsg, () => {
|
operationConfirm(this, alertMsg, () => {
|
||||||
deleteToGc(apiCase.id).then(() => {
|
deleteToGc(apiCase.id).then(() => {
|
||||||
this.$success(this.$t('commons.delete_success'));
|
this.$success(this.$t('commons.delete_success'));
|
||||||
this.initTable();
|
this.initTable();
|
||||||
|
|
|
@ -888,7 +888,7 @@ export default {
|
||||||
},
|
},
|
||||||
handleDeleteBatch() {
|
handleDeleteBatch() {
|
||||||
if (this.trashEnable) {
|
if (this.trashEnable) {
|
||||||
operationConfirm(this.$t('api_test.definition.request.delete_confirm') + "?", () => {
|
operationConfirm(this, this.$t('api_test.definition.request.delete_confirm') + "?", () => {
|
||||||
deleteBatchByParams(buildBatchParam(this, this.$refs.table.selectIds)).then(() => {
|
deleteBatchByParams(buildBatchParam(this, this.$refs.table.selectIds)).then(() => {
|
||||||
this.$refs.table.clear();
|
this.$refs.table.clear();
|
||||||
// this.initTable();
|
// this.initTable();
|
||||||
|
@ -897,7 +897,7 @@ export default {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
operationConfirm(this.$t('api_test.definition.request.delete_confirm') + "?", () => {
|
operationConfirm(this, this.$t('api_test.definition.request.delete_confirm') + "?", () => {
|
||||||
removeToGcByParams(buildBatchParam(this, this.$refs.table.selectIds)).then(() => {
|
removeToGcByParams(buildBatchParam(this, this.$refs.table.selectIds)).then(() => {
|
||||||
this.$refs.table.clear();
|
this.$refs.table.clear();
|
||||||
this.$emit("refreshTable");
|
this.$emit("refreshTable");
|
||||||
|
@ -973,7 +973,7 @@ export default {
|
||||||
// 删除提供列表删除和全部版本删除
|
// 删除提供列表删除和全部版本删除
|
||||||
this.$refs.apiDeleteConfirm.open(api, this.$t('api_test.definition.request.delete_confirm'));
|
this.$refs.apiDeleteConfirm.open(api, this.$t('api_test.definition.request.delete_confirm'));
|
||||||
} else {
|
} else {
|
||||||
operationConfirm(this.$t('api_test.definition.request.delete_confirm') + ' ' + api.name, () => {
|
operationConfirm(this, this.$t('api_test.definition.request.delete_confirm') + ' ' + api.name, () => {
|
||||||
this._handleDelete(api, false);
|
this._handleDelete(api, false);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -221,7 +221,7 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
removeExpect(row) {
|
removeExpect(row) {
|
||||||
operationConfirm(this.$t('api_test.mock.delete_mock_expect'), () => {
|
operationConfirm(this, this.$t('api_test.mock.delete_mock_expect'), () => {
|
||||||
let mockInfoId = row.mockConfigId;
|
let mockInfoId = row.mockConfigId;
|
||||||
delMock(row.id).then(response => {
|
delMock(row.id).then(response => {
|
||||||
this.cleanMockExpectConfig();
|
this.cleanMockExpectConfig();
|
||||||
|
|
|
@ -382,7 +382,7 @@ export default {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
removeExpect(row) {
|
removeExpect(row) {
|
||||||
operationConfirm(this.$t('api_test.mock.delete_mock_expect'), () => {
|
operationConfirm(this, this.$t('api_test.mock.delete_mock_expect'), () => {
|
||||||
let mockInfoId = row.mockConfigId;
|
let mockInfoId = row.mockConfigId;
|
||||||
delMock(row.id).then(response => {
|
delMock(row.id).then(response => {
|
||||||
this.refreshMockInfo(mockInfoId);
|
this.refreshMockInfo(mockInfoId);
|
||||||
|
|
|
@ -216,7 +216,7 @@ export default {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
removeExpect(row) {
|
removeExpect(row) {
|
||||||
operationConfirm(this.$t('api_test.mock.delete_mock_expect'), () => {
|
operationConfirm(this, this.$t('api_test.mock.delete_mock_expect'), () => {
|
||||||
let mockInfoId = row.mockConfigId;
|
let mockInfoId = row.mockConfigId;
|
||||||
delMock(row.id).then(response => {
|
delMock(row.id).then(response => {
|
||||||
this.cleanMockExpectConfig();
|
this.cleanMockExpectConfig();
|
||||||
|
|
|
@ -138,7 +138,7 @@ export default {
|
||||||
closeTaskConfirm(row) {
|
closeTaskConfirm(row) {
|
||||||
let flag = row.taskStatus;
|
let flag = row.taskStatus;
|
||||||
row.taskStatus = !flag; //保持switch点击前的状态
|
row.taskStatus = !flag; //保持switch点击前的状态
|
||||||
operationConfirm(this.$t('api_test.home_page.running_task_list.confirm.close_title'), () => {
|
operationConfirm(this, this.$t('api_test.home_page.running_task_list.confirm.close_title'), () => {
|
||||||
this.updateTask(row);
|
this.updateTask(row);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
|
@ -142,7 +142,7 @@ export default {
|
||||||
closeTaskConfirm(row) {
|
closeTaskConfirm(row) {
|
||||||
let flag = row.taskStatus;
|
let flag = row.taskStatus;
|
||||||
row.taskStatus = !flag; //保持switch点击前的状态
|
row.taskStatus = !flag; //保持switch点击前的状态
|
||||||
operationConfirm(this.$t('api_test.home_page.running_task_list.confirm.close_title'), () => {
|
operationConfirm(this, this.$t('api_test.home_page.running_task_list.confirm.close_title'), () => {
|
||||||
this.updateTask(row);
|
this.updateTask(row);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
|
@ -300,7 +300,7 @@ export default {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
operationConfirm(this.$t('commons.auth_redirect_tip'), () => {
|
operationConfirm(this, this.$t('commons.auth_redirect_tip'), () => {
|
||||||
let config = JSON.parse(source.configuration);
|
let config = JSON.parse(source.configuration);
|
||||||
let redirectUrl = eval('`' + config.redirectUrl + '`');
|
let redirectUrl = eval('`' + config.redirectUrl + '`');
|
||||||
let url;
|
let url;
|
||||||
|
|
|
@ -244,7 +244,7 @@ export default {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleDeleteBatch() {
|
handleDeleteBatch() {
|
||||||
operationConfirm(this.$t('api_test.environment.variables_delete_info') + " ?", () => {
|
operationConfirm(this, this.$t('api_test.environment.variables_delete_info') + " ?", () => {
|
||||||
let ids = this.$refs.variableTable.selectRows;
|
let ids = this.$refs.variableTable.selectRows;
|
||||||
ids.forEach(row => {
|
ids.forEach(row => {
|
||||||
if (row.name) {
|
if (row.name) {
|
||||||
|
|
|
@ -104,7 +104,7 @@ export default {
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
deleteApiKey(row) {
|
deleteApiKey(row) {
|
||||||
operationConfirm(this.$t('user.apikey_delete_confirm'), () => {
|
operationConfirm(this, this.$t('user.apikey_delete_confirm'), () => {
|
||||||
this.result = deleteUserKey(row.id)
|
this.result = deleteUserKey(row.id)
|
||||||
.then(response => {
|
.then(response => {
|
||||||
this.$success(this.$t('commons.delete_success'));
|
this.$success(this.$t('commons.delete_success'));
|
||||||
|
|
|
@ -198,13 +198,11 @@ export function exportPdf(name, canvasList) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
let confirm = MessageBox.confirm;
|
export function operationConfirm(v, tip, success, cancel) {
|
||||||
|
|
||||||
export function operationConfirm(tip, success, cancel) {
|
|
||||||
if (tip[tip.length - 1] !== '?' && tip[tip.length - 1] !== '?') {
|
if (tip[tip.length - 1] !== '?' && tip[tip.length - 1] !== '?') {
|
||||||
tip += '?';
|
tip += '?';
|
||||||
}
|
}
|
||||||
return confirm(tip, '', {
|
return v.$confirm(tip, '', {
|
||||||
confirmButtonText: i18n.t('commons.confirm'),
|
confirmButtonText: i18n.t('commons.confirm'),
|
||||||
cancelButtonText: i18n.t('commons.cancel'),
|
cancelButtonText: i18n.t('commons.cancel'),
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
|
|
|
@ -313,7 +313,7 @@ export default {
|
||||||
this.$refs.deleteConfirm.open(project);
|
this.$refs.deleteConfirm.open(project);
|
||||||
},
|
},
|
||||||
_handleDelete(project) {
|
_handleDelete(project) {
|
||||||
operationConfirm(this.$t('project.delete_tip'), () => {
|
operationConfirm(this, this.$t('project.delete_tip'), () => {
|
||||||
deleteProjectById(project.id).then(() => {
|
deleteProjectById(project.id).then(() => {
|
||||||
if (project.id === getCurrentProjectID()) {
|
if (project.id === getCurrentProjectID()) {
|
||||||
localStorage.removeItem(PROJECT_ID);
|
localStorage.removeItem(PROJECT_ID);
|
||||||
|
|
|
@ -317,7 +317,7 @@ export default {
|
||||||
},
|
},
|
||||||
deleteEnv(environment) {
|
deleteEnv(environment) {
|
||||||
if (environment.id) {
|
if (environment.id) {
|
||||||
operationConfirm(this.$t('commons.confirm_delete') + environment.name, () => {
|
operationConfirm(this, this.$t('commons.confirm_delete') + environment.name, () => {
|
||||||
this.loading = delEnvironmentById(environment.id).then(() => {
|
this.loading = delEnvironmentById(environment.id).then(() => {
|
||||||
this.$success(this.$t('commons.delete_success'));
|
this.$success(this.$t('commons.delete_success'));
|
||||||
this.list();
|
this.list();
|
||||||
|
|
|
@ -263,7 +263,7 @@ export default {
|
||||||
this.$emit("download", this.data);
|
this.$emit("download", this.data);
|
||||||
},
|
},
|
||||||
deleteData() {
|
deleteData() {
|
||||||
operationConfirm(this.$t('project.file_delete_tip', [this.data.name]), () => {
|
operationConfirm(this, this.$t('project.file_delete_tip', [this.data.name]), () => {
|
||||||
this.close();
|
this.close();
|
||||||
this.data.confirm = true;
|
this.data.confirm = true;
|
||||||
this.$emit("delete", this.data);
|
this.$emit("delete", this.data);
|
||||||
|
|
|
@ -389,7 +389,7 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
handleDeleteBatch() {
|
handleDeleteBatch() {
|
||||||
operationConfirm(this.$t('project.file_delete_tip', [this.$refs.table.selectIds.length + " 条 "]), () => {
|
operationConfirm(this, this.$t('project.file_delete_tip', [this.$refs.table.selectIds.length + " 条 "]), () => {
|
||||||
batchDeleteMetaData(this.$refs.table.selectIds).then(() => {
|
batchDeleteMetaData(this.$refs.table.selectIds).then(() => {
|
||||||
this.$refs.table.clear();
|
this.$refs.table.clear();
|
||||||
this.$success(this.$t('commons.delete_success'));
|
this.$success(this.$t('commons.delete_success'));
|
||||||
|
@ -407,7 +407,7 @@ export default {
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
operationConfirm(this.$t('project.file_delete_tip', [row.name]), () => {
|
operationConfirm(this, this.$t('project.file_delete_tip', [row.name]), () => {
|
||||||
deleteFileMetaById(row.id).then(() => {
|
deleteFileMetaById(row.id).then(() => {
|
||||||
this.$success(this.$t('commons.delete_success'));
|
this.$success(this.$t('commons.delete_success'));
|
||||||
this.getProjectFiles();
|
this.getProjectFiles();
|
||||||
|
|
|
@ -265,7 +265,7 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
handleDeleteBatch() {
|
handleDeleteBatch() {
|
||||||
operationConfirm(this.$t('project.file_delete_tip', [this.$refs.table.selectIds.length + " 条 "]), () => {
|
operationConfirm(this, this.$t('project.file_delete_tip', [this.$refs.table.selectIds.length + " 条 "]), () => {
|
||||||
batchDeleteMetaData(this.$refs.table.selectIds).then(() => {
|
batchDeleteMetaData(this.$refs.table.selectIds).then(() => {
|
||||||
this.$refs.table.clear();
|
this.$refs.table.clear();
|
||||||
this.$success(this.$t('commons.delete_success'));
|
this.$success(this.$t('commons.delete_success'));
|
||||||
|
@ -274,7 +274,7 @@ export default {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleDelete(row) {
|
handleDelete(row) {
|
||||||
operationConfirm(this.$t('project.file_delete_tip', [row.name]), () => {
|
operationConfirm(this, this.$t('project.file_delete_tip', [row.name]), () => {
|
||||||
deleteFileMetaById(row.id).then(() => {
|
deleteFileMetaById(row.id).then(() => {
|
||||||
this.$success(this.$t('commons.delete_success'));
|
this.$success(this.$t('commons.delete_success'));
|
||||||
this.getProjectFiles();
|
this.getProjectFiles();
|
||||||
|
|
|
@ -168,7 +168,7 @@ export default {
|
||||||
this.$set(this.form, 'groupIds', groupIds);
|
this.$set(this.form, 'groupIds', groupIds);
|
||||||
},
|
},
|
||||||
del(row) {
|
del(row) {
|
||||||
operationConfirm(this.$t('member.remove_member'), () => {
|
operationConfirm(this, this.$t('member.remove_member'), () => {
|
||||||
this.cardLoading = deleteProjectMember(this.projectId, encodeURIComponent(row.id)).then(() => {
|
this.cardLoading = deleteProjectMember(this.projectId, encodeURIComponent(row.id)).then(() => {
|
||||||
this.$success(this.$t('commons.remove_success'));
|
this.$success(this.$t('commons.remove_success'));
|
||||||
this.initTableData();
|
this.initTableData();
|
||||||
|
|
|
@ -262,7 +262,7 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
removeMember(row) {
|
removeMember(row) {
|
||||||
operationConfirm(this.$t('member.remove_member'), () => {
|
operationConfirm(this, this.$t('member.remove_member'), () => {
|
||||||
if (this.initUserUrl === 'user/ws/current/member/list') {
|
if (this.initUserUrl === 'user/ws/current/member/list') {
|
||||||
if (row.id === getCurrentUserId()) {
|
if (row.id === getCurrentUserId()) {
|
||||||
this.$warning(this.$t('group.unable_to_remove_current_member'));
|
this.$warning(this.$t('group.unable_to_remove_current_member'));
|
||||||
|
|
|
@ -203,7 +203,7 @@ export default {
|
||||||
let param = {id: row.scheduleId, enable: row.scheduleIsOpen};
|
let param = {id: row.scheduleId, enable: row.scheduleIsOpen};
|
||||||
row.scheduleIsOpen = !row.scheduleIsOpen;
|
row.scheduleIsOpen = !row.scheduleIsOpen;
|
||||||
|
|
||||||
operationConfirm(titles, () => {
|
operationConfirm(this, titles, () => {
|
||||||
row.scheduleIsOpen = !row.scheduleIsOpen;
|
row.scheduleIsOpen = !row.scheduleIsOpen;
|
||||||
this.updateTask(param);
|
this.updateTask(param);
|
||||||
});
|
});
|
||||||
|
|
|
@ -408,7 +408,7 @@ export default {
|
||||||
this.$refs.deleteConfirm.open(workspace);
|
this.$refs.deleteConfirm.open(workspace);
|
||||||
},
|
},
|
||||||
_handleDelete(workspace) {
|
_handleDelete(workspace) {
|
||||||
operationConfirm(this.$t('workspace.delete_confirm'), () => {
|
operationConfirm(this, this.$t('workspace.delete_confirm'), () => {
|
||||||
this.loading = delWorkspaceSpecial(workspace.id).then(() => {
|
this.loading = delWorkspaceSpecial(workspace.id).then(() => {
|
||||||
this.$success(this.$t('commons.delete_success'));
|
this.$success(this.$t('commons.delete_success'));
|
||||||
this.list();
|
this.list();
|
||||||
|
|
|
@ -258,7 +258,7 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
removeMember(row) {
|
removeMember(row) {
|
||||||
operationConfirm(this.$t('member.remove_member'), () => {
|
operationConfirm(this, this.$t('member.remove_member'), () => {
|
||||||
if (this.initUserUrl === 'user/ws/current/member/list') {
|
if (this.initUserUrl === 'user/ws/current/member/list') {
|
||||||
if (row.id === getCurrentUserId()) {
|
if (row.id === getCurrentUserId()) {
|
||||||
this.$warning(this.$t('group.unable_to_remove_current_member'));
|
this.$warning(this.$t('group.unable_to_remove_current_member'));
|
||||||
|
|
|
@ -132,7 +132,7 @@ export default {
|
||||||
this.$refs.scriptView.open(row.scriptId);
|
this.$refs.scriptView.open(row.scriptId);
|
||||||
},
|
},
|
||||||
handleDelete(id) {
|
handleDelete(id) {
|
||||||
operationConfirm(this.$t('api_test.jar_config.delete_tip'), () => {
|
operationConfirm(this, this.$t('api_test.jar_config.delete_tip'), () => {
|
||||||
this.loading = delPluginById(id).then(() => {
|
this.loading = delPluginById(id).then(() => {
|
||||||
this.$success(this.$t('commons.delete_success'));
|
this.$success(this.$t('commons.delete_success'));
|
||||||
this.initPlugins();
|
this.initPlugins();
|
||||||
|
|
|
@ -474,7 +474,7 @@ export default {
|
||||||
this.infoList = resources;
|
this.infoList = resources;
|
||||||
},
|
},
|
||||||
del(row) {
|
del(row) {
|
||||||
operationConfirm(this.$t('test_resource_pool.delete_prompt'), () => {
|
operationConfirm(this, this.$t('test_resource_pool.delete_prompt'), () => {
|
||||||
this.loading = delResourcePoolById(row.id).then(() => {
|
this.loading = delResourcePoolById(row.id).then(() => {
|
||||||
this.initTableData();
|
this.initTableData();
|
||||||
this.$success(this.$t('commons.delete_success'));
|
this.$success(this.$t('commons.delete_success'));
|
||||||
|
|
|
@ -290,7 +290,7 @@ export default {
|
||||||
listenGoBack(this.handleClose);
|
listenGoBack(this.handleClose);
|
||||||
},
|
},
|
||||||
del(row) {
|
del(row) {
|
||||||
operationConfirm(this.$t('user.delete_confirm'), () => {
|
operationConfirm(this, this.$t('user.delete_confirm'), () => {
|
||||||
this.loading = specialDeleteUserById(encodeURIComponent(row.id)).then(() => {
|
this.loading = specialDeleteUserById(encodeURIComponent(row.id)).then(() => {
|
||||||
this.$success(this.$t('commons.delete_success'));
|
this.$success(this.$t('commons.delete_success'));
|
||||||
this.search();
|
this.search();
|
||||||
|
|
|
@ -344,7 +344,7 @@ export default {
|
||||||
},
|
},
|
||||||
deleteEnv(environment) {
|
deleteEnv(environment) {
|
||||||
if (environment.id) {
|
if (environment.id) {
|
||||||
operationConfirm(this.$t('commons.confirm_delete') + environment.name, () => {
|
operationConfirm(this, this.$t('commons.confirm_delete') + environment.name, () => {
|
||||||
this.loading = delEnvironmentById(environment.id).then(() => {
|
this.loading = delEnvironmentById(environment.id).then(() => {
|
||||||
this.$success(this.$t('commons.delete_success'));
|
this.$success(this.$t('commons.delete_success'));
|
||||||
this.list();
|
this.list();
|
||||||
|
|
|
@ -315,7 +315,7 @@ export default {
|
||||||
this.$refs.deleteConfirm.open(project);
|
this.$refs.deleteConfirm.open(project);
|
||||||
},
|
},
|
||||||
_handleDelete(project) {
|
_handleDelete(project) {
|
||||||
operationConfirm(this.$t('project.delete_tip'), () => {
|
operationConfirm(this, this.$t('project.delete_tip'), () => {
|
||||||
deleteProjectById(project.id).then(() => {
|
deleteProjectById(project.id).then(() => {
|
||||||
if (project.id === getCurrentProjectID()) {
|
if (project.id === getCurrentProjectID()) {
|
||||||
localStorage.removeItem(PROJECT_ID);
|
localStorage.removeItem(PROJECT_ID);
|
||||||
|
|
|
@ -344,7 +344,7 @@ export default {
|
||||||
this.$refs.deleteConfirm.open(project);
|
this.$refs.deleteConfirm.open(project);
|
||||||
},
|
},
|
||||||
_handleDelete(project) {
|
_handleDelete(project) {
|
||||||
operationConfirm(this.$t('project.delete_tip'), () => {
|
operationConfirm(this, this.$t('project.delete_tip'), () => {
|
||||||
delProjectById(project.id).then(() => {
|
delProjectById(project.id).then(() => {
|
||||||
if (project.id === getCurrentProjectID()) {
|
if (project.id === getCurrentProjectID()) {
|
||||||
localStorage.removeItem(PROJECT_ID);
|
localStorage.removeItem(PROJECT_ID);
|
||||||
|
|
|
@ -250,7 +250,7 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
deleteIssue(row) {
|
deleteIssue(row) {
|
||||||
operationConfirm(this.$t('test_track.issue.delete_warning'), () => {
|
operationConfirm(this, this.$t('test_track.issue.delete_warning'), () => {
|
||||||
this.page.result.loading = true;
|
this.page.result.loading = true;
|
||||||
deleteIssueRelate({
|
deleteIssueRelate({
|
||||||
id: row.id,
|
id: row.id,
|
||||||
|
|
|
@ -793,7 +793,7 @@ export default {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleDelete(testCase) {
|
handleDelete(testCase) {
|
||||||
operationConfirm(this.$t('test_track.case.delete_confirm') + '\'' + testCase.name + '\'', () => {
|
operationConfirm(this, this.$t('test_track.case.delete_confirm') + '\'' + testCase.name + '\'', () => {
|
||||||
this._handleDelete(testCase);
|
this._handleDelete(testCase);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -815,7 +815,7 @@ export default {
|
||||||
// 删除提供列表删除和全部版本删除
|
// 删除提供列表删除和全部版本删除
|
||||||
this.$refs.apiDeleteConfirm.open(testCase, this.$t('test_track.case.delete_confirm'));
|
this.$refs.apiDeleteConfirm.open(testCase, this.$t('test_track.case.delete_confirm'));
|
||||||
} else {
|
} else {
|
||||||
operationConfirm(this.$t('test_track.case.delete_confirm') + '\'' + testCase.name + '\'', () => {
|
operationConfirm(this, this.$t('test_track.case.delete_confirm') + '\'' + testCase.name + '\'', () => {
|
||||||
this._handleDeleteVersion(testCase, false);
|
this._handleDeleteVersion(testCase, false);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -831,7 +831,7 @@ export default {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleDeleteBatch() {
|
handleDeleteBatch() {
|
||||||
operationConfirm(this.$t('test_track.case.delete_confirm'), () => {
|
operationConfirm(this, this.$t('test_track.case.delete_confirm'), () => {
|
||||||
let param = buildBatchParam(this, this.$refs.table.selectIds);
|
let param = buildBatchParam(this, this.$refs.table.selectIds);
|
||||||
testCaseBatchDelete(param)
|
testCaseBatchDelete(param)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
@ -854,7 +854,7 @@ export default {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleDeleteBatchToGc() {
|
handleDeleteBatchToGc() {
|
||||||
operationConfirm(this.$t('test_track.case.delete_confirm'), () => {
|
operationConfirm(this, this.$t('test_track.case.delete_confirm'), () => {
|
||||||
let param = buildBatchParam(this, this.$refs.table.selectIds);
|
let param = buildBatchParam(this, this.$refs.table.selectIds);
|
||||||
testCaseBatchDeleteToGc(param)
|
testCaseBatchDeleteToGc(param)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
|
|
@ -423,7 +423,7 @@ export default {
|
||||||
// 删除提供列表删除和全部版本删除
|
// 删除提供列表删除和全部版本删除
|
||||||
this.$refs.apiDeleteConfirm.open(testCase, this.$t('test_track.case.delete_confirm'));
|
this.$refs.apiDeleteConfirm.open(testCase, this.$t('test_track.case.delete_confirm'));
|
||||||
} else {
|
} else {
|
||||||
operationConfirm(this.$t('test_track.case.delete_confirm') + '\'' + testCase.name + '\'', () => {
|
operationConfirm(this, this.$t('test_track.case.delete_confirm') + '\'' + testCase.name + '\'', () => {
|
||||||
this._handleDeleteVersion(testCase, false);
|
this._handleDeleteVersion(testCase, false);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -486,7 +486,7 @@ export default {
|
||||||
this.$emit('refreshAll');
|
this.$emit('refreshAll');
|
||||||
},
|
},
|
||||||
handleDeleteBatchToPublic() {
|
handleDeleteBatchToPublic() {
|
||||||
operationConfirm(this.$t('test_track.case.delete_confirm'), () => {
|
operationConfirm(this, this.$t('test_track.case.delete_confirm'), () => {
|
||||||
let param = buildBatchParam(this, this.$refs.table.selectIds);
|
let param = buildBatchParam(this, this.$refs.table.selectIds);
|
||||||
testCasePublicBatchDeleteToGc(param)
|
testCasePublicBatchDeleteToGc(param)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
|
|
@ -707,7 +707,7 @@ export default {
|
||||||
message = this.$t('api_test.home_page.running_task_list.confirm.open_title');
|
message = this.$t('api_test.home_page.running_task_list.confirm.open_title');
|
||||||
}
|
}
|
||||||
|
|
||||||
operationConfirm(message, () => {
|
operationConfirm(this, message, () => {
|
||||||
this.cardLoading = true;
|
this.cardLoading = true;
|
||||||
testPlanUpdateScheduleEnable(param)
|
testPlanUpdateScheduleEnable(param)
|
||||||
.then(response => {
|
.then(response => {
|
||||||
|
|
Loading…
Reference in New Issue