|
@@ -20,13 +20,13 @@
|
|
|
<span class="custom-tree-node" slot-scope="{ node, data }">
|
|
|
<span>{{ node.label }}</span>
|
|
|
<span>
|
|
|
- <el-button size="mini" type="text" @click="addbumen(data)">
|
|
|
+ <el-button v-if="node.level > 1" size="mini" type="text" @click="addbumen(data)">
|
|
|
<i class="el-icon-plus"></i>
|
|
|
</el-button>
|
|
|
- <el-button size="mini" type="text" @click="eidbumen(data)">
|
|
|
+ <el-button v-if="node.level > 2" size="mini" type="text" @click="eidbumen(data)">
|
|
|
<i class="el-icon-edit"></i>
|
|
|
</el-button>
|
|
|
- <el-button size="mini" type="text" @click="delbumen(data)">
|
|
|
+ <el-button v-if="node.level > 2" size="mini" type="text" @click="delbumen(data)">
|
|
|
<i class="el-icon-delete"></i>
|
|
|
</el-button>
|
|
|
</span>
|