mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-10 19:36:47 +08:00
2022年5月29日 从svn移到git
This commit is contained in:
52
api/system/message.js
Normal file
52
api/system/message.js
Normal file
@@ -0,0 +1,52 @@
|
||||
/* 消息的处理 */
|
||||
import ajax from '@/utils/xajax.js'
|
||||
|
||||
/*
|
||||
消息分页
|
||||
@param pageIndex 第几页
|
||||
@param pageSize 每页展示条数
|
||||
@param isRead 是否已读
|
||||
*/
|
||||
const list=function(query){
|
||||
return ajax.post('/xboe/sys/message/list',query);
|
||||
}
|
||||
/*
|
||||
删除消息
|
||||
@param ids 勾选的多个消息id
|
||||
*/
|
||||
const del=function(ids){
|
||||
return ajax.postJson('/xboe/sys/message/delete',ids);
|
||||
}
|
||||
/*
|
||||
查看当前消息详细信息
|
||||
点击查看后如果是未读变成已读
|
||||
@param id 当前消息id
|
||||
*/
|
||||
const detail=function(id){
|
||||
return ajax.get('/xboe/sys/message/detail?id=${id}');
|
||||
}
|
||||
/*发送消息
|
||||
*/
|
||||
const save=function(data){
|
||||
return ajax.postJson('/xboe/sys/message/save',data);
|
||||
}
|
||||
/*
|
||||
当前未读条数 当前用户
|
||||
*/
|
||||
const isRead=function(){
|
||||
return ajax.get('/xboe/sys/message/isRead');
|
||||
}
|
||||
/*
|
||||
批量设置已读 ids
|
||||
*/
|
||||
const updateIsRead=function(ids){
|
||||
return ajax.postJson('/xboe/sys/message/updateIsRead',ids)
|
||||
}
|
||||
export default{
|
||||
list,
|
||||
del,
|
||||
detail,
|
||||
save,
|
||||
isRead,
|
||||
updateIsRead
|
||||
}
|
||||
28
api/system/organiza.js
Normal file
28
api/system/organiza.js
Normal file
@@ -0,0 +1,28 @@
|
||||
import ajax from '@/utils/xajax.js'
|
||||
|
||||
|
||||
/**
|
||||
* 全量列表树,返回所有的机构树形数据,且机构数据项多
|
||||
* @param {
|
||||
* name 机构名称
|
||||
* parentId 父节点ID
|
||||
* } query
|
||||
* @returns
|
||||
*/
|
||||
const treeList = function (query) {
|
||||
return ajax.get('/xboe/org/tree-list', {params:query});
|
||||
}
|
||||
|
||||
/**
|
||||
* 按父节点ID查询机构列表,适合构建动态机构树
|
||||
* @param parentId 父节点ID 根目录为 -1
|
||||
* @returns
|
||||
*/
|
||||
const listByParent = function (parentId) {
|
||||
return ajax.get('/xboe/org/list-by-parent?parentId='+parentId);
|
||||
}
|
||||
export default {
|
||||
treeList,
|
||||
listByParent
|
||||
}
|
||||
|
||||
73
api/system/user.js
Normal file
73
api/system/user.js
Normal file
@@ -0,0 +1,73 @@
|
||||
import ajax from '@/utils/xajax.js'
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
* @param {
|
||||
* pageIndex 起始页
|
||||
* pageSize 每页条数
|
||||
* name 姓名
|
||||
* userNo 工号
|
||||
* departId 部门ID
|
||||
* } query
|
||||
* @returns
|
||||
*/
|
||||
const list=function(query) {
|
||||
return ajax.get('/xboe/sys/user/page',{params:query});
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过用户名查询用户信息(该接口限定使用场景为先查本地库后查旧系统)
|
||||
* @param {
|
||||
* 用户名
|
||||
* } name
|
||||
* @returns
|
||||
*/
|
||||
const searchLoginName = function(name) {
|
||||
return ajax.get('/xboe/sys/user/search-loginname?loginName='+name);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据多个人员的id,得到用户的信息(简要信息)
|
||||
* @param {账号ID数组} ids
|
||||
* @returns
|
||||
*/
|
||||
const getByIds = function(ids) {
|
||||
return ajax.postJson('/xboe/sys/user/ids',ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据loginName,得到用户的信息(简要信息)
|
||||
* @param {用户名} loginName
|
||||
* @returns
|
||||
*/
|
||||
const getByLoginName = function(loginName) {
|
||||
return ajax.get('/xboe/sys/user/loginname?loginName='+loginName);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据name,得到用户的信息(简要信息)
|
||||
* @param {用户姓名} name
|
||||
* @returns 返回列表
|
||||
*/
|
||||
const findByName = function(name) {
|
||||
return ajax.get('/xboe/sys/user/name?name='+name);
|
||||
}
|
||||
|
||||
/**
|
||||
* 得到用户详情(详细信息)
|
||||
* @param {*} id
|
||||
* @returns
|
||||
*/
|
||||
const detail = function(id) {
|
||||
return ajax.get('/xboe/sys/user/detail?id='+id);
|
||||
}
|
||||
|
||||
|
||||
export default{
|
||||
list,
|
||||
searchLoginName,
|
||||
getByIds,
|
||||
getByLoginName,
|
||||
findByName,
|
||||
detail
|
||||
}
|
||||
Reference in New Issue
Block a user