|
|
|
@ -23,25 +23,25 @@ |
|
|
|
<template #header> |
|
|
|
<el-row :gutter="10" class="mb8"> |
|
|
|
<el-col :span="1.5"> |
|
|
|
<el-button type="primary" plain icon="Plus" @click="handleAdd" v-hasPermi="['im:userGroup:add']">新增</el-button> |
|
|
|
<el-button v-hasPermi="['im:userGroup:add']" type="primary" plain icon="Plus" @click="handleAdd">新增</el-button> |
|
|
|
</el-col> |
|
|
|
<el-col :span="1.5"> |
|
|
|
<el-button type="success" plain icon="Edit" :disabled="single" @click="handleUpdate()" v-hasPermi="['im:userGroup:edit']">修改</el-button> |
|
|
|
<el-button v-hasPermi="['im:userGroup:edit']" type="success" plain icon="Edit" :disabled="single" @click="handleUpdate()">修改</el-button> |
|
|
|
</el-col> |
|
|
|
<el-col :span="1.5"> |
|
|
|
<el-button type="danger" plain icon="Delete" :disabled="multiple" @click="handleDelete()" v-hasPermi="['im:userGroup:remove']" |
|
|
|
<el-button v-hasPermi="['im:userGroup:remove']" type="danger" plain icon="Delete" :disabled="multiple" @click="handleDelete()" |
|
|
|
>删除</el-button |
|
|
|
> |
|
|
|
</el-col> |
|
|
|
<el-col :span="1.5"> |
|
|
|
<el-button type="warning" plain icon="Download" @click="handleExport" v-hasPermi="['im:userGroup:export']">导出</el-button> |
|
|
|
</el-col> |
|
|
|
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar> |
|
|
|
<!-- <el-col :span="1.5"> |
|
|
|
<el-button v-hasPermi="['im:userGroup:export']" type="warning" plain icon="Download" @click="handleExport">导出</el-button> |
|
|
|
</el-col> --> |
|
|
|
<right-toolbar v-model:showSearch="showSearch" @query-table="getList"></right-toolbar> |
|
|
|
</el-row> |
|
|
|
</template> |
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="userGroupList" @selection-change="handleSelectionChange"> |
|
|
|
<el-table-column type="selection" width="55" align="center" /> |
|
|
|
<!-- <el-table-column type="selection" width="55" align="center" /> --> |
|
|
|
<!-- <el-table-column label="id" align="center" prop="id" v-if="true" /> --> |
|
|
|
<el-table-column label="分组名称" align="center" prop="groupName" /> |
|
|
|
<el-table-column label="排序" align="center" prop="sort" /> |
|
|
|
@ -49,19 +49,19 @@ |
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width"> |
|
|
|
<template #default="scope"> |
|
|
|
<el-tooltip content="修改" placement="top"> |
|
|
|
<el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['im:userGroup:edit']"></el-button> |
|
|
|
<el-button v-hasPermi="['im:userGroup:edit']" link type="primary" icon="Edit" @click="handleUpdate(scope.row)"></el-button> |
|
|
|
</el-tooltip> |
|
|
|
<el-tooltip content="删除" placement="top"> |
|
|
|
<el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['im:userGroup:remove']"></el-button> |
|
|
|
<el-button v-hasPermi="['im:userGroup:remove']" link type="primary" icon="Delete" @click="handleDelete(scope.row)"></el-button> |
|
|
|
</el-tooltip> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
|
|
|
|
<pagination v-show="total > 0" :total="total" v-model:page="queryParams.pageNum" v-model:limit="queryParams.pageSize" @pagination="getList" /> |
|
|
|
<pagination v-show="total > 0" v-model:page="queryParams.pageNum" v-model:limit="queryParams.pageSize" :total="total" @pagination="getList" /> |
|
|
|
</el-card> |
|
|
|
<!-- 添加或修改用户分组对话框 --> |
|
|
|
<el-dialog :title="dialog.title" v-model="dialog.visible" width="500px" append-to-body> |
|
|
|
<el-dialog v-model="dialog.visible" :title="dialog.title" width="500px" append-to-body> |
|
|
|
<el-form ref="userGroupFormRef" :model="form" :rules="rules" label-width="80px"> |
|
|
|
<el-form-item label="分组名称" prop="groupName"> |
|
|
|
<el-input v-model="form.groupName" placeholder="请输入分组名称" /> |
|
|
|
|