import { httppost1, httppost2, httpget, httpget2 } from "../utils/request"; import { message } from 'antd'; import apiurl from './apiurl'; //山洪图像数据查询 export async function imageHistoryInformationApi(params = {}) { const myParams = { countycode:localStorage.getItem('ADCD6'), ...params } const obj = await httppost2(apiurl.imageHistoryInformation, myParams) || {}; if (!obj || !Array.isArray(obj.data)) { return [[], []]; } const data = obj.data; const ret = [[], []]; if (data.length > 0) { const chid1 = data[0].chid; data.forEach(o => { if (o.chid === chid1) { ret[0].push(o); } else { ret[1].push(o); } }); } return ret; }