|
|
|
@ -13,7 +13,11 @@ |
|
|
|
|
</a-col> |
|
|
|
|
</a-row> |
|
|
|
|
</div> |
|
|
|
|
<s-table ref="table" rowKey="user_id" :columns="columns" :data="loadData" |
|
|
|
|
<s-table |
|
|
|
|
ref="table" |
|
|
|
|
rowKey="user_id" |
|
|
|
|
:columns="columns" |
|
|
|
|
:data="loadData" |
|
|
|
|
:pagination="pagination"> |
|
|
|
|
<!-- 会员信息 --> |
|
|
|
|
<template slot="user" slot-scope="text"> |
|
|
|
@ -89,7 +93,7 @@ export default { |
|
|
|
|
STable, |
|
|
|
|
UserItem, |
|
|
|
|
EditForm, |
|
|
|
|
FansModal, |
|
|
|
|
FansModal |
|
|
|
|
}, |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
@ -99,43 +103,43 @@ export default { |
|
|
|
|
columns: [ |
|
|
|
|
{ |
|
|
|
|
title: '用户ID', |
|
|
|
|
dataIndex: 'user_id', |
|
|
|
|
dataIndex: 'user_id' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '身份', |
|
|
|
|
dataIndex: 'type_text', |
|
|
|
|
dataIndex: 'type_text' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '会员信息', |
|
|
|
|
dataIndex: 'user', |
|
|
|
|
scopedSlots: { customRender: 'user' }, |
|
|
|
|
scopedSlots: { customRender: 'user' } |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '姓名/手机号', |
|
|
|
|
scopedSlots: { customRender: 'contacts' }, |
|
|
|
|
scopedSlots: { customRender: 'contacts' } |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '累计佣金/可提现佣金', |
|
|
|
|
scopedSlots: { customRender: 'money' }, |
|
|
|
|
scopedSlots: { customRender: 'money' } |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '推荐人', |
|
|
|
|
scopedSlots: { customRender: 'referee' }, |
|
|
|
|
scopedSlots: { customRender: 'referee' } |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '下级用户', |
|
|
|
|
scopedSlots: { customRender: 'fans' }, |
|
|
|
|
scopedSlots: { customRender: 'fans' } |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '成为时间', |
|
|
|
|
dataIndex: 'create_time', |
|
|
|
|
dataIndex: 'create_time' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '操作', |
|
|
|
|
dataIndex: 'action', |
|
|
|
|
width: '180px', |
|
|
|
|
scopedSlots: { customRender: 'action' }, |
|
|
|
|
}, |
|
|
|
|
scopedSlots: { customRender: 'action' } |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
// 加载数据方法 必须为 Promise 对象 |
|
|
|
|
loadData: (param) => { |
|
|
|
@ -148,7 +152,7 @@ export default { |
|
|
|
|
// 加载状态 |
|
|
|
|
isLoading: true, |
|
|
|
|
// 二维码图片路径 |
|
|
|
|
posterUrl: '', |
|
|
|
|
posterUrl: '' |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
created() {}, |
|
|
|
@ -169,7 +173,7 @@ export default { |
|
|
|
|
1: this.handleOrder, |
|
|
|
|
2: this.handleWithdraw, |
|
|
|
|
3: this.handlePoster, |
|
|
|
|
4: this.handleDelete, |
|
|
|
|
4: this.handleDelete |
|
|
|
|
} |
|
|
|
|
events[key](item) |
|
|
|
|
}, |
|
|
|
@ -209,7 +213,7 @@ export default { |
|
|
|
|
app.handleRefresh() |
|
|
|
|
}) |
|
|
|
|
.finally((result) => modal.destroy()) |
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -224,8 +228,8 @@ export default { |
|
|
|
|
// 检索查询 |
|
|
|
|
onSearch() { |
|
|
|
|
this.handleRefresh(true) |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
</script> |
|
|
|
|
|
|
|
|
|