fix(接口测试): 修复接口定义,接口自动化模块树添加最大八层的提示

--bug=1013792 --user=王孝刚
【接口测试】接口定义/接口自动化模块树添加层级提示最大8层-可添加9层但是刷新后多余的层级消失且最后层级操作项图标被遮挡
https://www.tapd.cn/55049933/s/1173922
This commit is contained in:
wxg0103 2022-06-06 16:21:12 +08:00 committed by f2c-ci-robot[bot]
parent bf3a1a3086
commit 7a723576f4
5 changed files with 26 additions and 11 deletions

View File

@ -214,12 +214,18 @@
add(param) {
param.projectId = this.projectId;
param.protocol = this.condition.protocol;
this.$post("/api/automation/module/add", param, () => {
this.$success(this.$t('commons.save_success'));
if (param && param.level >= 9) {
this.list();
}, (error) => {
this.list();
});
this.$error(this.$t('commons.warning_module_add'));
return;
} else {
this.$post("/api/automation/module/add", param, () => {
this.$success(this.$t('commons.save_success'));
this.list();
}, (error) => {
this.list();
});
}
},
remove(nodeIds) {

View File

@ -209,12 +209,18 @@ export default {
add(param) {
param.projectId = this.projectId;
param.protocol = this.condition.protocol;
this.$post("/api/module/add", param, () => {
this.$success(this.$t('commons.save_success'));
if (param && param.level >= 9) {
this.list();
}, (error) => {
this.list();
});
this.$error(this.$t('commons.warning_module_add'));
return;
} else {
this.$post("/api/module/add", param, () => {
this.$success(this.$t('commons.save_success'));
this.list();
}, (error) => {
this.list();
});
}
},
remove(nodeIds) {
this.$post("/api/module/delete", nodeIds, () => {

View File

@ -52,7 +52,7 @@ export default {
project: 'Project',
about_us: 'About Us',
current_project: 'Current Project',
not_exist:"Not exist",
not_exist: "Not exist",
name: 'Name',
description: 'Description',
annotation: 'Annotation',
@ -61,6 +61,7 @@ export default {
save_as: 'Save as',
update: 'Update',
save_success: 'Saved successfully',
warning_module_add: "Tree modules are up to 8 levels deep",
send_success: 'Send successfully',
delete_success: 'Deleted successfully',
modify_success: 'Modify Success',

View File

@ -60,6 +60,7 @@ export default {
save_as: '另存为',
update: '更新',
save_success: '保存成功',
warning_module_add: "模块树深度最大为8层",
send_success: '发送成功',
delete_success: '删除成功',
copy_success: '复制成功',

View File

@ -63,6 +63,7 @@ export default {
send_success: '發送成功',
delete_success: '刪除成功',
copy_success: '復製成功',
warning_module_add: "模塊樹深度最大為8層",
modify_success: '修改成功',
delete_cancel: '已取消刪除',
option_cannot_spread_pages: '這個操作不支持跨頁,是否繼續?',