From 22f3a52a14b656014f0a9fb3ca757248fa776f63 Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Sun, 29 Jan 2023 11:46:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B4=BB=E5=8A=A8=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/AppActiveAnalysis/components/List.vue | 95 ++++++++++++++-- .../app/AppActivity/AppActivity.vue | 2 +- .../app/AppActivity/components/Add.vue | 104 +++++------------- .../app/AppActivity/components/List.vue | 54 ++++----- 4 files changed, 147 insertions(+), 108 deletions(-) diff --git a/project/activeAnalysis/app/AppActiveAnalysis/components/List.vue b/project/activeAnalysis/app/AppActiveAnalysis/components/List.vue index 25073cd2..0c9b128c 100644 --- a/project/activeAnalysis/app/AppActiveAnalysis/components/List.vue +++ b/project/activeAnalysis/app/AppActiveAnalysis/components/List.vue @@ -98,14 +98,24 @@ customFooter title="成员活跃明细"> - + + + + + + + + + + + @@ -139,12 +186,22 @@ data () { return { + userSearch: { + status: '', + size: 10, + total: 0, + current: 1, + wxUserId: '' + }, search: { status: '', size: 10, total: 0, + name: '', current: 1 }, + isShowDetail: false, + userDetailList: [], activeList: [], loading: false, isShowList: false, @@ -203,12 +260,34 @@ }) }, + getUserActiveList () { + if (!this.userSearch.status && this.statusList.length) { + this.userSearch.status = this.statusList[0].dictName + } + + this.instance.post(`/app/wxuseruselog/list`, null, { + params: { + ...this.userSearch, + status: this.userSearch.status ? this.userSearch.status : this.statusList.length ? this.statusList[0].dictName : '' + } + }).then(res => { + if (res.code === 0) { + this.userDetailList = res.data.records + this.userSearch.total = res.data.total + } + }) + }, + getActiveList () { + if (!this.search.status && this.statusList.length) { + this.search.status = this.statusList[0].dictName + } + this.instance.post(`/app/wxuseruselog/active-log-list`, null, { params: { ...this.search, ymd: this.today, - status: this.search.status ? this.search.status : (!this.search.status && this.statusList.length) ? this.statusList[0] : '' + status: this.search.status ? this.search.status : this.statusList.length ? this.statusList[0].dictName : '' } }).then(res => { if (res.code === 0) { diff --git a/project/activeAnalysis/app/AppActivity/AppActivity.vue b/project/activeAnalysis/app/AppActivity/AppActivity.vue index 1154a722..0d917c5d 100644 --- a/project/activeAnalysis/app/AppActivity/AppActivity.vue +++ b/project/activeAnalysis/app/AppActivity/AppActivity.vue @@ -1,7 +1,7 @@ diff --git a/project/activeAnalysis/app/AppActivity/components/Add.vue b/project/activeAnalysis/app/AppActivity/components/Add.vue index 0bfa4934..50e25b54 100644 --- a/project/activeAnalysis/app/AppActivity/components/Add.vue +++ b/project/activeAnalysis/app/AppActivity/components/Add.vue @@ -1,26 +1,32 @@