diff --git a/fuintAdmin/src/api/EventMarketing/giftBlock.js b/fuintAdmin/src/api/EventMarketing/giftBlock.js index da58bfbc1..e3fd5570c 100644 --- a/fuintAdmin/src/api/EventMarketing/giftBlock.js +++ b/fuintAdmin/src/api/EventMarketing/giftBlock.js @@ -1,13 +1,53 @@ import request from '@/utils/request' +// 上传文件 +export function uploadFile(data,activeNum,interType) { + return request({ + url: '/cardGiftActive/importCardInfo?activeNum='+activeNum+'&interType='+interType, + method: 'post', + data: data, + headers: { + 'Content-Type': 'multipart/form-data' + } + }) +} + // 分页查询列表 export function getList(query) { return request({ - url: 'business/marketingActivity/cardGift', + url: '/cardGiftActive', method: 'get', params: query }) } + +//修改 +export function updateId(data) { + return request({ + url: '/cardGiftActive', + method: 'put', + data: data + }) +} + +//新增 +export function add(data) { + return request({ + url: '/cardGiftActive', + method: 'post', + data: data + }) +} +//下载模板 +export function downloadTemplate() { + return request({ + url: 'business/marketingActivity/cardGift/template', + method: 'get', + responseType: 'blob' + }) +} + + export function getListtj(query) { return request({ url: 'business/marketingActivity/cardGift/list/11', diff --git a/fuintAdmin/src/views/EventMarketing/giftBlock/index.vue b/fuintAdmin/src/views/EventMarketing/giftBlock/index.vue index 329f74873..e9c12545b 100644 --- a/fuintAdmin/src/views/EventMarketing/giftBlock/index.vue +++ b/fuintAdmin/src/views/EventMarketing/giftBlock/index.vue @@ -1,25 +1,149 @@