外呼以及显示连接数
This commit is contained in:
@@ -138,6 +138,7 @@
|
|||||||
layout="total,prev, pager, next"
|
layout="total,prev, pager, next"
|
||||||
:total="retData.TotalCount"
|
:total="retData.TotalCount"
|
||||||
></el-pagination>
|
></el-pagination>
|
||||||
|
<span>共有连接数:{{countConnect}}</span>
|
||||||
</div>
|
</div>
|
||||||
<userDrawer ref="userDrawer" @select="onSelect"></userDrawer>
|
<userDrawer ref="userDrawer" @select="onSelect"></userDrawer>
|
||||||
<el-dialog title="查看在线" :visible.sync="showOnlineDialog" width="900px" v-loading="loadingOnline">
|
<el-dialog title="查看在线" :visible.sync="showOnlineDialog" width="900px" v-loading="loadingOnline">
|
||||||
@@ -179,6 +180,7 @@ export default {
|
|||||||
loadingOnline: false,
|
loadingOnline: false,
|
||||||
retData: { TotalCount: 0, Data: [] },
|
retData: { TotalCount: 0, Data: [] },
|
||||||
products: [],
|
products: [],
|
||||||
|
countConnect: 0,
|
||||||
packages: [
|
packages: [
|
||||||
{
|
{
|
||||||
label: '年卡',
|
label: '年卡',
|
||||||
@@ -277,6 +279,7 @@ export default {
|
|||||||
var userId = this.$route.query.userId
|
var userId = this.$route.query.userId
|
||||||
if (userId) this.searchModel.UserId = userId
|
if (userId) this.searchModel.UserId = userId
|
||||||
this.get()
|
this.get()
|
||||||
|
this.getCount()
|
||||||
// this.getProductWithPackage()
|
// this.getProductWithPackage()
|
||||||
this.getProduct()
|
this.getProduct()
|
||||||
// eslint-disable-next-line camelcase
|
// eslint-disable-next-line camelcase
|
||||||
@@ -295,6 +298,7 @@ export default {
|
|||||||
search () {
|
search () {
|
||||||
this.searchModel.PageIndex = 1
|
this.searchModel.PageIndex = 1
|
||||||
this.get()
|
this.get()
|
||||||
|
this.getCount()
|
||||||
},
|
},
|
||||||
get () {
|
get () {
|
||||||
if (this.dateRange && this.dateRange.length === 2) {
|
if (this.dateRange && this.dateRange.length === 2) {
|
||||||
@@ -311,6 +315,22 @@ export default {
|
|||||||
this.retData = res
|
this.retData = res
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
getCount () {
|
||||||
|
if (this.dateRange && this.dateRange.length === 2) {
|
||||||
|
this.searchModel.Btime = this.dateRange[0]
|
||||||
|
this.searchModel.Etime = this.dateRange[1]
|
||||||
|
}
|
||||||
|
if (this.dateRange1 && this.dateRange1.length === 2) {
|
||||||
|
this.searchModel.Bktime = this.dateRange1[0]
|
||||||
|
this.searchModel.Ektime = this.dateRange1[1]
|
||||||
|
}
|
||||||
|
var that =this;
|
||||||
|
|
||||||
|
this.$api.post(this.$api.phpURL + 'manager/account/getAccountCount', this.searchModel).then(res => {
|
||||||
|
that.countConnect = res.data.sum
|
||||||
|
})
|
||||||
|
},
|
||||||
getProduct () {
|
getProduct () {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
this.$api.get('course/v1/product/page', this.searchModel).then(res => {
|
this.$api.get('course/v1/product/page', this.searchModel).then(res => {
|
||||||
|
|||||||
@@ -114,6 +114,7 @@
|
|||||||
<el-table-column label="会员号">
|
<el-table-column label="会员号">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-link @click="click_username(scope.row)">{{scope.row.UserName}}</el-link>
|
<el-link @click="click_username(scope.row)">{{scope.row.UserName}}</el-link>
|
||||||
|
<br> <span style="color:#409EFF;cursor:pointer;" @click="hujiao(scope.row)">拨号</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="is_verify" label="是否实名"></el-table-column>
|
<el-table-column prop="is_verify" label="是否实名"></el-table-column>
|
||||||
@@ -176,9 +177,15 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
<el-input style="margin:5px 0" v-model="set_follow_status.remark" size="small" placeholder="请输入跟进记录"></el-input>
|
<el-input style="margin:5px 0" v-model="set_follow_status.remark" size="small" placeholder="请输入跟进记录"></el-input>
|
||||||
<el-table :data="follow_status_list" border>
|
<el-table :data="follow_status_list" border>
|
||||||
<el-table-column prop="create_time" label="时间"></el-table-column>
|
<el-table-column prop="create_time" width="200" label="时间"></el-table-column>
|
||||||
<el-table-column v-if="$local.isRoot()" prop="op_user" label="维护经理"></el-table-column>
|
<el-table-column v-if="$local.isRoot()" width="100" prop="op_user" label="维护经理"></el-table-column>
|
||||||
<el-table-column prop="remark" label="跟进记录"></el-table-column>
|
<el-table-column prop="druation" width="90" label="呼叫时长"></el-table-column>
|
||||||
|
<el-table-column label="跟进记录">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span v-if="scope.row.remark != null">{{scope.row.remark}}</span>
|
||||||
|
<span v-if="scope.row.remark == null"><el-link style="color:#409EFF;cursor:pointer;" @click="click_follow_remark(scope.row)">修改</el-link></span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<span slot="footer" class="dialog-footer">
|
<span slot="footer" class="dialog-footer">
|
||||||
<el-button @click="follow_status_change_fall = false">取 消</el-button>
|
<el-button @click="follow_status_change_fall = false">取 消</el-button>
|
||||||
@@ -186,12 +193,32 @@
|
|||||||
</span>
|
</span>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
|
<el-dialog
|
||||||
|
title="拨打电话后修改跟进状态"
|
||||||
|
:visible.sync="follow_status_change_two"
|
||||||
|
width="50%">
|
||||||
|
<el-select size="small" v-model="set_follow_status.status" placeholder="请选择">
|
||||||
|
<el-option
|
||||||
|
v-for="item in types"
|
||||||
|
:key="item.value"
|
||||||
|
:label="item.label"
|
||||||
|
:value="item.value">
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
<el-input style="margin:5px 0" v-model="set_follow_status.remark" size="small" placeholder="请输入跟进记录"></el-input>
|
||||||
|
<span slot="footer" class="dialog-footer">
|
||||||
|
<el-button @click="follow_status_change_two = false">取 消</el-button>
|
||||||
|
<el-button :disabled="clickOk" type="primary" @click="changeFolowStatus()">确 定</el-button>
|
||||||
|
</span>
|
||||||
|
</el-dialog>
|
||||||
|
|
||||||
<el-dialog
|
<el-dialog
|
||||||
title="用户信息"
|
title="用户信息"
|
||||||
:visible.sync="userinfo_fall"
|
:visible.sync="userinfo_fall"
|
||||||
width="30%">
|
width="30%">
|
||||||
<el-card class="box-card">
|
<el-card class="box-card">
|
||||||
<p oncopy="return false;">电话:{{user_info.UserName}} <span style="color:#409EFF;cursor:pointer;" @click="copy_op(user_info.UserName)">复制</span></p>
|
<p oncopy="return false;">电话:{{user_info.UserName}} <span style="color:#409EFF;cursor:pointer;" @click="copy_op(user_info.UserName)">复制</span>
|
||||||
|
</p>
|
||||||
<p>微信:{{user_info.Wx}}</p>
|
<p>微信:{{user_info.Wx}}</p>
|
||||||
<p>QQ:{{user_info.QQ}}</p>
|
<p>QQ:{{user_info.QQ}}</p>
|
||||||
</el-card>
|
</el-card>
|
||||||
@@ -266,8 +293,10 @@ export default {
|
|||||||
types: [],
|
types: [],
|
||||||
user_info: {},
|
user_info: {},
|
||||||
follow_status_change_fall: false,
|
follow_status_change_fall: false,
|
||||||
|
follow_status_change_two: false,
|
||||||
follow_status_list: [],
|
follow_status_list: [],
|
||||||
set_follow_status: {
|
set_follow_status: {
|
||||||
|
id: null,
|
||||||
user_id: null,
|
user_id: null,
|
||||||
old_status: null,
|
old_status: null,
|
||||||
status: null,
|
status: null,
|
||||||
@@ -392,6 +421,14 @@ export default {
|
|||||||
this.follow_status_list = res.data
|
this.follow_status_list = res.data
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
click_follow_remark (row) {
|
||||||
|
this.clickOk = false
|
||||||
|
this.follow_status_change_two = true
|
||||||
|
this.set_follow_status.id = row.id
|
||||||
|
this.set_follow_status.status = this.setStatus(row.follow_status)
|
||||||
|
this.set_follow_status.user_id = row.user_id
|
||||||
|
this.set_follow_status.old_status = row.follow_status
|
||||||
|
},
|
||||||
changeFolowStatus () {
|
changeFolowStatus () {
|
||||||
// eslint-disable-next-line valid-typeof
|
// eslint-disable-next-line valid-typeof
|
||||||
if (typeof this.set_follow_status.status !== 'number') {
|
if (typeof this.set_follow_status.status !== 'number') {
|
||||||
@@ -404,6 +441,8 @@ export default {
|
|||||||
this.clickOk = true
|
this.clickOk = true
|
||||||
this.$api.post(this.$api.phpURL + 'manager/UserFollow/changeFolowStatus', {data: this.set_follow_status}).then(res => {
|
this.$api.post(this.$api.phpURL + 'manager/UserFollow/changeFolowStatus', {data: this.set_follow_status}).then(res => {
|
||||||
this.follow_status_change_fall = false
|
this.follow_status_change_fall = false
|
||||||
|
this.follow_status_change_two = false
|
||||||
|
this.set_follow_status.id = null
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
click_username (row) {
|
click_username (row) {
|
||||||
@@ -496,6 +535,24 @@ export default {
|
|||||||
type: 'success'
|
type: 'success'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
hujiao(r) {
|
||||||
|
|
||||||
|
var phone = r.LoginCode;
|
||||||
|
|
||||||
|
this.$api.post(this.$api.phpURL + 'manager/UserFollow/hujiao', {phone: phone}).then(res => {
|
||||||
|
if (res.Code == 30000) {
|
||||||
|
this.$message({
|
||||||
|
message: res.msg,
|
||||||
|
type: 'error'
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.$message({
|
||||||
|
message: '呼叫成功',
|
||||||
|
type: 'success'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,6 +28,8 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="record" label="维护记录" width="300"></el-table-column>
|
<el-table-column prop="record" label="维护记录" width="300"></el-table-column>
|
||||||
|
<el-table-column prop="telstarttime" label="呼叫开始时间" width="200"></el-table-column>
|
||||||
|
<el-table-column prop="druation" label="呼叫时长" width="100"></el-table-column>
|
||||||
<el-table-column prop="remark" label="备注"></el-table-column>
|
<el-table-column prop="remark" label="备注"></el-table-column>
|
||||||
|
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|||||||
Reference in New Issue
Block a user