经纪人
This commit is contained in:
parent
4b37164a63
commit
f3f1aeb50d
|
@ -1495,12 +1495,84 @@
|
|||
</div>
|
||||
</el-dialog>
|
||||
<!-- 修改经纪人 -->
|
||||
<el-dialog title="修改经纪人" :visible.sync="dialogFormVisible3" center>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<el-dialog title="修改经纪人" :visible.sync="dialogFormVisible3" width="60%" center>
|
||||
<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="phone"
|
||||
></el-input>
|
||||
</div>
|
||||
<div style="margin-left: 10px; display: inline-block">
|
||||
<span>邀请码:</span>
|
||||
<el-input
|
||||
style="width: 200px"
|
||||
placeholder="请输入邀请码"
|
||||
v-model="invitationCode"
|
||||
></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="userName" 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">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
style="margin: 10px 0"
|
||||
size="mini"
|
||||
type="primary"
|
||||
icon="document"
|
||||
@click="handleAddUser(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"
|
||||
layout="total, prev, pager, next,jumper"
|
||||
:total="userTableData.totalCount"
|
||||
></el-pagination>
|
||||
</div>
|
||||
</el-dialog>
|
||||
<!-- 聊天内容 -->
|
||||
<el-dialog title="聊天内容" :visible.sync="dialogFormVisible4" center>
|
||||
|
@ -2509,7 +2581,10 @@ import { serverPaths } from '@/utils/enumData'
|
|||
],
|
||||
artificerDates: "",
|
||||
times: [],
|
||||
|
||||
userTableDataLoading: false,
|
||||
userTableData:{},
|
||||
userPage: 1,
|
||||
userLimit: 10,
|
||||
userName: "",
|
||||
phones: "",
|
||||
avatar: "",
|
||||
|
@ -4181,10 +4256,91 @@ import { serverPaths } from '@/utils/enumData'
|
|||
this.age = row.age;
|
||||
this.dialogFormVisible2 = true;
|
||||
},
|
||||
// 修改信息弹框
|
||||
updataJjr(row) {
|
||||
// 修改经纪人
|
||||
updataJjr() {
|
||||
this.handleClearUsers();
|
||||
this.dialogFormVisible3 = true;
|
||||
},
|
||||
handleSelectUsers(){
|
||||
this.userTableDataLoading = true;
|
||||
this.$http({
|
||||
url: this.$http.adornUrl("commission/jjrData/jjrList"),
|
||||
method: "get",
|
||||
params: this.$http.adornParams({
|
||||
page: this.userPage,
|
||||
limit: this.userLimit,
|
||||
}),
|
||||
}).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.phone = "";
|
||||
this.invitationCode = "";
|
||||
this.userPage = 1;
|
||||
this.userLimit = 10;
|
||||
this.handleSelectUsers();
|
||||
},
|
||||
|
||||
handleAddUser(row){
|
||||
let userId = this.$route.query.userId;
|
||||
let invitationCode = row.invitationCode;
|
||||
this.$http({
|
||||
url: this.$http.adornUrl(
|
||||
"commission/jjrData/modifyJjr"
|
||||
),
|
||||
method: "post",
|
||||
params: this.$http.adornParams({
|
||||
artificerUserId: userId,
|
||||
invitationCode: invitationCode,
|
||||
}),
|
||||
}).then(({data}) => {
|
||||
if (data.code == 0) {
|
||||
this.$message({
|
||||
message: "操作成功",
|
||||
type: "success",
|
||||
duration: 1500,
|
||||
onClose: () => {
|
||||
this.dialogFormVisible3 = false;
|
||||
this.dataSelect();
|
||||
},
|
||||
});
|
||||
} else {
|
||||
this.$message({
|
||||
message: data.msg,
|
||||
type: "warning",
|
||||
duration: 1500,
|
||||
onClose: () => {},
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
ageChange2(userId, creditScore) {
|
||||
this.type = "";
|
||||
this.age = "";
|
||||
|
|
Loading…
Reference in New Issue