钊-礼品卡
This commit is contained in:
parent
9d8bd25072
commit
0e081c8969
@ -1,13 +1,53 @@
|
|||||||
import request from '@/utils/request'
|
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) {
|
export function getList(query) {
|
||||||
return request({
|
return request({
|
||||||
url: 'business/marketingActivity/cardGift',
|
url: '/cardGiftActive',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: query
|
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) {
|
export function getListtj(query) {
|
||||||
return request({
|
return request({
|
||||||
url: 'business/marketingActivity/cardGift/list/11',
|
url: 'business/marketingActivity/cardGift/list/11',
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user