|
|
|
@ -39,6 +39,10 @@ |
|
|
|
<el-button type="primary" |
|
|
|
@click="exportHandle()">{{ $t('export') }}</el-button> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item> |
|
|
|
<el-button type="primary" |
|
|
|
@click="getAllCount()">总计</el-button> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item> |
|
|
|
<el-button v-if="$hasPermission('news:news:save')" |
|
|
|
type="primary" |
|
|
|
@ -70,13 +74,13 @@ |
|
|
|
label="网格党建指导员姓名" |
|
|
|
header-align="center" |
|
|
|
align="center"></el-table-column> |
|
|
|
<el-table-column prop="ewmCount" |
|
|
|
<el-table-column prop="registerCount" |
|
|
|
label="注册用户" |
|
|
|
width="70px" |
|
|
|
header-align="center" |
|
|
|
align="center"></el-table-column> |
|
|
|
<el-table-column prop="registerCount" |
|
|
|
label="注册用户总数" |
|
|
|
<el-table-column prop="residentCount" |
|
|
|
label="注册居民" |
|
|
|
width="70px" |
|
|
|
header-align="center" |
|
|
|
align="center"></el-table-column> |
|
|
|
@ -120,7 +124,7 @@ |
|
|
|
width="70px" |
|
|
|
header-align="center" |
|
|
|
align="center"></el-table-column> |
|
|
|
<el-table-column prop="itemCount" |
|
|
|
<el-table-column prop="eventCount" |
|
|
|
label="议题数" |
|
|
|
width="70px" |
|
|
|
header-align="center" |
|
|
|
@ -138,6 +142,83 @@ |
|
|
|
<add-or-update v-if="addOrUpdateVisible" |
|
|
|
ref="addOrUpdate" |
|
|
|
@refreshDataList="getDataList"></add-or-update> |
|
|
|
<!-- 总计表格 --> |
|
|
|
<el-dialog :visible.sync="totalVisible" |
|
|
|
title="总计"> |
|
|
|
<el-table :data="totalList" |
|
|
|
border |
|
|
|
style="width: 100%;"> |
|
|
|
<el-table-column prop="workGridCount" |
|
|
|
label="已开通网格" |
|
|
|
header-align="center" |
|
|
|
width="120px" |
|
|
|
align="center"></el-table-column> |
|
|
|
<el-table-column prop="unWorkGridCount" |
|
|
|
label="未开通网格" |
|
|
|
header-align="center" |
|
|
|
align="center"></el-table-column> |
|
|
|
<el-table-column prop="registerCount" |
|
|
|
label="注册用户" |
|
|
|
width="70px" |
|
|
|
header-align="center" |
|
|
|
align="center"></el-table-column> |
|
|
|
<el-table-column prop="residentCount" |
|
|
|
label="注册居民" |
|
|
|
width="70px" |
|
|
|
header-align="center" |
|
|
|
align="center"></el-table-column> |
|
|
|
<el-table-column prop="partyCount" |
|
|
|
label="注册党员数" |
|
|
|
width="70px" |
|
|
|
header-align="center" |
|
|
|
align="center"></el-table-column> |
|
|
|
<el-table-column prop="newsCount" |
|
|
|
label="新闻发布数" |
|
|
|
width="70px" |
|
|
|
header-align="center" |
|
|
|
align="center"></el-table-column> |
|
|
|
<el-table-column prop="communityCount" |
|
|
|
label="社群数" |
|
|
|
width="70px" |
|
|
|
header-align="center" |
|
|
|
align="center"></el-table-column> |
|
|
|
<el-table-column prop="communityMemberCount" |
|
|
|
label="群成员数" |
|
|
|
width="70px" |
|
|
|
header-align="center" |
|
|
|
align="center"></el-table-column> |
|
|
|
<el-table-column prop="communityTopicCount" |
|
|
|
label="群话题数" |
|
|
|
width="70px" |
|
|
|
header-align="center" |
|
|
|
align="center"></el-table-column> |
|
|
|
<el-table-column prop="eventCount" |
|
|
|
label="议题数" |
|
|
|
width="70px" |
|
|
|
header-align="center" |
|
|
|
align="center"></el-table-column> |
|
|
|
<el-table-column prop="itemCount" |
|
|
|
label="项目数" |
|
|
|
width="70px" |
|
|
|
header-align="center" |
|
|
|
align="center"></el-table-column> |
|
|
|
<el-table-column prop="itemCloseCount" |
|
|
|
label="项目关闭数" |
|
|
|
width="70px" |
|
|
|
header-align="center" |
|
|
|
align="center"></el-table-column> |
|
|
|
<el-table-column prop="eventCount" |
|
|
|
label="议题数" |
|
|
|
width="70px" |
|
|
|
header-align="center" |
|
|
|
align="center"></el-table-column> |
|
|
|
|
|
|
|
</el-table> |
|
|
|
<template slot="footer"> |
|
|
|
<el-button type="primary" |
|
|
|
@click="totalVisible = false">确定</el-button> |
|
|
|
</template> |
|
|
|
</el-dialog> |
|
|
|
</div> |
|
|
|
</el-card> |
|
|
|
</template> |
|
|
|
@ -174,7 +255,9 @@ export default { |
|
|
|
onLine: { |
|
|
|
id: '', |
|
|
|
onLineState: '' |
|
|
|
} |
|
|
|
}, |
|
|
|
totalList: [], |
|
|
|
totalVisible: false |
|
|
|
} |
|
|
|
}, |
|
|
|
created () { |
|
|
|
@ -269,14 +352,25 @@ export default { |
|
|
|
this.dataForm.startTime = this.time[0] |
|
|
|
this.dataForm.endTime = this.time[1] |
|
|
|
}, |
|
|
|
// getListCategory () { |
|
|
|
// this.$http.get(`/news/newscategory/category/`).then(({ data: res }) => { |
|
|
|
// if (res.code !== 0) { |
|
|
|
// return this.$message.error(res.msg) |
|
|
|
// } |
|
|
|
// this.categorys = res.data |
|
|
|
// }).catch(() => { }) |
|
|
|
// }, |
|
|
|
// 获取总计 |
|
|
|
getAllCount () { |
|
|
|
this.$http.get(`/analysis/user/pageGridDataToal`, { |
|
|
|
params: { |
|
|
|
order: this.order, |
|
|
|
orderField: this.orderField, |
|
|
|
page: this.mixinViewModuleOptions.getDataListIsPage ? this.page : null, |
|
|
|
limit: this.mixinViewModuleOptions.getDataListIsPage ? this.limit : null, |
|
|
|
...this.dataForm |
|
|
|
} |
|
|
|
}).then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
|
this.totalList = [] |
|
|
|
this.totalList.push(res.data) |
|
|
|
this.totalVisible = true |
|
|
|
}).catch(() => { }) |
|
|
|
}, |
|
|
|
modifyOnLine (row) { |
|
|
|
this.$confirm(this.$t('prompt.info', { 'handle': '下线' }), this.$t('下线'), { |
|
|
|
confirmButtonText: this.$t('confirm'), |
|
|
|
|