From 34a2efc77cd70200e8c3c3899dfd03d8f3b3497c Mon Sep 17 00:00:00 2001 From: liuqimichale <123456lq> Date: Tue, 8 Jan 2019 10:00:51 +0800 Subject: [PATCH] 收费员统计 --- src/components/memberNum/index.vue | 8 ++++---- src/components/tollman/index.vue | 13 +++++++++++++ 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/src/components/memberNum/index.vue b/src/components/memberNum/index.vue index 912561f..25fc6e4 100644 --- a/src/components/memberNum/index.vue +++ b/src/components/memberNum/index.vue @@ -51,10 +51,10 @@ methods: { /* * 格式化会员总数 - * */ - formatNumToStr:function(){ - return common.formatNumToStr(this.$options.data().demo); - }, + // * */ + // formatNumToStr:function(){ + // return common.formatNumToStr(this.$options.data().demo); + // }, } } diff --git a/src/components/tollman/index.vue b/src/components/tollman/index.vue index be3212c..9195d10 100644 --- a/src/components/tollman/index.vue +++ b/src/components/tollman/index.vue @@ -43,6 +43,19 @@ //this.createLine(); //收费员总数 this.tollmanTotal=this.formatNumToStr(); + + this.axios.post('urban/intelligence/employee/queryEmployeeStaByOrgIds',{ + orgIds: [10003,10005] + }).then((response)=>{ + let data = response.data.data + console.log(response) + this.tollmanTotal = data.allTollCollector + this.tollmanTotal = common.formatNumToStr(this.tollmanTotal); + this.onDutyNum = data.signInTollCollector + this.noDutyNum = data.unSignInTollCollector + }).catch((response)=>{ + console.log(response); + }) }, methods: { /* -- libgit2 0.21.4