From 2e7784ff3807bb4b8500126e5e355e7dc9db732f Mon Sep 17 00:00:00 2001
From: liuqimichale <123456lq>
Date: Tue, 8 Jan 2019 10:10:16 +0800
Subject: [PATCH] 设备统计
---
src/components/device/index.vue | 32 +++++++++++++++++++++++++-------
src/components/tollman/index.vue | 2 --
2 files changed, 25 insertions(+), 9 deletions(-)
diff --git a/src/components/device/index.vue b/src/components/device/index.vue
index 0fc42a4..ac032cb 100644
--- a/src/components/device/index.vue
+++ b/src/components/device/index.vue
@@ -9,13 +9,13 @@
{{PDANum}} |
- PDA |
+ {{PDAName}} |
- {{daoZha}} |
- 道闸 |
+ {{daoZhaNum}} |
+ {{daoZhaName}} |
@@ -23,13 +23,13 @@
{{diCiNum}} |
- 地磁 |
+ {{diCiName}} |
{{youDaoNum}} |
- 诱导屏 |
+ {{youDaoName}} |
@@ -85,14 +85,32 @@
data() {
return {
PDANum:1235,//PDA数
+ PDAName:'',
diCiNum:1456,//地磁数
- daoZha:1245,//道闸数
+ diCiName:'',
+ daoZhaNum:1245,//道闸数
+ daoZhaName:'',
youDaoNum:1235,//诱导屏
+ youDaoName:'',
name: '设备'
}
},
mounted() {
-
+ this.axios.post('urban/intelligence/device/queryDeviceStatistic',{
+ orgIds: [10003,10005]
+ }).then((response)=>{
+ let data = response.data.data
+ this.PDANum = data[0].num
+ this.PDAName = data[0].deviceName
+ this.diCiNum = data[1].num
+ this.diCiName = data[1].deviceName
+ this.daoZhaNum = data[2].num
+ this.daoZhaName = data[2].deviceName
+ this.youDaoNum = data[3].num
+ this.youDaoName = data[3].deviceName
+ }).catch((response)=>{
+ console.log(response);
+ })
},
methods: {
diff --git a/src/components/tollman/index.vue b/src/components/tollman/index.vue
index 9195d10..c150370 100644
--- a/src/components/tollman/index.vue
+++ b/src/components/tollman/index.vue
@@ -42,13 +42,11 @@
mounted() {
//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
--
libgit2 0.21.4