import { httppost1, httppost2, httpget } from "../utils/request"; import { message } from 'antd'; import apiurl from './apiurl'; //县基本信息 分页查询 export async function page(params = {}) { const myParams = { countyCode:localStorage.getItem('ADCD6') + '000000', ...params }; const { data, code, msg } = await httppost2(apiurl.countyBaseInfo.page,myParams) || {}; if (code !== 200) { message.error(msg || '请求失败'); return { list: [], totalRow: 0 }; } return { list: data.records, totalRow: data.total }; } //新增县基本信息 export async function addCountyBaseInfo(params = {}) { const res = await httppost2(apiurl.countyBaseInfo.add,params) || {}; return res; } //编辑县基本信息 export async function editCountyBaseInfo(params = {}) { const res = await httppost2(apiurl.countyBaseInfo.edit,params) || {}; return res; } //编辑县基本信息 export async function del(params = {}) { const res = await httppost2(apiurl.countyBaseInfo.del,params) || {}; return res; }