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="成员活跃明细">
-
-
+
+
+
+
+
-
+ v-throttle="() => {search.current = 1, getActiveList()}"
+ @clear="search.current = 1, search.name = '', getActiveList()"
+ suffix-icon="iconfont iconSearch">
+
+
+
+
+ 详情
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -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 @@
-
+
-
- form.areaName = v" always-show :instance="instance" v-model="form.areaId">
+
+
-
-
+
+
-
-
-
+
+
+
+
+
+
+
+
+
@@ -41,17 +47,17 @@
props: {
instance: Function,
dict: Object,
- params: Object,
- moduleName: String
+ params: Object
},
data () {
return {
info: {},
form: {
- level: '',
- areaId: '',
- areaName: '',
- address: ''
+ title: '',
+ content: '',
+ beginTime: '',
+ endTime: '',
+ files: []
},
id: ''
}
@@ -62,17 +68,15 @@
},
created () {
- this.dict.load('epidemicDangerousAreaLevel').then(() => {
- if (this.params && this.params.id) {
- this.id = this.params.id
- this.getInfo(this.params.id)
- }
- })
+ if (this.params && this.params.id) {
+ this.id = this.params.id
+ this.getInfo(this.params.id)
+ }
},
methods: {
getInfo (id) {
- this.instance.post(`/app/appepidemicpreventionriskarea/queryDetailById?id=${id}`).then(res => {
+ this.instance.post(`/app/appactivityinfo/queryDetailById?id=${id}`).then(res => {
if (res.code === 0) {
this.form = res.data
}
@@ -82,7 +86,7 @@
confirm () {
this.$refs.form.validate((valid) => {
if (valid) {
- this.instance.post(`/app/appepidemicpreventionriskarea/addOrUpdate`, {
+ this.instance.post(`/app/appactivityinfo/addOrUpdate`, {
...this.form
}).then(res => {
if (res.code == 0) {
@@ -107,52 +111,4 @@
diff --git a/project/activeAnalysis/app/AppActivity/components/List.vue b/project/activeAnalysis/app/AppActivity/components/List.vue
index d19e3191..51e2c579 100644
--- a/project/activeAnalysis/app/AppActivity/components/List.vue
+++ b/project/activeAnalysis/app/AppActivity/components/List.vue
@@ -8,21 +8,21 @@
添加
@@ -64,28 +64,32 @@
search: {
current: 1,
size: 10,
- level: '',
- province: ''
+ title: '',
+ status: ''
},
- isLoading: false,
- currIndex: -1,
- areaList: [],
total: 10,
colConfigs: [
- { prop: 'province', label: '省', align: 'left', width: '200px' },
- { prop: 'city', label: '地市', align: 'center' },
- { prop: 'district', label: '区县', align: 'center' },
- { prop: 'town', label: '镇街', align: 'center' },
- { prop: 'village', label: '村社区', align: 'center' },
- { prop: 'address', label: '详细地址', align: 'center' },
- { prop: 'level', label: '等级', align: 'center', format: v => this.dict.getLabel('epidemicDangerousAreaLevel', v) },
- { prop: 'createTime', label: '设置时间', align: 'center' },
- { prop: 'createUserName', label: '添加人', align: 'center' },
- { slot: 'options', label: '操作', align: 'center' }
+ { prop: 'title', label: '活动标题', align: 'left', width: '200px' },
+ { prop: 'signUpCount', label: '报名人数', align: 'center' },
+ { prop: 'beginTime', label: '开始时间', align: 'center' },
+ { prop: 'endTime', label: '结束时间', align: 'center' },
+ { prop: 'status', label: '活动状态', align: 'center', format: e => this.statusList.filter(v => v.dictValue === e)[0].dictName }
],
- areaName: '',
- unitName: '',
- tableData: []
+ tableData: [],
+ statusList: [
+ {
+ dictValue: '0',
+ dictName: '未开始'
+ },
+ {
+ dictValue: '1',
+ dictName: '进行中'
+ },
+ {
+ dictValue: '2',
+ dictName: '已结束'
+ }
+ ]
}
},
@@ -97,7 +101,7 @@
methods: {
getList() {
- this.instance.post(`/app/appepidemicpreventionriskarea/list`, null, {
+ this.instance.post(`/app/appactivityinfo/list`, null, {
params: {
...this.search
}
@@ -111,7 +115,7 @@
remove(id) {
this.$confirm('确定删除该数据?').then(() => {
- this.instance.post(`/app/appepidemicpreventionriskarea/delete?ids=${id}`).then(res => {
+ this.instance.post(`/app/appactivityinfo/delete?ids=${id}`).then(res => {
if (res.code == 0) {
this.$message.success('删除成功!')
this.getList()