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
| import http from './request'
|
| const api = {
| // 创建表
| createTable: tableId => new Promise((resolve, reject) => {
| http.get(`/form/businessTable/createTable?id=${tableId}`).then(res => {
| // console.log('res', res)
| resolve(res)
| })
| }),
| // 获取流程起始数据
| getStartData: bpmDefKey => new Promise((resolve, reject) => {
| http.get(`/bpm/instance/getStartData?defKey=${bpmDefKey}&formType=pc`).then(({data: res}) => {
| // console.log('startData', res)
| resolve(res)
| })
| }),
| bpm_instance_doAction: flowParam => new Promise((resolve, reject) => {
| http.post('/bpm/instance/doAction', flowParam).then(({data: res}) => {
| // console.log('res', res)
| resolve(res)
| })
| })
| }
|
| export default api
|
|