diff --git a/framework/sdk-parent/frontend/src/components/new-ui/MsNodeTree.vue b/framework/sdk-parent/frontend/src/components/new-ui/MsNodeTree.vue
index b3718689c5..290e28f882 100644
--- a/framework/sdk-parent/frontend/src/components/new-ui/MsNodeTree.vue
+++ b/framework/sdk-parent/frontend/src/components/new-ui/MsNodeTree.vue
@@ -49,7 +49,7 @@
v-if="data.id && !isDefault(data) && !hideNodeOperator"
:content="$t('test_track.module.add_submodule')"
placement="top">
-
+
@@ -142,7 +142,7 @@
v-if="data.id && !isDefault(data) && !hideNodeOperator"
:content="$t('test_track.module.add_submodule')"
placement="top" :case-num="getCaseNum(data)">
-
+
@@ -210,6 +210,7 @@ export default {
label: "label"
},
extendTreeNodes: [],
+ appendChildDisable: false
};
},
props: {
@@ -396,6 +397,7 @@ export default {
}
},
edit(node, data, isAppend) {
+ this.appendChildDisable = true;
this.$set(data, 'isEdit', true);
this.$nextTick(() => {
this.$refs.nameInput.focus();
@@ -469,11 +471,8 @@ export default {
this.$set(data, 'children', [])
}
data.children.push(newChild);
- this.edit(node, newChild, true);
node.expanded = true;
- this.$nextTick(() => {
- this.$refs.nameInput.focus();
- });
+ this.edit(node, newChild, true);
},
save(node, data) {
if (data.name.trim() === '') {
@@ -506,10 +505,12 @@ export default {
data.level = param.level;
}
this.$set(data, 'isEdit', false);
+ this.appendChildDisable = false;
},
remove(node, data) {
if (data.label === undefined) {
this.$refs.tree.remove(node);
+ this.appendChildDisable = false;
return;
}
let title = this.$t('commons.confirm_delete') + ': ' + this.$t("project.project_file.file_module_type.module") + data.label + "?";