fix: 修复删除的时候开源版报错的问题
This commit is contained in:
parent
cf07ddc580
commit
cefaaeadd6
|
@ -1151,8 +1151,16 @@ export default {
|
|||
// 删除提供列表删除和全部版本删除
|
||||
this.$refs.apiDeleteConfirm.open(row, alertMsg);
|
||||
} else {
|
||||
this.$alert(alertMsg, '', {
|
||||
confirmButtonText: this.$t('commons.confirm'),
|
||||
cancelButtonText: this.$t('commons.cancel'),
|
||||
callback: (action) => {
|
||||
if (action === 'confirm') {
|
||||
this._handleDelete(row, false);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
|
|
|
@ -818,8 +818,15 @@ export default {
|
|||
// 删除提供列表删除和全部版本删除
|
||||
this.$refs.apiDeleteConfirm.open(api, this.$t('api_test.definition.request.delete_confirm'));
|
||||
} else {
|
||||
this.$alert(this.$t('api_test.definition.request.delete_confirm') + ' ' + api.name + " ?", '', {
|
||||
confirmButtonText: this.$t('commons.confirm'),
|
||||
callback: (action) => {
|
||||
if (action === 'confirm') {
|
||||
this._handleDelete(api, false);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
_handleDelete(api, deleteCurrentVersion) {
|
||||
// 删除指定版本
|
||||
|
|
|
@ -260,8 +260,15 @@ export default {
|
|||
// 删除提供列表删除和全部版本删除
|
||||
this.$refs.apiDeleteConfirm.open(test, this.$t('load_test.delete_confirm'));
|
||||
} else {
|
||||
this.$alert(this.$t('load_test.delete_confirm') + test.name + "?", '', {
|
||||
confirmButtonText: this.$t('commons.confirm'),
|
||||
callback: (action) => {
|
||||
if (action === 'confirm') {
|
||||
this._handleDelete(test, false);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
_handleDelete(test, deleteCurrentVersion) {
|
||||
if (deleteCurrentVersion) {
|
||||
|
|
|
@ -901,8 +901,15 @@ export default {
|
|||
// 删除提供列表删除和全部版本删除
|
||||
this.$refs.apiDeleteConfirm.open(testCase, this.$t('test_track.case.delete_confirm'));
|
||||
} else {
|
||||
this.$alert(this.$t('test_track.case.delete_confirm') + '\'' + testCase.name + '\'' + "?", '', {
|
||||
confirmButtonText: this.$t('commons.confirm'),
|
||||
callback: (action) => {
|
||||
if (action === 'confirm') {
|
||||
this._handleDeleteVersion(testCase, false);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
batchReduction() {
|
||||
let param = buildBatchParam(this, this.$refs.table.selectIds);
|
||||
|
|
Loading…
Reference in New Issue