|
|
@@ -96,7 +96,7 @@ export default {
|
|
|
setTimeout(() => {
|
|
|
this.title = '四平市智慧哨兵监管平台'
|
|
|
}, 1000);
|
|
|
- this.userStats();
|
|
|
+ this.userStats(314459);
|
|
|
this.getCommunityByDeptId(314459);
|
|
|
},
|
|
|
data() {
|
|
|
@@ -173,6 +173,7 @@ export default {
|
|
|
that.$parent.$refs.supermap.clearM()
|
|
|
}
|
|
|
})
|
|
|
+ this.userStats(id);
|
|
|
},
|
|
|
getCustomerByCommunityId(id){
|
|
|
let that = this;
|
|
|
@@ -319,11 +320,11 @@ export default {
|
|
|
});
|
|
|
|
|
|
},
|
|
|
- userStats(){
|
|
|
- userStats().then(req => {
|
|
|
- this.businessUsers = req.data.find(item => item.name === "business").value;
|
|
|
- this.civilUsers = req.data.find(item => item.name === "civil").value;
|
|
|
- this.industryUsers = req.data.find(item => item.name === "industry").value;
|
|
|
+ userStats(deptId){
|
|
|
+ userStats(deptId).then(req => {
|
|
|
+ this.businessUsers = req.data.find(item => item.NAME === "business").VALUE;
|
|
|
+ this.civilUsers = req.data.find(item => item.NAME === "civil").VALUE;
|
|
|
+ this.industryUsers = req.data.find(item => item.NAME === "industry").VALUE;
|
|
|
this.chart();
|
|
|
})
|
|
|
},
|