修改节点时填充原名称
This commit is contained in:
parent
18b4250dbf
commit
647f3eac34
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue