123456789101112131415161718192021222324252627 |
- import SearchListApiBase from './base'
- import { ajaxGetSearchPurchaseList } from '../api/search-purchase'
- export default class SearchPurchaseListApi extends SearchListApiBase {
- constructor(config) {
- super(config)
- }
- /**
- * 覆写请求
- */
- async ajaxQuery(params) {
- const type = params._expand.type
- delete params._expand
- return ajaxGetSearchPurchaseList(type, params).then((res) => {
- console.log(res, 'res')
- let success = res?.error_code === 0
- return {
- success: success,
- list: res.data?.list || [],
- total: res.data?.count || 0,
- origin: res.data
- }
- })
- }
- }
|