diff --git a/src/api/ManageApi/index.js b/src/api/ManageApi/index.js index ca024ab..f675264 100644 --- a/src/api/ManageApi/index.js +++ b/src/api/ManageApi/index.js @@ -161,11 +161,10 @@ export function addElement(data) { } // 查询所有要素 -export function getAllElements(params) { +export function getAllElements() { return request({ url: '/gysl/mx/page', method: 'get', - params }); } @@ -193,7 +192,9 @@ export function addCatalog(data) { return request({ url: '/gysl/ml/add', method: 'post', - data + data: { + ml: data // 同样包装在ml对象中 + } }); } @@ -211,7 +212,9 @@ export function editCatalog(data) { return request({ url: '/gysl/ml/edit', method: 'post', - data + data: { + ml: data // 按照接口要求,将数据包装在ml对象中 + } }); } @@ -347,6 +350,32 @@ export function getqyrzById(id) { method: 'get' }); } +//企业基本信息 +// 修改企业基本信息 +export function updateqyBasicInformation(data) { + return request({ + url: '/gysl/enterprise/edit', + method: 'post', + data + }); +} + +// 删除企业基本信息 +export function deleteqyBasicInformation(idList) { + return request({ + url: '/gysl/enterprise/delete', + method: 'delete', + params: { idList } + }); +} + +// 通过主键查询单条企业基本信息 +export function getqyBasicInformationById(id) { + return request({ + url: `/gysl/enterprise/${id}`, + method: 'get' + }); +} //建筑信息表 @@ -522,12 +551,40 @@ export function getxmmmbById(id) { //单片材料管理 //新增数据 -export function getclglPage(data) { +// 新增数据 +export function addClgl(data) { return request({ - url:'/gysl/dpclgl/add', - method:'post', + url: '/gysl/dpclgl/add', + method: 'post', data - }) + }); +} + +// 删除数据 +export function deleteClgl(idList) { + return request({ + url: '/gysl/dpclgl/delete', + method: 'delete', + params: { idList: idList.join(',') } // 将数组转换为逗号分隔的字符串 + }); +} + +// 修改数据 +export function updateClgl(data) { + return request({ + url: '/gysl/dpclgl/edit', + method: 'put', + data + }); +} + +// 分页查询所有数据 +export function getClglPage(params) { + return request({ + url: '/gysl/dpclgl/page', + method: 'get', + params + }); } // 富文本编辑接口 export function exportToPdf(params) { @@ -604,4 +661,57 @@ export function getAllMessagestwo(){ url:'/gysl/qyStats/qyNotice', method:'get' }) +} + +//通过主键查询项目画像 +export function getpicture(id){ + return request({ + url:`/gysl/xmpjqd/oneXmhx/${id}`, + method:'get' + }) +} +//通过主键查询单条项目评价清单 +export function getpicturelist(id){ + return request({ + url:`/gysl/xmpjqd/${id}`, + method:'get' + }) +} + +// 细分产业管理 + +// 新增数据 +export function addXfcygl(data) { + return request({ + url: '/gysl/xfcygl/add', + method: 'post', + data + }); +} + +// 删除数据 +export function deleteXfcygl(idList) { + return request({ + url: '/gysl/xfcygl/delete', + method: 'delete', + params: { idList } + }); +} + +// 修改数据 +export function updateXfcygl(data) { + return request({ + url: '/gysl/xfcygl/edit', + method: 'put', + data + }); +} + +// 分页查询所有数据 +export function getXfcyglPage(params) { + return request({ + url: '/gysl/xfcygl/page', + method: 'get', + params + }); } \ No newline at end of file diff --git a/src/views/compilation/onecailiao/index.vue b/src/views/compilation/onecailiao/index.vue index b14278e..25dbadd 100644 --- a/src/views/compilation/onecailiao/index.vue +++ b/src/views/compilation/onecailiao/index.vue @@ -6,18 +6,18 @@ - + - + - 查询 - 重置 + 查询 + 重置 @@ -36,7 +36,7 @@ - +