From 9ca0e9dc50759f4c00498e68c0155bcc3db2be2f Mon Sep 17 00:00:00 2001 From: fangyuan <527392886@qq.com> Date: 星期二, 27 十二月 2022 15:20:02 +0800 Subject: [PATCH] 页面修改 --- src/api/cause.js | 61 +++++++++++++++++++++++++++++- 1 files changed, 58 insertions(+), 3 deletions(-) diff --git a/src/api/cause.js b/src/api/cause.js index 55c26f1..4be3a92 100644 --- a/src/api/cause.js +++ b/src/api/cause.js @@ -53,10 +53,65 @@ }) } -export function exportReportExcel(params) { +export function GroupLits(params) { return request({ - url: '/report/exportReporter?id='+params, + url: '/announcement/getAnnouncements', + method: 'get', + params + }) +} + +export function GroupListBycondition(params) { + return request({ + url: '/announcement/getAnnouncements', + method: 'get', + params + }) +} + +export function addGroupAn(params,val) { + return request({ + url: '/announcement/add?groupId='+params, method: 'post', - responseType:'blob' + data: val + }) +} + +export function pOrUGroupAn(params,val) { + return request({ + url: '/announcement/publicOrUnshelve', + method: 'put', + params:{ + id:params, + status:val + } + }) +} +export function deleteGroupAn(params) { + return request({ + url: '/announcement/delete', + method: 'delete', + params:{ + id:params + + } + }) +} +export function detailsGroupAn(params) { + return request({ + url: '/announcement/getAnnouncementsById', + method: 'get', + params:{ + id:params + + } + }) +} + +export function report(params) { + return request({ + url: '/cause/addReporter', + method: 'post', + data: params }) } \ No newline at end of file -- Gitblit v1.8.0