mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-11-30 19:18:59 +08:00
fix(接口定义): 修复场景无法删除的缺陷
--bug=1018109 --user=王孝刚 【接口测试】接口场景无法删除 https://www.tapd.cn/55049933/s/1262459
This commit is contained in:
parent
58764e4838
commit
9c8008d0b3
@ -1090,17 +1090,11 @@ export default {
|
||||
alertMsg += this.$t('api_test.is_continue') + " ?";
|
||||
}
|
||||
}
|
||||
operationConfirm(alertMsg, '', {
|
||||
confirmButtonText: this.$t('commons.confirm'),
|
||||
cancelButtonText: this.$t('commons.cancel'),
|
||||
callback: (action) => {
|
||||
if (action === 'confirm') {
|
||||
removeScenarioToGcByBatch(param).then(() => {
|
||||
this.$success(this.$t('commons.delete_success'));
|
||||
this.search();
|
||||
});
|
||||
}
|
||||
}
|
||||
operationConfirm(alertMsg, () => {
|
||||
removeScenarioToGcByBatch(param).then(() => {
|
||||
this.$success(this.$t('commons.delete_success'));
|
||||
this.search();
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
@ -1265,14 +1259,8 @@ export default {
|
||||
// 删除提供列表删除和全部版本删除
|
||||
this.$refs.apiDeleteConfirm.open(row, alertMsg);
|
||||
} else {
|
||||
operationConfirm(alertMsg, '', {
|
||||
confirmButtonText: this.$t('commons.confirm'),
|
||||
cancelButtonText: this.$t('commons.cancel'),
|
||||
callback: (action) => {
|
||||
if (action === 'confirm') {
|
||||
this._handleDelete(row, false);
|
||||
}
|
||||
}
|
||||
operationConfirm(alertMsg, () => {
|
||||
this._handleDelete(row, false);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
@ -1005,19 +1005,13 @@ export default {
|
||||
alertMsg += this.$t('api_test.is_continue') + " ?";
|
||||
}
|
||||
}
|
||||
|
||||
operationConfirm(alertMsg, '', {
|
||||
confirmButtonText: this.$t('commons.confirm'),
|
||||
callback: (action) => {
|
||||
if (action === 'confirm') {
|
||||
delCaseToGcByParam(obj).then(() => {
|
||||
this.$refs.caseTable.clearSelectRows();
|
||||
this.initTable();
|
||||
this.$success(this.$t('commons.delete_success'));
|
||||
this.$emit('refreshTable');
|
||||
});
|
||||
}
|
||||
}
|
||||
operationConfirm(alertMsg, () => {
|
||||
delCaseToGcByParam(obj).then(() => {
|
||||
this.$refs.caseTable.clearSelectRows();
|
||||
this.initTable();
|
||||
this.$success(this.$t('commons.delete_success'));
|
||||
this.$emit('refreshTable');
|
||||
});
|
||||
});
|
||||
});
|
||||
},
|
||||
@ -1104,19 +1098,13 @@ export default {
|
||||
alertMsg += this.$t('api_test.is_continue') + " ?";
|
||||
}
|
||||
}
|
||||
|
||||
operationConfirm(alertMsg, '', {
|
||||
confirmButtonText: this.$t('commons.confirm'),
|
||||
callback: (action) => {
|
||||
if (action === 'confirm') {
|
||||
deleteToGc(apiCase.id).then(() => {
|
||||
this.$success(this.$t('commons.delete_success'));
|
||||
this.initTable();
|
||||
this.$emit("refreshTree");
|
||||
this.$emit('refreshTable');
|
||||
});
|
||||
}
|
||||
}
|
||||
operationConfirm(alertMsg, () => {
|
||||
deleteToGc(apiCase.id).then(() => {
|
||||
this.$success(this.$t('commons.delete_success'));
|
||||
this.initTable();
|
||||
this.$emit("refreshTree");
|
||||
this.$emit('refreshTable');
|
||||
});
|
||||
});
|
||||
});
|
||||
},
|
||||
|
@ -900,32 +900,22 @@ export default {
|
||||
},
|
||||
handleDeleteBatch() {
|
||||
if (this.trashEnable) {
|
||||
operationConfirm(this.$t('api_test.definition.request.delete_confirm') + "?", '', {
|
||||
confirmButtonText: this.$t('commons.confirm'),
|
||||
callback: (action) => {
|
||||
if (action === 'confirm') {
|
||||
deleteBatchByParams(buildBatchParam(this, this.$refs.table.selectIds)).then(() => {
|
||||
this.$refs.table.clear();
|
||||
// this.initTable();
|
||||
this.$emit("refreshTable");
|
||||
this.$success(this.$t('commons.delete_success'));
|
||||
});
|
||||
}
|
||||
}
|
||||
operationConfirm(this.$t('api_test.definition.request.delete_confirm') + "?", () => {
|
||||
deleteBatchByParams(buildBatchParam(this, this.$refs.table.selectIds)).then(() => {
|
||||
this.$refs.table.clear();
|
||||
// this.initTable();
|
||||
this.$emit("refreshTable");
|
||||
this.$success(this.$t('commons.delete_success'));
|
||||
});
|
||||
});
|
||||
} else {
|
||||
operationConfirm(this.$t('api_test.definition.request.delete_confirm') + "?", '', {
|
||||
confirmButtonText: this.$t('commons.confirm'),
|
||||
callback: (action) => {
|
||||
if (action === 'confirm') {
|
||||
removeToGcByParams(buildBatchParam(this, this.$refs.table.selectIds)).then(() => {
|
||||
this.$refs.table.clear();
|
||||
this.$emit("refreshTable");
|
||||
this.$success(this.$t('commons.delete_success'));
|
||||
this.$refs.caseList.apiCaseClose();
|
||||
});
|
||||
}
|
||||
}
|
||||
operationConfirm(this.$t('api_test.definition.request.delete_confirm') + "?", () => {
|
||||
removeToGcByParams(buildBatchParam(this, this.$refs.table.selectIds)).then(() => {
|
||||
this.$refs.table.clear();
|
||||
this.$emit("refreshTable");
|
||||
this.$success(this.$t('commons.delete_success'));
|
||||
this.$refs.caseList.apiCaseClose();
|
||||
});
|
||||
});
|
||||
}
|
||||
},
|
||||
|
@ -244,22 +244,17 @@ export default {
|
||||
});
|
||||
},
|
||||
handleDeleteBatch() {
|
||||
operationConfirm(this.$t('api_test.environment.variables_delete_info') + ' ' + " ?", '', {
|
||||
confirmButtonText: this.$t('commons.confirm'),
|
||||
callback: (action) => {
|
||||
if (action === 'confirm') {
|
||||
let ids = this.$refs.variableTable.selectRows;
|
||||
ids.forEach(row => {
|
||||
if (row.name) {
|
||||
const index = this.variables.findIndex(d => d.name === row.name);
|
||||
this.variables.splice(index, 1);
|
||||
}
|
||||
});
|
||||
this.sortParameters();
|
||||
this.$refs.variableTable.cancelCurrentRow();
|
||||
this.$refs.variableTable.clear();
|
||||
operationConfirm(this.$t('api_test.environment.variables_delete_info') + " ?", () => {
|
||||
let ids = this.$refs.variableTable.selectRows;
|
||||
ids.forEach(row => {
|
||||
if (row.name) {
|
||||
const index = this.variables.findIndex(d => d.name === row.name);
|
||||
this.variables.splice(index, 1);
|
||||
}
|
||||
}
|
||||
});
|
||||
this.sortParameters();
|
||||
this.$refs.variableTable.cancelCurrentRow();
|
||||
this.$refs.variableTable.clear();
|
||||
});
|
||||
},
|
||||
filter() {
|
||||
|
Loading…
Reference in New Issue
Block a user