fix(接口测试): 修改自动化提示问题

--bug=1013856 --user=王孝刚 【接口自动化】提示问题汇总
https://www.tapd.cn/55049933/s/1175908
This commit is contained in:
wxg0103 2022-06-08 11:29:52 +08:00 committed by f2c-ci-robot[bot]
parent 873a624644
commit 78cf6301e1
4 changed files with 5 additions and 5 deletions

View File

@ -513,7 +513,7 @@ export default {
}
})
if (message !== "") {
this.$alert(this.$t('commons.scenario') + " [ " + message.substr(0, message.length - 1) + " ] " + this.$t('commons.confirm_info'), '', {
this.$alert(this.$t('commons.scenario') + " [ " + message + " ] " + this.$t('commons.confirm_info'), '', {
confirmButtonText: this.$t('commons.confirm'),
cancelButtonText: this.$t('commons.cancel'),
callback: (action) => {

View File

@ -1165,14 +1165,14 @@ export default {
param.ids = [row.id];
this.$post('/api/automation/checkBeforeDelete/', param, response => {
let checkResult = response.data;
let alertMsg = this.$t('load_test.delete_threadgroup_confirm') + " " + row.name + " ?";
let alertMsg = this.$t('load_test.delete_threadgroup_confirm');
if (!checkResult.deleteFlag) {
alertMsg = "";
checkResult.checkMsg.forEach(item => {
alertMsg += item;
});
if (alertMsg === "") {
alertMsg = this.$t('load_test.delete_threadgroup_confirm') + " " + row.name + " ?";
alertMsg = this.$t('load_test.delete_threadgroup_confirm');
} else {
alertMsg += this.$t('api_test.is_continue');
}

View File

@ -631,7 +631,7 @@ export default {
}
});
if (message !== "") {
this.$alert(this.$t('commons.api') + " [ " + message.substr(0, message.length - 1) + " ] " + this.$t('commons.confirm_info'), '', {
this.$alert(this.$t('commons.api') + " [ " + message + " ] " + this.$t('commons.confirm_info'), '', {
confirmButtonText: this.$t('commons.confirm'),
cancelButtonText: this.$t('commons.cancel'),
callback: (action) => {

View File

@ -518,7 +518,7 @@ export default {
message += t[0].testCaseInfo.name + "";
}
if (message !== "") {
this.$alert(this.$t('commons.track') + " [ " + message.substr(0, message.length - 1) + " ] " + this.$t('commons.confirm_info'), '', {
this.$alert(this.$t('commons.track') + " [ " + message + " ] " + this.$t('commons.confirm_info'), '', {
confirmButtonText: this.$t('commons.confirm'),
cancelButtonText: this.$t('commons.cancel'),
callback: (action) => {