修改节点时填充原名称

This commit is contained in:
chenjianxing 2020-05-21 14:51:24 +08:00
parent 18b4250dbf
commit 647f3eac34
3 changed files with 7 additions and 7 deletions

View File

@ -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;
},

View File

@ -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"

View File

@ -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",