| | |
| | | v-loading="loading" |
| | | :data="buildingList" |
| | | row-key="id" |
| | | height="calc(100vh - 210px)" |
| | | default-expand-all |
| | | :tree-props="{children: 'children', hasChildren: 'hasChildren'}" |
| | | > |
| | | <el-table-column label="单元名称" align="center" prop="name"/> |
| | | <el-table-column label="单元编号" prop="code"/> |
| | | <el-table-column label="显示顺序" align="center" prop="orderNum"/> |
| | | <el-table-column label="操作" align="center" class-name="small-padding fixed-width"> |
| | | <el-table-column label="单元名称" align="left" prop="name" show-overflow-tooltip/> |
| | | <el-table-column label="单元编号" align="left" width="150" prop="code"/> |
| | | <el-table-column label="显示顺序" align="center" width="80" prop="orderNum"/> |
| | | <el-table-column label="操作" align="center" width="180" class-name="small-padding fixed-width"> |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-edit" |
| | | @click="handleUpdate(scope.row)" |
| | | v-hasPermi="['oa:building:edit']" |
| | | >修改 |
| | | </el-button> |
| | | <el-button |
| | |
| | | class="del-btn" |
| | | icon="el-icon-delete" |
| | | @click="handleDelete(scope.row)" |
| | | v-hasPermi="['oa:building:remove']" |
| | | >删除 |
| | | </el-button> |
| | | </template> |