| | |
| | | <el-table v-loading="loading" :data="roleList" @selection-change="handleSelectionChange"> |
| | | <el-table-column type="selection" width="55" align="center" /> |
| | | <el-table-column label="角色编号" prop="roleId" width="150" /> |
| | | <el-table-column label="角色名称" prop="roleName" :show-overflow-tooltip="true" width="150" /> |
| | | <el-table-column label="角色编号" prop="roleKey" :show-overflow-tooltip="true" width="150" /> |
| | | <el-table-column label="角色名称" prop="roleName" :show-overflow-tooltip="true" min-width="150" /> |
| | | <el-table-column label="角色编号" prop="roleKey" :show-overflow-tooltip="true" min-width="150" /> |
| | | <el-table-column label="显示顺序" prop="roleSort" width="150" /> |
| | | <el-table-column label="状态" align="center" width="150"> |
| | | <template slot-scope="scope"> |
| | |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-delete" |
| | | class="del-btn" |
| | | @click="handleDelete(scope.row)" |
| | | v-hasPermi="['system:role:remove']" |
| | | >删除</el-button> |
| | |
| | | /** 删除按钮操作 */ |
| | | handleDelete(row) { |
| | | const roleIds = row.roleId || this.ids; |
| | | this.$modal.confirm('是否确认删除角色编号为"' + roleIds + '"的数据项?').then(function() { |
| | | this.$modal.confirm('是否确认删除?').then(function() { |
| | | return delRole(roleIds); |
| | | }).then(() => { |
| | | this.getList(); |