technological.js
2.0 KB
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
import http from './http.js'
import axios from 'axios'
import VueAxios from "vue-axios";
let baseUrl = 'wlpt-custom-service-workflow'
//部署管理
export const deployment = params => { return http.get(`${baseUrl}/deployment/deployment`, params); };
export const del = params => { return http.post(`${baseUrl}/deployment/del`, params); };
export const upload = params => { return http.post(`${baseUrl}/file/upload`, params); };
export const create = params => { return http.post(`${baseUrl}/deployment/create`, params); };
//流程实例管理
export const instanceList = params => { return http.get(`${baseUrl}/process/instanceList`, params); };
export const histroyList = params => { return http.get(`${baseUrl}/process/histroyList`, params); };
export const processDiagram = params => { return http.getStream(`${baseUrl}/processDiagram`, params); };
//任务管理
export const allTask = params => { return http.get(`${baseUrl}/task/allTask`, params); };
export const allTaskHistory = params => { return http.get(`${baseUrl}/task/allTaskHistory`, params); };
//部署定义管理
export const definitions = params => { return http.get(`${baseUrl}/deployment/definitions`, params); };
//导入原始
// export const uploadPath = `/api/${baseUrl}/file/upload`;
export const upfile = params => {
return axios({
method: 'POST', // 请求协议
url: '/nmms-server-import/nmms/awbm/importExcelAWBM', // 请求的地址
data: params, // post 请求的数据
timeout: 30000, // 超时时间, 单位毫秒
headers: {
'Content-Type': 'application/json;charset=UTF-8',
}
})
}
export const upfiles = params => {
return axios({
method: 'POST', // 请求协议
url: '/nmms-server-import/nmms/awbm/importExcelAWBM5201', // 请求的地址
data: params, // post 请求的数据
timeout: 30000, // 超时时间, 单位毫秒
headers: {
'Content-Type': 'application/json;charset=UTF-8',
}
})
}