@ -2,17 +2,9 @@ import { getAction, deleteAction, putAction, postAction, httpAction } from '@/ap
import Vue from ' vue '
import { UI_CACHE_DB_DICT_DATA } from "@/store/mutation-types"
////根路径
// const doMian = "/jeecg-boot/";
////图片预览请求地址
// const imgView = "http://localhost:8080/jeecg-boot/sys/common/view/";
//角色管理
const addRole = ( params ) = > postAction ( "/sys/role/add" , params ) ;
const editRole = ( params ) = > putAction ( "/sys/role/edit" , params ) ;
// const getRoleList = (params)=>getAction("/sys/role/list",params);
// const deleteRole = (params)=>deleteAction("/sys/role/delete",params);
// const deleteRoleList = (params)=>deleteAction("/sys/role/deleteBatch",params);
const checkRoleCode = ( params ) = > getAction ( "/sys/role/checkRoleCode" , params ) ;
const queryall = ( params ) = > getAction ( "/sys/role/queryall" , params ) ;
@ -21,8 +13,6 @@ const addUser = (params)=>postAction("/sys/user/add",params);
const editUser = ( params ) = > putAction ( "/sys/user/edit" , params ) ;
const queryUserRole = ( params ) = > getAction ( "/sys/user/queryUserRole" , params ) ;
const getUserList = ( params ) = > getAction ( "/sys/user/list" , params ) ;
// const deleteUser = (params)=>deleteAction("/sys/user/delete",params);
// const deleteUserList = (params)=>deleteAction("/sys/user/deleteBatch",params);
const frozenBatch = ( params ) = > putAction ( "/sys/user/frozenBatch" , params ) ;
//验证用户是否存在
const checkOnlyUser = ( params ) = > getAction ( "/sys/user/checkOnlyUser" , params ) ;
@ -37,16 +27,12 @@ const getPermissionList = (params)=>getAction("/sys/permission/list",params);
const getSystemMenuList = ( params ) = > getAction ( "/sys/permission/getSystemMenuList" , params ) ;
const getSystemSubmenu = ( params ) = > getAction ( "/sys/permission/getSystemSubmenu" , params ) ;
const getSystemSubmenuBatch = ( params ) = > getAction ( ' / sys / permission / getSystemSubmenuBatch ' , params )
/*update_end author:wuxianquan date:20190908 for:添加查询一级菜单和子菜单查询api */
// const deletePermission = (params)=>deleteAction("/sys/permission/delete",params);
// const deletePermissionList = (params)=>deleteAction("/sys/permission/deleteBatch",params);
const queryTreeList = ( params ) = > getAction ( "/sys/permission/queryTreeList" , params ) ;
const queryTreeListForRole = ( params ) = > getAction ( "/sys/role/queryTreeList" , params ) ;
const queryListAsync = ( params ) = > getAction ( "/sys/permission/queryListAsync" , params ) ;
const queryRolePermission = ( params ) = > getAction ( "/sys/permission/queryRolePermission" , params ) ;
const saveRolePermission = ( params ) = > postAction ( "/sys/permission/saveRolePermission" , params ) ;
//const queryPermissionsByUser = (params)=>getAction("/sys/permission/queryByUser",params);
const queryPermissionsByUser = ( params ) = > getAction ( "/sys/permission/getUserPermissionByToken" , params ) ;
const loadAllRoleIds = ( params ) = > getAction ( "/sys/permission/loadAllRoleIds" , params ) ;
const getPermissionRuleList = ( params ) = > getAction ( "/sys/permission/getPermRuleListByPermId" , params ) ;
@ -75,14 +61,9 @@ const deleteLogList = (params)=>deleteAction("/sys/log/deleteBatch",params);
//数据字典
const addDict = ( params ) = > postAction ( "/sys/dict/add" , params ) ;
const editDict = ( params ) = > putAction ( "/sys/dict/edit" , params ) ;
//const getDictList = (params)=>getAction("/sys/dict/list",params);
const treeList = ( params ) = > getAction ( "/sys/dict/treeList" , params ) ;
// const delDict = (params)=>deleteAction("/sys/dict/delete",params);
//const getDictItemList = (params)=>getAction("/sys/dictItem/list",params);
const addDictItem = ( params ) = > postAction ( "/sys/dictItem/add" , params ) ;
const editDictItem = ( params ) = > putAction ( "/sys/dictItem/edit" , params ) ;
//const delDictItem = (params)=>deleteAction("/sys/dictItem/delete",params);
//const delDictItemList = (params)=>deleteAction("/sys/dictItem/deleteBatch",params);
//字典标签专用(通过code获取字典数组)
export const ajaxGetDictItems = ( code , params ) = > getAction ( ` / sys / dict / getDictItems / $ { code } ` , params ) ;
@ -101,14 +82,10 @@ const doReovkeData = (params)=>getAction("/sys/annountCement/doReovkeData",param
//获取系统访问量
const getLoginfo = ( params ) = > getAction ( "/sys/loginfo" , params ) ;
const getVisitInfo = ( params ) = > getAction ( "/sys/visitInfo" , params ) ;
//数据日志访问
// const getDataLogList = (params)=>getAction("/sys/dataLog/list",params);
// 根据部门主键查询用户信息
const queryUserByDepId = ( params ) = > getAction ( "/sys/user/queryUserByDepId" , params ) ;
// 查询用户角色表里的所有信息
// const queryUserRoleMap = (params)=>getAction("/sys/user/queryUserRoleMap",params);
// 重复校验
const duplicateCheck = ( params ) = > getAction ( "/sys/duplicate/check" , params ) ;
// 加载分类字典
@ -126,8 +103,6 @@ export const transitRESTful = {
}
export {
// imgView,
// doMian,
addRole ,
editRole ,
checkRoleCode ,