config.js 964 Bytes
Newer Older
wangdanlei's avatar
wangdanlei committed
1 2
import {
  get,
wangdanlei's avatar
wangdanlei committed
3 4
  put,
  post
wangdanlei's avatar
wangdanlei committed
5 6 7
} from '../../utils/http'
// 查询模型配置信息
export function getLayouts(typeKey, layoutType) {
wangdanlei's avatar
wangdanlei committed
8 9 10 11 12 13 14 15 16
  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
        })
      }
    })
  })
wangdanlei's avatar
wangdanlei committed
17 18 19 20 21 22 23 24 25
}
// 保存文档
export function editDoc(params) {
  return put('/DxDocument', params)
}
// 查询文档详情
export function getDocDetail(params) {
  return get('DxDocument/detail', params)
}
wangdanlei's avatar
wangdanlei committed
26 27 28 29 30 31 32 33 34 35 36 37
// 查询所有的应用
export function getAllApp() {
  return get('/ModelPackage/all')
}
// 根据业务密级查询用户密级
export function getUserSecretBySecret(params) {
  return get(`/SecretCodeMatrix/getUserSecretBySecret`, params)
}
// 查询所有app
export function getAllApplication(params) {
  return post('/DxApplication/search', params)
}