| | |
| | | <el-table v-loading="loading" :data="userList" @selection-change="handleSelectionChange">
|
| | | <el-table-column type="selection" width="50" align="center" />
|
| | | <el-table-column label="用户编号" align="center" key="userId" prop="userId" v-if="columns[0].visible" />
|
| | | <el-table-column label="用户名称" align="center" key="userName" prop="userName" v-if="columns[1].visible" :show-overflow-tooltip="true" />
|
| | | <el-table-column label="用户昵称" align="center" key="nickName" prop="nickName" v-if="columns[2].visible" :show-overflow-tooltip="true" />
|
| | | <!-- <el-table-column label="用户名称" align="center" key="userName" prop="userName" v-if="columns[1].visible" :show-overflow-tooltip="true" /> -->
|
| | | <el-table-column label="姓名" align="center" key="nickName" prop="nickName" v-if="columns[2].visible" :show-overflow-tooltip="true" />
|
| | | <el-table-column label="部门" align="center" key="deptName" prop="dept.deptName" v-if="columns[3].visible" :show-overflow-tooltip="true" />
|
| | | <el-table-column label="手机号码" align="center" key="phonenumber" prop="phonenumber" v-if="columns[4].visible" width="120" />
|
| | | <el-table-column label="状态" align="center" key="status" v-if="columns[5].visible">
|
| | |
| | | <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> -->
|
| | |
| | | <el-input v-model="form.userName" placeholder="请输入用户名称" maxlength="30" />
|
| | | </el-form-item>
|
| | | </el-col> -->
|
| | | <el-col :span="12">
|
| | | <!-- <el-col :span="12">
|
| | | <el-form-item v-if="form.userId == undefined" label="用户密码" prop="password">
|
| | | <el-input v-model="form.password" placeholder="请输入用户密码" type="password" maxlength="20" show-password />
|
| | | </el-form-item>
|
| | | </el-col>
|
| | | </el-col> -->
|
| | | </el-row>
|
| | | <el-row>
|
| | | <el-col :span="12">
|
| | |
| | | function getDeptTree() {
|
| | | deptTreeSelect().then((response) => {
|
| | | deptOptions.value = response.data;
|
| | | queryParams.value.deptId = response.data[0].id;
|
| | | getList()
|
| | | });
|
| | | }
|
| | | /** 查询用户列表 */
|
| | |
| | | }
|
| | |
|
| | | getDeptTree();
|
| | | getList();
|
| | | // getList();
|
| | | </script>
|