| | |
| | |
|
| | | <el-row :gutter="10" class="mb8">
|
| | | <el-col :span="1.5">
|
| | | <el-button type="primary" plain icon="Plus" @click="handleAdd" v-hasPermi="['system:user:add']">新增</el-button>
|
| | | <el-button 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="['system:user:edit']">修改</el-button>
|
| | | <el-button 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="['system:user:remove']">删除</el-button>
|
| | | <el-button type="danger" plain icon="Delete" :disabled="multiple" @click="handleDelete">删除</el-button>
|
| | | </el-col>
|
| | | <el-col :span="1.5">
|
| | | <el-button type="info" plain icon="Upload" @click="handleImport" v-hasPermi="['system:user:import']">导入</el-button>
|
| | | <el-button type="info" plain icon="Upload" @click="handleImport">导入</el-button>
|
| | | </el-col>
|
| | | <el-col :span="1.5">
|
| | | <el-button type="warning" plain icon="Download" @click="handleExport" v-hasPermi="['system:user:export']">导出</el-button>
|
| | | <el-button type="warning" plain icon="Download" @click="handleExport">导出</el-button>
|
| | | </el-col>
|
| | | <right-toolbar v-model:showSearch="showSearch" @queryTable="getList" :columns="columns"></right-toolbar>
|
| | | </el-row>
|
| | |
| | | <el-table-column label="操作" align="center" width="150" class-name="small-padding fixed-width">
|
| | | <template #default="scope">
|
| | | <el-tooltip content="修改" placement="top" v-if="scope.row.userId !== 1">
|
| | | <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['system:user:edit']"></el-button>
|
| | | <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)"></el-button>
|
| | | </el-tooltip>
|
| | | <el-tooltip content="删除" placement="top" v-if="scope.row.userId !== 1">
|
| | | <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['system:user:remove']"></el-button>
|
| | | <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)"></el-button>
|
| | | </el-tooltip>
|
| | | <el-tooltip content="重置密码" placement="top" v-if="scope.row.userId !== 1">
|
| | | <el-button link type="primary" icon="Key" @click="handleResetPwd(scope.row)" v-hasPermi="['system:user:resetPwd']"></el-button>
|
| | | <el-button link type="primary" icon="Key" @click="handleResetPwd(scope.row)"></el-button>
|
| | | </el-tooltip>
|
| | | <el-tooltip content="分配角色" placement="top" v-if="scope.row.userId !== 1">
|
| | | <el-button link type="primary" icon="CircleCheck" @click="handleAuthRole(scope.row)" v-hasPermi="['system:user:edit']"></el-button>
|
| | | <el-button link type="primary" icon="CircleCheck" @click="handleAuthRole(scope.row)"></el-button>
|
| | | </el-tooltip>
|
| | | </template>
|
| | | </el-table-column>
|