Blame view

api/workFlow/workFlowForm_1.js 1018 Bytes
290144e9   易尊强   第一次
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
  import request from '@/utils/request'
  
  export function Info(key, id) {
  	key = key.replace(key[0], key[0].toUpperCase())
  	return request({
  		url: `/api/workflow/Form/${key}/${id}`,
  		method: 'get'
  	})
  }
  export function Create(key, data) {
  	key = key.replace(key[0], key[0].toUpperCase())
  	return request({
  		url: `/api/workflow/Form/${key}`,
  		method: 'post',
  		data
  	})
  }
  export function Update(key, data) {
  	key = key.replace(key[0], key[0].toUpperCase())
  	return request({
  		url: `/api/workflow/Form/${key}/${data.id}`,
  		method: 'put',
  		data
  	})
  }
  // 获取动态表单信息
  export function DynamicInfo(id) {
  	return request({
  		url: `/api/workflow/Engine/FlowTask/${id}`,
  		method: 'get'
  	})
  }
  // 新建动态表单
  export function DynamicCreate(key, data) {
  	return request({
  		url: `/api/workflow/Engine/FlowTask`,
  		method: 'post',
  		data
  	})
  }
  // 修改动态表单
  export function DynamicUpdate(key, data) {
  	return request({
  		url: `/api/workflow/Engine/FlowTask/${data.id}`,
  		method: 'put',
  		data
  	})
  }