diff --git a/admin-ui/src/api/ai/dept.js b/admin-ui/src/api/ai/dept.js new file mode 100644 index 0000000..415856b --- /dev/null +++ b/admin-ui/src/api/ai/dept.js @@ -0,0 +1,46 @@ +import request from '@/utils/request' + +export function listDept(query) { + return request({ + url: '/ai/dept/list', + method: 'get', + params: query + }) +} + +export function listDeptExcludeChild(deptId) { + return request({ + url: '/ai/dept/list/exclude/' + deptId, + method: 'get' + }) +} + +export function getDept(deptId) { + return request({ + url: '/ai/dept/' + deptId, + method: 'get' + }) +} + +export function addDept(data) { + return request({ + url: '/ai/dept', + method: 'post', + data: data + }) +} + +export function updateDept(data) { + return request({ + url: '/ai/dept', + method: 'put', + data: data + }) +} + +export function delDept(deptId) { + return request({ + url: '/ai/dept/' + deptId, + method: 'delete' + }) +} diff --git a/admin-ui/src/api/ai/user.js b/admin-ui/src/api/ai/user.js index 93c6cca..389afbc 100644 --- a/admin-ui/src/api/ai/user.js +++ b/admin-ui/src/api/ai/user.js @@ -81,3 +81,12 @@ export function updatePassword(id, newPassword) { data: data }) } + +/** 分配归属部门,deptId 可省略或 null 表示清空 */ +export function assignAiUserDept(data) { + return request({ + url: '/ai/user/dept', + method: 'put', + data + }) +} diff --git a/admin-ui/src/views/ai/dept/index.vue b/admin-ui/src/views/ai/dept/index.vue new file mode 100644 index 0000000..ae3808d --- /dev/null +++ b/admin-ui/src/views/ai/dept/index.vue @@ -0,0 +1,344 @@ + + + diff --git a/admin-ui/src/views/ai/user/index.vue b/admin-ui/src/views/ai/user/index.vue index c9ad232..1a893f5 100644 --- a/admin-ui/src/views/ai/user/index.vue +++ b/admin-ui/src/views/ai/user/index.vue @@ -50,6 +50,16 @@ /> + + + 搜索 重置 @@ -78,6 +88,7 @@ +