diff --git a/src/views/modules/census/census-accountActiveList.vue b/src/views/modules/census/census-accountActiveList.vue
index 0f9e3da3c..b30029d6c 100644
--- a/src/views/modules/census/census-accountActiveList.vue
+++ b/src/views/modules/census/census-accountActiveList.vue
@@ -51,11 +51,11 @@
-
125
+ {{censusData.activityCount}}
社区活跃数量
- 导出
+ 导出
-
-
-
+
+
+
-
+
@@ -91,11 +83,11 @@
-
125
+ {{censusData.inactivityCount}}
社区不活跃数量
- 导出
+ 导出
-
+
@@ -207,7 +191,7 @@ export default {
maxTableHeight() {
return this.$store.state.inIframe ? this.clientHeight - 440 + this.iframeHeigh : this.clientHeight - 440;
},
-
+
...mapGetters(['clientHeight', 'iframeHeight'])
},
watch: {
@@ -221,11 +205,11 @@ export default {
mounted() {
console.log(this.$store.state);
this.user = this.$store.state.user;
-
this.agencyId = this.user.agencyId;
this.getOrgTreeList();
this.getTableData();
-
+ this.getTableData2();
+ this.getCountLevel();
},
methods: {
handleChangeAgency(val) {
@@ -248,6 +232,8 @@ export default {
console.log(this.formData);
this.pageNo = 1;
this.getTableData();
+ this.getTableData2();
+ this.getCountLevel();
},
getOrgTreeList() {
@@ -268,15 +254,14 @@ export default {
});
},
- async handleExport() {
- const url = '/gov/project/icEvent/export';
+ async handleExport(type) {
+ const url = '/gov/org/staffLoginLog/accountActivityInfo-export';
const { pageSize, pageNo, formData } = this;
axios({
url: window.SITE_CONFIG['apiURL'] + url,
method: 'post',
data: {
- pageSize,
- pageNo,
+ isActivity:type,
...formData
},
responseType: 'blob'
@@ -320,25 +305,30 @@ export default {
},
async getCountLevel() {
- // const url = '/gov/org/staffLoginLog/count-level';
- const url = 'http://yapi.elinkservice.cn/mock/356/gov/org/staffLoginLog/count-level';
- let param = {};
+ const url = '/gov/org/staffLoginLog/getActivityTotal';
+ // const url = 'http://yapi.elinkservice.cn/mock/356/gov/org/staffLoginLog/count-level';
+ let param = { ...this.formData };
+ const { data, code, msg } = await requestPost(url, param);
+ console.log('getCountLeveldata', data);
+ if (code === 0) {
+ this.censusData = data;
+ } else {
+ this.$message.error(msg);
+ }
},
async getTableData() {
this.tableLoading = true;
- // const url = '/gov/org/staffLoginLog/community-count';
- const url = 'http://yapi.elinkservice.cn/mock/356/gov/org/staffLoginLog/community-count';
- const { pageSize, pageNo, formData } = this;
+ const url = '/gov/org/staffLoginLog/getAccountActivityInfo';
+
+ const { formData } = this;
const { data, code, msg } = await requestPost(url, {
- pageSize,
- pageNo,
+ isActivity: 1,
...formData
});
this.tableLoading = false;
if (code === 0) {
- this.total = data.total || 0;
this.tableData = data.list
? data.list.map(item => {
return item;
@@ -348,15 +338,27 @@ export default {
this.$message.error(msg);
}
},
+ async getTableData2() {
+ this.tableLoading2 = true;
- handleSizeChange(val) {
- this.pageSize = val;
- window.localStorage.setItem('pageSize', val);
- this.getTableData();
- },
- handleCurrentChange(val) {
- this.pageNo = val;
- this.getTableData();
+ const url = '/gov/org/staffLoginLog/getAccountActivityInfo';
+
+ const { formData } = this;
+ const { data, code, msg } = await requestPost(url, {
+ isActivity: 0,
+ ...formData
+ });
+
+ this.tableLoading2 = false;
+ if (code === 0) {
+ this.tableData2 = data.list
+ ? data.list.map(item => {
+ return item;
+ })
+ : [];
+ } else {
+ this.$message.error(msg);
+ }
},
deepTree(arr, child) {