18 lines
650 B
JavaScript
18 lines
650 B
JavaScript
import { config } from '../../config';
|
|
import CachePromise from '../../utils/cachepromise';
|
|
import { httpget, httppost2, httppost } from '../../utils/request';
|
|
import apiurl from "../../service/apiurl";
|
|
import loginService from '../../service/login';
|
|
|
|
|
|
export const RealShWarnListPromise = new CachePromise(
|
|
// () => httpget(apiurl.shyj.find, { adcd: config.SHYJ_ADCD, page: 1, size: 99, warnstatusid: -1 })
|
|
() => httppost2(apiurl.shyj.find, { pageNumber: 1, pageSize: 10, status:[0],countycode:localStorage.getItem('address')==="wufeng"?'420529000000':'422822000000' })
|
|
.then(({ data }) => data.records)
|
|
.catch(() => null),
|
|
5000
|
|
);
|
|
|
|
|
|
|