1- import { get , page , post } from "@/api/index" ;
1+ import { httpClient } from "@/api/index" ;
22
33
44// 流程设计
@@ -12,118 +12,118 @@ 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 detail ( id ?:any , workCode ?:any ) {
50- return get ( '/api/query/flowRecord/detail' , { id, workCode} ) ;
50+ return httpClient . get ( '/api/query/flowRecord/detail' , { id, workCode} ) ;
5151}
5252
5353export async function processDetail ( processId ?:any ) {
54- return get ( '/api/query/flowRecord/processDetail' , { processId} ) ;
54+ return httpClient . get ( '/api/query/flowRecord/processDetail' , { processId} ) ;
5555}
5656
5757export async function saveFlow ( body :any ) {
58- return post ( '/api/cmd/flowRecord/save' , body ) ;
58+ return httpClient . post ( '/api/cmd/flowRecord/save' , body ) ;
5959}
6060
6161export async function removeFlow ( body :any ) {
62- return post ( '/api/cmd/flowRecord/remove' , body ) ;
62+ return httpClient . post ( '/api/cmd/flowRecord/remove' , body ) ;
6363}
6464
6565
6666export async function submitFlow ( body :any ) {
67- return post ( '/api/cmd/flowRecord/submitFlow' , body ) ;
67+ return httpClient . post ( '/api/cmd/flowRecord/submitFlow' , body ) ;
6868}
6969
7070
7171export async function trySubmitFlow ( body :any ) {
72- return post ( '/api/cmd/flowRecord/trySubmitFlow' , body ) ;
72+ return httpClient . post ( '/api/cmd/flowRecord/trySubmitFlow' , body ) ;
7373}
7474
7575export async function custom ( body :any ) {
76- return post ( '/api/cmd/flowRecord/custom' , body ) ;
76+ return httpClient . post ( '/api/cmd/flowRecord/custom' , body ) ;
7777}
7878
7979
8080export async function recall ( body :any ) {
81- return post ( '/api/cmd/flowRecord/recall' , body ) ;
81+ return httpClient . post ( '/api/cmd/flowRecord/recall' , body ) ;
8282}
8383
8484export async function postponed ( body :any ) {
85- return post ( '/api/cmd/flowRecord/postponed' , body ) ;
85+ return httpClient . post ( '/api/cmd/flowRecord/postponed' , body ) ;
8686}
8787
8888export async function transfer ( body :any ) {
89- return post ( '/api/cmd/flowRecord/transfer' , body ) ;
89+ return httpClient . post ( '/api/cmd/flowRecord/transfer' , body ) ;
9090}
9191
9292export async function urge ( body :any ) {
93- return post ( '/api/cmd/flowRecord/urge' , body ) ;
93+ return httpClient . post ( '/api/cmd/flowRecord/urge' , body ) ;
9494}
9595
9696
9797// 待办中心控制
9898
9999export async function findAllByOperatorId ( lastId ?: string ,
100100 pageSize = 10 ) {
101- return get ( '/api/app/query/flowRecord/findAllByOperatorId' , { lastId, pageSize} ) ;
101+ return httpClient . get ( '/api/app/query/flowRecord/findAllByOperatorId' , { lastId, pageSize} ) ;
102102}
103103
104104export async function findTodoByOperatorId ( lastId ?: string ,
105105 pageSize = 10 ) {
106- return get ( '/api/app/query/flowRecord/findTodoByOperatorId' , { lastId, pageSize} ) ;
106+ return httpClient . get ( '/api/app/query/flowRecord/findTodoByOperatorId' , { lastId, pageSize} ) ;
107107}
108108
109109export async function findDoneByOperatorId ( lastId ?: string ,
110110 pageSize = 10 ) {
111- return get ( '/api/app/query/flowRecord/findDoneByOperatorId' , { lastId, pageSize} ) ;
111+ return httpClient . get ( '/api/app/query/flowRecord/findDoneByOperatorId' , { lastId, pageSize} ) ;
112112}
113113
114114
115115export async function findInitiatedByOperatorId ( lastId ?: string ,
116116 pageSize = 10 ) {
117- return get ( '/api/app/query/flowRecord/findInitiatedByOperatorId' , { lastId, pageSize} ) ;
117+ return httpClient . get ( '/api/app/query/flowRecord/findInitiatedByOperatorId' , { lastId, pageSize} ) ;
118118}
119119
120120
121121export async function findTimeoutTodoByOperatorId ( lastId ?: string ,
122122 pageSize = 10 ) {
123- return get ( '/api/app/query/flowRecord/findTimeoutTodoByOperatorId' , { lastId, pageSize} ) ;
123+ return httpClient . get ( '/api/app/query/flowRecord/findTimeoutTodoByOperatorId' , { lastId, pageSize} ) ;
124124}
125125
126126export async function findPostponedTodoByOperatorId ( lastId ?: string ,
127127 pageSize = 10 ) {
128- return get ( '/api/app/query/flowRecord/findPostponedTodoByOperatorId' , { lastId, pageSize} ) ;
128+ return httpClient . get ( '/api/app/query/flowRecord/findPostponedTodoByOperatorId' , { lastId, pageSize} ) ;
129129}
0 commit comments