diff --git a/src/api/system/dept.js b/src/api/system/dept.js
new file mode 100644
index 0000000..5900d8b
--- /dev/null
+++ b/src/api/system/dept.js
@@ -0,0 +1,60 @@
+import request from '@/utils/request'
+
+// 查询部门列表
+export function listDept(query) {
+ return request({
+ url: '/system/dept/list',
+ method: 'get',
+ params: query
+ })
+}
+
+// 查询部门列表(排除节点)
+export function listDeptExcludeChild(deptId) {
+ return request({
+ url: '/system/dept/list/exclude/' + deptId,
+ method: 'get'
+ })
+}
+
+// 查询部门下拉树列表
+export function treeselect() {
+ return request({
+ url: '/system/dept/treeselect',
+ method: 'get'
+ })
+}
+
+// 查询部门详细
+export function getDept(deptId) {
+ return request({
+ url: '/system/dept/' + deptId,
+ method: 'get'
+ })
+}
+
+// 新增部门
+export function addDept(data) {
+ return request({
+ url: '/system/dept',
+ method: 'post',
+ data: data
+ })
+}
+
+// 修改部门
+export function updateDept(data) {
+ return request({
+ url: '/system/dept',
+ method: 'put',
+ data: data
+ })
+}
+
+// 删除部门
+export function delDept(deptId) {
+ return request({
+ url: '/system/dept/' + deptId,
+ method: 'delete'
+ })
+}
diff --git a/src/api/system/logininfor.js b/src/api/system/logininfor.js
new file mode 100644
index 0000000..9cf2a2f
--- /dev/null
+++ b/src/api/system/logininfor.js
@@ -0,0 +1,34 @@
+import request from '@/utils/request'
+
+// 查询登录日志列表
+export function list(query) {
+ return request({
+ url: '/system/logininfor/list',
+ method: 'get',
+ params: query
+ })
+}
+
+// 删除登录日志
+export function delLogininfor(infoId) {
+ return request({
+ url: '/system/logininfor/' + infoId,
+ method: 'delete'
+ })
+}
+
+// 解锁用户登录状态
+export function unlockLogininfor(userName) {
+ return request({
+ url: '/system/logininfor/unlock/' + userName,
+ method: 'get'
+ })
+}
+
+// 清空登录日志
+export function cleanLogininfor() {
+ return request({
+ url: '/system/logininfor/clean',
+ method: 'delete'
+ })
+}
diff --git a/src/api/system/post.js b/src/api/system/post.js
new file mode 100644
index 0000000..1a8e9ca
--- /dev/null
+++ b/src/api/system/post.js
@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询岗位列表
+export function listPost(query) {
+ return request({
+ url: '/system/post/list',
+ method: 'get',
+ params: query
+ })
+}
+
+// 查询岗位详细
+export function getPost(postId) {
+ return request({
+ url: '/system/post/' + postId,
+ method: 'get'
+ })
+}
+
+// 新增岗位
+export function addPost(data) {
+ return request({
+ url: '/system/post',
+ method: 'post',
+ data: data
+ })
+}
+
+// 修改岗位
+export function updatePost(data) {
+ return request({
+ url: '/system/post',
+ method: 'put',
+ data: data
+ })
+}
+
+// 删除岗位
+export function delPost(postId) {
+ return request({
+ url: '/system/post/' + postId,
+ method: 'delete'
+ })
+}
diff --git a/src/api/system/user.js b/src/api/system/user.js
index d961407..fcd16ef 100644
--- a/src/api/system/user.js
+++ b/src/api/system/user.js
@@ -1,41 +1,78 @@
-import upload from '@/utils/upload'
import request from '@/utils/request'
-// 用户密码重置
-export function updateUserPwd(oldPassword, newPassword) {
- const data = {
- oldPassword,
- newPassword
- }
+// 查询用户列表
+export function listUser(query) {
return request({
- url: '/system/user/profile/updatePwd',
- method: 'put',
- params: data
+ url: '/system/user/list',
+ method: 'get',
+ params: query
})
}
-// 查询用户个人信息
-export function getUserProfile() {
+// 查询用户详细
+export function getUser(userId) {
return request({
- url: '/system/user/profile',
+ url: '/system/user/' + userId,
method: 'get'
})
}
-// 修改用户个人信息
-export function updateUserProfile(data) {
+// 新增用户
+export function addUser(data) {
return request({
- url: '/system/user/profile',
+ url: '/system/user',
+ method: 'post',
+ data: data
+ })
+}
+
+// 修改用户
+export function updateUser(data) {
+ return request({
+ url: '/system/user',
method: 'put',
data: data
})
}
-// 用户头像上传
-export function uploadAvatar(data) {
- return upload({
- url: '/system/user/profile/avatar',
- name: data.name,
- filePath: data.filePath
+// 删除用户
+export function delUser(userId) {
+ return request({
+ url: '/system/user/' + userId,
+ method: 'delete'
+ })
+}
+
+// 用户状态修改
+export function changeUserStatus(userId, status) {
+ const data = {
+ userId,
+ status
+ }
+ return request({
+ url: '/system/user/changeStatus',
+ method: 'put',
+ data: data
+ })
+}
+
+// 用户密码重置
+export function resetUserPwd(userId, password) {
+ const data = {
+ userId,
+ password
+ }
+ return request({
+ url: '/system/user/resetPwd',
+ method: 'put',
+ data: data
+ })
+}
+
+// 查询部门下拉树结构
+export function deptTreeSelect() {
+ return request({
+ url: '/system/user/deptTree',
+ method: 'get'
})
}
diff --git a/src/pages.json b/src/pages.json
index 71fe898..f35ad2a 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -881,6 +881,68 @@
"style": {
"navigationBarTitleText": "数据详情"
}
+ },
+ {
+ "path": "system/logininfor/list",
+ "style": {
+ "navigationBarTitleText": "登录日志"
+ }
+ },
+ {
+ "path": "system/user/list",
+ "style": {
+ "navigationBarTitleText": "用户管理"
+ }
+ },
+ {
+ "path": "system/user/addEdit",
+ "style": {
+ "navigationBarTitleText": "用户管理",
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "system/user/details",
+ "style": {
+ "navigationBarTitleText": "用户详情",
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "system/post/list",
+ "style": {
+ "navigationBarTitleText": "岗位管理"
+ }
+ },
+ {
+ "path": "system/post/addEdit",
+ "style": {
+ "navigationBarTitleText": "岗位管理"
+ }
+ },
+ {
+ "path": "system/post/details",
+ "style": {
+ "navigationBarTitleText": "岗位详情"
+ }
+ },
+ {
+ "path": "system/dept/list",
+ "style": {
+ "navigationBarTitleText": "部门管理"
+ }
+ },
+ {
+ "path": "system/dept/addEdit",
+ "style": {
+ "navigationBarTitleText": "部门管理"
+ }
+ },
+ {
+ "path": "system/dept/details",
+ "style": {
+ "navigationBarTitleText": "部门详情"
+ }
}
]
},
diff --git a/src/pages_mine/pages/system/dept/addEdit.vue b/src/pages_mine/pages/system/dept/addEdit.vue
new file mode 100644
index 0000000..0c5bb23
--- /dev/null
+++ b/src/pages_mine/pages/system/dept/addEdit.vue
@@ -0,0 +1,311 @@
+
+
+
+
+
+ {{ title }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages_mine/pages/system/dept/details.vue b/src/pages_mine/pages/system/dept/details.vue
new file mode 100644
index 0000000..6f94b13
--- /dev/null
+++ b/src/pages_mine/pages/system/dept/details.vue
@@ -0,0 +1,240 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 基本信息
+
+
+
+ 部门编号
+ {{ detailInfo.deptId }}
+
+
+ 部门名称
+ {{ detailInfo.deptName }}
+
+
+ 显示排序
+ {{ detailInfo.orderNum }}
+
+
+ 负责人
+ {{ detailInfo.leader }}
+
+
+ 联系电话
+ {{ detailInfo.phone }}
+
+
+ 邮箱
+ {{ detailInfo.email }}
+
+
+ 状态
+ {{ statusText }}
+
+
+ 创建时间
+ {{ detailInfo.createTime }}
+
+
+ 更新时间
+ {{ detailInfo.updateTime }}
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages_mine/pages/system/dept/list.vue b/src/pages_mine/pages/system/dept/list.vue
new file mode 100644
index 0000000..b21d3ad
--- /dev/null
+++ b/src/pages_mine/pages/system/dept/list.vue
@@ -0,0 +1,573 @@
+
+
+
+
+
+
+
+
+ 筛选
+
+
+
+ 新增
+
+
+
+
+ 状态
+
+ {{ item.dictLabel }}
+
+
+
+
+
+ 重置
+
+
+
+ 确定
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 负责人
+ {{ item.leader }}
+
+
+ 联系电话
+ {{ item.phone }}
+
+
+ 邮箱
+ {{ item.email }}
+
+
+ 排序
+ {{ item.orderNum }}
+
+
+
+
+
+
+
+ 修改
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages_mine/pages/system/dict/list.vue b/src/pages_mine/pages/system/dict/list.vue
index 3362bd9..75009d4 100644
--- a/src/pages_mine/pages/system/dict/list.vue
+++ b/src/pages_mine/pages/system/dict/list.vue
@@ -247,6 +247,11 @@ function dictStr(value, list) {
diff --git a/src/pages_mine/pages/system/post/addEdit.vue b/src/pages_mine/pages/system/post/addEdit.vue
new file mode 100644
index 0000000..e3cbc34
--- /dev/null
+++ b/src/pages_mine/pages/system/post/addEdit.vue
@@ -0,0 +1,203 @@
+
+
+
+
+
+ {{ title }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages_mine/pages/system/post/details.vue b/src/pages_mine/pages/system/post/details.vue
new file mode 100644
index 0000000..3e44671
--- /dev/null
+++ b/src/pages_mine/pages/system/post/details.vue
@@ -0,0 +1,261 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 基本信息
+
+
+
+ 岗位编号
+ {{ detailInfo.postId }}
+
+
+ 岗位名称
+ {{ detailInfo.postName }}
+
+
+ 岗位编码
+ {{ detailInfo.postCode }}
+
+
+ 岗位排序
+ {{ detailInfo.postSort }}
+
+
+ 状态
+ {{ statusText }}
+
+
+ 创建时间
+ {{ detailInfo.createTime }}
+
+
+ 更新时间
+ {{ detailInfo.updateTime }}
+
+
+
+
+
+
+
+ 备注
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages_mine/pages/system/post/list.vue b/src/pages_mine/pages/system/post/list.vue
new file mode 100644
index 0000000..5b8e0b5
--- /dev/null
+++ b/src/pages_mine/pages/system/post/list.vue
@@ -0,0 +1,587 @@
+
+
+
+
+
+
+
+
+ 筛选
+
+
+
+ 新增
+
+
+
+
+ 岗位编码
+
+
+ 状态
+
+ {{ item.dictLabel }}
+
+
+
+
+
+ 重置
+
+
+
+ 确定
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 岗位排序
+ {{ item.postSort }}
+
+
+ 创建时间
+ {{ item.createTime }}
+
+
+ 备注
+ {{ item.remark }}
+
+
+
+
+
+
+
+ 修改
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages_mine/pages/system/user/addEdit.vue b/src/pages_mine/pages/system/user/addEdit.vue
new file mode 100644
index 0000000..2de0809
--- /dev/null
+++ b/src/pages_mine/pages/system/user/addEdit.vue
@@ -0,0 +1,267 @@
+
+
+
+
+
+ {{ title }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages_mine/pages/system/user/details.vue b/src/pages_mine/pages/system/user/details.vue
new file mode 100644
index 0000000..99b3fe5
--- /dev/null
+++ b/src/pages_mine/pages/system/user/details.vue
@@ -0,0 +1,162 @@
+
+
+
+
+ 基本信息
+
+
+ 用户昵称
+ {{ info.nickName || '-' }}
+
+
+ 用户名称
+ {{ info.userName || '-' }}
+
+
+ 手机号码
+ {{ info.phonenumber || '-' }}
+
+
+ 邮箱
+ {{ info.email || '-' }}
+
+
+ 用户性别
+ {{ sexStr || '-' }}
+
+
+ 部门
+ {{ info.dept && info.dept.deptName || '-' }}
+
+
+ 状态
+
+
+
+
+
+ 创建时间
+ {{ info.createTime || '-' }}
+
+
+ 备注
+ {{ info.remark }}
+
+
+
+
+
+
+
+
+
diff --git a/src/pages_mine/pages/system/user/list.vue b/src/pages_mine/pages/system/user/list.vue
new file mode 100644
index 0000000..8bdfd03
--- /dev/null
+++ b/src/pages_mine/pages/system/user/list.vue
@@ -0,0 +1,598 @@
+
+
+
+
+
+
+
+
+ 筛选
+
+
+
+ 新增
+
+
+
+
+ 手机号码
+
+
+ 状态
+
+ {{ item.dictLabel }}
+
+
+
+
+
+ 重置
+
+
+
+ 确定
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 手机号码
+ {{ item.phonenumber }}
+
+
+ 邮箱
+ {{ item.email }}
+
+
+ 部门
+ {{ item.dept.deptName }}
+
+
+ 创建时间
+ {{ item.createTime }}
+
+
+
+
+
+
+
+ 修改
+
+
+
+ 删除
+
+
+
+ 重置密码
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+