1
0
mirror of https://github.com/fumiama/paper-manager.git synced 2026-06-12 04:00:23 +08:00

finish register

This commit is contained in:
源文雨
2023-03-14 15:32:56 +08:00
parent 4553be7c8a
commit 77e79facd9
12 changed files with 168 additions and 65 deletions

View File

@@ -8,7 +8,7 @@ const userInfo = {
email: 'fumiama@demo.com',
signature: '天何所沓,十二焉分。日月安属,列星安陈。',
introduction: '日は山の端にかかりぬ。',
title: '超级管理员',
title: '课程组长',
group: '信息与通信工程学院-网络工程系',
tags: [
{

View File

@@ -24,7 +24,7 @@ const roleList = (() => {
result.push({
id: index + 1,
orderNo: `${index + 1}`,
roleName: ['超级管理员', '权限管理员', '归档管理员', '普通用户'][index],
roleName: ['课程组长', '归档代理', '课程组员'][index],
roleValue: '@first',
createTime: '@datetime',
remark: '@cword(10,20)',

View File

@@ -4,7 +4,7 @@ import { resultError, resultSuccess, getRequestToken, requestParams } from '../_
export function createFakeUserList() {
return [
{
userId: '00000001',
userId: '1',
username: 'fumiama',
realName: '源文雨',
avatar: 'https://q1.qlogo.cn/g?b=qq&nk=1332524221&s=640',
@@ -14,24 +14,40 @@ export function createFakeUserList() {
homePath: '/dashboard/analysis',
roles: [
{
roleName: '超级管理员',
roleName: '课程组长',
value: 'super',
},
],
},
{
userId: '2',
username: 'test',
username: 'filemgr',
password: '123456',
realName: 'test user',
realName: '归档代理',
avatar: 'https://q1.qlogo.cn/g?b=qq&nk=339449197&s=640',
desc: 'tester',
desc: 'file manager',
token: 'fakeToken2',
homePath: '/dashboard/workbench',
roles: [
{
roleName: 'Tester',
value: 'test',
roleName: '归档代理',
value: 'filemgr',
},
],
},
{
userId: '3',
username: 'user',
password: '123456',
realName: '课程组员',
avatar: 'https://q1.qlogo.cn/g?b=qq&nk=468131931&s=640',
desc: 'normal user',
token: 'fakeToken3',
homePath: '/dashboard/workbench',
roles: [
{
roleName: '课程组员',
value: 'user',
},
],
},
@@ -74,10 +90,21 @@ export default [
timeout: 200,
method: 'post',
response: ({ body }) => {
const { username, phonenum } = body
const { username, mobile } = body
return resultSuccess({
msg:
'已将用户' + username + '电话' + phonenum + '的重置请求上报, 请耐心等待管理员与您联系!',
msg: '已将用户' + username + '电话' + mobile + '的重置请求上报, 请耐心等待!',
})
},
},
// mock register
{
url: '/basic-api/register',
timeout: 200,
method: 'post',
response: ({ body }) => {
const { username, mobile } = body
return resultSuccess({
msg: '已将用户' + username + '电话' + mobile + '的注册请求上报, 请耐心等待!',
})
},
},