提交 647f3eac 编写于 作者: C chenjianxing

修改节点时填充原名称

上级 18b4250d
......@@ -63,6 +63,9 @@
open(type, data, nodeIds) {
this.type = type;
this.node = data;
if (this.node) {
this.form.name = this.node.name;
}
this.nodeIds = nodeIds;
this.dialogFormVisible = true;
},
......
......@@ -15,8 +15,7 @@
:expand-on-click-node="false"
highlight-current
:draggable="draggable"
ref="tree"
>
ref="tree">
<template v-slot:default="{node,data}">
<span class="custom-tree-node father" @click="handleNodeSelect(node)">
<span class="node-icon">
......@@ -31,8 +30,7 @@
effect="dark"
:open-delay="200"
:content="$t('test_track.module.rename')"
placement="top"
>
placement="top">
<i @click.stop="openEditNodeDialog('edit', data)" class="el-icon-edit"></i>
</el-tooltip>
<el-tooltip
......@@ -40,8 +38,7 @@
effect="dark"
:open-delay="200"
:content="$t('test_track.module.add_submodule')"
placement="top"
>
placement="top">
<i @click.stop="openEditNodeDialog('add', data)" class="el-icon-circle-plus-outline"></i>
</el-tooltip>
<el-tooltip class="item" effect="dark"
......
......@@ -421,7 +421,7 @@ export default {
rename: "Rename",
add_submodule: "Add submodule",
add_module: "Add module",
name: "Module name",
name: "Name",
delete_confirm: "Confirm delete module:",
delete_all_resource: "and all submodules and test cases under the module",
module: "Module",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册