| | |
| | | <el-table-column label="序号" width="55" class-name="index"> |
| | | <template slot-scope="scope">{{ scope.$index + 1 + (page - 1) * size }}</template> |
| | | </el-table-column> |
| | | <el-table-column prop="username" label="用户名" show-overflow-tooltip ></el-table-column> |
| | | <el-table-column prop="trueName" label="姓名" show-overflow-tooltip ></el-table-column> |
| | | <el-table-column prop="phoneNum" label="手机号" show-overflow-tooltip ></el-table-column> |
| | | <el-table-column prop="userType" label="用户类型" > |
| | | <el-table-column prop="username" label="用户名" show-overflow-tooltip></el-table-column> |
| | | <el-table-column prop="trueName" label="姓名" show-overflow-tooltip></el-table-column> |
| | | <el-table-column prop="phoneNum" label="手机号" show-overflow-tooltip></el-table-column> |
| | | <el-table-column prop="userType" label="用户类型"> |
| | | <template slot-scope="scope"> |
| | | <span>{{ scope.row.userType == 1 ? "本地" : "OA账户" }}</span> |
| | | </template> |
| | |
| | | username: [{ required: true, message: "请输入用户名", trigger: "blur" }], |
| | | // password: [{ required: true, message: "请输入密码", trigger: "blur" }], |
| | | userType: [{ required: true, message: "请选择用户类型", trigger: "blur" }], |
| | | trueName: [{ required: true, message: "请输入姓名", trigger: "blur" }], |
| | | menuIds: [{ validator: validateTree, trigger: "blur" }] |
| | | trueName: [{ required: true, message: "请输入姓名", trigger: "blur" }] |
| | | // menuIds: [{ validator: validateTree, trigger: "blur" }] |
| | | }, |
| | | sysMenus: [], |
| | | DataTree: [], |
| | |
| | | } |
| | | }, |
| | | delUser(row) { |
| | | this.$confirm('确认要删除该用户吗, 是否继续?', '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | | type: 'warning' |
| | | }).then(async () => { |
| | | let rsp = await deleteUser({id:row.id}) |
| | | if (rsp && rsp.success) { |
| | | this.$message({ |
| | | type: 'success', |
| | | message: '删除成功!' |
| | | }); |
| | | } |
| | | this.$confirm("确认要删除该用户吗, 是否继续?", "提示", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning" |
| | | }).then(async () => { |
| | | let rsp = await deleteUser({ id: row.id }) |
| | | if (rsp && rsp.success) { |
| | | this.$message({ |
| | | type: "success", |
| | | message: "删除成功!" |
| | | }) |
| | | } |
| | | |
| | | this.findUserList() |
| | | }) |
| | | this.findUserList() |
| | | }) |
| | | }, |
| | | resetUser() { |
| | | this.ruleForm = { |