OfficeSystem/api/verify.js

25 lines
660 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import {convertArrayParamsToQuery} from "@/api/utils";
// 审批相关 API
export const getVerifyList = (params = {}) => {
// 使用通用函数处理数组参数
const { params: processedParams, queryString } = convertArrayParamsToQuery(params);
// 构建请求 URL去掉查询字符串开头的 &
const url = queryString
? `/bst/verify/list?${queryString}`
: '/bst/verify/list';
return uni.$uv.http.get(url, {
params: {
pageNum: 1,
pageSize: 20,
orderByColumn: 'createTime',
isAsc: 'descending',
bstType: 'UPDATE_TASK',
...processedParams
},
custom: {
auth: true
}
});
};