globalProperties.js 3.29 KB
Newer Older
wangdanlei's avatar
wangdanlei committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112
import { get, post, put, del } from '@/utils/http'
// 获取应用列表
export function getAppList() {
  return get(`/ModelPackage/all`)
}
// 获取全局属性类型树
export function getGlobalTree(params) {
  return get(`/DxContext`, params)
}
// 删除全局属性类型
export function removeAttrType(id) {
  return del(`/GlobalAttrType/${id}`)
}
// 修改全局属性类型
export function editAttrType(params) {
  return put(`/GlobalAttrType`, params)
}
// 保存全局属性类型
export function saveAttrType(params) {
  return post(`/GlobalAttrType`, params)
}

// 获取全局属性类型树
export function getAttrListById(params) {
  return post(`/DxContextTeam/search`, params)
}
// 删除全局属性类型
export function removeAttr(ids) {
  return del(`/GlobalAttr/?${ids}`, ids)
}
// 修改全局属性类型
export function editAttr(params) {
  return put(`/GlobalAttr`, params)
}
// 保存全局属性类型
export function saveAttr(params) {
  return post(`/GlobalAttr`, params)
}
// 修改上下文状态
export function changeQyStatus(params) {
  return post(`/DxContextEnterprise/lifecycle/changeStatus?id=${params.id}&isValid=true&status=${params.status}`)
}
export function changeXmStatus(params) {
  return post(`/DxContextProject/lifecycle/changeStatus?id=${params.id}&isValid=true&status=${params.status}`)
}
export function changeGgkStatus(params) {
  return post(`/DxContextLibrary/lifecycle/changeStatus?id=${params.id}&isValid=true&status=${params.status}`)
}
// 编辑上下文
export function editQyAttrType(params) {
  return put(`/DxContextEnterprise`, params)
}
export function editXmAttrType(params) {
  return put(`/DxContextProject`, params)
}
export function editGgkAttrType(params) {
  return put(`/DxContextLibrary`, params)
}
// 保存上下文
export function saveQyAttrType(params) {
  return post(`/DxContextEnterprise`, params)
}
export function saveXmAttrType(params) {
  return post(`/DxContextProject`, params)
}
export function saveGgkAttrType(params) {
  return post(`/DxContextLibrary`, params)
}
// 删除上下文
export function removeQyAttrType(id) {
  return del(`/DxContextEnterprise/${id}`)
}
export function removeXmAttrType(id) {
  return del(`/DxContextProject/${id}`)
}
export function removeGgkAttrType(id) {
  return del(`/DxContextLibrary/${id}`)
}
export function addOrUpdataTeam(params) {
  return post(`/DxContextTeam/saveOrUpdateContextTeam`, params)
}
export function searchRoleAddUser(params) {
  // return post(`/DxContextTeam/search`, params)
  return post(`/DxContextTeam/find/recursion`, params)
}
export function addTeam(params) {
  return post(`/DxContextTeam`, params)
}
// 批量删除多个用户
export function deleteUsers(ids) {
  return del(`/DxContextTeamMember/batch/${ids}`)
}
// 批量删除多个角色
export function deleteRoles(ids) {
  return del(`/DxContextTeam/batch/${ids}`)
}
// 获取字典数据项列表
export function getDictDataList(params) {
  return post('/DictData/search', params)
}
// 通过用户名或账号模糊匹配查询存在账号的用户
export function getUsersByAccount(params) {
  return get('/DxUserInfo/byAccount', params)
}
// 批量查询人员
export function getUserByIds(params) {
  return post('/DxUserInfo/find/recursion', params)
}
// 批量查询人员
export function getParentIds(id) {
  return get(`/DxContext/flat/parent/${id}`)
}