fix(接口测试): 修复接口定义,接口自动化模块树添加最大八层的提示
--bug=1013792 --user=王孝刚 【接口测试】接口定义/接口自动化模块树添加层级提示最大8层-可添加9层但是刷新后多余的层级消失且最后层级操作项图标被遮挡 https://www.tapd.cn/55049933/s/1173922
This commit is contained in:
parent
35b1512dbc
commit
a9609f1062
|
@ -214,12 +214,18 @@
|
||||||
add(param) {
|
add(param) {
|
||||||
param.projectId = this.projectId;
|
param.projectId = this.projectId;
|
||||||
param.protocol = this.condition.protocol;
|
param.protocol = this.condition.protocol;
|
||||||
this.$post("/api/automation/module/add", param, () => {
|
if (param && param.level >= 9) {
|
||||||
this.$success(this.$t('commons.save_success'));
|
|
||||||
this.list();
|
this.list();
|
||||||
}, (error) => {
|
this.$error(this.$t('commons.warning_module_add'));
|
||||||
this.list();
|
return;
|
||||||
});
|
} else {
|
||||||
|
this.$post("/api/automation/module/add", param, () => {
|
||||||
|
this.$success(this.$t('commons.save_success'));
|
||||||
|
this.list();
|
||||||
|
}, (error) => {
|
||||||
|
this.list();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
remove(nodeIds) {
|
remove(nodeIds) {
|
||||||
|
|
|
@ -209,12 +209,18 @@ export default {
|
||||||
add(param) {
|
add(param) {
|
||||||
param.projectId = this.projectId;
|
param.projectId = this.projectId;
|
||||||
param.protocol = this.condition.protocol;
|
param.protocol = this.condition.protocol;
|
||||||
this.$post("/api/module/add", param, () => {
|
if (param && param.level >= 9) {
|
||||||
this.$success(this.$t('commons.save_success'));
|
|
||||||
this.list();
|
this.list();
|
||||||
}, (error) => {
|
this.$error(this.$t('commons.warning_module_add'));
|
||||||
this.list();
|
return;
|
||||||
});
|
} else {
|
||||||
|
this.$post("/api/module/add", param, () => {
|
||||||
|
this.$success(this.$t('commons.save_success'));
|
||||||
|
this.list();
|
||||||
|
}, (error) => {
|
||||||
|
this.list();
|
||||||
|
});
|
||||||
|
}
|
||||||
},
|
},
|
||||||
remove(nodeIds) {
|
remove(nodeIds) {
|
||||||
this.$post("/api/module/delete", nodeIds, () => {
|
this.$post("/api/module/delete", nodeIds, () => {
|
||||||
|
|
|
@ -52,7 +52,7 @@ export default {
|
||||||
project: 'Project',
|
project: 'Project',
|
||||||
about_us: 'About Us',
|
about_us: 'About Us',
|
||||||
current_project: 'Current Project',
|
current_project: 'Current Project',
|
||||||
not_exist:"Not exist",
|
not_exist: "Not exist",
|
||||||
name: 'Name',
|
name: 'Name',
|
||||||
description: 'Description',
|
description: 'Description',
|
||||||
annotation: 'Annotation',
|
annotation: 'Annotation',
|
||||||
|
@ -61,6 +61,7 @@ export default {
|
||||||
save_as: 'Save as',
|
save_as: 'Save as',
|
||||||
update: 'Update',
|
update: 'Update',
|
||||||
save_success: 'Saved successfully',
|
save_success: 'Saved successfully',
|
||||||
|
warning_module_add: "Tree modules are up to 8 levels deep",
|
||||||
send_success: 'Send successfully',
|
send_success: 'Send successfully',
|
||||||
delete_success: 'Deleted successfully',
|
delete_success: 'Deleted successfully',
|
||||||
modify_success: 'Modify Success',
|
modify_success: 'Modify Success',
|
||||||
|
|
|
@ -60,6 +60,7 @@ export default {
|
||||||
save_as: '另存为',
|
save_as: '另存为',
|
||||||
update: '更新',
|
update: '更新',
|
||||||
save_success: '保存成功',
|
save_success: '保存成功',
|
||||||
|
warning_module_add: "模块树深度最大为8层",
|
||||||
send_success: '发送成功',
|
send_success: '发送成功',
|
||||||
delete_success: '删除成功',
|
delete_success: '删除成功',
|
||||||
copy_success: '复制成功',
|
copy_success: '复制成功',
|
||||||
|
|
|
@ -63,6 +63,7 @@ export default {
|
||||||
send_success: '發送成功',
|
send_success: '發送成功',
|
||||||
delete_success: '刪除成功',
|
delete_success: '刪除成功',
|
||||||
copy_success: '復製成功',
|
copy_success: '復製成功',
|
||||||
|
warning_module_add: "模塊樹深度最大為8層",
|
||||||
modify_success: '修改成功',
|
modify_success: '修改成功',
|
||||||
delete_cancel: '已取消刪除',
|
delete_cancel: '已取消刪除',
|
||||||
option_cannot_spread_pages: '這個操作不支持跨頁,是否繼續?',
|
option_cannot_spread_pages: '這個操作不支持跨頁,是否繼續?',
|
||||||
|
|
Loading…
Reference in New Issue