tongshanglei 2 years ago
parent
commit
30c9f6aee6
1 changed files with 39 additions and 9 deletions
  1. 39 9
      src/views/dashboard/rladmin/index.vue

+ 39 - 9
src/views/dashboard/rladmin/index.vue

@@ -19,10 +19,22 @@
               </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="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">
                 <span class="text">总数</span>
                 <el-popover
@@ -30,20 +42,16 @@
                   width="600"
                   trigger="hover">
                   <div>
-                    <device-table :tableData="countData.device_type_data" />
+                    <device-table :tableData="table_data" />
                   </div>
                   <span slot="reference" class="number">
                     <i class="el-icon-loading" v-if="showLoading"></i>
                     <countTo v-else :startVal='startVal' :endVal='countData.device_total_count' :duration='duration'></countTo>
                   </span>
                 </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 class="count-to-box">
-                <span class="text">在线数</span>
+                <span class="text">故障数</span>
                 <span class="number" @click="redirectPage('school')">
                   <i class="el-icon-loading" v-if="showLoading"></i>
                   <countTo v-else :startVal='startVal' :endVal='countData.device_online_count' :duration='duration'></countTo>
@@ -202,7 +210,29 @@ 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",
+         },
+       ],
       countData: {
        department_count:24,
        device_online_count:31,