12345678910111213141516171819202122232425 |
- import SearchListApiBase from './base'
- import { ajaxGetSearchEntList } from '../api/search-ent'
- export default class SearchEntListApi extends SearchListApiBase {
- constructor(config) {
- super(config)
- }
- /**
- * 覆写请求
- */
- async ajaxQuery(params) {
- return ajaxGetSearchEntList(params).then((res) => {
- console.log(res, 'res')
- let success = res?.error_code === 0
- return {
- success: success,
- list: res.data?.list || [],
- total: res.data?.total || 0,
- origin: res.data
- }
- })
- }
- }
|