search-ent.js 557 B

12345678910111213141516171819202122232425
  1. import SearchListApiBase from './base'
  2. import { ajaxGetSearchEntList } from '../api/search-ent'
  3. export default class SearchEntListApi extends SearchListApiBase {
  4. constructor(config) {
  5. super(config)
  6. }
  7. /**
  8. * 覆写请求
  9. */
  10. async ajaxQuery(params) {
  11. return ajaxGetSearchEntList(params).then((res) => {
  12. console.log(res, 'res')
  13. let success = res?.error_code === 0
  14. return {
  15. success: success,
  16. list: res.data?.list || [],
  17. total: res.data?.total || 0,
  18. origin: res.data
  19. }
  20. })
  21. }
  22. }