aXin-0810 hai 9 meses
pai
achega
133836021f
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      src/views/setting/departmentManagement/index.vue

+ 3 - 3
src/views/setting/departmentManagement/index.vue

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