diff --git a/src/components/product/account.vue b/src/components/product/account.vue index 448466c..1018b64 100644 --- a/src/components/product/account.vue +++ b/src/components/product/account.vue @@ -138,6 +138,7 @@ layout="total,prev, pager, next" :total="retData.TotalCount" > + 共有连接数:{{countConnect}} @@ -179,6 +180,7 @@ export default { loadingOnline: false, retData: { TotalCount: 0, Data: [] }, products: [], + countConnect: 0, packages: [ { label: '年卡', @@ -277,6 +279,7 @@ export default { var userId = this.$route.query.userId if (userId) this.searchModel.UserId = userId this.get() + this.getCount() // this.getProductWithPackage() this.getProduct() // eslint-disable-next-line camelcase @@ -295,6 +298,7 @@ export default { search () { this.searchModel.PageIndex = 1 this.get() + this.getCount() }, get () { if (this.dateRange && this.dateRange.length === 2) { @@ -311,6 +315,22 @@ export default { 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 () { this.loading = true this.$api.get('course/v1/product/page', this.searchModel).then(res => { diff --git a/src/components/user/statistics.vue b/src/components/user/statistics.vue index 301d066..4ba6e27 100644 --- a/src/components/user/statistics.vue +++ b/src/components/user/statistics.vue @@ -114,6 +114,7 @@ @@ -176,9 +177,15 @@ - - - + + + + + + 取 消 @@ -186,12 +193,32 @@ + + + + + + + + 取 消 + 确 定 + + + -

电话:{{user_info.UserName}}    复制

+

电话:{{user_info.UserName}}    复制 +

微信:{{user_info.Wx}}

QQ:{{user_info.QQ}}

@@ -266,8 +293,10 @@ export default { types: [], user_info: {}, follow_status_change_fall: false, + follow_status_change_two: false, follow_status_list: [], set_follow_status: { + id: null, user_id: null, old_status: null, status: null, @@ -392,6 +421,14 @@ export default { 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 () { // eslint-disable-next-line valid-typeof if (typeof this.set_follow_status.status !== 'number') { @@ -404,6 +441,8 @@ export default { this.clickOk = true 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_two = false + this.set_follow_status.id = null }) }, click_username (row) { @@ -496,6 +535,24 @@ export default { 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' + }) + } + }) } } } diff --git a/src/components/user/statisticsrecord.vue b/src/components/user/statisticsrecord.vue index c14c7a4..115a9b7 100644 --- a/src/components/user/statisticsrecord.vue +++ b/src/components/user/statisticsrecord.vue @@ -28,6 +28,8 @@ + +