聊天管理
This commit is contained in:
parent
9af0fecbfc
commit
7356f003a3
|
@ -168,7 +168,7 @@
|
|||
@click="handleApply(scope.row)"
|
||||
>授权
|
||||
</el-button>
|
||||
<el-button v-if="scope.row.status == 1"
|
||||
<el-button v-if="scope.row.status == 1 || scope.row.status == 2"
|
||||
size="mini"
|
||||
type="primary"
|
||||
style="margin: 5px"
|
||||
|
|
|
@ -161,7 +161,7 @@
|
|||
@click="handleApply(scope.row)"
|
||||
>授权
|
||||
</el-button>
|
||||
<el-button v-if="scope.row.status == 1"
|
||||
<el-button v-if="scope.row.status == 1 || scope.row.status == 2"
|
||||
size="mini"
|
||||
type="primary"
|
||||
style="margin: 5px"
|
||||
|
@ -823,7 +823,7 @@ export default {
|
|||
params: this.$http.adornParams({
|
||||
id: this.id,
|
||||
opinion: this.opinion,
|
||||
status: 1,
|
||||
status: this.status,
|
||||
userId: this.userId,
|
||||
}),
|
||||
}).then(({data}) => {
|
||||
|
|
|
@ -70,17 +70,15 @@
|
|||
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,51 +92,69 @@
|
|||
<el-table-column
|
||||
prop="userName"
|
||||
label="昵称"
|
||||
fixed="left"
|
||||
width="150"
|
||||
width="100"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="name"
|
||||
label="姓名"
|
||||
fixed="left"
|
||||
width="150"
|
||||
width="100"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="phone"
|
||||
label="手机号"
|
||||
fixed="left"
|
||||
width="150"
|
||||
width="120"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="agentName"
|
||||
label="所属代理商"
|
||||
width="180"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="rate"
|
||||
label="提成比例"
|
||||
width="120"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<span>{{scope.row.rate}}%</span>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="primary"
|
||||
plain
|
||||
@click="showUpdateRateView(scope.row)"
|
||||
style="margin: 5px"
|
||||
>修改
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="remarks"
|
||||
label="备注"
|
||||
fixed="left"
|
||||
width="150"
|
||||
width="180"
|
||||
>
|
||||
</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"
|
||||
|
@ -147,6 +163,34 @@
|
|||
@click="handleEdit(scope.row)"
|
||||
>修改
|
||||
</el-button>
|
||||
<el-button v-if="scope.row.status == 0"
|
||||
size="mini"
|
||||
type="primary"
|
||||
style="margin: 5px"
|
||||
@click="handleApply(scope.row)"
|
||||
>授权
|
||||
</el-button>
|
||||
<el-button v-if="scope.row.status == 1 || scope.row.status == 2"
|
||||
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="bindQdsView(scope.row)"
|
||||
>绑定渠道商
|
||||
</el-button>
|
||||
<el-button v-if="scope.row.status == 1"
|
||||
size="mini"
|
||||
type="primary"
|
||||
style="margin: 5px"
|
||||
@click="bindDlsView(scope.row)"
|
||||
>修改代理商
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
@ -162,9 +206,99 @@
|
|||
>
|
||||
</el-pagination>
|
||||
</div>
|
||||
|
||||
<!-- 查看 -->
|
||||
<el-dialog :title="titles" :visible.sync="dialogFormViewVisible" center @close="closeYwy">
|
||||
<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"
|
||||
: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">
|
||||
<el-dialog :title="titles" :visible.sync="dialogFormVisible" center @close="closeYwy">
|
||||
<div style="margin-bottom: 10px">
|
||||
<span style="width: 200px; display: inline-block; text-align: right">用户ID:</span>
|
||||
<el-input
|
||||
|
@ -260,15 +394,7 @@
|
|||
<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"
|
||||
v-model="userPhone"
|
||||
></el-input>
|
||||
</div>
|
||||
<el-button
|
||||
|
@ -327,7 +453,7 @@
|
|||
</el-dialog>
|
||||
<!-- <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<用户列表<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< -->
|
||||
<!-- 审批 -->
|
||||
<el-dialog :title="titles" :visible.sync="dialogApproveFormVisible" center @close="closeFxy">
|
||||
<el-dialog :title="titles" :visible.sync="dialogApproveFormVisible" center @close="closeYwy">
|
||||
<div style="margin-bottom: 10px">
|
||||
<span style="width: 200px; display: inline-block; text-align: right">用户ID:</span>
|
||||
<el-input
|
||||
|
@ -420,6 +546,170 @@
|
|||
<el-button type="primary" @click="handleApprove()">确 定</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
<!-- 修改提成比例 -->
|
||||
<el-dialog title="修改提成比例" :visible.sync="dialogFormVisibleRate" center width="40%">
|
||||
<div style="margin-bottom: 10px">
|
||||
<span style="width: 200px; display: inline-block; text-align: right">提成比例:</span>
|
||||
<el-input-number v-model="rate" controls-position="right" :precision="2" :min="0" :step="1" placeholder="请输入提成比例"/>
|
||||
</div>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button @click="dialogFormVisibleRate = false">取 消</el-button>
|
||||
<el-button type="primary" @click="updateRate()">确 定</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
<!-- <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 绑定渠道商列表弹框 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<-->
|
||||
<el-dialog title="渠道商列表" :visible.sync="dialogQdsVisible" width="60%" center>
|
||||
<div style="margin-left: 10px; display: inline-block;">
|
||||
<span>昵称:</span>
|
||||
<el-input
|
||||
style="width: 200px"
|
||||
placeholder="请输入昵称"
|
||||
v-model="qdsName"
|
||||
></el-input>
|
||||
</div>
|
||||
<div style="margin-left: 10px; display: inline-block">
|
||||
<span>手机号:</span>
|
||||
<el-input
|
||||
style="width: 200px"
|
||||
placeholder="请输入手机号"
|
||||
v-model="qdsPhone"
|
||||
></el-input>
|
||||
</div>
|
||||
<el-button
|
||||
style="margin-left: 10px;"
|
||||
size="mini"
|
||||
type="primary"
|
||||
icon="document"
|
||||
@click="handleSelectQds">查询
|
||||
</el-button>
|
||||
<el-button
|
||||
style="margin-left: 10px"
|
||||
size="mini"
|
||||
type="primary"
|
||||
icon="document"
|
||||
@click="handleClearQds">重置
|
||||
</el-button>
|
||||
<el-button
|
||||
style="margin-left: 10px"
|
||||
size="mini"
|
||||
type="primary"
|
||||
icon="document"
|
||||
@click="bindQdsNotBindView">渠道商列表
|
||||
</el-button>
|
||||
<el-table :data="qdsTableData.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="handleDeleteQds(scope.row)"
|
||||
>取消邀请
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div style="text-align: center; margin-top: 10px">
|
||||
<el-pagination
|
||||
@size-change="handleQdsSizeChange"
|
||||
@current-change="handleQdsCurrentChange"
|
||||
:page-size="qdsLimit"
|
||||
:current-page="qdsPage"
|
||||
layout="total, prev, pager, next,jumper"
|
||||
:total="qdsTableData.totalCount"
|
||||
></el-pagination>
|
||||
</div>
|
||||
</el-dialog>
|
||||
<!-- <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<绑定渠道商列表<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< -->
|
||||
<!-- <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 待绑定渠道商列表弹框 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<-->
|
||||
<el-dialog title="渠道商列表" :visible.sync="dialogAddQdsVisible" width="60%" center>
|
||||
<div style="margin-left: 10px; display: inline-block;">
|
||||
<span>昵称:</span>
|
||||
<el-input
|
||||
style="width: 200px"
|
||||
placeholder="请输入昵称"
|
||||
v-model="qdsAddName"
|
||||
></el-input>
|
||||
</div>
|
||||
<div style="margin-left: 10px; display: inline-block">
|
||||
<span>手机号:</span>
|
||||
<el-input
|
||||
style="width: 200px"
|
||||
placeholder="请输入手机号"
|
||||
v-model="qdsAddPhone"
|
||||
></el-input>
|
||||
</div>
|
||||
<el-button
|
||||
style="margin-left: 10px;"
|
||||
size="mini"
|
||||
type="primary"
|
||||
icon="document"
|
||||
@click="handleSelectQdsNotBind">查询
|
||||
</el-button>
|
||||
<el-button
|
||||
style="margin-left: 10px"
|
||||
size="mini"
|
||||
type="primary"
|
||||
icon="document"
|
||||
@click="handleClearQdsNotBind">重置
|
||||
</el-button>
|
||||
<el-table :data="qdsAddTableData.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="handleAddQds(scope.row)"
|
||||
>邀请
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div style="text-align: center; margin-top: 10px">
|
||||
<el-pagination
|
||||
@size-change="handleAddQdsSizeChange"
|
||||
@current-change="handleAddQdsCurrentChange"
|
||||
:page-size="qdsAddLimit"
|
||||
:current-page="qdsAddPage"
|
||||
layout="total, prev, pager, next,jumper"
|
||||
:total="qdsAddTableData.totalCount"
|
||||
></el-pagination>
|
||||
</div>
|
||||
</el-dialog>
|
||||
<!-- <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<待绑定渠道商列表<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< -->
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
@ -438,6 +728,7 @@ export default {
|
|||
userName: "",
|
||||
name: "",
|
||||
phone: "",
|
||||
userPhone: "",
|
||||
remarks: "",
|
||||
status: "",
|
||||
opinion: "",
|
||||
|
@ -445,14 +736,31 @@ export default {
|
|||
endTime: "",
|
||||
page: 1,
|
||||
limit: 10,
|
||||
rate: "",
|
||||
dialogFormVisible: false,
|
||||
dialogFormViewVisible: false,
|
||||
dialogApproveFormVisible: false,
|
||||
dialogUserListFormVisible: false,
|
||||
userTableDataLoading: false,
|
||||
dialogFormVisibleRate: false,
|
||||
userPage: 1,
|
||||
userLimit: 10,
|
||||
userTableData:{},
|
||||
invitationCode: "",
|
||||
dialogQdsVisible: false,
|
||||
dialogAddQdsVisible: false,
|
||||
qdsTableDataLoading: false,
|
||||
qdsTableData:{},
|
||||
qdsName: "",
|
||||
qdsPhone: "",
|
||||
qdsPage: 1,
|
||||
qdsLimit: 10,
|
||||
qdsAddTableData:{},
|
||||
qdsAddName: "",
|
||||
qdsAddPhone: "",
|
||||
qdsAddPage: 1,
|
||||
qdsAddLimit: 10,
|
||||
dialogDlsVisible: false,
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
|
@ -512,7 +820,19 @@ export default {
|
|||
this.page = val;
|
||||
this.handleSelect();
|
||||
},
|
||||
|
||||
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;
|
||||
},
|
||||
handleApply(row) {
|
||||
this.titles = "审批";
|
||||
this.id = row.id;
|
||||
|
@ -554,7 +874,7 @@ export default {
|
|||
this.dialogFormVisible = true;
|
||||
},
|
||||
|
||||
closeFxy(){
|
||||
closeYwy(){
|
||||
this.handleClear();
|
||||
},
|
||||
|
||||
|
@ -634,7 +954,7 @@ export default {
|
|||
}
|
||||
});
|
||||
},
|
||||
// 提交添加、修改服务包
|
||||
//授权
|
||||
handleApprove() {
|
||||
if (this.status == "") {
|
||||
this.$notify({
|
||||
|
@ -663,6 +983,7 @@ export default {
|
|||
id: this.id,
|
||||
opinion: this.opinion,
|
||||
status: this.status,
|
||||
userId: this.userId,
|
||||
}),
|
||||
}).then(({data}) => {
|
||||
if (data.code == 0) {
|
||||
|
@ -687,7 +1008,41 @@ export default {
|
|||
}
|
||||
});
|
||||
},
|
||||
|
||||
//取消授权
|
||||
handleCancelApply(row){
|
||||
let id = row.id;
|
||||
let userId = row.userId;
|
||||
this.$http({
|
||||
url: this.$http.adornUrl("commission/ywyApply/approve"),
|
||||
method: "post",
|
||||
params: this.$http.adornParams({
|
||||
id: id,
|
||||
opinion: '系统取消授权',
|
||||
status: 0,
|
||||
userId: userId,
|
||||
}),
|
||||
}).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: () => {
|
||||
},
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
clearDatas(){
|
||||
this.apiUrl="";
|
||||
this.tableDataLoading= false;
|
||||
|
@ -708,7 +1063,7 @@ export default {
|
|||
},
|
||||
|
||||
showUsersView(){
|
||||
this.handleSelectUsers();
|
||||
this.handleClearUsers();
|
||||
this.dialogUserListFormVisible = true;
|
||||
},
|
||||
handleSelectUsers(){
|
||||
|
@ -719,6 +1074,9 @@ export default {
|
|||
params: this.$http.adornParams({
|
||||
userPage: this.userPage,
|
||||
userLimit: this.userLimit,
|
||||
invitationCode: this.invitationCode,
|
||||
userName: this.userName,
|
||||
phone: this.userPhone
|
||||
}),
|
||||
}).then(({data}) => {
|
||||
if (data.code == 0) {
|
||||
|
@ -750,7 +1108,7 @@ export default {
|
|||
// 重置
|
||||
handleClearUsers() {
|
||||
this.userName = "";
|
||||
this.phone = "";
|
||||
this.userPhone = "";
|
||||
this.invitationCode = "";
|
||||
this.userPage = 1;
|
||||
this.userLimit = 10;
|
||||
|
@ -763,6 +1121,206 @@ export default {
|
|||
this.userName = row.userName;
|
||||
this.dialogUserListFormVisible = false;
|
||||
},
|
||||
// 修改提成比例
|
||||
showUpdateRateView(row) {
|
||||
this.id = row.id;
|
||||
this.rate = row.rate;
|
||||
this.dialogFormVisibleRate = true;
|
||||
},
|
||||
// 修改提成比例
|
||||
updateRate() {
|
||||
this.$http({
|
||||
url: this.$http.adornUrl("commission/ywyApply/updateRate"),
|
||||
method: "post",
|
||||
params: this.$http.adornParams({
|
||||
id: this.id,
|
||||
rate: this.rate,
|
||||
}),
|
||||
}).then(({data}) => {
|
||||
if (data.code == 0) {
|
||||
this.$message({
|
||||
message: "修改成功",
|
||||
type: "success",
|
||||
duration: 1500,
|
||||
onClose: () => {
|
||||
this.handleSelect();
|
||||
},
|
||||
});
|
||||
this.dialogFormVisibleRate = false;
|
||||
} else {
|
||||
this.$message({
|
||||
message: data.msg,
|
||||
type: "warning",
|
||||
duration: 1500,
|
||||
onClose: () => {
|
||||
},
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
bindQdsView(row){
|
||||
this.invitationCode = row.invitationCode;
|
||||
this.handleClearQds();
|
||||
this.dialogQdsVisible = true;
|
||||
},
|
||||
//分页
|
||||
handleQdsSizeChange(val) {
|
||||
this.qdsLimit = val;
|
||||
this.handleSelectQds();
|
||||
},
|
||||
//翻页
|
||||
handleQdsCurrentChange(val) {
|
||||
this.qdsPage = val;
|
||||
this.handleSelectQds();
|
||||
},
|
||||
// 重置
|
||||
handleClearQds() {
|
||||
this.qdsName = "";
|
||||
this.qdsPhone = "";
|
||||
this.qdsPage = 1;
|
||||
this.qdsLimit = 10;
|
||||
this.handleSelectQds();
|
||||
},
|
||||
handleSelectQds(){
|
||||
this.qdsTableDataLoading = true;
|
||||
this.$http({
|
||||
url: this.$http.adornUrl("commission/ywyApply/invitationQdsPage"),
|
||||
method: "get",
|
||||
params: this.$http.adornParams({
|
||||
userPage: this.qdsPage,
|
||||
userLimit: this.qdsLimit,
|
||||
invitationCode: this.invitationCode,
|
||||
userName: this.qdsName,
|
||||
phone: this.qdsPhone
|
||||
}),
|
||||
}).then(({data}) => {
|
||||
if (data.code == 0) {
|
||||
this.qdsTableData = data.data;
|
||||
} else {
|
||||
this.$notify({
|
||||
title: "提示",
|
||||
duration: 1800,
|
||||
message: data.msg,
|
||||
type: "warning",
|
||||
});
|
||||
}
|
||||
this.qdsTableDataLoading = false;
|
||||
});
|
||||
},
|
||||
//取消邀请
|
||||
handleDeleteQds(row) {
|
||||
let userId = row.userId;
|
||||
this.$http({
|
||||
url: this.$http.adornUrl("commission/ywyApply/deleteQds"),
|
||||
method: "post",
|
||||
params: this.$http.adornParams({
|
||||
userId: userId,
|
||||
}),
|
||||
}).then(({data}) => {
|
||||
if (data.code == 0) {
|
||||
this.$message({
|
||||
message: "取消邀请成功",
|
||||
type: "success",
|
||||
duration: 1500,
|
||||
onClose: () => {
|
||||
this.handleSelectQds();
|
||||
},
|
||||
});
|
||||
} else {
|
||||
this.$message({
|
||||
message: data.msg,
|
||||
type: "warning",
|
||||
duration: 1500,
|
||||
onClose: () => {
|
||||
},
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
bindQdsNotBindView(){
|
||||
this.handleClearQdsNotBind();
|
||||
this.dialogAddQdsVisible = true;
|
||||
},
|
||||
//分页
|
||||
handleAddQdsSizeChange(val) {
|
||||
this.qdsAddLimit = val;
|
||||
this.handleSelectQdsNotBind();
|
||||
},
|
||||
//翻页
|
||||
handleAddQdsCurrentChange(val) {
|
||||
this.qdsAddPage = val;
|
||||
this.handleSelectQdsNotBind();
|
||||
},
|
||||
// 重置
|
||||
handleClearQdsNotBind() {
|
||||
this.qdsAddName = "";
|
||||
this.qdsAddPhone = "";
|
||||
this.qdsAddPage = 1;
|
||||
this.qdsAddLimit = 10;
|
||||
this.handleSelectQdsNotBind();
|
||||
},
|
||||
handleSelectQdsNotBind(){
|
||||
this.qdsTableDataLoading = true;
|
||||
this.$http({
|
||||
url: this.$http.adornUrl("commission/ywyApply/invitationQdsNotBindPage"),
|
||||
method: "get",
|
||||
params: this.$http.adornParams({
|
||||
userPage: this.qdsAddPage,
|
||||
userLimit: this.qdsAddLimit,
|
||||
invitationCode: this.invitationCode,
|
||||
userName: this.qdsAddName,
|
||||
phone: this.qdsAddPhone
|
||||
}),
|
||||
}).then(({data}) => {
|
||||
if (data.code == 0) {
|
||||
this.qdsAddTableData = data.data;
|
||||
} else {
|
||||
this.$notify({
|
||||
title: "提示",
|
||||
duration: 1800,
|
||||
message: data.msg,
|
||||
type: "warning",
|
||||
});
|
||||
}
|
||||
this.qdsTableDataLoading = false;
|
||||
});
|
||||
},
|
||||
handleAddQds(row){
|
||||
let userId = row.userId;
|
||||
this.$http({
|
||||
url: this.$http.adornUrl("commission/ywyApply/addQds"),
|
||||
method: "post",
|
||||
params: this.$http.adornParams({
|
||||
userId: userId,
|
||||
invitationCode: this.invitationCode,
|
||||
}),
|
||||
}).then(({data}) => {
|
||||
if (data.code == 0) {
|
||||
this.$message({
|
||||
message: "邀请成功",
|
||||
type: "success",
|
||||
duration: 1500,
|
||||
onClose: () => {
|
||||
this.dialogAddQdsVisible = false;
|
||||
this.handleSelectQds();
|
||||
},
|
||||
});
|
||||
} else {
|
||||
this.$message({
|
||||
message: data.msg,
|
||||
type: "warning",
|
||||
duration: 1500,
|
||||
onClose: () => {
|
||||
},
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
bindDlsView(row){
|
||||
this.invitationCode = row.invitationCode;
|
||||
this.handleClearQds();
|
||||
this.dialogQdsVisible = true;
|
||||
},
|
||||
|
||||
},
|
||||
mounted() {
|
||||
|
|
|
@ -168,9 +168,9 @@
|
|||
</div>
|
||||
<el-input type="textarea" id="textarea" :rows="2" placeholder="请输入内容" v-model="content"
|
||||
@keyup.enter.native="sendTextarea(1)"></el-input>
|
||||
<el-button type="primary" style="font-size: 12px" v-if="content" @click="sendTextarea(1)">发送
|
||||
<el-button type="primary" style="font-size: 12px" v-if="content" @click="sendTextarea(1)">发送1
|
||||
</el-button>
|
||||
<el-button type="primary" style="font-size: 12px" v-else disabled @click="sendTextarea(1)">发送
|
||||
<el-button type="primary" style="font-size: 12px" v-else disabled @click="sendTextarea(1)">发送2
|
||||
</el-button>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -270,7 +270,7 @@ import { serverPaths } from '@/utils/enumData'
|
|||
// 数据接收
|
||||
let msg = JSON.parse(e.data);
|
||||
this.dialogueList.push(msg);
|
||||
console.log(msg);
|
||||
console.log(this.dialogueList);
|
||||
|
||||
let ele = document.getElementById("ele");
|
||||
this.dataSelect();
|
||||
|
@ -369,26 +369,27 @@ import { serverPaths } from '@/utils/enumData'
|
|||
this.initWebSocket();
|
||||
},
|
||||
|
||||
|
||||
clickItem2() {
|
||||
this.$http({
|
||||
url: this.$http.adornUrl("chat/selectChatContent"),
|
||||
method: "get",
|
||||
params: this.$http.adornParams({
|
||||
chatConversationId: this.chatId,
|
||||
page: 1,
|
||||
limit: 10,
|
||||
}),
|
||||
}).then(({
|
||||
data
|
||||
}) => {
|
||||
let returnData = data.data;
|
||||
this.dialogueList = returnData.list.reverse();
|
||||
let ele = document.getElementById("ele");
|
||||
this.$nextTick(() => {
|
||||
ele.scrollTop = ele.scrollHeight;
|
||||
if(this.chatId != null && this.chatId != ''){
|
||||
this.$http({
|
||||
url: this.$http.adornUrl("chat/selectChatContent"),
|
||||
method: "get",
|
||||
params: this.$http.adornParams({
|
||||
chatConversationId: this.chatId,
|
||||
page: 1,
|
||||
limit: 10,
|
||||
}),
|
||||
}).then(({
|
||||
data
|
||||
}) => {
|
||||
let returnData = data.data;
|
||||
this.dialogueList = returnData.list.reverse();
|
||||
let ele = document.getElementById("ele");
|
||||
this.$nextTick(() => {
|
||||
ele.scrollTop = ele.scrollHeight;
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
},
|
||||
// 点击发送
|
||||
sendTextarea(type) {
|
||||
|
@ -406,7 +407,7 @@ import { serverPaths } from '@/utils/enumData'
|
|||
console.log(`🚀 ~ sendTextarea ~ data:`, data)
|
||||
this.websock.send(data);
|
||||
this.content = "";
|
||||
this.dialogueList.push(this.numlist);
|
||||
// this.dialogueList.push(this.numlist);
|
||||
let ele = document.getElementById("ele");
|
||||
this.$nextTick(() => {
|
||||
ele.scrollTop = ele.scrollHeight;
|
||||
|
@ -491,7 +492,8 @@ import { serverPaths } from '@/utils/enumData'
|
|||
this.dataSelect()
|
||||
this.timer = window.setInterval(() => {
|
||||
setTimeout(() => {
|
||||
this.dataSelect()
|
||||
this.dataSelect();
|
||||
this.clickItem2();
|
||||
},0)
|
||||
},4000)
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue