| | |
| | | </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-row> |
| | | |
| | | <!-- 添加或修改参数配置对话框 --> |
| | | <el-dialog :title="title" :visible.sync="open" width="600px"> |
| | | <el-dialog :title="title" :visible.sync="open" width="600px" append-to-body> |
| | | <el-form ref="form" :model="form" :rules="rules" label-width="80px"> |
| | | <el-row> |
| | | <el-col :span="12"> |
| | |
| | | </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"> |
| | |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="用户名称" prop="userName"> |
| | | <el-form-item v-if="form.userId == undefined" label="用户名称" prop="userName"> |
| | | <el-input v-model="form.userName" placeholder="请输入用户名称" /> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | </el-dialog> |
| | | |
| | | <!-- 用户导入对话框 --> |
| | | <el-dialog :title="upload.title" :visible.sync="upload.open" width="400px"> |
| | | <el-dialog :title="upload.title" :visible.sync="upload.open" width="400px" append-to-body> |
| | | <el-upload |
| | | ref="upload" |
| | | :limit="1" |
| | |
| | | { required: true, message: "用户密码不能为空", trigger: "blur" } |
| | | ], |
| | | email: [ |
| | | { required: true, message: "邮箱地址不能为空", trigger: "blur" }, |
| | | { |
| | | type: "email", |
| | | message: "'请输入正确的邮箱地址", |
| | |
| | | } |
| | | ], |
| | | phonenumber: [ |
| | | { required: true, message: "手机号码不能为空", trigger: "blur" }, |
| | | { |
| | | pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/, |
| | | message: "请输入正确的手机号码", |
| | |
| | | this.sexOptions = response.data; |
| | | }); |
| | | this.getConfigKey("sys.user.initPassword").then(response => { |
| | | this.initPassword = response.data; |
| | | this.initPassword = response.msg; |
| | | }); |
| | | }, |
| | | methods: { |
| | |
| | | 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); |
| | | } |
| | | }); |
| | | } |