From ba77c7440e508489dbe5d6d54293c4fdedb0a5aa Mon Sep 17 00:00:00 2001 From: cqf <2@qq.com> Date: 星期二, 12 七月 2022 14:08:45 +0800 Subject: [PATCH] 文件编辑不生效 --- src/api/sgyhpczl/troubleshooting.js | 54 ++++++++++++++++++++++++++++++++++++++---------------- 1 files changed, 38 insertions(+), 16 deletions(-) diff --git a/src/api/sgyhpczl/troubleshooting.js b/src/api/sgyhpczl/troubleshooting.js index 7d26f49..faae69d 100644 --- a/src/api/sgyhpczl/troubleshooting.js +++ b/src/api/sgyhpczl/troubleshooting.js @@ -32,32 +32,54 @@ data }); } -//导出 -export function analogy_export_do(data) { +//新增/编辑 +export function addOrEdit(data) { return request({ - headers: { + headers:{ 'token': getTokenAndVerify().token, - 'verify': getTokenAndVerify().verify + 'verify':getTokenAndVerify().verify }, - url: '/taboi/excel/analogy_export_do', + url: "/taboi/conference/save_do", + contentType: "application/json", method: 'POST', - responseType: 'arraybuffer', data }); } - -//添加/取消关注 -export function dowloand_do(params) { +//删除 +export function del(data) { return request({ - headers: { + headers:{ 'token': getTokenAndVerify().token, - 'verify': getTokenAndVerify().verify + 'verify':getTokenAndVerify().verify }, - url: '/taboi/file/dowloand_do', - method: 'GET', + url: "/taboi/conference/del_do?id=" + data, contentType: "multipart/form-data", - params:params?params:{} + method: 'POST' }); } - - +//上报 +export function upload_do(data) { + return request({ + headers:{ + 'token': getTokenAndVerify().token, + 'verify':getTokenAndVerify().verify + }, + url: "/taboi/conference/upload_do", + contentType: "multipart/form-data", + method: 'POST', + data + }); +} +//撤销 +export function revoke(data) { + return request({ + headers:{ + 'token': getTokenAndVerify().token, + 'verify':getTokenAndVerify().verify + }, + contentType: "multipart/form-data", + url: "/taboi/conference/revoke_do", + method: 'POST', + data + }); +} -- Gitblit v1.9.2