Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
aixianling
2021-12-21 18:31:12 +08:00

View File

@@ -97,17 +97,6 @@
value-format="yyyy-MM" value-format="yyyy-MM"
placeholder="请选择月份"> placeholder="请选择月份">
</el-date-picker> </el-date-picker>
<ai-download :instance="instance" url="/app/appcommunityhouseinfo/listExport" fileName="村民参与活动记录" style="left-right: 10px"></ai-download>
</template>
<template slot="right">
<el-input
v-model="search.name"
class="search-input"
size="small"
placeholder="请输入姓名"
clearable
suffix-icon="iconfont iconSearch">
</el-input>
</template> </template>
</ai-search-bar> </ai-search-bar>
<ai-table <ai-table
@@ -119,6 +108,7 @@
:col-configs="colConfigs" :col-configs="colConfigs"
:current.sync="search.current" :current.sync="search.current"
:size.sync="search.size" :size.sync="search.size"
:isShowPagination="false"
:stripe="false" :stripe="false"
@getList="getInfo"> @getList="getInfo">
<el-table-column slot="options" width="220px" fixed="right" label="操作" align="center"> <el-table-column slot="options" width="220px" fixed="right" label="操作" align="center">
@@ -162,10 +152,10 @@
}, },
total: 0, total: 0,
colConfigs: [ colConfigs: [
{ prop: 'moduleName', label: '模块名称', align: 'left', width: '200px' }, { prop: 'name', label: '姓名', align: 'left' },
{ prop: 'menuName', label: '关联菜单', align: 'center' }, { prop: 'gender', label: '性别', align: 'center' },
{ prop: 'id', label: 'ID', align: 'center' }, { prop: 'number1', label: '报名次数', align: 'center' },
{ prop: 'categoryStr', label: '文章分类', align: 'center' } { prop: 'number2', label: '发布动态条数', align: 'center' }
], ],
time1: '', time1: '',
time2: '', time2: '',
@@ -223,7 +213,6 @@
this.search.current = 1 this.search.current = 1
this.$nextTick(() => { this.$nextTick(() => {
this.loading = true
this.getInfo() this.getInfo()
}) })
}, },
@@ -276,11 +265,13 @@
}, },
getInfo () { getInfo () {
this.loading = true
this.instance.post(`/app/appvillageactivityinfo/statistic?time1=${this.time1}&time2=${this.time2}`).then(res => { this.instance.post(`/app/appvillageactivityinfo/statistic?time1=${this.time1}&time2=${this.time2}`).then(res => {
if (res.code == 0) { if (res.code == 0) {
this.info = res.data.total this.info = res.data.total
this.initChart1(res.data.twelve) this.initChart1(res.data.twelve)
this.initChart2(res.data.gender) this.initChart2(res.data.gender)
this.list = res.data.rank || []
this.loading = false this.loading = false
} else { } else {
this.loading = false this.loading = false