|
@@ -2,10 +2,9 @@
|
|
|
<cl-crud class="liu-crud-wrap" @load="onLoad">
|
|
<cl-crud class="liu-crud-wrap" @load="onLoad">
|
|
|
<template #slot-tabs="{ scope }">
|
|
<template #slot-tabs="{ scope }">
|
|
|
<el-tabs class="liu-tabs" type="border-card">
|
|
<el-tabs class="liu-tabs" type="border-card">
|
|
|
- <el-tab-pane label="用户管理"></el-tab-pane>
|
|
|
|
|
- <el-tab-pane label="配置管理"></el-tab-pane>
|
|
|
|
|
- <el-tab-pane label="角色管理"></el-tab-pane>
|
|
|
|
|
- <el-tab-pane label="定时任务补偿"></el-tab-pane>
|
|
|
|
|
|
|
+ <el-tab-pane label="全部 (152)"></el-tab-pane>
|
|
|
|
|
+ <el-tab-pane label="粉丝 (112)"></el-tab-pane>
|
|
|
|
|
+ <el-tab-pane label="会员(82)"></el-tab-pane>
|
|
|
</el-tabs>
|
|
</el-tabs>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -25,6 +24,19 @@
|
|
|
<template #table-column-growth="{scope}">
|
|
<template #table-column-growth="{scope}">
|
|
|
<span>{{ scope.row.userAsset.growth }}</span>
|
|
<span>{{ scope.row.userAsset.growth }}</span>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 充值 -->
|
|
|
|
|
+ <template #slot-recharge="{scope}">
|
|
|
|
|
+ <el-button type="text">充值</el-button>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <!-- 升级 -->
|
|
|
|
|
+ <template #slot-upgrade="{scope}">
|
|
|
|
|
+ <el-button type="text">升级</el-button>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <!-- 发货 -->
|
|
|
|
|
+ <template #slot-ship="{scope}">
|
|
|
|
|
+ <el-button type="text">发货</el-button>
|
|
|
|
|
+ </template>
|
|
|
</cl-crud>
|
|
</cl-crud>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -35,11 +47,6 @@ export default {
|
|
|
ctx.service(this.$service.member)
|
|
ctx.service(this.$service.member)
|
|
|
.set('table', {
|
|
.set('table', {
|
|
|
columns: [
|
|
columns: [
|
|
|
- {
|
|
|
|
|
- type: 'selection',
|
|
|
|
|
- align: 'center',
|
|
|
|
|
- width: '60'
|
|
|
|
|
- },
|
|
|
|
|
{
|
|
{
|
|
|
prop: 'id',
|
|
prop: 'id',
|
|
|
label: 'ID',
|
|
label: 'ID',
|
|
@@ -78,7 +85,7 @@ export default {
|
|
|
align: 'center'
|
|
align: 'center'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- prop: 'sendNum',
|
|
|
|
|
|
|
+ prop: 'subscribe',
|
|
|
label: '关注公众号',
|
|
label: '关注公众号',
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
sortable: true,
|
|
sortable: true,
|
|
@@ -89,11 +96,24 @@ export default {
|
|
|
label: '最近访问',
|
|
label: '最近访问',
|
|
|
align: 'center'
|
|
align: 'center'
|
|
|
}
|
|
}
|
|
|
- ]
|
|
|
|
|
|
|
+ ],
|
|
|
|
|
+ // 操作列
|
|
|
|
|
+ op: {
|
|
|
|
|
+ visible: true, // 是否显示
|
|
|
|
|
+ // 同 element-ui Table-column Attributes
|
|
|
|
|
+ props: {
|
|
|
|
|
+ width: 150,
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ fixed: 'right',
|
|
|
|
|
+ label: '操作'
|
|
|
|
|
+ },
|
|
|
|
|
+ // 布局,请移步 `layout`
|
|
|
|
|
+ layout: ['slot-recharge', 'slot-upgrade', 'slot-ship']
|
|
|
|
|
+ }
|
|
|
})
|
|
})
|
|
|
.set('layout', [
|
|
.set('layout', [
|
|
|
['slot-tabs'],
|
|
['slot-tabs'],
|
|
|
- ['search-key', 'flex1', 'refresh-btn', 'add-btn', 'multi-delete-btn'],
|
|
|
|
|
|
|
+ ['search-key', 'flex1', 'refresh-btn', 'add-btn'],
|
|
|
['data-table'],
|
|
['data-table'],
|
|
|
['flex1', 'pagination']
|
|
['flex1', 'pagination']
|
|
|
])
|
|
])
|