|
@@ -19,10 +19,22 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</el-col>
|
|
</el-col>
|
|
-
|
|
|
|
<el-col class="gutter-row item item4" :span="8">
|
|
<el-col class="gutter-row item item4" :span="8">
|
|
<div class="gutter-box">
|
|
<div class="gutter-box">
|
|
- <div class="gutter-box-title">设备统计</div>
|
|
|
|
|
|
+ <div class="gutter-box-title">风机统计</div>
|
|
|
|
+ <div class="count-to-box">
|
|
|
|
+ <span class="text">总数</span>
|
|
|
|
+ <span class="number" @click="redirectPage('departments')">
|
|
|
|
+ <i class="el-icon-loading" v-if="showLoading"></i>
|
|
|
|
+ <countTo v-else :startVal='startVal' :endVal='countData.department_count' :duration='duration'></countTo>
|
|
|
|
+ </span>
|
|
|
|
+ 个
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col class="gutter-row item item4" :span="8">
|
|
|
|
+ <div class="gutter-box">
|
|
|
|
+ <div class="gutter-box-title">工具统计</div>
|
|
<div class="count-to-box">
|
|
<div class="count-to-box">
|
|
<span class="text">总数</span>
|
|
<span class="text">总数</span>
|
|
<el-popover
|
|
<el-popover
|
|
@@ -30,20 +42,16 @@
|
|
width="600"
|
|
width="600"
|
|
trigger="hover">
|
|
trigger="hover">
|
|
<div>
|
|
<div>
|
|
- <device-table :tableData="countData.device_type_data" />
|
|
|
|
|
|
+ <device-table :tableData="table_data" />
|
|
</div>
|
|
</div>
|
|
<span slot="reference" class="number">
|
|
<span slot="reference" class="number">
|
|
<i class="el-icon-loading" v-if="showLoading"></i>
|
|
<i class="el-icon-loading" v-if="showLoading"></i>
|
|
<countTo v-else :startVal='startVal' :endVal='countData.device_total_count' :duration='duration'></countTo>
|
|
<countTo v-else :startVal='startVal' :endVal='countData.device_total_count' :duration='duration'></countTo>
|
|
</span>
|
|
</span>
|
|
</el-popover>
|
|
</el-popover>
|
|
- <!-- <span class="number" @click="redirectPage('school')">
|
|
|
|
- <i class="el-icon-loading" v-if="showLoading"></i>
|
|
|
|
- <countTo v-else :startVal='startVal' :endVal='countData.device_total_count' :duration='duration'></countTo>
|
|
|
|
- </span> -->个
|
|
|
|
</div>
|
|
</div>
|
|
<div class="count-to-box">
|
|
<div class="count-to-box">
|
|
- <span class="text">在线数</span>
|
|
|
|
|
|
+ <span class="text">故障数</span>
|
|
<span class="number" @click="redirectPage('school')">
|
|
<span class="number" @click="redirectPage('school')">
|
|
<i class="el-icon-loading" v-if="showLoading"></i>
|
|
<i class="el-icon-loading" v-if="showLoading"></i>
|
|
<countTo v-else :startVal='startVal' :endVal='countData.device_online_count' :duration='duration'></countTo>
|
|
<countTo v-else :startVal='startVal' :endVal='countData.device_online_count' :duration='duration'></countTo>
|
|
@@ -57,8 +65,13 @@
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="layout-2">
|
|
<div class="layout-2">
|
|
-
|
|
|
|
- <!-- 用户设备数据 -->
|
|
|
|
|
|
+ <!-- 使用情况 -->
|
|
|
|
+ <el-row :gutter="16">
|
|
|
|
+ <el-col class="gutter-row item" :span="24">
|
|
|
|
+ <device-use-chart :countData="useCountData" :total="useCountData.device_total_count" />
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ <!-- 故障分析 -->
|
|
<el-row :gutter="16">
|
|
<el-row :gutter="16">
|
|
<el-col class="gutter-row item" :span="24">
|
|
<el-col class="gutter-row item" :span="24">
|
|
<device-data-chart :countData="countData" :total="countData.device_total_count" />
|
|
<device-data-chart :countData="countData" :total="countData.device_total_count" />
|
|
@@ -151,6 +164,7 @@ import countTo from 'vue-count-to'
|
|
import NormalCard from '@/components/Card/NormalCard'
|
|
import NormalCard from '@/components/Card/NormalCard'
|
|
import StationDataChart from './components/StationDataChart'
|
|
import StationDataChart from './components/StationDataChart'
|
|
import DeviceDataChart from './components/DeviceDataChart'
|
|
import DeviceDataChart from './components/DeviceDataChart'
|
|
|
|
+import DeviceUseChart from './components/DeviceUseChart'
|
|
import DeviceAlarmMessage from './components/DeviceAlarmMessage'
|
|
import DeviceAlarmMessage from './components/DeviceAlarmMessage'
|
|
import TotalAlarmGrowth from './components/TotalAlarmGrowth'
|
|
import TotalAlarmGrowth from './components/TotalAlarmGrowth'
|
|
import StationTable from './components/StationTable'
|
|
import StationTable from './components/StationTable'
|
|
@@ -164,6 +178,7 @@ export default {
|
|
NormalCard,
|
|
NormalCard,
|
|
StationDataChart,
|
|
StationDataChart,
|
|
DeviceDataChart,
|
|
DeviceDataChart,
|
|
|
|
+ DeviceUseChart,
|
|
TotalAlarmGrowth,
|
|
TotalAlarmGrowth,
|
|
DeviceAlarmMessage,
|
|
DeviceAlarmMessage,
|
|
StationTable,
|
|
StationTable,
|
|
@@ -185,7 +200,23 @@ export default {
|
|
showLoading: true,
|
|
showLoading: true,
|
|
// showAddLoading: true,
|
|
// showAddLoading: true,
|
|
startVal: 0,
|
|
startVal: 0,
|
|
|
|
+ useCountData:{
|
|
|
|
+ device_total_count:115,
|
|
|
|
+ device_type_data:[
|
|
|
|
+ {
|
|
|
|
+ 'text': "液压泵",
|
|
|
|
+ 'total': 40,
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ 'text': "液压扳手",
|
|
|
|
+ 'total': 75,
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
|
|
+ },
|
|
//维保记录规律统计
|
|
//维保记录规律统计
|
|
|
|
+<<<<<<< HEAD
|
|
torque:{
|
|
torque:{
|
|
name:"扭矩",
|
|
name:"扭矩",
|
|
url:'',
|
|
url:'',
|
|
@@ -196,6 +227,34 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
//
|
|
//
|
|
|
|
+=======
|
|
|
|
+ Maintenance:{
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+ table_data:[
|
|
|
|
+ {
|
|
|
|
+ 'alarm': 62,
|
|
|
|
+ 'online': 31,
|
|
|
|
+ 'text': "液压泵",
|
|
|
|
+ 'total': 40,
|
|
|
|
+ 'value': "0",
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ 'alarm': 80,
|
|
|
|
+ 'online': 32,
|
|
|
|
+ 'text': "液压扳手",
|
|
|
|
+ 'total': 75,
|
|
|
|
+ 'value': "0",
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ 'alarm': 80,
|
|
|
|
+ 'online': 32,
|
|
|
|
+ 'text': "其他",
|
|
|
|
+ 'total': 100,
|
|
|
|
+ 'value': "0",
|
|
|
|
+ },
|
|
|
|
+ ],
|
|
|
|
+>>>>>>> 30c9f6aee676707746ad5265ca62f6ecba845c15
|
|
countData: {
|
|
countData: {
|
|
department_count:24,
|
|
department_count:24,
|
|
device_online_count:31,
|
|
device_online_count:31,
|
|
@@ -204,21 +263,21 @@ export default {
|
|
{
|
|
{
|
|
'alarm': 62,
|
|
'alarm': 62,
|
|
'online': 31,
|
|
'online': 31,
|
|
- 'text': "液压泵",
|
|
|
|
|
|
+ 'text': "液压油偏低",
|
|
'total': 40,
|
|
'total': 40,
|
|
'value': "0",
|
|
'value': "0",
|
|
},
|
|
},
|
|
{
|
|
{
|
|
'alarm': 80,
|
|
'alarm': 80,
|
|
'online': 32,
|
|
'online': 32,
|
|
- 'text': "法兰",
|
|
|
|
|
|
+ 'text': "液压油偏高",
|
|
'total': 75,
|
|
'total': 75,
|
|
'value': "0",
|
|
'value': "0",
|
|
},
|
|
},
|
|
{
|
|
{
|
|
'alarm': 80,
|
|
'alarm': 80,
|
|
'online': 32,
|
|
'online': 32,
|
|
- 'text': "液压扳手",
|
|
|
|
|
|
+ 'text': "液压扳手故障",
|
|
'total': 100,
|
|
'total': 100,
|
|
'value': "0",
|
|
'value': "0",
|
|
},
|
|
},
|