31 lines
836 B
JavaScript
31 lines
836 B
JavaScript
import { httppost1, httppost2, httpget } from "../utils/request";
|
|
import { message } from 'antd';
|
|
import apiurl from './apiurl';
|
|
|
|
//快报列表查询接口
|
|
export async function page(params = {}) {
|
|
const myParams = {
|
|
adcd:localStorage.getItem('ADCD6') + '000000',
|
|
...params
|
|
};
|
|
|
|
const { data, code, msg } = await httppost2(apiurl.floodExpress.floodNewsPageSelect,myParams) || {};
|
|
|
|
if (code !== 200) {
|
|
message.error(msg || '请求失败');
|
|
return { list: [], totalRow: 0 };
|
|
}
|
|
return { list: data.records, totalRow: data.total };
|
|
}
|
|
|
|
//快报生成接口
|
|
export async function addFloodExpress(params = {}) {
|
|
const myParams = {
|
|
countycode:localStorage.getItem('ADCD6') + '000000',
|
|
...params
|
|
};
|
|
|
|
const res = await httppost2(apiurl.floodExpress.countyShanHongExpress,myParams) || {};
|
|
|
|
return res;
|
|
} |