import req from '@/request.js' const portal = window.context.portal export default { // 新增时 addMasterData(data, cb) { req .post(portal + `/majorProjects/bizMunicipalBreakDifficulty/v1/saveOrUpdate`, data) .then(res => { cb(res.data) }) }, // 根据id查询详情 getListById(data, cb) { req .post(portal + `/majorProjects/bizMunicipalBreakDifficulty/v1/findByDetails?id=${data.id}&fillType=${data.fillType}`) .then(res => { cb(res.data) }) }, // 分页查询列表 getPageData(data, isAffirm, cb) { req .post(portal + `/majorProjects/bizMunicipalBreakDifficulty/v1/queryByPage?isAffirm=${isAffirm}`, data) .then(res => { cb(res.data) }) }, // 根据id审核 updateStatusById(data, cb) { req .post(portal + `/majorProjects/bizMunicipalBreakDifficulty/v1/updateStatusById`, data) .then(res => { cb(res.data) }) }, // 根据id批量删除 deleteDataById(data, cb) { req .post(portal + `/majorProjects/bizMunicipalBreakDifficulty/v1/deleteByIds?id=${data.id}&fillType=${data.fillType}`) .then(res => { cb(res.data) }) }, // 更新数据 updateReport(data, cb) { req .post(portal + `/majorProjects/bizMunicipalBreakDifficulty/v1/saveOrUpdate`, data) .then(res => { cb(res.data) }) } }