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
113
114
115
116
117
118
import request from '@/router/axios';
 
// 业务类型树查询
export function getBizTypes(params) {
  return request({
    url: "/api/btmTypeController/getTreeBizTypes",
    method: "get",
    params
  });
}
// 查询所有的属性,参数btmId(业务类型名称)
export function getAllAttributesByBtmId(params) {
  return request({
    url: "/api/btmTypeController/getAllAttributesByBtmId",
    method: "get",
    params
  });
}
 
// 创建
export function addLifeCycle(params) {
  return request({
    url: "/api/btmTypeController/addBtmType",
    method: "post",
    data:params
  });
}
 
// 修改
export function updateLifeCycle(params) {
  return request({
    url: "/api/btmTypeController/updateBtmType",
    method: "put",
    data:params
  });
}
 
// 删除
export function deleteBtmType(params) {
  return request({
    url: "/api/btmTypeController/deleteBtmType",
    method: "delete",
    data:params
  });
}
 
// 创建视图
export function createView() {
  return request({
    url: "/api/btmTypeController/createView",
    method: "post",
  });
}
 
// 导入
export function expData (params) {
  return request({
    url: '/api/btmTypeController/expData',
    method: 'get',
    headers: {'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'},
    responseType: 'blob',
    params
  })
}
 
// 查看使用范围
export function getUsedBtmLinkList(params) {
  return request({
    url: "/api/btmTypeController/getUsedBtmLinkList",
    method: "get",
    params
  });
}
 
// 一致性检查
export function checkBtmConsistency(params) {
  return request({
    url: "/api/btmTypeController/checkBtmConsistency",
    method: "get",
    params
  });
}
 
// 修复
export function executeRepair(params) {
  return request({
    url: "/api/btmTypeController/executeRepair",
    method: "post",
    data:params
  });
}
 
// 查看索引
export function getIndexByCondition(params) {
  return request({
    url: "/api/btmTypeController/getIndexByCondition",
    method: "get",
    params
  });
}
 
// 删除索引
export function delIndex(params) {
  return request({
    url: "/api/btmTypeController/delIndex",
    method: "delete",
    params
  });
}
 
// 创建索引
export function addIndex(params) {
  return request({
    url: "/api/btmTypeController/addIndex",
    method: "post",
    data:params
  });
}