zs
2025-04-28 1f32ea02c1910c417f159cba81a296e66ae7484c
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
import sdk from 'sdk'
const { request } = sdk.utils
 
export const getListData = (params = {}, url: string) => {
  const query = new URLSearchParams(params).toString()
  const str = query ? `?${query}` : ''
  return request.get(url + str)
}
 
/**
 * 排序模版排序
 * @param body
 * @param urlTpl  /api/v1/processmanagement/worksection/{id}/adjustsort/{sort}
 * @returns
 */
export const adjustSort = (
  body: {
    id: string
    sort: number
  },
  urlTpl: string
) => {
  const url = urlTpl
    .replace('{id}', body.id)
    .replace('{sort}', String(body.sort))
  return request.put(url, body)
}