|
|
@ -4,11 +4,11 @@ |
|
|
|
<div slot="header" class="clearfix"> |
|
|
|
<div slot="header" class="clearfix"> |
|
|
|
<el-tabs v-model="user_type" @tab-click="getList(1)"> |
|
|
|
<el-tabs v-model="user_type" @tab-click="getList(1)"> |
|
|
|
<el-tab-pane label="全部用户" name=""/> |
|
|
|
<el-tab-pane label="全部用户" name=""/> |
|
|
|
<el-tab-pane label="微信用户" name="wechat"/> |
|
|
|
<!-- <el-tab-pane label="微信用户" name="wechat"/>--> |
|
|
|
<el-tab-pane label="小程序用户" name="routine"/> |
|
|
|
<!-- <el-tab-pane label="小程序用户" name="routine"/>--> |
|
|
|
<el-tab-pane label="H5用户" name="h5"/> |
|
|
|
<!-- <el-tab-pane label="H5用户" name="h5"/>--> |
|
|
|
<el-tab-pane label="APP" name="app"/> |
|
|
|
<!-- <el-tab-pane label="APP" name="app"/>--> |
|
|
|
<el-tab-pane label="PC" name="pc"/> |
|
|
|
<!-- <el-tab-pane label="PC" name="pc"/>--> |
|
|
|
</el-tabs> |
|
|
|
</el-tabs> |
|
|
|
<div class="container"> |
|
|
|
<div class="container"> |
|
|
|
<el-form inline size="small" :label-position="labelPosition" label-width="100px"> |
|
|
|
<el-form inline size="small" :label-position="labelPosition" label-width="100px"> |
|
|
@ -143,10 +143,10 @@ |
|
|
|
<el-button v-show="user_type === 'wechat'" size="mini" class="mr10" @click="sendNews">发送图文消息</el-button> |
|
|
|
<el-button v-show="user_type === 'wechat'" size="mini" class="mr10" @click="sendNews">发送图文消息</el-button> |
|
|
|
<el-button v-show="checkedIds.length != 0" size="mini" class="mr10" @click="batchGroup">批量设置分组</el-button> |
|
|
|
<el-button v-show="checkedIds.length != 0" size="mini" class="mr10" @click="batchGroup">批量设置分组</el-button> |
|
|
|
<el-button v-show="checkedIds.length != 0" size="mini" @click="batchlabel">批量设置标签</el-button> |
|
|
|
<el-button v-show="checkedIds.length != 0" size="mini" @click="batchlabel">批量设置标签</el-button> |
|
|
|
<el-button type="primary" icon="ios-search" label="default" class="mr15" size="mini" @click="sendCoupon" |
|
|
|
<!-- <el-button type="primary" icon="ios-search" label="default" class="mr15" size="mini" @click="sendCoupon"--> |
|
|
|
style="margin-bottom: 20px;" |
|
|
|
<!-- style="margin-bottom: 20px;"--> |
|
|
|
>发送优惠券 |
|
|
|
<!-- >发送优惠券--> |
|
|
|
</el-button> |
|
|
|
<!-- </el-button>--> |
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<el-alert v-if="checkedIds.length>0 || allCheck" |
|
|
|
<el-alert v-if="checkedIds.length>0 || allCheck" |
|
|
@ -253,38 +253,37 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="is_svip" label="付费会员" min-width="120"> |
|
|
|
<el-table-column prop="hp_value" label="生命值" min-width="120"/> |
|
|
|
<template slot-scope="{row}"> |
|
|
|
<el-table-column prop="brand_integral" label="品宣积分" min-width="120"/> |
|
|
|
<span>{{ row.is_svip > 0 ? '是' : '否' }}</span> |
|
|
|
<el-table-column prop="all_value" label="总贡献值" min-width="120"/> |
|
|
|
</template> |
|
|
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
<el-table-column prop="phone" label="手机号" min-width="120"/> |
|
|
|
<el-table-column prop="phone" label="手机号" min-width="120"/> |
|
|
|
<el-table-column label="等级" min-width="100"> |
|
|
|
<!-- <el-table-column label="等级" min-width="100">--> |
|
|
|
<template slot-scope="{row}"> |
|
|
|
<!-- <template slot-scope="{row}">--> |
|
|
|
<span>{{ row.member ? row.member.brokerage_name : '-' }}</span> |
|
|
|
<!-- <span>{{ row.member ? row.member.brokerage_name : '-' }}</span>--> |
|
|
|
</template> |
|
|
|
<!-- </template>--> |
|
|
|
</el-table-column> |
|
|
|
<!-- </el-table-column>--> |
|
|
|
<el-table-column label="分组" min-width="100"> |
|
|
|
<!-- <el-table-column label="分组" min-width="100">--> |
|
|
|
<template slot-scope="{row}"> |
|
|
|
<!-- <template slot-scope="{row}">--> |
|
|
|
<span>{{ row.group ? row.group.group_name : '无' }}</span> |
|
|
|
<!-- <span>{{ row.group ? row.group.group_name : '无' }}</span>--> |
|
|
|
</template> |
|
|
|
<!-- </template>--> |
|
|
|
</el-table-column> |
|
|
|
<!-- </el-table-column>--> |
|
|
|
<el-table-column label="推荐人" min-width="140"> |
|
|
|
<el-table-column label="推荐人" min-width="140"> |
|
|
|
<template slot-scope="{row}"> |
|
|
|
<template slot-scope="{row}"> |
|
|
|
<span>{{ row.spread ? row.spread.nickname + ' / ' + row.spread.uid : '-' }}</span> |
|
|
|
<span>{{ row.spread ? row.spread.nickname + ' / ' + row.spread.uid : '-' }}</span> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="用户类型" min-width="100"> |
|
|
|
<!-- <el-table-column label="用户类型" min-width="100">--> |
|
|
|
<template slot-scope="{row}"> |
|
|
|
<!-- <template slot-scope="{row}">--> |
|
|
|
<span>{{ |
|
|
|
<!-- <span>{{--> |
|
|
|
row.user_type === 'routine' ? '小程序' : row.user_type === 'wechat' ? '公众号' : row.user_type === 'app' || row.user_type === 'App' ? 'App' : row.user_type === 'pc' ? 'PC' : 'H5' |
|
|
|
<!-- row.user_type === 'routine' ? '小程序' : row.user_type === 'wechat' ? '公众号' : row.user_type === 'app' || row.user_type === 'App' ? 'App' : row.user_type === 'pc' ? 'PC' : 'H5'--> |
|
|
|
}}</span> |
|
|
|
<!-- }}</span>--> |
|
|
|
</template> |
|
|
|
<!-- </template>--> |
|
|
|
</el-table-column> |
|
|
|
<!-- </el-table-column>--> |
|
|
|
<el-table-column prop="now_money" label="余额" sortable min-width="100" |
|
|
|
<!-- <el-table-column prop="now_money" label="余额" sortable min-width="100"--> |
|
|
|
:sort-method="(a,b)=>{return a.now_money - b.now_money}" |
|
|
|
<!-- :sort-method="(a,b)=>{return a.now_money - b.now_money}"--> |
|
|
|
/> |
|
|
|
<!-- />--> |
|
|
|
<el-table-column prop="integral" label="当前可用积分" min-width="100"/> |
|
|
|
|
|
|
|
<el-table-column label="操作" min-width="130" fixed="right"> |
|
|
|
<el-table-column label="操作" min-width="130" fixed="right"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button v-if="!scope.row.cancel_time" type="text" size="small" class="mr10" |
|
|
|
<el-button v-if="!scope.row.cancel_time" type="text" size="small" class="mr10" |
|
|
@ -297,25 +296,25 @@ |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
<el-dropdown-menu slot="dropdown"> |
|
|
|
<el-dropdown-menu slot="dropdown"> |
|
|
|
<el-dropdown-item @click.native="onDetails(scope.row.uid)">用户详情</el-dropdown-item> |
|
|
|
<el-dropdown-item @click.native="onDetails(scope.row.uid)">用户详情</el-dropdown-item> |
|
|
|
<el-dropdown-item v-if="!scope.row.cancel_time" @click.native="setMoney(scope.row)">设置余额 |
|
|
|
<!-- <el-dropdown-item v-if="!scope.row.cancel_time" @click.native="setMoney(scope.row)">设置余额--> |
|
|
|
</el-dropdown-item> |
|
|
|
<!-- </el-dropdown-item>--> |
|
|
|
<el-dropdown-item v-if="!scope.row.cancel_time" @click.native="changeIntegral(scope.row)">设置积分 |
|
|
|
<!-- <el-dropdown-item v-if="!scope.row.cancel_time" @click.native="changeIntegral(scope.row)">设置积分--> |
|
|
|
</el-dropdown-item> |
|
|
|
<!-- </el-dropdown-item>--> |
|
|
|
<el-dropdown-item v-if="scope.row.vip_name && !scope.row.cancel_time">清除等级</el-dropdown-item> |
|
|
|
<!-- <el-dropdown-item v-if="scope.row.vip_name && !scope.row.cancel_time">清除等级</el-dropdown-item>--> |
|
|
|
<el-dropdown-item v-if="!scope.row.cancel_time" @click.native="setGroup(scope.row)">设置分组 |
|
|
|
<!-- <el-dropdown-item v-if="!scope.row.cancel_time" @click.native="setGroup(scope.row)">设置分组--> |
|
|
|
</el-dropdown-item> |
|
|
|
<!-- </el-dropdown-item>--> |
|
|
|
<el-dropdown-item v-if="!scope.row.cancel_time" @click.native="setLabel(scope.row)">设置标签 |
|
|
|
<!-- <el-dropdown-item v-if="!scope.row.cancel_time" @click.native="setLabel(scope.row)">设置标签--> |
|
|
|
</el-dropdown-item> |
|
|
|
<!-- </el-dropdown-item>--> |
|
|
|
<el-dropdown-item @click.native="wmc(scope.row)">设置用户合作方角色 |
|
|
|
<el-dropdown-item @click.native="wmc(scope.row)">设置用户合作方角色 |
|
|
|
</el-dropdown-item> |
|
|
|
</el-dropdown-item> |
|
|
|
<el-dropdown-item v-if="!scope.row.cancel_time" @click.native="setModify(scope.row)">修改推荐人 |
|
|
|
<el-dropdown-item v-if="!scope.row.cancel_time" @click.native="setModify(scope.row)">修改推荐人 |
|
|
|
</el-dropdown-item> |
|
|
|
</el-dropdown-item> |
|
|
|
<el-dropdown-item v-if="!scope.row.cancel_time" @click.native="setPassword(scope.row)">修改密码 |
|
|
|
<el-dropdown-item v-if="!scope.row.cancel_time" @click.native="setPassword(scope.row)">修改密码 |
|
|
|
</el-dropdown-item> |
|
|
|
</el-dropdown-item> |
|
|
|
<el-dropdown-item v-if="!scope.row.cancel_time" @click.native="setMember(scope.row)">编辑会员等级 |
|
|
|
<!-- <el-dropdown-item v-if="!scope.row.cancel_time" @click.native="setMember(scope.row)">编辑会员等级--> |
|
|
|
</el-dropdown-item> |
|
|
|
<!-- </el-dropdown-item>--> |
|
|
|
<el-dropdown-item v-if="!scope.row.cancel_time" @click.native="giveMember(scope.row)">付费会员设置 |
|
|
|
<!-- <el-dropdown-item v-if="!scope.row.cancel_time" @click.native="giveMember(scope.row)">付费会员设置--> |
|
|
|
</el-dropdown-item> |
|
|
|
<!-- </el-dropdown-item>--> |
|
|
|
</el-dropdown-menu> |
|
|
|
</el-dropdown-menu> |
|
|
|
</el-dropdown> |
|
|
|
</el-dropdown> |
|
|
|
</template> |
|
|
|
</template> |
|
|
@ -829,7 +828,7 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
wmc(value) { |
|
|
|
wmc(value) { |
|
|
|
this.dialogVisible = true |
|
|
|
this.dialogVisible = true |
|
|
|
this.uid2 = value.uid |
|
|
|
this.uid2 = val |
|
|
|
userLstApi11(value.uid).then(res => { |
|
|
|
userLstApi11(value.uid).then(res => { |
|
|
|
this.ulist = res.data.option |
|
|
|
this.ulist = res.data.option |
|
|
|
this.sel = res.data.partner_id |
|
|
|
this.sel = res.data.partner_id |
|
|
|