Commit d4b1e1cb by xinla

--no commit message

1 parent c504387e
...@@ -13,7 +13,7 @@ userId 是 检索条件,传员工id ...@@ -13,7 +13,7 @@ userId 是 检索条件,传员工id
export function getList(params) { export function getList(params) {
return request({ return request({
url: service + '/findLimitUserRedEnvelops', url: service + '/findLimitUserRedEnvelops',
params params,
}) })
} }
...@@ -31,7 +31,7 @@ export function addOrUpdate(params) { ...@@ -31,7 +31,7 @@ export function addOrUpdate(params) {
return request({ return request({
url: service + '/addOrUpdateUserRedEnvelopsLimit', url: service + '/addOrUpdateUserRedEnvelopsLimit',
method: 'post', method: 'post',
data: params data: params,
}) })
} }
...@@ -48,14 +48,18 @@ export function batchUpdate(params) { ...@@ -48,14 +48,18 @@ export function batchUpdate(params) {
return request({ return request({
url: service + '/batchUpdateUserRedEnvelopsLimit', url: service + '/batchUpdateUserRedEnvelopsLimit',
method: 'post', method: 'post',
data: params data: params,
}) })
} }
export function remove(params) { /**
* 员工管理删除
* @param {*} ids 多个id,使用逗号隔开
* @returns
*/
export function remove(ids) {
return request({ return request({
url: service + '/batchUpdateUserRedEnvelopsLimit', url: service + '/deleteLimitUserRedEnvelops/' + ids,
method: 'post', method: 'DELETE',
data: params
}) })
} }
...@@ -109,17 +109,17 @@ export default { ...@@ -109,17 +109,17 @@ export default {
let cardData = [ let cardData = [
{ {
title: '群主', title: '群主',
value: row.totalCnt, value: row.groupLeaderName,
noArrow: true, noArrow: true,
}, },
{ {
title: '领取人数', title: '领取人数',
value: row.totalCnt, value: row.receiveNum,
noArrow: true, noArrow: true,
}, },
{ {
title: '剩余红包个数', title: '剩余红包个数',
value: row.totalCnt, value: row.surplusNum,
noArrow: true, noArrow: true,
}, },
] ]
......
...@@ -186,8 +186,8 @@ export default { ...@@ -186,8 +186,8 @@ export default {
getRecordList() { getRecordList() {
this.loading = true this.loading = true
getRecordList(this.query) getRecordList(this.query)
.then(({ data, total }) => { .then(({ rows, total }) => {
this.list = data this.list = rows
this.total = +total this.total = +total
}) })
.catch((e) => { .catch((e) => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!