聊天管理
This commit is contained in:
parent
9af0fecbfc
commit
7356f003a3
|
@ -168,7 +168,7 @@
|
||||||
@click="handleApply(scope.row)"
|
@click="handleApply(scope.row)"
|
||||||
>授权
|
>授权
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button v-if="scope.row.status == 1"
|
<el-button v-if="scope.row.status == 1 || scope.row.status == 2"
|
||||||
size="mini"
|
size="mini"
|
||||||
type="primary"
|
type="primary"
|
||||||
style="margin: 5px"
|
style="margin: 5px"
|
||||||
|
|
|
@ -161,7 +161,7 @@
|
||||||
@click="handleApply(scope.row)"
|
@click="handleApply(scope.row)"
|
||||||
>授权
|
>授权
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button v-if="scope.row.status == 1"
|
<el-button v-if="scope.row.status == 1 || scope.row.status == 2"
|
||||||
size="mini"
|
size="mini"
|
||||||
type="primary"
|
type="primary"
|
||||||
style="margin: 5px"
|
style="margin: 5px"
|
||||||
|
@ -823,7 +823,7 @@ export default {
|
||||||
params: this.$http.adornParams({
|
params: this.$http.adornParams({
|
||||||
id: this.id,
|
id: this.id,
|
||||||
opinion: this.opinion,
|
opinion: this.opinion,
|
||||||
status: 1,
|
status: this.status,
|
||||||
userId: this.userId,
|
userId: this.userId,
|
||||||
}),
|
}),
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
|
|
|
@ -70,17 +70,15 @@
|
||||||
prop="id"
|
prop="id"
|
||||||
label="编号"
|
label="编号"
|
||||||
width="80"
|
width="80"
|
||||||
fixed="left"
|
|
||||||
>
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="userId"
|
prop="userId"
|
||||||
label="用户ID"
|
label="用户ID"
|
||||||
fixed="left"
|
width="80"
|
||||||
width="150"
|
|
||||||
>
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="avatar" label="头像" fixed="left">
|
<el-table-column prop="avatar" label="头像">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<img
|
<img
|
||||||
v-if="scope.row.avatar && scope.row.avatar != ''"
|
v-if="scope.row.avatar && scope.row.avatar != ''"
|
||||||
|
@ -94,51 +92,69 @@
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="userName"
|
prop="userName"
|
||||||
label="昵称"
|
label="昵称"
|
||||||
fixed="left"
|
width="100"
|
||||||
width="150"
|
|
||||||
>
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="name"
|
prop="name"
|
||||||
label="姓名"
|
label="姓名"
|
||||||
fixed="left"
|
width="100"
|
||||||
width="150"
|
|
||||||
>
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="phone"
|
prop="phone"
|
||||||
label="手机号"
|
label="手机号"
|
||||||
fixed="left"
|
width="120"
|
||||||
width="150"
|
|
||||||
>
|
>
|
||||||
</el-table-column>
|
</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
|
<el-table-column
|
||||||
prop="remarks"
|
prop="remarks"
|
||||||
label="备注"
|
label="备注"
|
||||||
fixed="left"
|
width="180"
|
||||||
width="150"
|
|
||||||
>
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="createTime"
|
prop="createTime"
|
||||||
label="申请时间"
|
label="申请时间"
|
||||||
fixed="left"
|
|
||||||
width="150"
|
width="150"
|
||||||
>
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="状态" fixed="left" prop="status">
|
<el-table-column label="状态" prop="status">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ showDictValue(scope.row.status, statusData) }}
|
{{ showDictValue(scope.row.status, statusData) }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</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">
|
<template slot-scope="scope">
|
||||||
<el-button v-if="scope.row.status == 0"
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="primary"
|
type="primary"
|
||||||
style="margin: 5px"
|
style="margin: 5px"
|
||||||
@click="handleApply(scope.row)"
|
@click="handleView(scope.row)"
|
||||||
>授权
|
>查看
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button v-if="scope.row.status == 0"
|
<el-button v-if="scope.row.status == 0"
|
||||||
size="mini"
|
size="mini"
|
||||||
|
@ -147,6 +163,34 @@
|
||||||
@click="handleEdit(scope.row)"
|
@click="handleEdit(scope.row)"
|
||||||
>修改
|
>修改
|
||||||
</el-button>
|
</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>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
@ -162,9 +206,99 @@
|
||||||
>
|
>
|
||||||
</el-pagination>
|
</el-pagination>
|
||||||
</div>
|
</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">
|
<div style="margin-bottom: 10px">
|
||||||
<span style="width: 200px; display: inline-block; text-align: right">用户ID:</span>
|
<span style="width: 200px; display: inline-block; text-align: right">用户ID:</span>
|
||||||
<el-input
|
<el-input
|
||||||
|
@ -260,15 +394,7 @@
|
||||||
<el-input
|
<el-input
|
||||||
style="width: 200px"
|
style="width: 200px"
|
||||||
placeholder="请输入手机号"
|
placeholder="请输入手机号"
|
||||||
v-model="phone"
|
v-model="userPhone"
|
||||||
></el-input>
|
|
||||||
</div>
|
|
||||||
<div style="margin-left: 10px; display: inline-block">
|
|
||||||
<span>邀请码:</span>
|
|
||||||
<el-input
|
|
||||||
style="width: 200px"
|
|
||||||
placeholder="请输入邀请码"
|
|
||||||
v-model="invitationCode"
|
|
||||||
></el-input>
|
></el-input>
|
||||||
</div>
|
</div>
|
||||||
<el-button
|
<el-button
|
||||||
|
@ -327,7 +453,7 @@
|
||||||
</el-dialog>
|
</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">
|
<div style="margin-bottom: 10px">
|
||||||
<span style="width: 200px; display: inline-block; text-align: right">用户ID:</span>
|
<span style="width: 200px; display: inline-block; text-align: right">用户ID:</span>
|
||||||
<el-input
|
<el-input
|
||||||
|
@ -420,6 +546,170 @@
|
||||||
<el-button type="primary" @click="handleApprove()">确 定</el-button>
|
<el-button type="primary" @click="handleApprove()">确 定</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</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>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -438,6 +728,7 @@ export default {
|
||||||
userName: "",
|
userName: "",
|
||||||
name: "",
|
name: "",
|
||||||
phone: "",
|
phone: "",
|
||||||
|
userPhone: "",
|
||||||
remarks: "",
|
remarks: "",
|
||||||
status: "",
|
status: "",
|
||||||
opinion: "",
|
opinion: "",
|
||||||
|
@ -445,14 +736,31 @@ export default {
|
||||||
endTime: "",
|
endTime: "",
|
||||||
page: 1,
|
page: 1,
|
||||||
limit: 10,
|
limit: 10,
|
||||||
|
rate: "",
|
||||||
dialogFormVisible: false,
|
dialogFormVisible: false,
|
||||||
|
dialogFormViewVisible: false,
|
||||||
dialogApproveFormVisible: false,
|
dialogApproveFormVisible: false,
|
||||||
dialogUserListFormVisible: false,
|
dialogUserListFormVisible: false,
|
||||||
userTableDataLoading: false,
|
userTableDataLoading: false,
|
||||||
|
dialogFormVisibleRate: false,
|
||||||
userPage: 1,
|
userPage: 1,
|
||||||
userLimit: 10,
|
userLimit: 10,
|
||||||
userTableData:{},
|
userTableData:{},
|
||||||
invitationCode: "",
|
invitationCode: "",
|
||||||
|
dialogQdsVisible: false,
|
||||||
|
dialogAddQdsVisible: false,
|
||||||
|
qdsTableDataLoading: false,
|
||||||
|
qdsTableData:{},
|
||||||
|
qdsName: "",
|
||||||
|
qdsPhone: "",
|
||||||
|
qdsPage: 1,
|
||||||
|
qdsLimit: 10,
|
||||||
|
qdsAddTableData:{},
|
||||||
|
qdsAddName: "",
|
||||||
|
qdsAddPhone: "",
|
||||||
|
qdsAddPage: 1,
|
||||||
|
qdsAddLimit: 10,
|
||||||
|
dialogDlsVisible: false,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
@ -512,7 +820,19 @@ export default {
|
||||||
this.page = val;
|
this.page = val;
|
||||||
this.handleSelect();
|
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) {
|
handleApply(row) {
|
||||||
this.titles = "审批";
|
this.titles = "审批";
|
||||||
this.id = row.id;
|
this.id = row.id;
|
||||||
|
@ -554,7 +874,7 @@ export default {
|
||||||
this.dialogFormVisible = true;
|
this.dialogFormVisible = true;
|
||||||
},
|
},
|
||||||
|
|
||||||
closeFxy(){
|
closeYwy(){
|
||||||
this.handleClear();
|
this.handleClear();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -634,7 +954,7 @@ export default {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 提交添加、修改服务包
|
//授权
|
||||||
handleApprove() {
|
handleApprove() {
|
||||||
if (this.status == "") {
|
if (this.status == "") {
|
||||||
this.$notify({
|
this.$notify({
|
||||||
|
@ -663,6 +983,7 @@ export default {
|
||||||
id: this.id,
|
id: this.id,
|
||||||
opinion: this.opinion,
|
opinion: this.opinion,
|
||||||
status: this.status,
|
status: this.status,
|
||||||
|
userId: this.userId,
|
||||||
}),
|
}),
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
if (data.code == 0) {
|
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(){
|
clearDatas(){
|
||||||
this.apiUrl="";
|
this.apiUrl="";
|
||||||
this.tableDataLoading= false;
|
this.tableDataLoading= false;
|
||||||
|
@ -708,7 +1063,7 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
showUsersView(){
|
showUsersView(){
|
||||||
this.handleSelectUsers();
|
this.handleClearUsers();
|
||||||
this.dialogUserListFormVisible = true;
|
this.dialogUserListFormVisible = true;
|
||||||
},
|
},
|
||||||
handleSelectUsers(){
|
handleSelectUsers(){
|
||||||
|
@ -719,6 +1074,9 @@ export default {
|
||||||
params: this.$http.adornParams({
|
params: this.$http.adornParams({
|
||||||
userPage: this.userPage,
|
userPage: this.userPage,
|
||||||
userLimit: this.userLimit,
|
userLimit: this.userLimit,
|
||||||
|
invitationCode: this.invitationCode,
|
||||||
|
userName: this.userName,
|
||||||
|
phone: this.userPhone
|
||||||
}),
|
}),
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
if (data.code == 0) {
|
if (data.code == 0) {
|
||||||
|
@ -750,7 +1108,7 @@ export default {
|
||||||
// 重置
|
// 重置
|
||||||
handleClearUsers() {
|
handleClearUsers() {
|
||||||
this.userName = "";
|
this.userName = "";
|
||||||
this.phone = "";
|
this.userPhone = "";
|
||||||
this.invitationCode = "";
|
this.invitationCode = "";
|
||||||
this.userPage = 1;
|
this.userPage = 1;
|
||||||
this.userLimit = 10;
|
this.userLimit = 10;
|
||||||
|
@ -763,6 +1121,206 @@ export default {
|
||||||
this.userName = row.userName;
|
this.userName = row.userName;
|
||||||
this.dialogUserListFormVisible = false;
|
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() {
|
mounted() {
|
||||||
|
|
|
@ -168,9 +168,9 @@
|
||||||
</div>
|
</div>
|
||||||
<el-input type="textarea" id="textarea" :rows="2" placeholder="请输入内容" v-model="content"
|
<el-input type="textarea" id="textarea" :rows="2" placeholder="请输入内容" v-model="content"
|
||||||
@keyup.enter.native="sendTextarea(1)"></el-input>
|
@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>
|
||||||
<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>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -270,7 +270,7 @@ import { serverPaths } from '@/utils/enumData'
|
||||||
// 数据接收
|
// 数据接收
|
||||||
let msg = JSON.parse(e.data);
|
let msg = JSON.parse(e.data);
|
||||||
this.dialogueList.push(msg);
|
this.dialogueList.push(msg);
|
||||||
console.log(msg);
|
console.log(this.dialogueList);
|
||||||
|
|
||||||
let ele = document.getElementById("ele");
|
let ele = document.getElementById("ele");
|
||||||
this.dataSelect();
|
this.dataSelect();
|
||||||
|
@ -369,8 +369,8 @@ import { serverPaths } from '@/utils/enumData'
|
||||||
this.initWebSocket();
|
this.initWebSocket();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
clickItem2() {
|
clickItem2() {
|
||||||
|
if(this.chatId != null && this.chatId != ''){
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl("chat/selectChatContent"),
|
url: this.$http.adornUrl("chat/selectChatContent"),
|
||||||
method: "get",
|
method: "get",
|
||||||
|
@ -389,6 +389,7 @@ import { serverPaths } from '@/utils/enumData'
|
||||||
ele.scrollTop = ele.scrollHeight;
|
ele.scrollTop = ele.scrollHeight;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
}
|
||||||
},
|
},
|
||||||
// 点击发送
|
// 点击发送
|
||||||
sendTextarea(type) {
|
sendTextarea(type) {
|
||||||
|
@ -406,7 +407,7 @@ import { serverPaths } from '@/utils/enumData'
|
||||||
console.log(`🚀 ~ sendTextarea ~ data:`, data)
|
console.log(`🚀 ~ sendTextarea ~ data:`, data)
|
||||||
this.websock.send(data);
|
this.websock.send(data);
|
||||||
this.content = "";
|
this.content = "";
|
||||||
this.dialogueList.push(this.numlist);
|
// this.dialogueList.push(this.numlist);
|
||||||
let ele = document.getElementById("ele");
|
let ele = document.getElementById("ele");
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
ele.scrollTop = ele.scrollHeight;
|
ele.scrollTop = ele.scrollHeight;
|
||||||
|
@ -491,7 +492,8 @@ import { serverPaths } from '@/utils/enumData'
|
||||||
this.dataSelect()
|
this.dataSelect()
|
||||||
this.timer = window.setInterval(() => {
|
this.timer = window.setInterval(() => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.dataSelect()
|
this.dataSelect();
|
||||||
|
this.clickItem2();
|
||||||
},0)
|
},0)
|
||||||
},4000)
|
},4000)
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue