| | |
| | | </el-row> |
| | | |
| | | <el-table v-loading="loading" :data="userList" @selection-change="handleSelectionChange"> |
| | | <el-table-column type="selection" width="40" align="center" /> |
| | | <el-table-column type="selection" width="50" align="center" /> |
| | | <el-table-column label="用户编号" align="center" prop="userId" /> |
| | | <el-table-column label="用户名称" align="center" prop="userName" :show-overflow-tooltip="true" /> |
| | | <el-table-column label="用户昵称" align="center" prop="nickName" :show-overflow-tooltip="true" /> |
| | |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="归属部门" prop="deptId"> |
| | | <treeselect v-model="form.deptId" :options="deptOptions" placeholder="请选择归属部门" /> |
| | | <treeselect v-model="form.deptId" :options="deptOptions" :disable-branch-nodes="true" :show-count="true" placeholder="请选择归属部门" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | |
| | | resetUserPwd(row.userId, value).then(response => { |
| | | if (response.code === 200) { |
| | | this.msgSuccess("修改成功,新密码是:" + value); |
| | | } else { |
| | | this.msgError(response.msg); |
| | | } |
| | | }); |
| | | }).catch(() => {}); |
| | |
| | | this.msgSuccess("修改成功"); |
| | | this.open = false; |
| | | this.getList(); |
| | | } else { |
| | | this.msgError(response.msg); |
| | | } |
| | | }); |
| | | } else { |
| | |
| | | this.msgSuccess("新增成功"); |
| | | this.open = false; |
| | | this.getList(); |
| | | } else { |
| | | this.msgError(response.msg); |
| | | } |
| | | }); |
| | | } |
| | |
| | | } |
| | | } |
| | | }; |
| | | </script> |
| | | </script> |