123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325 |
- import request from '@/utils/request'
- // 查询用户列表-下拉列表
- export function selectListUser(query) {
- return request({
- url: '/system/user/selectlist',
- method: 'get',
- params: query
- })
- }
- //根据名称查询实验室
- export function subjectList(query) {
- return request({
- url: '/laboratory/subject/list/listAdmin',
- method: 'get',
- params: query
- })
- }
- //获取实验室列表
- export function listInfo(query) {
- return request({
- url: '/laboratory/subject/listInfo',
- method: 'get',
- params: query
- })
- }
- //获取当前账号学院数据
- export function filterDept(query) {
- return request({
- url: '/system/dept/filterDept',
- method: 'get',
- params: query
- })
- }
- // 查询实验室类型下啦列表
- export function queryOption(data) {
- return request({
- url: '/laboratory/labMold/queryOption/',
- method: 'post',
- data: data
- })
- }
- //获取检查单位
- export function treeselect(query) {
- return request({
- url: '/system/dept/treeselect',
- method: 'get',
- params: query
- })
- }
- //查询学院列表(根据数据权限)
- export function getDeptNoAuthList(data) {
- return request({
- url: '/system/dept/getDeptNoAuthList?deptType=1',
- method: 'get',
- data: data
- })
- }
- /*=================================V3=================================*/
- /* 分类获取公共配置
- * category 1.系统参数 2.公共配置
- * configType 1.基础配置 2.管控一体机 3.化学品终端 4.小程序配置 5.开发配置 6.首页配置
- */
- export function getConfigByType(data) {
- return request({
- url: '/system/config/info/getConfigByType',
- method: 'post',
- data: data
- })
- }
- /* 分类获取公共配置列表
- * category 1.系统参数 2.公共配置(系统参数页面 传1)
- * configType 1.基础配置 2.管控一体机 3.化学品终端 4.小程序配置 5.开发配置 6.首页配置(系统参数页面 传0)
- */
- export function getConfigList(data) {
- return request({
- url: '/system/config/info/list',
- method: 'post',
- data: data
- })
- }
- // 部门列表
- export function getDeptList(data) {
- return request({
- url: '/system/dept/list',
- method: 'post',
- data: data
- })
- }
- /* 部门下拉列表
- * deptName 名称
- * level 查询级别
- * deptType 1.学院 0.非学院
- */
- export function getDeptDropList(data) {
- return request({
- url: '/system/dept/dropList',
- method: 'post',
- data: data
- })
- }
- // 新增部门
- export function setDeptAdd(data) {
- return request({
- url: '/system/dept/add',
- method: 'post',
- data: data
- })
- }
- // 编辑部门
- export function setDeptUpdate(data) {
- return request({
- url: '/system/dept/update',
- method: 'post',
- data: data
- })
- }
- // 删除部门
- export function setDeptDelete(data) {
- return request({
- url: '/system/dept/delete',
- method: 'post',
- data: data
- })
- }
- // 部门排序
- export function setDeptSort(data) {
- return request({
- url: '/system/dept/sort',
- method: 'post',
- data: data
- })
- }
- // 获取用户列表 userType 0.系统 1.教职工 2.学生 3.大屏(暂无用处)
- export function systemUserList(data) {
- return request({
- url: '/system/user/list',
- method: 'post',
- data: data
- })
- }
- //新增用户数据
- export function systemUserAdd(data) {
- return request({
- url: '/system/user/add',
- method: 'post',
- data: data
- })
- }
- //编辑用户数据
- export function systemUserUpdate(data) {
- return request({
- url: '/system/user/update',
- method: 'post',
- data: data
- })
- }
- //修改用户状态(启用/停用&在职/离职)
- export function systemUserEditState(data) {
- return request({
- url: '/system/user/editState',
- method: 'post',
- data: data
- })
- }
- //修改密码
- export function systemUserEditPasswd(data) {
- return request({
- url: '/system/user/editPasswd',
- method: 'post',
- data: data
- })
- }
- //删除用户
- export function systemUserDelete(data) {
- return request({
- url: '/system/user/delete',
- method: 'post',
- data: data
- })
- }
- //获取用户详情
- export function systemUserDetail(query) {
- return request({
- url: '/system/user/detail',
- method: 'get',
- params: query
- })
- }
- //获取个人信息
- export function systemUserProfile(query) {
- return request({
- url: '/system/user/profile',
- method: 'get',
- params: query
- })
- }
- //重置密码
- export function systemUserResetPasswd(data) {
- return request({
- url: '/system/user/resetPasswd',
- method: 'post',
- data: data
- })
- }
- /* 自定义用户查询
- * userType 0.系统用户 1.教职工 2.学生 (必传)
- * userName 用户名
- * mobile 手机号
- * cardNum 卡号
- * account 账号
- * userIds 用户IDS
- * pageSize 不传默认返回10条
- */
- export function systemUserSelect(data) {
- return request({
- url: '/system/user/select',
- method: 'post',
- data: data
- })
- }
- /* 自定义获取专业/班级下拉列表
- * type 1.专业 2.班级 (必传)
- * referId 父类ID(院系ID,专业ID)
- * name 名称
- * state 状态
- */
- export function systemUserMajorSelect(data) {
- return request({
- url: '/system/user/major/select',
- method: 'post',
- data: data
- })
- }
- //添加-更新人脸
- export function systemUserFaceAddOrUpdate(data) {
- return request({
- url: '/system/user/face/addOrUpdate',
- method: 'post',
- data: data
- })
- }
- //检测人脸
- export function systemUserFaceCheckFace(data) {
- return request({
- url: '/system/user/face/checkFace',
- method: 'post',
- data: data
- })
- }
- //人脸信息详情
- export function systemUserFaceAddOrInfo(query) {
- return request({
- url: '/system/user/face/info',
- method: 'get',
- params: query
- })
- }
- //通用上传接口
- export function systemFileUpload(data) {
- return request({
- url: '/system/file/upload',
- method: 'post',
- data: data
- })
- }
- //商户下拉列表
- export function tenantDropList(data) {
- return request({
- url: '/system/tenant/dropList',
- method: 'post',
- data: data
- })
- }
- //认证信息下拉列表
- export function authCustomerDropList(data) {
- return request({
- url: '/auth/customer/dropList',
- method: 'post',
- data: data
- })
- }
- //角色下拉列表
- export function systemRoleDropList(data) {
- return request({
- url: '/system/role/dropList',
- method: 'post',
- data: data
- })
- }
|