import { httpGET, httpPOST } from './common/httpFetch'
|
/* 布控任务---人员编辑 */
|
/**
|
* @description 获取底库人员树结构
|
* @param { string } name 检索关键字
|
*/
|
export const getTaskUserTree = body => {
|
return httpGET('data/api-c/taskUser/findTaskUserMenus', {
|
body
|
})
|
}
|
/* 布控人员 */
|
/**
|
* @description 布控人员查询以及排序接口 (已经布控)
|
* @param { string } isControl 布控状态(0为未布控,1为已布控)
|
* @param { string } groupInformation 搜索框旁边的组合查询信息
|
* @param { string } taskId 布控任务id ''
|
* @param { string } orderBy '' 根据哪个字段排序(可选的为:创建时间createTime ,布控任务taskName,操作人createBy,不传的话默认按更新时间倒序)
|
* @param { string } sortType 排序规则(可选:正序asc,倒序desc,传orderBy的话必传此字段)
|
* @param { string } start 当前页
|
* @param { string } length 每页长度
|
*/
|
export const getCtrlUserAlreadyList = body => {
|
return httpPOST('data/api-c/taskUser/select', {
|
body,
|
header: {
|
'Content-Type': 'application/x-www-form-urlencoded'
|
}
|
})
|
}
|
|
/**
|
* @description 布控人员停止布控接口(支持批量)
|
* @param { string } ids 停止布控的id集合
|
*/
|
export const stopCtrlAlready = body => {
|
return httpPOST('data/api-c/taskUser/stopControl', {
|
type: 'formData',
|
body
|
})
|
}
|
|
/**
|
* @description 布控人员删除接口(支持批量)
|
* @param { string } list TaskUser集合(必传 id,其他随意)
|
*/
|
export const delCtrlUserAlready = body => {
|
return httpPOST('data/api-c/taskUser/deleteTaskUser', {
|
body
|
})
|
}
|
|
/**
|
* @description 加入布控
|
* @param { string } TaskUser 该条数据所有有数据的字段 (对象)
|
* @param { string } taskIds 加入布控的任务列表id集合
|
*/
|
export const addCtrlAlready = body => {
|
return httpPOST('data/api-c/taskUser/joinControl', {
|
body
|
})
|
}
|
|
/**
|
* @description 已布控用户编辑回显
|
* @param { string } id 该条信息id
|
*/
|
export const getCtrlUserInfoAlready = body => {
|
return httpPOST('data/api-c/taskUser/editShow', {
|
body,
|
header: {
|
'Content-Type': 'application/x-www-form-urlencoded'
|
}
|
})
|
}
|
|
/**
|
* @description 已布控用户编辑
|
* @param { string } taskUser taskUser对象
|
*/
|
export const editCtrlUserAlready = body => {
|
return httpPOST('data/api-c/taskUser/save', {
|
body,
|
header: {
|
'Content-Type': 'application/x-www-form-urlencoded'
|
}
|
})
|
}
|
/**
|
* @description 已布控用户编辑
|
* @param { string } 无参数
|
*/
|
export const getAddToCtlTree = body => {
|
return httpGET('data/api-c/task/getAddToCtlTree', {
|
body
|
})
|
}
|
|
/* 待布控整理 */
|
/**
|
* 待布控列表上传图片
|
* 路径:ip:3699/data/api-c/uploadImgs
|
* 参数:
|
* files 文件集合
|
* 请求类型:httpMethod = "POST"
|
* 直接在上传组件中使用
|
*/
|
/**
|
* @description 待布控列表上传图片后确认添加保存
|
* @param { string } taskUser taskUser对象
|
*/
|
export const saveCtrlUserPhotos = body => {
|
return httpPOST('data/api-c/taskUserPending/add', {
|
body
|
})
|
}
|
/**
|
* @description 待布控加入布控
|
* @param { string } taskUser TaskUser集合(必传 id,其他随意)
|
*/
|
export const addCtrlTodo = body => {
|
return httpPOST('data/api-c/taskUserPending/joinControl', {
|
body
|
})
|
}
|
|
/**
|
* @description 待布控人员删除接口(支持批量)
|
* @param { string } list TaskUser集合(必传 id,其他随意)
|
*/
|
export const delCtrlUserTodo = body => {
|
return httpPOST('data/api-c/taskUserPending/deleteTaskUser', {
|
body
|
})
|
}
|
|
/**
|
* @description 待布控页面用户信息编辑回显
|
* @param { string } id 该条信息id
|
*/
|
export const getCtrlUserInfoTodo = body => {
|
return httpPOST('data/api-c/taskUserPending/editShow', {
|
body,
|
header: {
|
'Content-Type': 'application/x-www-form-urlencoded'
|
}
|
})
|
}
|
|
/**
|
* @description 布控页面用户信息编辑保存
|
* @param { string } taskUserPend 对象
|
*/
|
export const editCtrlUserTodo = body => {
|
return httpPOST('data/api-c/taskUserPending/save', {
|
body,
|
header: {
|
'Content-Type': 'application/x-www-form-urlencoded'
|
}
|
})
|
}
|
/* 金尔松新增 */
|
/**
|
* @description 获取底库人员树结构
|
* @param { string } name 组织机构名称
|
* @param { String } orgById 组织机构id
|
* @param { String } params 无用参数
|
*/
|
export const findUserFromPlat = body => {
|
return httpGET('data/api-c/taskUser/findUserFromPlat', {
|
body
|
})
|
}
|
/**
|
* @description 查询待布控人员
|
* @param {String} name 人员姓名
|
* @param {string} start 起始页
|
* @param {string} length 条数
|
* @param {string} dbInfos 所属底库排序(0或1)
|
* @param {string} createTime 加入时间排序(0或1)
|
* @param {string} updateBy 操作人排序(0或1)
|
* @param {string} params 无用参数
|
*/
|
export const findTaskPendingUsers = body => {
|
return httpGET('data/api-c/taskUserPending/findTaskPendingUsers', {
|
body
|
})
|
}
|
/**
|
* @description 布控任务-编辑人员-导入图片
|
* @param files 图片集合
|
*/
|
export const extractFace = body => {
|
return httpPOST('data/api-c/extractFace', {
|
body,
|
header: {
|
'Content-Type': 'application/json'
|
}
|
})
|
}
|
/**
|
* @description 保存任务布控人员
|
* @param {Array} beanVo 已选择得人
|
*/
|
export const saveTaskUser = body => {
|
return httpPOST('data/api-c/taskUser/saveTaskUser', {
|
body,
|
header: {
|
'Content-Type': 'application/json'
|
}
|
})
|
}
|