分销员
This commit is contained in:
parent
7e41831ead
commit
54acac218f
|
@ -137,8 +137,11 @@ const mainRoutes = {
|
|||
{ path: '/travelConf', component: _import('travelConf/index'), name: 'travelConf', meta: { title: '出行配置', isTab: true } },
|
||||
{ path: '/fxyConfig', component: _import('bl/commission/fxy/fxyConfig'), name: 'fxyConfig', meta: { title: '分销员设置', isTab: true } },
|
||||
{ path: '/fxyApply', component: _import('bl/commission/fxy/fxyApply'), name: 'fxyApply', meta: { title: '分销员审核', isTab: true } },
|
||||
{ path: '/fxyData', component: _import('bl/commission/fxy/fxyData'), name: 'fxyData', meta: { title: '分销员数据', isTab: true } },
|
||||
{ path: '/fxyOrder', component: _import('bl/commission/fxy/fxyOrder'), name: 'fxyOrder', meta: { title: '分销员门槛订单', isTab: true } },
|
||||
{ path: '/jjrConfig', component: _import('bl/commission/jjr/jjrConfig'), name: 'jjrConfig', meta: { title: '经纪人设置', isTab: true } },
|
||||
{ path: '/jjrApply', component: _import('bl/commission/jjr/jjrApply'), name: 'jjrApply', meta: { title: '经纪人审核', isTab: true } },
|
||||
{ path: '/jjrData', component: _import('bl/commission/jjr/jjrData'), name: 'jjrData', meta: { title: '经纪人数据', isTab: true } },
|
||||
{ path: '/ywyConfig', component: _import('bl/commission/ywy/ywyConfig'), name: 'ywyConfig', meta: { title: '业务员设置', isTab: true } },
|
||||
{ path: '/ywyApply', component: _import('bl/commission/ywy/ywyApply'), name: 'ywyApply', meta: { title: '业务员审核', isTab: true } },
|
||||
],
|
||||
|
|
|
@ -57,30 +57,20 @@
|
|||
@click="handleClear"
|
||||
>重置
|
||||
</el-button>
|
||||
<el-button
|
||||
style="margin-left: 10px"
|
||||
size="mini"
|
||||
type="primary"
|
||||
icon="document"
|
||||
@click="handleEdit(0)"
|
||||
>添加
|
||||
</el-button>
|
||||
<el-table v-loading="tableDataLoading" :data="tableData.list">
|
||||
<el-table-column
|
||||
prop="id"
|
||||
label="编号"
|
||||
width="80"
|
||||
fixed="left"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="userId"
|
||||
label="用户ID"
|
||||
fixed="left"
|
||||
width="150"
|
||||
width="80"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column prop="avatar" label="头像" fixed="left">
|
||||
<el-table-column prop="avatar" label="头像">
|
||||
<template slot-scope="scope">
|
||||
<img
|
||||
v-if="scope.row.avatar && scope.row.avatar != ''"
|
||||
|
@ -94,59 +84,101 @@
|
|||
<el-table-column
|
||||
prop="userName"
|
||||
label="昵称"
|
||||
fixed="left"
|
||||
width="150"
|
||||
width="120"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="name"
|
||||
label="姓名"
|
||||
fixed="left"
|
||||
width="150"
|
||||
width="120"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="phone"
|
||||
label="手机号"
|
||||
fixed="left"
|
||||
width="150"
|
||||
width="120"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="agent"
|
||||
label="所属代理商"
|
||||
width="120"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="superiorFxy"
|
||||
label="上级分销"
|
||||
width="120"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="remarks"
|
||||
label="备注"
|
||||
fixed="left"
|
||||
width="150"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="createTime"
|
||||
label="申请时间"
|
||||
fixed="left"
|
||||
width="150"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column label="状态" fixed="left" prop="status">
|
||||
<el-table-column label="状态" prop="status">
|
||||
<template slot-scope="scope">
|
||||
{{ showDictValue(scope.row.status, statusData) }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" prop="id" width="360" fixed="right">
|
||||
<el-table-column label="操作" prop="id" width="300" fixed="right">
|
||||
<template slot-scope="scope">
|
||||
<el-button v-if="scope.row.status == 0"
|
||||
<el-button
|
||||
size="mini"
|
||||
type="primary"
|
||||
style="margin: 5px"
|
||||
@click="handleApply(scope.row)"
|
||||
>授权
|
||||
@click="handleView(scope.row)"
|
||||
>查看
|
||||
</el-button>
|
||||
<el-button v-if="scope.row.status == 0"
|
||||
size="mini"
|
||||
type="primary"
|
||||
style="margin: 5px"
|
||||
@click="handleEdit(scope.row)"
|
||||
size="mini"
|
||||
type="primary"
|
||||
style="margin: 5px"
|
||||
@click="handleEdit(scope.row)"
|
||||
>修改
|
||||
</el-button>
|
||||
<el-button v-if="scope.row.status == 0"
|
||||
size="mini"
|
||||
type="primary"
|
||||
style="margin: 5px"
|
||||
@click="handleDelete(scope.row)"
|
||||
>删除
|
||||
</el-button>
|
||||
<el-button v-if="scope.row.status != 1"
|
||||
size="mini"
|
||||
type="primary"
|
||||
style="margin: 5px"
|
||||
@click="handleApply(scope.row)"
|
||||
>授权
|
||||
</el-button>
|
||||
<el-button v-if="scope.row.status == 1"
|
||||
size="mini"
|
||||
type="primary"
|
||||
style="margin: 5px"
|
||||
@click="handleCancelApply(scope.row)"
|
||||
>取消授权
|
||||
</el-button>
|
||||
<el-button v-if="scope.row.status == 1"
|
||||
size="mini"
|
||||
type="primary"
|
||||
style="margin: 5px"
|
||||
@click="handleAgent(scope.row)"
|
||||
>修改代理
|
||||
</el-button>
|
||||
<el-button v-if="scope.row.status == 1 && scope.row.blFxyLevel == 1"
|
||||
size="mini"
|
||||
type="primary"
|
||||
style="margin: 5px"
|
||||
@click="handleSuperiorFxyView(scope.row)"
|
||||
>修改上级分销
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
@ -162,30 +194,21 @@
|
|||
>
|
||||
</el-pagination>
|
||||
</div>
|
||||
|
||||
<!-- 添加、修改 -->
|
||||
<el-dialog :title="titles" :visible.sync="dialogFormVisible" center @close="closeFxy">
|
||||
<!-- 查看 -->
|
||||
<el-dialog :title="titles" :visible.sync="dialogFormViewVisible" center @close="closeFxy">
|
||||
<div style="margin-bottom: 10px">
|
||||
<span style="width: 200px; display: inline-block; text-align: right">用户ID:</span>
|
||||
<el-input
|
||||
style="width: 50%"
|
||||
v-model="userId"
|
||||
type="text"
|
||||
placeholder="请选择用户"
|
||||
placeholder=""
|
||||
:disabled="true"
|
||||
>
|
||||
</el-input>
|
||||
<el-button
|
||||
style="margin: 10px"
|
||||
size="mini"
|
||||
type="primary"
|
||||
icon="document"
|
||||
@click="showUsersView()"
|
||||
>用户列表
|
||||
</el-button>
|
||||
</div>
|
||||
<div style="margin-bottom: 10px; display: flex">
|
||||
<span style="width: 200px; display: inline-block; text-align: right">头像:</span>
|
||||
<span style="width: 200px; display: inline-block; text-align: right">头像:</span>
|
||||
<div
|
||||
style="
|
||||
width: 148px;
|
||||
|
@ -204,7 +227,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div style="margin-bottom: 10px">
|
||||
<span style="width: 200px; display: inline-block; text-align: right">昵称:</span>
|
||||
<span style="width: 200px; display: inline-block; text-align: right">昵称:</span>
|
||||
<el-input
|
||||
style="width: 50%"
|
||||
v-model="userName"
|
||||
|
@ -212,7 +235,98 @@
|
|||
></el-input>
|
||||
</div>
|
||||
<div style="margin-bottom: 10px">
|
||||
<span style="width: 200px; display: inline-block; text-align: right">姓名:</span>
|
||||
<span style="width: 200px; display: inline-block; text-align: right">姓名:</span>
|
||||
<el-input
|
||||
style="width: 50%"
|
||||
v-model="name"
|
||||
:disabled="true"
|
||||
></el-input>
|
||||
</div>
|
||||
<div style="margin-bottom: 10px">
|
||||
<span style="width: 200px; display: inline-block; text-align: right">手机号:</span>
|
||||
<el-input
|
||||
style="width: 50%"
|
||||
v-model="phone"
|
||||
:disabled="true"
|
||||
></el-input>
|
||||
</div>
|
||||
<div style="margin-bottom: 10px">
|
||||
<span style="width: 200px; display: inline-block; text-align: right"
|
||||
>备注:</span
|
||||
>
|
||||
<el-input
|
||||
style="width: 50%"
|
||||
v-model="remarks"
|
||||
type="textarea"
|
||||
:rows="4"
|
||||
:disabled="true"
|
||||
>
|
||||
</el-input>
|
||||
</div>
|
||||
<div style="margin-bottom: 10px">
|
||||
<span style="width: 200px; display: inline-block; text-align: right">状态:</span>
|
||||
<el-radio-group v-model="status" :disabled="true">
|
||||
<el-radio :label="1">授权</el-radio>
|
||||
<el-radio :label="2">驳回</el-radio>
|
||||
</el-radio-group>
|
||||
</div>
|
||||
<div style="margin-bottom: 10px">
|
||||
<span style="width: 200px; display: inline-block; text-align: right">审批意见:</span>
|
||||
<el-input
|
||||
style="width: 50%"
|
||||
v-model="opinion"
|
||||
type="textarea"
|
||||
:rows="4"
|
||||
:disabled="true"
|
||||
>
|
||||
</el-input>
|
||||
</div>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button @click="dialogFormViewVisible = false">关 闭</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
<!-- 添加、修改 -->
|
||||
<el-dialog :title="titles" :visible.sync="dialogFormVisible" center @close="closeFxy">
|
||||
<div style="margin-bottom: 10px">
|
||||
<span style="width: 200px; display: inline-block; text-align: right">用户ID:</span>
|
||||
<el-input
|
||||
style="width: 50%"
|
||||
v-model="userId"
|
||||
type="text"
|
||||
placeholder="请选择用户"
|
||||
:disabled="true"
|
||||
>
|
||||
</el-input>
|
||||
</div>
|
||||
<div style="margin-bottom: 10px; display: flex">
|
||||
<span style="width: 200px; display: inline-block; text-align: right">头像:</span>
|
||||
<div
|
||||
style="
|
||||
width: 148px;
|
||||
height: 148px;
|
||||
border: 1px dashed #c0ccda;
|
||||
border-radius: 6px;
|
||||
text-align: center;
|
||||
line-height: 148px;
|
||||
"
|
||||
>
|
||||
<img
|
||||
:src="avatar"
|
||||
class="avatar"
|
||||
style="border-radius: 6px; width: 148px; height: 148px"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div style="margin-bottom: 10px">
|
||||
<span style="width: 200px; display: inline-block; text-align: right">昵称:</span>
|
||||
<el-input
|
||||
style="width: 50%"
|
||||
v-model="userName"
|
||||
:disabled="true"
|
||||
></el-input>
|
||||
</div>
|
||||
<div style="margin-bottom: 10px">
|
||||
<span style="width: 200px; display: inline-block; text-align: right">姓名:</span>
|
||||
<el-input
|
||||
style="width: 50%"
|
||||
v-model="name"
|
||||
|
@ -220,7 +334,7 @@
|
|||
></el-input>
|
||||
</div>
|
||||
<div style="margin-bottom: 10px">
|
||||
<span style="width: 200px; display: inline-block; text-align: right">手机号:</span>
|
||||
<span style="width: 200px; display: inline-block; text-align: right">手机号:</span>
|
||||
<el-input
|
||||
style="width: 50%"
|
||||
v-model="phone"
|
||||
|
@ -246,13 +360,13 @@
|
|||
</div>
|
||||
</el-dialog>
|
||||
<!-- <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 用户列表弹框 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<-->
|
||||
<el-dialog title="用户列表" :visible.sync="dialogUserListFormVisible" width="60%" center>
|
||||
<el-dialog title="上级分销员列表" :visible.sync="dialogFxyListFormVisible" width="60%" center>
|
||||
<div style="margin-left: 10px; display: inline-block;">
|
||||
<span>昵称:</span>
|
||||
<el-input
|
||||
style="width: 200px"
|
||||
placeholder="请输入昵称"
|
||||
v-model="userName"
|
||||
placeholder="请输入姓名"
|
||||
v-model="fxyName"
|
||||
></el-input>
|
||||
</div>
|
||||
<div style="margin-left: 10px; display: inline-block">
|
||||
|
@ -260,7 +374,7 @@
|
|||
<el-input
|
||||
style="width: 200px"
|
||||
placeholder="请输入手机号"
|
||||
v-model="phone"
|
||||
v-model="fxyPhone"
|
||||
></el-input>
|
||||
</div>
|
||||
<div style="margin-left: 10px; display: inline-block">
|
||||
|
@ -276,16 +390,16 @@
|
|||
size="mini"
|
||||
type="primary"
|
||||
icon="document"
|
||||
@click="handleSelectUsers">查询
|
||||
@click="handleSelectSuperiorFxy">查询
|
||||
</el-button>
|
||||
<el-button
|
||||
style="margin-left: 10px"
|
||||
size="mini"
|
||||
type="primary"
|
||||
icon="document"
|
||||
@click="handleClearUsers">重置
|
||||
@click="handleClearFxy">重置
|
||||
</el-button>
|
||||
<el-table :data="userTableData.list" style="width: 100%">
|
||||
<el-table :data="fxyTableData.list" style="width: 100%">
|
||||
<el-table-column prop="userId" label="用户ID"></el-table-column>
|
||||
<el-table-column prop="avatar" label="头像">
|
||||
<template slot-scope="scope">
|
||||
|
@ -298,7 +412,7 @@
|
|||
<span v-else>暂无图片</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="userName" label="昵称"></el-table-column>
|
||||
<el-table-column prop="name" label="姓名"></el-table-column>
|
||||
<el-table-column prop="phone" label="手机号"></el-table-column>
|
||||
<el-table-column prop="invitationCode" label="邀请码"></el-table-column>
|
||||
<el-table-column label="操作" prop="id">
|
||||
|
@ -308,20 +422,20 @@
|
|||
size="mini"
|
||||
type="primary"
|
||||
icon="document"
|
||||
@click="handleAddUser(scope.row)"
|
||||
>添加
|
||||
@click="handleAddFxy(scope.row)"
|
||||
>设置
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div style="text-align: center; margin-top: 10px">
|
||||
<el-pagination
|
||||
@size-change="handleUserSizeChange"
|
||||
@current-change="handleUserCurrentChange"
|
||||
:page-size="userLimit"
|
||||
:current-page="userPage"
|
||||
@size-change="handleFxySizeChange"
|
||||
@current-change="handleFxyCurrentChange"
|
||||
:page-size="fxyLimit"
|
||||
:current-page="fxyPage"
|
||||
layout="total, prev, pager, next,jumper"
|
||||
:total="userTableData.totalCount"
|
||||
:total="fxyTableData.totalCount"
|
||||
></el-pagination>
|
||||
</div>
|
||||
</el-dialog>
|
||||
|
@ -405,7 +519,7 @@
|
|||
</el-radio-group>
|
||||
</div>
|
||||
<div style="margin-bottom: 10px">
|
||||
<span style="width: 200px; display: inline-block; text-align: right">审批意见:</span>
|
||||
<span style="width: 200px; display: inline-block; text-align: right">审批意见:</span>
|
||||
<el-input
|
||||
style="width: 50%"
|
||||
v-model="opinion"
|
||||
|
@ -446,12 +560,15 @@ export default {
|
|||
page: 1,
|
||||
limit: 10,
|
||||
dialogFormVisible: false,
|
||||
dialogFormViewVisible: false,
|
||||
dialogApproveFormVisible: false,
|
||||
dialogUserListFormVisible: false,
|
||||
userTableDataLoading: false,
|
||||
userPage: 1,
|
||||
userLimit: 10,
|
||||
userTableData:{},
|
||||
dialogFxyListFormVisible: false,
|
||||
fxyTableDataLoading: false,
|
||||
fxyName: "",
|
||||
fxyPhone: "",
|
||||
fxyPage: 1,
|
||||
fxyLimit: 10,
|
||||
fxyTableData:{},
|
||||
invitationCode: "",
|
||||
};
|
||||
},
|
||||
|
@ -525,6 +642,21 @@ export default {
|
|||
this.status = 1;
|
||||
this.dialogApproveFormVisible = true;
|
||||
},
|
||||
|
||||
handleView(row){
|
||||
this.titles = "查看";
|
||||
this.id = row.id;
|
||||
this.userId = row.userId;
|
||||
this.name = row.name;
|
||||
this.phone = row.phone;
|
||||
this.avatar = row.avatar;
|
||||
this.userName = row.userName;
|
||||
this.remarks = row.remarks;
|
||||
this.status = row.status;
|
||||
this.opinion = row.opinion;
|
||||
this.dialogFormViewVisible = true;
|
||||
},
|
||||
|
||||
// 添加服务包
|
||||
handleEdit(row) {
|
||||
if (row != 0) {
|
||||
|
@ -538,7 +670,6 @@ export default {
|
|||
this.remarks = row.remarks;
|
||||
this.status = row.status;
|
||||
this.opinion = row.opinion;
|
||||
console.log(this.id);
|
||||
} else {
|
||||
this.titles = "添加";
|
||||
this.id = "";
|
||||
|
@ -557,8 +688,7 @@ export default {
|
|||
closeFxy(){
|
||||
this.handleClear();
|
||||
},
|
||||
|
||||
// 提交添加、修改服务包
|
||||
// 提交添加、修改
|
||||
handleSubmit() {
|
||||
if (this.name == "") {
|
||||
this.$notify({
|
||||
|
@ -634,7 +764,43 @@ export default {
|
|||
}
|
||||
});
|
||||
},
|
||||
// 提交添加、修改服务包
|
||||
handleDelete(row){
|
||||
this.$confirm(`确定删除此条信息?`, "提示", {
|
||||
confirmButtonText: "确定",
|
||||
cancelButtonText: "取消",
|
||||
type: "warning",
|
||||
}).then(() => {
|
||||
let id = row.id;
|
||||
this.$http({
|
||||
url: this.$http.adornUrl("commission/fxyApply/delete"),
|
||||
method: "post",
|
||||
params: this.$http.adornParams({
|
||||
id: id
|
||||
}),
|
||||
}).then(({data}) => {
|
||||
if (data.code == 0) {
|
||||
this.clearDatas();
|
||||
this.$message({
|
||||
message: "删除成功",
|
||||
type: "success",
|
||||
duration: 1500,
|
||||
onClose: () => {
|
||||
this.handleSelect();
|
||||
},
|
||||
});
|
||||
} else {
|
||||
this.$message({
|
||||
message: data.msg,
|
||||
type: "warning",
|
||||
duration: 1500,
|
||||
onClose: () => {
|
||||
},
|
||||
});
|
||||
}
|
||||
});
|
||||
}).catch(() => {});
|
||||
},
|
||||
//授权
|
||||
handleApprove() {
|
||||
if (this.status == "") {
|
||||
this.$notify({
|
||||
|
@ -669,7 +835,40 @@ export default {
|
|||
this.dialogApproveFormVisible = false;
|
||||
this.clearDatas();
|
||||
this.$message({
|
||||
message: "操作成功",
|
||||
message: "审核成功",
|
||||
type: "success",
|
||||
duration: 1500,
|
||||
onClose: () => {
|
||||
this.handleSelect();
|
||||
},
|
||||
});
|
||||
} else {
|
||||
this.$message({
|
||||
message: data.msg,
|
||||
type: "warning",
|
||||
duration: 1500,
|
||||
onClose: () => {
|
||||
},
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
//取消授权
|
||||
handleCancelApply(row){
|
||||
let id = row.id;
|
||||
this.$http({
|
||||
url: this.$http.adornUrl("commission/fxyApply/approve"),
|
||||
method: "post",
|
||||
params: this.$http.adornParams({
|
||||
id: id,
|
||||
opinion: '系统取消授权',
|
||||
status: 0,
|
||||
}),
|
||||
}).then(({data}) => {
|
||||
if (data.code == 0) {
|
||||
this.clearDatas();
|
||||
this.$message({
|
||||
message: "取消成功",
|
||||
type: "success",
|
||||
duration: 1500,
|
||||
onClose: () => {
|
||||
|
@ -687,7 +886,6 @@ export default {
|
|||
}
|
||||
});
|
||||
},
|
||||
|
||||
clearDatas(){
|
||||
this.apiUrl="";
|
||||
this.tableDataLoading= false;
|
||||
|
@ -707,22 +905,26 @@ export default {
|
|||
this.handleSelect();
|
||||
},
|
||||
|
||||
showUsersView(){
|
||||
this.handleSelectUsers();
|
||||
this.dialogUserListFormVisible = true;
|
||||
handleSuperiorFxyView(row){
|
||||
this.userId = row.userId,
|
||||
this.handleClearFxy();
|
||||
this.dialogFxyListFormVisible = true;
|
||||
},
|
||||
handleSelectUsers(){
|
||||
this.userTableDataLoading = true;
|
||||
handleSelectSuperiorFxy(){
|
||||
this.fxyTableDataLoading = true;
|
||||
this.$http({
|
||||
url: this.$http.adornUrl("commission/fxyApply/findUserPage"),
|
||||
url: this.$http.adornUrl("commission/fxyApply/findSuperiorFxyPage"),
|
||||
method: "get",
|
||||
params: this.$http.adornParams({
|
||||
userPage: this.userPage,
|
||||
userLimit: this.userLimit,
|
||||
page: this.fxyPage,
|
||||
limit: this.fxyLimit,
|
||||
name: this.fxyName,
|
||||
phone: this.fxyPhone,
|
||||
invitationCode: this.invitationCode,
|
||||
}),
|
||||
}).then(({data}) => {
|
||||
if (data.code == 0) {
|
||||
this.userTableData = data.data;
|
||||
this.fxyTableData = data.data;
|
||||
} else {
|
||||
this.$notify({
|
||||
title: "提示",
|
||||
|
@ -731,37 +933,64 @@ export default {
|
|||
type: "warning",
|
||||
});
|
||||
}
|
||||
this.userTableDataLoading = false;
|
||||
this.fxyTableDataLoading = false;
|
||||
});
|
||||
},
|
||||
|
||||
//分页
|
||||
handleUserSizeChange(val) {
|
||||
this.userLimit = val;
|
||||
this.handleSelectUsers();
|
||||
handleFxySizeChange(val) {
|
||||
this.fxyLimit = val;
|
||||
this.handleSelectSuperiorFxy();
|
||||
},
|
||||
|
||||
//翻页
|
||||
handleUserCurrentChange(val) {
|
||||
this.userPage = val;
|
||||
this.handleSelectUsers();
|
||||
handleFxyCurrentChange(val) {
|
||||
this.fxyPage = val;
|
||||
this.handleSelectSuperiorFxy();
|
||||
},
|
||||
|
||||
// 重置
|
||||
handleClearUsers() {
|
||||
this.userName = "";
|
||||
this.phone = "";
|
||||
handleClearFxy() {
|
||||
this.fxyName = "";
|
||||
this.fxyPhone = "";
|
||||
this.invitationCode = "";
|
||||
this.userPage = 1;
|
||||
this.userLimit = 10;
|
||||
this.handleSelectUsers();
|
||||
this.fxtPage = 1;
|
||||
this.fxtLimit = 10;
|
||||
this.handleSelectSuperiorFxy();
|
||||
},
|
||||
|
||||
handleAddUser(row){
|
||||
this.userId = row.userId;
|
||||
this.avatar = row.avatar;
|
||||
this.userName = row.userName;
|
||||
this.dialogUserListFormVisible = false;
|
||||
handleAddFxy(row){
|
||||
let userId = this.userId;
|
||||
let invitationCode = row.invitationCode;
|
||||
this.$http({
|
||||
url: this.$http.adornUrl("commission/fxyApply/setSuperiorFxy"),
|
||||
method: "post",
|
||||
params: this.$http.adornParams({
|
||||
userId: userId,
|
||||
invitationCode: invitationCode,
|
||||
}),
|
||||
}).then(({data}) => {
|
||||
if (data.code == 0) {
|
||||
this.clearDatas();
|
||||
this.$message({
|
||||
message: "取消成功",
|
||||
type: "success",
|
||||
duration: 1500,
|
||||
onClose: () => {
|
||||
this.handleSelect();
|
||||
this.dialogFxyListFormVisible = false;
|
||||
},
|
||||
});
|
||||
} else {
|
||||
this.$message({
|
||||
message: data.msg,
|
||||
type: "warning",
|
||||
duration: 1500,
|
||||
onClose: () => {
|
||||
},
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
},
|
||||
|
@ -777,104 +1006,104 @@ export default {
|
|||
}
|
||||
.el-dialog--center {
|
||||
text-align: center;
|
||||
margin-top: 1vh !important;
|
||||
margin-top: 1vh !important;
|
||||
}
|
||||
|
||||
.el-tooltip__popper {
|
||||
width: 200px;
|
||||
padding: 10px;
|
||||
color: #000 !important;
|
||||
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.4);
|
||||
background-color: #fff !important;
|
||||
width: 200px;
|
||||
padding: 10px;
|
||||
color: #000 !important;
|
||||
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.4);
|
||||
background-color: #fff !important;
|
||||
}
|
||||
|
||||
.adver_main.box a {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
height: 150px;
|
||||
line-height: 150px;
|
||||
text-decoration: none;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
height: 150px;
|
||||
line-height: 150px;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.bannerManin span {
|
||||
display: inline-block;
|
||||
margin-left: 5px;
|
||||
display: inline-block;
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
.bannerManin img {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
border-radius: 50%;
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.bannerbtn a {
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
color: #3e8ef7 !important;
|
||||
text-decoration: none;
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
color: #3e8ef7 !important;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.imgs {
|
||||
position: relative;
|
||||
border-radius: 6px;
|
||||
width: 148px;
|
||||
height: 148px;
|
||||
margin-right: 10px;
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
border-radius: 6px;
|
||||
width: 148px;
|
||||
height: 148px;
|
||||
margin-right: 10px;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.dels {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.dels .el-icon-delete {
|
||||
line-height: 148px;
|
||||
padding-left: 58px;
|
||||
font-size: 25px;
|
||||
color: #fff;
|
||||
line-height: 148px;
|
||||
padding-left: 58px;
|
||||
font-size: 25px;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.imgs:hover .dels {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: #000;
|
||||
display: block;
|
||||
opacity: 0.5;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: #000;
|
||||
display: block;
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.bqList {
|
||||
padding: 4px 14px;
|
||||
margin: 4px;
|
||||
border: 1px solid #efefef;
|
||||
font-size: 12px;
|
||||
color: #999;
|
||||
border-radius: 4px;
|
||||
margin-right: 15px;
|
||||
padding: 4px 14px;
|
||||
margin: 4px;
|
||||
border: 1px solid #efefef;
|
||||
font-size: 12px;
|
||||
color: #999;
|
||||
border-radius: 4px;
|
||||
margin-right: 15px;
|
||||
}
|
||||
|
||||
.delss {
|
||||
display: none;
|
||||
position: relative;
|
||||
display: none;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.delss .el-icon-delete {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.bqList:hover .delss {
|
||||
display: initial;
|
||||
opacity: 0.5;
|
||||
display: initial;
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.tj {
|
||||
padding: 6px !important;
|
||||
margin: 4px;
|
||||
font-size: 12px;
|
||||
border: 1px solid #ccc;
|
||||
border-radius: 4px;
|
||||
padding: 6px !important;
|
||||
margin: 4px;
|
||||
font-size: 12px;
|
||||
border: 1px solid #ccc;
|
||||
border-radius: 4px;
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -0,0 +1,488 @@
|
|||
<template>
|
||||
<div>
|
||||
<!-- 列表 -->
|
||||
<div style="margin-left:10px;display: inline-block">
|
||||
<span>姓名:</span>
|
||||
<el-input
|
||||
style="width: 200px"
|
||||
placeholder="请输入姓名"
|
||||
v-model="name">
|
||||
</el-input>
|
||||
</div>
|
||||
<div style="margin-left:10px;display: inline-block">
|
||||
<span>电话:</span>
|
||||
<el-input
|
||||
style="width: 200px"
|
||||
placeholder="请输入电话"
|
||||
v-model="phone">
|
||||
</el-input>
|
||||
</div>
|
||||
<div style="margin-left:10px;display: inline-block;">
|
||||
<span>入驻开始时间:</span>
|
||||
<el-date-picker style="width: 160px;" v-model="startTime" align="right"
|
||||
type="datetime" format="yyyy-MM-dd" value-format="yyyy-MM-dd" placeholder="选择开始时间">
|
||||
</el-date-picker>
|
||||
</div>
|
||||
<div style="margin-left:10px;display: inline-block;">
|
||||
<span>入驻截止时间:</span>
|
||||
<el-date-picker style="width: 160px;" v-model="endTime" align="right" type="datetime"
|
||||
format="yyyy-MM-dd" value-format="yyyy-MM-dd" placeholder="选择截止时间">
|
||||
</el-date-picker>
|
||||
</div>
|
||||
<el-button
|
||||
style="margin-left: 10px"
|
||||
size="mini"
|
||||
type="primary"
|
||||
icon="document"
|
||||
@click="handleSelect"
|
||||
>查询
|
||||
</el-button>
|
||||
<el-button
|
||||
style="margin-left: 10px"
|
||||
size="mini"
|
||||
type="primary"
|
||||
icon="document"
|
||||
@click="handleClear"
|
||||
>重置
|
||||
</el-button>
|
||||
<el-table v-loading="tableDataLoading" :data="tableData.list">
|
||||
<el-table-column
|
||||
prop="id"
|
||||
label="编号"
|
||||
width="80"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="userId"
|
||||
label="用户ID"
|
||||
width="80"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column prop="avatar" label="头像">
|
||||
<template slot-scope="scope">
|
||||
<img
|
||||
v-if="scope.row.avatar && scope.row.avatar != ''"
|
||||
:src="scope.row.avatar"
|
||||
width="40"
|
||||
height="40"
|
||||
/>
|
||||
<span v-else>暂无图片</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="userName"
|
||||
label="昵称"
|
||||
width="120"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="name"
|
||||
label="姓名"
|
||||
width="120"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="phone"
|
||||
label="手机号"
|
||||
width="120"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="approveTime"
|
||||
label="入驻时间"
|
||||
width="150"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="fxtCount"
|
||||
label="累计邀请下级"
|
||||
width="150"
|
||||
align="right"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="userCount"
|
||||
label="累计邀请用户"
|
||||
width="150"
|
||||
align="right"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="ordersCount"
|
||||
label="累计成交订单数量"
|
||||
width="150"
|
||||
align="right"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="money"
|
||||
label="累计获得佣金"
|
||||
width="150"
|
||||
align="right"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" prop="id" width="260" fixed="right">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
type="primary"
|
||||
style="margin: 5px"
|
||||
@click="handleInvitationView(scope.row,'1')"
|
||||
>邀请的下级
|
||||
</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="primary"
|
||||
style="margin: 5px"
|
||||
@click="handleInvitationView(scope.row,'2')"
|
||||
>邀请的用户
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div style="text-align: center; margin-top: 10px">
|
||||
<el-pagination
|
||||
@size-change="handleSizeChange"
|
||||
@current-change="handleCurrentChange"
|
||||
:page-sizes="[10, 20, 30, 40]"
|
||||
:page-size="limit"
|
||||
:current-page="page"
|
||||
layout="total,sizes, prev, pager, next,jumper"
|
||||
:total="tableData.totalCount"
|
||||
>
|
||||
</el-pagination>
|
||||
</div>
|
||||
<!-- <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 用户列表弹框 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<-->
|
||||
<el-dialog :title=titles :visible.sync="dialogUserListFormVisible" width="60%" center @close="closeUserList">
|
||||
<div style="margin-left: 10px; display: inline-block;">
|
||||
<span>姓名:</span>
|
||||
<el-input
|
||||
style="width: 200px"
|
||||
placeholder="请输入姓名"
|
||||
v-model="userName"
|
||||
></el-input>
|
||||
</div>
|
||||
<div style="margin-left: 10px; display: inline-block">
|
||||
<span>手机号:</span>
|
||||
<el-input
|
||||
style="width: 200px"
|
||||
placeholder="请输入手机号"
|
||||
v-model="userPhone"
|
||||
></el-input>
|
||||
</div>
|
||||
<el-button
|
||||
style="margin-left: 10px;"
|
||||
size="mini"
|
||||
type="primary"
|
||||
icon="document"
|
||||
@click="handleSelectUsers">查询
|
||||
</el-button>
|
||||
<el-button
|
||||
style="margin-left: 10px"
|
||||
size="mini"
|
||||
type="primary"
|
||||
icon="document"
|
||||
@click="handleClearUsers">重置
|
||||
</el-button>
|
||||
<el-table :data="userTableData.list" style="width: 100%">
|
||||
<el-table-column prop="userId" label="用户ID"></el-table-column>
|
||||
<el-table-column prop="avatar" label="头像">
|
||||
<template slot-scope="scope">
|
||||
<img
|
||||
v-if="scope.row.avatar && scope.row.avatar != ''"
|
||||
:src="scope.row.avatar"
|
||||
width="40"
|
||||
height="40"
|
||||
/>
|
||||
<span v-else>暂无图片</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="name" label="姓名"></el-table-column>
|
||||
<el-table-column prop="phone" label="手机号"></el-table-column>
|
||||
</el-table>
|
||||
<div style="text-align: center; margin-top: 10px">
|
||||
<el-pagination
|
||||
@size-change="handleUserSizeChange"
|
||||
@current-change="handleUserCurrentChange"
|
||||
:page-size="userLimit"
|
||||
:current-page="userPage"
|
||||
layout="total, prev, pager, next,jumper"
|
||||
:total="userTableData.totalCount"
|
||||
></el-pagination>
|
||||
</div>
|
||||
</el-dialog>
|
||||
<!-- <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<用户列表<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< -->
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
apiUrl: "",
|
||||
titles: "",
|
||||
invitationCode: "",
|
||||
tableDataLoading: false,
|
||||
tableData: {},
|
||||
userId: "",
|
||||
avatar: "",
|
||||
name: "",
|
||||
phone: "",
|
||||
startTime: "",
|
||||
endTime: "",
|
||||
page: 1,
|
||||
limit: 10,
|
||||
dialogUserListFormVisible: false,
|
||||
userTableDataLoading: false,
|
||||
flag: "",
|
||||
userName: "",
|
||||
userPhone: "",
|
||||
userPage: 1,
|
||||
userLimit: 10,
|
||||
userTableData:{},
|
||||
dialogArtificerListFormVisible: false,
|
||||
artificerTableDataLoading: false,
|
||||
artificerName: "",
|
||||
artificerPhone: "",
|
||||
artificerPage: 1,
|
||||
artificerLimit: 10,
|
||||
artificerTableData:{},
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
showDictValue(data, datas){
|
||||
const dictItem = datas.find(item => data === item.id);
|
||||
return dictItem ? dictItem.value : '';
|
||||
},
|
||||
// 获取经纪人列表数据
|
||||
handleSelect() {
|
||||
this.tableDataLoading = true;
|
||||
this.$http({
|
||||
url: this.$http.adornUrl("commission/fxyData/findPage"),
|
||||
method: "get",
|
||||
params: this.$http.adornParams({
|
||||
page: this.page,
|
||||
limit: this.limit,
|
||||
name: this.name,
|
||||
phone: this.phone,
|
||||
startTime: this.startTime,
|
||||
endTime: this.endTime,
|
||||
}),
|
||||
}).then(({data}) => {
|
||||
if (data.code == 0) {
|
||||
this.tableData = data.data;
|
||||
console.log(this.tableData);
|
||||
} else {
|
||||
this.$notify({
|
||||
title: "提示",
|
||||
duration: 1800,
|
||||
message: data.msg,
|
||||
type: "warning",
|
||||
});
|
||||
}
|
||||
this.tableDataLoading = false;
|
||||
});
|
||||
},
|
||||
// 重置
|
||||
handleClear() {
|
||||
this.name = "";
|
||||
this.phone ="";
|
||||
this.startTime = "";
|
||||
this.endTime = "";
|
||||
this.page = 1;
|
||||
this.handleSelect();
|
||||
},
|
||||
|
||||
//分页
|
||||
handleSizeChange(val) {
|
||||
this.limit = val;
|
||||
this.handleSelect();
|
||||
},
|
||||
|
||||
//翻页
|
||||
handleCurrentChange(val) {
|
||||
this.page = val;
|
||||
this.handleSelect();
|
||||
},
|
||||
|
||||
closeUserList(){
|
||||
this.handleClear();
|
||||
},
|
||||
|
||||
handleInvitationView(row,flag){
|
||||
this.flag = flag;
|
||||
if(flag == '1'){
|
||||
this.titles = '邀请的下级列表';
|
||||
}else{
|
||||
this.titles = '邀请的用户列表';
|
||||
}
|
||||
this.invitationCode = row.invitationCode;
|
||||
this.handleSelectUsers();
|
||||
this.dialogUserListFormVisible = true;
|
||||
},
|
||||
|
||||
handleSelectUsers(){
|
||||
this.userTableDataLoading = true;
|
||||
this.$http({
|
||||
url: this.$http.adornUrl("commission/fxyData/invitationPage"),
|
||||
method: "get",
|
||||
params: this.$http.adornParams({
|
||||
page: this.userPage,
|
||||
limit: this.userLimit,
|
||||
invitationCode: this.invitationCode,
|
||||
name: this.userName,
|
||||
phone: this.userPhone,
|
||||
flag: this.flag
|
||||
}),
|
||||
}).then(({data}) => {
|
||||
if (data.code == 0) {
|
||||
this.userTableData = data.data;
|
||||
} else {
|
||||
this.$notify({
|
||||
title: "提示",
|
||||
duration: 1800,
|
||||
message: data.msg,
|
||||
type: "warning",
|
||||
});
|
||||
}
|
||||
this.userTableDataLoading = false;
|
||||
});
|
||||
},
|
||||
|
||||
//分页
|
||||
handleUserSizeChange(val) {
|
||||
this.userLimit = val;
|
||||
this.handleSelectUsers();
|
||||
},
|
||||
|
||||
//翻页
|
||||
handleUserCurrentChange(val) {
|
||||
this.userPage = val;
|
||||
this.handleSelectUsers();
|
||||
},
|
||||
|
||||
// 重置
|
||||
handleClearUsers() {
|
||||
this.userName = "";
|
||||
this.userPhone = "";
|
||||
this.userPage = 1;
|
||||
this.userLimit = 10;
|
||||
this.handleSelectUsers();
|
||||
},
|
||||
|
||||
},
|
||||
mounted() {
|
||||
this.handleSelect();
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.customWidth {
|
||||
width: 80% !important;
|
||||
}
|
||||
.el-dialog--center {
|
||||
text-align: center;
|
||||
margin-top: 1vh !important;
|
||||
}
|
||||
|
||||
.el-tooltip__popper {
|
||||
width: 200px;
|
||||
padding: 10px;
|
||||
color: #000 !important;
|
||||
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.4);
|
||||
background-color: #fff !important;
|
||||
}
|
||||
|
||||
.adver_main.box a {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
height: 150px;
|
||||
line-height: 150px;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.bannerManin span {
|
||||
display: inline-block;
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
.bannerManin img {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.bannerbtn a {
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
color: #3e8ef7 !important;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.imgs {
|
||||
position: relative;
|
||||
border-radius: 6px;
|
||||
width: 148px;
|
||||
height: 148px;
|
||||
margin-right: 10px;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.dels {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.dels .el-icon-delete {
|
||||
line-height: 148px;
|
||||
padding-left: 58px;
|
||||
font-size: 25px;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.imgs:hover .dels {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: #000;
|
||||
display: block;
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.bqList {
|
||||
padding: 4px 14px;
|
||||
margin: 4px;
|
||||
border: 1px solid #efefef;
|
||||
font-size: 12px;
|
||||
color: #999;
|
||||
border-radius: 4px;
|
||||
margin-right: 15px;
|
||||
}
|
||||
|
||||
.delss {
|
||||
display: none;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.delss .el-icon-delete {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.bqList:hover .delss {
|
||||
display: initial;
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.tj {
|
||||
padding: 6px !important;
|
||||
margin: 4px;
|
||||
font-size: 12px;
|
||||
border: 1px solid #ccc;
|
||||
border-radius: 4px;
|
||||
}
|
||||
</style>
|
|
@ -0,0 +1,304 @@
|
|||
<template>
|
||||
<div>
|
||||
<!-- 列表 -->
|
||||
<div style="margin-left:10px;display: inline-block">
|
||||
<span>姓名:</span>
|
||||
<el-input
|
||||
style="width: 200px"
|
||||
placeholder="请输入姓名"
|
||||
v-model="name">
|
||||
</el-input>
|
||||
</div>
|
||||
<div style="margin-left:10px;display: inline-block">
|
||||
<span>电话:</span>
|
||||
<el-input
|
||||
style="width: 200px"
|
||||
placeholder="请输入电话"
|
||||
v-model="phone">
|
||||
</el-input>
|
||||
</div>
|
||||
<div style="margin-left:10px;display: inline-block;">
|
||||
<span>下单开始时间:</span>
|
||||
<el-date-picker style="width: 160px;" v-model="startTime" align="right"
|
||||
type="datetime" format="yyyy-MM-dd" value-format="yyyy-MM-dd" placeholder="选择开始时间">
|
||||
</el-date-picker>
|
||||
</div>
|
||||
<div style="margin-left:10px;display: inline-block;">
|
||||
<span>下单截止时间:</span>
|
||||
<el-date-picker style="width: 160px;" v-model="endTime" align="right" type="datetime"
|
||||
format="yyyy-MM-dd" value-format="yyyy-MM-dd" placeholder="选择截止时间">
|
||||
</el-date-picker>
|
||||
</div>
|
||||
<el-button
|
||||
style="margin-left: 10px"
|
||||
size="mini"
|
||||
type="primary"
|
||||
icon="document"
|
||||
@click="handleSelect"
|
||||
>查询
|
||||
</el-button>
|
||||
<el-button
|
||||
style="margin-left: 10px"
|
||||
size="mini"
|
||||
type="primary"
|
||||
icon="document"
|
||||
@click="handleClear"
|
||||
>重置
|
||||
</el-button>
|
||||
<el-table v-loading="tableDataLoading" :data="tableData.list">
|
||||
<el-table-column
|
||||
prop="id"
|
||||
label="编号"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="userId"
|
||||
label="用户ID"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column prop="avatar" label="头像">
|
||||
<template slot-scope="scope">
|
||||
<img
|
||||
v-if="scope.row.avatar && scope.row.avatar != ''"
|
||||
:src="scope.row.avatar"
|
||||
width="40"
|
||||
height="40"
|
||||
/>
|
||||
<span v-else>暂无图片</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="name"
|
||||
label="姓名"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="phone"
|
||||
label="手机号"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column label="成为角色" prop="blFxyLevel">
|
||||
<template slot-scope="scope">
|
||||
{{ showDictValue(scope.row.blFxyLevel, levelData) }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="money"
|
||||
label="门槛费"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="tradeNo"
|
||||
label="订单号"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="payTime"
|
||||
label="下单时间"
|
||||
>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div style="text-align: center; margin-top: 10px">
|
||||
<el-pagination
|
||||
@size-change="handleSizeChange"
|
||||
@current-change="handleCurrentChange"
|
||||
:page-sizes="[10, 20, 30, 40]"
|
||||
:page-size="limit"
|
||||
:current-page="page"
|
||||
layout="total,sizes, prev, pager, next,jumper"
|
||||
:total="tableData.totalCount"
|
||||
>
|
||||
</el-pagination>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
levelData:[{id:1,value:'一级分销员'},{id:2,value:'二级分销员'}],
|
||||
tableDataLoading: false,
|
||||
tableData: {},
|
||||
name: "",
|
||||
phone: "",
|
||||
startTime: "",
|
||||
endTime: "",
|
||||
page: 1,
|
||||
limit: 10,
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
showDictValue(data, datas){
|
||||
const dictItem = datas.find(item => data === item.id);
|
||||
return dictItem ? dictItem.value : '';
|
||||
},
|
||||
// 获取分销员订单列表数据
|
||||
handleSelect() {
|
||||
this.tableDataLoading = true;
|
||||
this.$http({
|
||||
url: this.$http.adornUrl("commission/fxyData/findOrderPage"),
|
||||
method: "get",
|
||||
params: this.$http.adornParams({
|
||||
page: this.page,
|
||||
limit: this.limit,
|
||||
name: this.name,
|
||||
phone: this.phone,
|
||||
startTime: this.startTime,
|
||||
endTime: this.endTime,
|
||||
}),
|
||||
}).then(({data}) => {
|
||||
if (data.code == 0) {
|
||||
this.tableData = data.data;
|
||||
console.log(this.tableData);
|
||||
} else {
|
||||
this.$notify({
|
||||
title: "提示",
|
||||
duration: 1800,
|
||||
message: data.msg,
|
||||
type: "warning",
|
||||
});
|
||||
}
|
||||
this.tableDataLoading = false;
|
||||
});
|
||||
},
|
||||
// 重置
|
||||
handleClear() {
|
||||
this.name = "";
|
||||
this.phone ="";
|
||||
this.startTime = "";
|
||||
this.endTime = "";
|
||||
this.page = 1;
|
||||
this.handleSelect();
|
||||
},
|
||||
|
||||
//分页
|
||||
handleSizeChange(val) {
|
||||
this.limit = val;
|
||||
this.handleSelect();
|
||||
},
|
||||
|
||||
//翻页
|
||||
handleCurrentChange(val) {
|
||||
this.page = val;
|
||||
this.handleSelect();
|
||||
},
|
||||
|
||||
closeUserList(){
|
||||
this.handleClear();
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
this.handleSelect();
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.customWidth {
|
||||
width: 80% !important;
|
||||
}
|
||||
.el-dialog--center {
|
||||
text-align: center;
|
||||
margin-top: 1vh !important;
|
||||
}
|
||||
|
||||
.el-tooltip__popper {
|
||||
width: 200px;
|
||||
padding: 10px;
|
||||
color: #000 !important;
|
||||
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.4);
|
||||
background-color: #fff !important;
|
||||
}
|
||||
|
||||
.adver_main.box a {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
height: 150px;
|
||||
line-height: 150px;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.bannerManin span {
|
||||
display: inline-block;
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
.bannerManin img {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.bannerbtn a {
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
color: #3e8ef7 !important;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.imgs {
|
||||
position: relative;
|
||||
border-radius: 6px;
|
||||
width: 148px;
|
||||
height: 148px;
|
||||
margin-right: 10px;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.dels {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.dels .el-icon-delete {
|
||||
line-height: 148px;
|
||||
padding-left: 58px;
|
||||
font-size: 25px;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.imgs:hover .dels {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: #000;
|
||||
display: block;
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.bqList {
|
||||
padding: 4px 14px;
|
||||
margin: 4px;
|
||||
border: 1px solid #efefef;
|
||||
font-size: 12px;
|
||||
color: #999;
|
||||
border-radius: 4px;
|
||||
margin-right: 15px;
|
||||
}
|
||||
|
||||
.delss {
|
||||
display: none;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.delss .el-icon-delete {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.bqList:hover .delss {
|
||||
display: initial;
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.tj {
|
||||
padding: 6px !important;
|
||||
margin: 4px;
|
||||
font-size: 12px;
|
||||
border: 1px solid #ccc;
|
||||
border-radius: 4px;
|
||||
}
|
||||
</style>
|
|
@ -912,6 +912,9 @@ export default {
|
|||
params: this.$http.adornParams({
|
||||
userPage: this.userPage,
|
||||
userLimit: this.userLimit,
|
||||
userName: this.userName,
|
||||
phone: this.phone,
|
||||
invitationCode: this.invitationCode,
|
||||
}),
|
||||
}).then(({data}) => {
|
||||
if (data.code == 0) {
|
||||
|
|
|
@ -97,18 +97,21 @@
|
|||
prop="artificerCount"
|
||||
label="累计邀请技师"
|
||||
width="150"
|
||||
align="right"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="ordersCount"
|
||||
label="累计成交订单数量"
|
||||
width="150"
|
||||
align="right"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="money"
|
||||
label="累计获得佣金"
|
||||
width="150"
|
||||
align="right"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" prop="id" width="150" fixed="right">
|
||||
|
|
Loading…
Reference in New Issue