1- import { get , page , post } from "@/api/index" ;
1+ import { httpClient } from "@/api/index" ;
22
33
44// 流程设计
@@ -12,79 +12,79 @@ export async function list(
1212 type : string
1313 } [ ]
1414) {
15- return page ( '/api/query/flowWork/list' , params , sort , filter , match ) ;
15+ return httpClient . page ( '/api/query/flowWork/list' , params , sort , filter , match ) ;
1616}
1717
1818
1919export async function save ( body : any ) {
20- return post ( '/api/cmd/flowWork/save' , body ) ;
20+ return httpClient . post ( '/api/cmd/flowWork/save' , body ) ;
2121}
2222
2323export async function copy ( id : any ) {
24- return post ( '/api/cmd/flowWork/copy' , { id} ) ;
24+ return httpClient . post ( '/api/cmd/flowWork/copy' , { id} ) ;
2525}
2626
2727export async function remove ( id : any ) {
28- return post ( '/api/cmd/flowWork/delete' , { id} ) ;
28+ return httpClient . post ( '/api/cmd/flowWork/delete' , { id} ) ;
2929}
3030
3131export async function changeState ( id : any ) {
32- return post ( '/api/cmd/flowWork/changeState' , { id} ) ;
32+ return httpClient . post ( '/api/cmd/flowWork/changeState' , { id} ) ;
3333}
3434
3535export async function schema ( body : any ) {
36- return post ( '/api/cmd/flowWork/schema' , body ) ;
36+ return httpClient . post ( '/api/cmd/flowWork/schema' , body ) ;
3737}
3838
3939// 流程控制
4040
4141export async function startFlow ( body :any ) {
42- return post ( '/api/cmd/flowRecord/startFlow' , body ) ;
42+ return httpClient . post ( '/api/cmd/flowRecord/startFlow' , body ) ;
4343}
4444
4545export async function getFlowStep ( body :any ) {
46- return post ( '/api/cmd/flowRecord/getFlowStep' , body ) ;
46+ return httpClient . post ( '/api/cmd/flowRecord/getFlowStep' , body ) ;
4747}
4848
4949export async function removeFlow ( body :any ) {
50- return post ( '/api/cmd/flowRecord/remove' , body ) ;
50+ return httpClient . post ( '/api/cmd/flowRecord/remove' , body ) ;
5151}
5252
5353
5454export async function detail ( id ?:any , workCode ?:any ) {
55- return get ( '/api/query/flowRecord/detail' , { id, workCode} ) ;
55+ return httpClient . get ( '/api/query/flowRecord/detail' , { id, workCode} ) ;
5656}
5757
5858export async function saveFlow ( body :any ) {
59- return post ( '/api/cmd/flowRecord/save' , body ) ;
59+ return httpClient . post ( '/api/cmd/flowRecord/save' , body ) ;
6060}
6161
6262export async function submitFlow ( body :any ) {
63- return post ( '/api/cmd/flowRecord/submitFlow' , body ) ;
63+ return httpClient . post ( '/api/cmd/flowRecord/submitFlow' , body ) ;
6464}
6565
6666export async function trySubmitFlow ( body :any ) {
67- return post ( '/api/cmd/flowRecord/trySubmitFlow' , body ) ;
67+ return httpClient . post ( '/api/cmd/flowRecord/trySubmitFlow' , body ) ;
6868}
6969
7070export async function custom ( body :any ) {
71- return post ( '/api/cmd/flowRecord/custom' , body ) ;
71+ return httpClient . post ( '/api/cmd/flowRecord/custom' , body ) ;
7272}
7373
7474export async function recall ( body :any ) {
75- return post ( '/api/cmd/flowRecord/recall' , body ) ;
75+ return httpClient . post ( '/api/cmd/flowRecord/recall' , body ) ;
7676}
7777
7878export async function postponed ( body :any ) {
79- return post ( '/api/cmd/flowRecord/postponed' , body ) ;
79+ return httpClient . post ( '/api/cmd/flowRecord/postponed' , body ) ;
8080}
8181
8282export async function transfer ( body :any ) {
83- return post ( '/api/cmd/flowRecord/transfer' , body ) ;
83+ return httpClient . post ( '/api/cmd/flowRecord/transfer' , body ) ;
8484}
8585
8686export async function urge ( body :any ) {
87- return post ( '/api/cmd/flowRecord/urge' , body ) ;
87+ return httpClient . post ( '/api/cmd/flowRecord/urge' , body ) ;
8888}
8989
9090
@@ -97,7 +97,7 @@ export async function flowRecordList(params: any,
9797 key : string ,
9898 type : string
9999 } [ ] ) {
100- return page ( '/api/query/flowRecord/list' , params , sort , filter , match ) ;
100+ return httpClient . page ( '/api/query/flowRecord/list' , params , sort , filter , match ) ;
101101}
102102
103103
@@ -108,7 +108,7 @@ export async function findAllByOperatorId(params: any,
108108 key : string ,
109109 type : string
110110 } [ ] ) {
111- return page ( '/api/query/flowRecord/findAllByOperatorId' , params , sort , filter , match ) ;
111+ return httpClient . page ( '/api/query/flowRecord/findAllByOperatorId' , params , sort , filter , match ) ;
112112}
113113
114114
@@ -119,7 +119,7 @@ export async function findTodoByOperatorId(params: any,
119119 key : string ,
120120 type : string
121121 } [ ] ) {
122- return page ( '/api/query/flowRecord/findTodoByOperatorId' , params , sort , filter , match ) ;
122+ return httpClient . page ( '/api/query/flowRecord/findTodoByOperatorId' , params , sort , filter , match ) ;
123123}
124124
125125export async function findDoneByOperatorId ( params : any ,
@@ -129,7 +129,7 @@ export async function findDoneByOperatorId(params: any,
129129 key : string ,
130130 type : string
131131 } [ ] ) {
132- return page ( '/api/query/flowRecord/findDoneByOperatorId' , params , sort , filter , match ) ;
132+ return httpClient . page ( '/api/query/flowRecord/findDoneByOperatorId' , params , sort , filter , match ) ;
133133}
134134
135135
@@ -140,7 +140,7 @@ export async function findInitiatedByOperatorId(params: any,
140140 key : string ,
141141 type : string
142142 } [ ] ) {
143- return page ( '/api/query/flowRecord/findInitiatedByOperatorId' , params , sort , filter , match ) ;
143+ return httpClient . page ( '/api/query/flowRecord/findInitiatedByOperatorId' , params , sort , filter , match ) ;
144144}
145145
146146
@@ -151,7 +151,7 @@ export async function findTimeoutTodoByOperatorId(params: any,
151151 key : string ,
152152 type : string
153153 } [ ] ) {
154- return page ( '/api/query/flowRecord/findTimeoutTodoByOperatorId' , params , sort , filter , match ) ;
154+ return httpClient . page ( '/api/query/flowRecord/findTimeoutTodoByOperatorId' , params , sort , filter , match ) ;
155155}
156156
157157export async function findPostponedTodoByOperatorId ( params : any ,
@@ -161,5 +161,5 @@ export async function findPostponedTodoByOperatorId(params: any,
161161 key : string ,
162162 type : string
163163 } [ ] ) {
164- return page ( '/api/query/flowRecord/findPostponedTodoByOperatorId' , params , sort , filter , match ) ;
164+ return httpClient . page ( '/api/query/flowRecord/findPostponedTodoByOperatorId' , params , sort , filter , match ) ;
165165}
0 commit comments