config.js 1.52 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
import {
  get, post
  //  del
} from '../utils/http'

// 根据keyName 查询
export function getAppLayoutByKey(keyName) {
  return get(`/AppLayout/find/${keyName}`)
}
// 查询模型配置信息
export function getLayouts(typeKey, layoutType) {
  return new Promise(async(resolve, reject) => {
    get('/DxModelComponent/findModelComponent', { modelDefName: typeKey, layoutType }).then(res => {
      if (res.items && res.items.content) {
        resolve({
          items: res.items.content
        })
      }
    })
  })
}
// 查询所有基本属性
export function getappLayout(params) {
  return get('/AppLayout/' + params)
}
// // 查询所有基本属性
// export function postappLayout(params) {
//   return post('/AppLayout/', params)
// }
// // 查询所有基本属性
// export function putappLayout(params) {
//   return put('/AppLayout/', params)
// }
// 库房查询接口
export function getTreeData(params) {
  return post('/DxPbWorkCenter/search', params)
}
// 库房新增编辑接口
export function subTreeData(params) {
  return post('/ DxPbWorkCenter/recursion', params)
}
// 库区查询接口
export function getAreaTreeData(params) {
  return post('/DxPbArea/search', params)
}
// 库区新增编辑接口
export function subTreeAreaData(params) {
  return post('/DxPbArea/recursion', params)
}
// 库位查询接口
export function getWorkTreeData(params) {
  return post('/DxPbWorkUnit/search', params)
}
// 库位新增编辑接口
export function subWorkTreeData(params) {
  return post('/DxPbWorkUnit/recursion', params)
}