| | |
| | | <span>{{ parseTime(scope.row.createTime) }}</span>
|
| | | </template>
|
| | | </el-table-column>
|
| | | <el-table-column label="操作" align="center" width="180" class-name="small-padding fixed-width">
|
| | | <el-table-column label="操作" align="center" width="280" 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-tooltip>
|
| | | <el-tooltip content="删除" placement="top" v-if="scope.row.userId !== 1">
|
| | | <el-button link type="danger" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['system:user:remove']"></el-button>
|
| | | </el-tooltip>
|
| | | <el-tooltip content="重置密码" placement="top" v-if="scope.row.userId !== 1">
|
| | | <!-- <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-tooltip> -->
|
| | | <!-- <el-tooltip content="删除" placement="top" v-if="scope.row.userId !== 1"> -->
|
| | | <el-button link type="danger" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['system:user:remove']">删除</el-button>
|
| | | <!-- </el-tooltip> -->
|
| | | <!-- <el-tooltip content="重置密码" placement="top" v-if="scope.row.userId !== 1">
|
| | | <el-button link type="error" icon="Key" @click="handleResetPwd(scope.row)" v-hasPermi="['system:user:resetPwd']"></el-button>
|
| | | </el-tooltip>
|
| | | <el-tooltip content="分配角色" placement="top" v-if="scope.row.userId !== 1">
|
| | | <el-button link type="success" icon="CircleCheck" @click="handleAuthRole(scope.row)" v-hasPermi="['system:user:edit']"></el-button>
|
| | | </el-tooltip>
|
| | | </el-tooltip> -->
|
| | | <!-- <el-tooltip content="分配角色" placement="top" v-if="scope.row.userId !== 1"> -->
|
| | | <el-button link type="success" icon="CircleCheck" @click="handleAuthRole(scope.row)" v-hasPermi="['system:user:edit']">分配角色</el-button>
|
| | | <!-- </el-tooltip> -->
|
| | | <!-- <el-tooltip content="重置支付密码" placement="top" v-if="scope.row.userId !== 1">
|
| | | <el-button link type="danger" icon="Key" @click="handlePayPwd(scope.row)" v-hasPermi="['system:user:resetPwd']"></el-button>
|
| | | </el-tooltip> -->
|
| | |
| | | function getDeptTree() {
|
| | | deptTreeSelect().then((response) => {
|
| | | deptOptions.value = response.data;
|
| | | queryParams.value.deptId = response.data[0].id;
|
| | | getList()
|
| | | });
|
| | | }
|
| | | /** 查询用户列表 */
|
| | |
| | | }
|
| | |
|
| | | getDeptTree();
|
| | | getList();
|
| | | // getList();
|
| | | </script>
|