|
|
@@ -302,46 +302,49 @@ const getGroupList = () => {}
|
|
|
|
|
|
<el-table-column label="操作" header-align="center" align="center" width="220">
|
|
|
<template #default="scope">
|
|
|
- <el-button size="small" type="primary" @click="onUserEdit(scope.row)">
|
|
|
- 修改
|
|
|
- </el-button>
|
|
|
- <el-button v-if="scope.row.isFixed !== 1" size="small" type="danger" @click="onUserDelete(scope.row)">
|
|
|
- 删除
|
|
|
- </el-button>
|
|
|
- <el-dropdown v-if="scope.row.isFixed !== 1" @command="onCommand($event, scope.row)">
|
|
|
- <el-button size="small">
|
|
|
- 更多
|
|
|
- <el-icon class="el-icon--right">
|
|
|
- <svg-icon name="i-ep:arrow-down" />
|
|
|
- </el-icon>
|
|
|
+ <div>
|
|
|
+ <el-button size="small" type="primary" @click="onUserEdit(scope.row)">
|
|
|
+ 修改
|
|
|
</el-button>
|
|
|
- <template #dropdown="{ row }">
|
|
|
- <el-dropdown-menu>
|
|
|
- <template v-if="row && row.grantGroupId > 0">
|
|
|
- <el-dropdown-item command="GrantGroupEdit">
|
|
|
- 编辑授权
|
|
|
- </el-dropdown-item>
|
|
|
- <el-dropdown-item command="GrantGroupDelete">
|
|
|
- 解除授权
|
|
|
+ <el-button v-if="scope.row.isFixed !== 1" size="small" type="danger" @click="onUserDelete(scope.row)">
|
|
|
+ 删除
|
|
|
+ </el-button>
|
|
|
+ <el-dropdown v-if="scope.row.isFixed !== 1" @command="onCommand($event, scope.row)">
|
|
|
+ <el-button size="small">
|
|
|
+ 更多
|
|
|
+ <el-icon class="el-icon--right">
|
|
|
+ <svg-icon name="i-ep:arrow-down" />
|
|
|
+ </el-icon>
|
|
|
+ </el-button>
|
|
|
+ <template #dropdown="{ row }">
|
|
|
+ <el-dropdown-menu>
|
|
|
+ <template v-if="row && row.grantGroupId > 0">
|
|
|
+ <el-dropdown-item command="GrantGroupEdit">
|
|
|
+ 编辑授权
|
|
|
+ </el-dropdown-item>
|
|
|
+ <el-dropdown-item command="GrantGroupDelete">
|
|
|
+ 解除授权
|
|
|
+ </el-dropdown-item>
|
|
|
+ </template>
|
|
|
+ <template v-else>
|
|
|
+ <el-dropdown-item command="GrantGroupAdd">
|
|
|
+ 添加授权
|
|
|
+ </el-dropdown-item>
|
|
|
+ </template>
|
|
|
+ <el-dropdown-item command="ResetPwd">
|
|
|
+ 重置密码
|
|
|
</el-dropdown-item>
|
|
|
- </template>
|
|
|
- <template v-else>
|
|
|
- <el-dropdown-item command="GrantGroupAdd">
|
|
|
- 添加授权
|
|
|
+ <el-dropdown-item command="Permit">
|
|
|
+ 权限配置
|
|
|
</el-dropdown-item>
|
|
|
- </template>
|
|
|
- <el-dropdown-item command="ResetPwd">
|
|
|
- 重置密码
|
|
|
- </el-dropdown-item>
|
|
|
- <el-dropdown-item command="Permit">
|
|
|
- 权限配置
|
|
|
- </el-dropdown-item>
|
|
|
- </el-dropdown-menu>
|
|
|
- </template>
|
|
|
- </el-dropdown>
|
|
|
+ </el-dropdown-menu>
|
|
|
+ </template>
|
|
|
+ </el-dropdown>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
+
|
|
|
<el-pagination :current-page="pagination.page" :total="pagination.total" :page-size="pagination.size" :page-sizes="pagination.sizes" :layout="pagination.layout" :hide-on-single-page="false" class="pagination" background @current-change="currentChange" @size-change="sizeChange" />
|
|
|
</div>
|
|
|
</LayoutContainer>
|