diff --git a/src/api/rl/ext.js b/src/api/rl/ext.js
new file mode 100644
index 0000000..75a508c
--- /dev/null
+++ b/src/api/rl/ext.js
@@ -0,0 +1,48 @@
+import request from '@/utils/request'
+
+// 查询用户扩展列表
+export function listExt(query) {
+ return request({
+ url: '/system/ext/list',
+ method: 'get',
+ params: query
+ })
+}
+
+// 查询用户扩展详细
+export function getExt(extId) {
+ return request({
+ url: '/system/ext/' + extId,
+ method: 'get'
+ })
+}
+
+// 新增用户扩展
+export function addExt(data) {
+ return request({
+ url: '/system/ext',
+ method: 'post',
+ data: data
+ })
+}
+
+// 修改用户扩展
+export function updateExt(userId, dividendStatus) {
+ const data = {
+ userId,
+ dividendStatus
+ }
+ return request({
+ url: '/system/ext',
+ method: 'put',
+ data: data
+ })
+}
+
+// 删除用户扩展
+export function delExt(extId) {
+ return request({
+ url: '/system/ext/' + extId,
+ method: 'delete'
+ })
+}
diff --git a/src/api/system/user.js b/src/api/system/user.js
index 9b0211a..b3cd10f 100644
--- a/src/api/system/user.js
+++ b/src/api/system/user.js
@@ -4,7 +4,7 @@ import { parseStrEmpty } from "@/utils/ruoyi";
// 查询用户列表
export function listUser(query) {
return request({
- url: '/system/user/list',
+ url: '/user/user/list',
method: 'get',
params: query
})
@@ -13,7 +13,7 @@ export function listUser(query) {
// 查询用户详细
export function getUser(userId) {
return request({
- url: '/system/user/' + parseStrEmpty(userId),
+ url: '/user/user/' + parseStrEmpty(userId),
method: 'get'
})
}
@@ -21,7 +21,7 @@ export function getUser(userId) {
// 新增用户
export function addUser(data) {
return request({
- url: '/system/user',
+ url: '/user/user',
method: 'post',
data: data
})
@@ -30,7 +30,7 @@ export function addUser(data) {
// 修改用户
export function updateUser(data) {
return request({
- url: '/system/user',
+ url: '/user/user',
method: 'put',
data: data
})
@@ -39,7 +39,7 @@ export function updateUser(data) {
// 删除用户
export function delUser(userId) {
return request({
- url: '/system/user/' + userId,
+ url: '/user/user/' + userId,
method: 'delete'
})
}
@@ -51,7 +51,7 @@ export function resetUserPwd(userId, password) {
password
}
return request({
- url: '/system/user/resetPwd',
+ url: '/user/user/resetPwd',
method: 'put',
data: data
})
@@ -64,7 +64,7 @@ export function changeUserStatus(userId, status) {
status
}
return request({
- url: '/system/user/changeStatus',
+ url: '/user/user/changeStatus',
method: 'put',
data: data
})
@@ -73,7 +73,7 @@ export function changeUserStatus(userId, status) {
// 查询用户个人信息
export function getUserProfile() {
return request({
- url: '/system/user/profile',
+ url: '/user/user/profile',
method: 'get'
})
}
@@ -81,7 +81,7 @@ export function getUserProfile() {
// 修改用户个人信息
export function updateUserProfile(data) {
return request({
- url: '/system/user/profile',
+ url: '/user/user/profile',
method: 'put',
data: data
})
@@ -94,7 +94,7 @@ export function updateUserPwd(oldPassword, newPassword) {
newPassword
}
return request({
- url: '/system/user/profile/updatePwd',
+ url: '/user/user/profile/updatePwd',
method: 'put',
params: data
})
@@ -103,7 +103,7 @@ export function updateUserPwd(oldPassword, newPassword) {
// 用户头像上传
export function uploadAvatar(data) {
return request({
- url: '/system/user/profile/avatar',
+ url: '/user/user/profile/avatar',
method: 'post',
headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
data: data
@@ -113,7 +113,7 @@ export function uploadAvatar(data) {
// 查询授权角色
export function getAuthRole(userId) {
return request({
- url: '/system/user/authRole/' + userId,
+ url: '/user/user/authRole/' + userId,
method: 'get'
})
}
@@ -121,7 +121,7 @@ export function getAuthRole(userId) {
// 保存授权角色
export function updateAuthRole(data) {
return request({
- url: '/system/user/authRole',
+ url: '/user/user/authRole',
method: 'put',
params: data
})
@@ -130,7 +130,7 @@ export function updateAuthRole(data) {
// 查询部门下拉树结构
export function deptTreeSelect() {
return request({
- url: '/system/user/deptTree',
+ url: '/user/user/deptTree',
method: 'get'
})
}
diff --git a/src/views/system/ext/index.vue b/src/views/system/ext/index.vue
new file mode 100644
index 0000000..84daca9
--- /dev/null
+++ b/src/views/system/ext/index.vue
@@ -0,0 +1,324 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+ 新增
+
+
+ 修改
+
+
+ 删除
+
+
+ 导出
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ parseTime(scope.row.cooperationTime, '{y}-{m}-{d}') }}
+
+
+
+
+
+
+
+
+
+ 修改
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/partner/index.vue b/src/views/system/partner/index.vue
new file mode 100644
index 0000000..8a6de70
--- /dev/null
+++ b/src/views/system/partner/index.vue
@@ -0,0 +1,616 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+ 新增
+
+
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.balance }}元
+
+
+
+
+ { scope.row.dividendStatus = val === '1'; handleStatusChange(scope.row); }"
+ >
+
+
+
+
+ {{ parseTime(scope.row.cooperationTime) }}
+
+
+
+
+ 修改
+ 删除
+ handleCommand(command, scope.row)" v-hasPermi="['system:user:resetPwd', 'system:user:edit']">
+ 更多
+
+ 重置密码
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 手机号用于分润和登录系统,保存后不可修改
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{dict.label}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+