From 72f553661a74b225c89310d3fb3d78f3ebe35f82 Mon Sep 17 00:00:00 2001
From: hanbaoshan <hanbaoshan@aiotlink.com>
Date: 星期日, 28 二月 2021 10:45:04 +0800
Subject: [PATCH] m朔黄首页模拟数据更新

---
 src/pages/shuohuangMonitorAnalyze/components/guideIndex.vue |  289 +++++++++++++++++++++++++++++++++++++++++++++------------
 1 files changed, 227 insertions(+), 62 deletions(-)

diff --git a/src/pages/shuohuangMonitorAnalyze/components/guideIndex.vue b/src/pages/shuohuangMonitorAnalyze/components/guideIndex.vue
index 05e7537..c91051c 100644
--- a/src/pages/shuohuangMonitorAnalyze/components/guideIndex.vue
+++ b/src/pages/shuohuangMonitorAnalyze/components/guideIndex.vue
@@ -13,11 +13,11 @@
               <i class="el-icon-warning-outline"></i>
             </span>
           </div>
-          <div class="val">265</div>
+          <div class="val">245</div>
           <div class="trend week-day-ratio">
             <div class="week-ratio">
               <span>鍛ㄥ悓姣�</span>
-              <span class="triangle green"></span>
+              <span class="triangle red"></span>
               <span>12%</span>
             </div>
             <div class="day-ratio">
@@ -29,7 +29,7 @@
           <div class="devide"></div>
           <div class="detail">
             <div class="name">鏃ュ潎闅愭偅浜嬩欢</div>
-            <div class="specific">28</div>
+            <div class="specific">35</div>
           </div>
         </el-card>
         <el-card>
@@ -39,14 +39,14 @@
               <i class="el-icon-warning-outline"></i>
             </span>
           </div>
-          <div class="val">{{$numberFormat(8846)}}</div>
+          <div class="val">{{$numberFormat(735)}}</div>
           <div class="trend">
             <line-chart :options="optionsOfWeekAnalyze" style="height:50px"></line-chart>
           </div>
           <div class="devide"></div>
           <div class="detail">
             <div class="name">鏃ュ潎鍒嗘瀽閲�</div>
-            <div class="specific">128</div>
+            <div class="specific">105</div>
           </div>
         </el-card>
         <el-card>
@@ -56,12 +56,12 @@
               <i class="el-icon-warning-outline"></i>
             </span>
           </div>
-          <div class="val">8846</div>
+          <div class="val">1025</div>
           <div class="trend"></div>
           <div class="devide"></div>
           <div class="detail">
             <div class="name">杞崲鐜�</div>
-            <div class="specific">60%</div>
+            <div class="specific">100%</div>
           </div>
         </el-card>
         <el-card>
@@ -71,7 +71,7 @@
               <i class="el-icon-warning-outline"></i>
             </span>
           </div>
-          <div class="val">78%</div>
+          <div class="val">99%</div>
           <div class="trend"></div>
           <div class="devide"></div>
           <div class="detail week-day-ratio">
@@ -82,7 +82,7 @@
             </div>
             <div class="day-ratio">
               <span>鏃ョ幆姣�</span>
-              <span class="triangle red"></span>
+              <span class="triangle green"></span>
               <span>11%</span>
             </div>
           </div>
@@ -119,13 +119,16 @@
           <div class="rt">
             <div class="header">
               <span class="title">閮ㄩ棬闅愭偅鏁伴噺鎺掑悕</span>
-              <el-select v-if="hidDangerTab=='hidDanderStatistic'" size="small">
+              <!-- <el-select v-if="hidDangerTab=='hidDanderStatistic'" size="small">
                 <el-option>涓搧涓�灞�</el-option>
-              </el-select>
+              </el-select> -->
             </div>
             <div class="rank-list">
-              <div class="rank-item" v-for="(rankItem,index) in rankList" :key="rankItem.id" >
-                <span class="rank-index" :class="{'first':index==0,'second':index==1,'third':index==2}">{{index+1}}</span>
+              <div class="rank-item" v-for="(rankItem,index) in rankList" :key="rankItem.id">
+                <span
+                  class="rank-index"
+                  :class="{'first':index==0,'second':index==1,'third':index==2}"
+                >{{index+1}}</span>
                 <span class="name">{{rankItem.name}}</span>
                 <span class="val">{{rankItem.val}}</span>
               </div>
@@ -144,7 +147,7 @@
                   <div class="lt">
                     <div class="chart-theme">涔樺姟鍛樻�讳汉鏁�</div>
                     <div class="sum">
-                      <span class="val">8846</span>
+                      <span class="val">187</span>
                       <span class="ratio">17.1%</span>
                     </div>
                     <line-chart :options="optionsOfIrregularSum" style="height:70px"></line-chart>
@@ -152,18 +155,18 @@
                   <div class="gt">
                     <div class="chart-theme">浜哄潎杩濊娆℃暟</div>
                     <div class="sum">
-                      <span class="val">8846</span>
+                      <span class="val">1.31</span>
                     </div>
                     <line-chart :options="optionsOfIrregularPer" style="height:70px"></line-chart>
                   </div>
                 </div>
                 <el-table class="thbg" :data="irregularTableData">
-                  <el-table-column label="鎺掑悕"></el-table-column>
-                  <el-table-column label="濮撳悕"></el-table-column>
-                  <el-table-column label="杩濊娆℃暟"></el-table-column>
-                  <el-table-column label="鍛ㄦ定骞�"></el-table-column>
+                  <el-table-column label="鎺掑悕" type="index" width="90"></el-table-column>
+                  <el-table-column label="濮撳悕" prop="name"></el-table-column>
+                  <el-table-column label="杩濊娆℃暟" prop="wg"></el-table-column>
+                  <!-- <el-table-column label="鍛ㄦ定骞�" prop="ratio"></el-table-column> -->
                 </el-table>
-                <el-pagination
+                <!-- <el-pagination
                   @size-change="handleTableSizeChange"
                   @current-change="renderIrregularMenTable"
                   :current-page.sync="PageIndex"
@@ -171,6 +174,15 @@
                   :page-sizes="pageSizes"
                   layout="total,sizes, prev, pager, next"
                   :total="tableTotal"
+                ></el-pagination> -->
+                <el-pagination
+                  @size-change="handleTableSizeChange"
+                  @current-change="renderIrregularMenTable"
+                  :current-page.sync="PageIndex"
+                  :page-size="PageSize"
+                  :page-sizes="pageSizes"
+                  layout="total,sizes, prev, pager, next"
+                  :total="irregularTableData.length"
                 ></el-pagination>
               </div>
             </div>
@@ -182,15 +194,18 @@
                 <time-shortcut @actPickerChange="irregularEventStatistic"></time-shortcut>
               </div>
               <div class="statics-content">
-                <el-radio-group v-model="irregularEventType" @change="checkIrregularEventType" size="small">
+                <el-radio-group
+                  v-model="irregularEventType"
+                  @change="checkIrregularEventType"
+                  size="small"
+                >
                   <el-radio-button label="fhdd">闃叉姢鍦版</el-radio-button>
                   <el-radio-button label="jcz">杩涘嚭绔�</el-radio-button>
                   <el-radio-button label="gfx">杩囧垎鐩�</el-radio-button>
                   <el-radio-button label="hc">浼氳溅</el-radio-button>
                   <el-radio-button label="lsmx">涓存椂鎱㈡��</el-radio-button>
                 </el-radio-group>
-                <!-- <Pie :options="optionsOfIrregularEventPie"></Pie> -->
-                <Pie :options="optionsOfHidDangerPie" style="padding-top:20px;"></Pie>
+                <Pie :options="optionsOfIrregularEventPie" style="padding-top:20px;"></Pie>
               </div>
             </div>
           </div>
@@ -213,7 +228,7 @@
           </div>
           <div class="content">
             <div class="indicator-title">鏈懆浠诲姟鎸囨淳閲�</div>
-            <div class="indicator-val">8000</div>
+            <div class="indicator-val">742</div>
           </div>
         </div>
         <div class="indicator">
@@ -222,7 +237,7 @@
           </div>
           <div class="content">
             <div class="indicator-title">鍒嗘瀽閲�</div>
-            <div class="indicator-val">8000</div>
+            <div class="indicator-val">735</div>
           </div>
         </div>
         <div class="indicator lastOne">
@@ -231,7 +246,7 @@
           </div>
           <div class="content">
             <div class="indicator-title">杩濊閲�</div>
-            <div class="indicator-val">8000</div>
+            <div class="indicator-val">245</div>
           </div>
         </div>
       </div>
@@ -266,7 +281,7 @@
                 <time-shortcut @actPickerChange="partAssignstatics"></time-shortcut>
               </div>
               <div class="statics-content">
-                <Pie :options="optionsOfHidDangerPie"></Pie>
+                <Pie :options="optionsOfTaskAssignPie"></Pie>
               </div>
             </div>
           </div>
@@ -307,13 +322,13 @@
                   <el-table-column prop="rwl" label="浠诲姟閲�"></el-table-column>
                   <el-table-column prop="fxl" label="鍒嗘瀽閲�"></el-table-column>
                   <el-table-column prop="pdwgl" label="鍒ゅ畾杩濊閲�"></el-table-column>
-                  <el-table-column prop="wgl" label="鍒ゅ畾杩濊鐜�"></el-table-column>
+                  <el-table-column prop="pdwglv" label="鍒ゅ畾杩濊鐜�"></el-table-column>
                   <el-table-column prop="wcl" label="瀹屾垚鐜�"></el-table-column>
                 </el-table>
               </div>
 
               <div class="flex-end">
-                <el-pagination
+                <!-- <el-pagination
                   @size-change="handleTableSizeChange"
                   @current-change="renderIrregularMenTable"
                   :current-page.sync="PageIndex"
@@ -321,6 +336,15 @@
                   :page-sizes="pageSizes"
                   layout="total,sizes, prev, pager, next"
                   :total="tableTotal"
+                ></el-pagination> -->
+                <el-pagination
+                  @size-change="handleTableSizeChange"
+                  @current-change="renderIrregularMenTable"
+                  :current-page.sync="PageIndex"
+                  :page-size="PageSize"
+                  :page-sizes="pageSizes"
+                  layout="total,sizes, prev, pager, next"
+                  :total="taskAnalyzeCaseTableData.length"
                 ></el-pagination>
               </div>
             </div>
@@ -340,12 +364,39 @@
 import DatasetChart from './charts/dataset';
 export default {
   components: { timeShortcut, Bar, Pie, LineChart, SwipeTabs, DatasetChart },
+  mounted () {
+    let tempArr = [{
+      "text": "Same but with checkboxes",
+      "children": [
+        {
+          "text": "initially selected",
+          "selected": true
+        }
+      ]
+    }];
+    for (var i = 0; i < 20; i++) {
+      tempArr[0].children.push({
+        "text": "initially open",
+        "icon": "fa fa-folder icon-state-default",
+        "opened": true,
+        "children": [
+          {
+            "text": "Another node"
+          }
+        ]
+      })
+    }
+    tempArr.forEach(node => {
+      //if(node.children.length)
+
+    })
+    this.jsTreeNodes = tempArr
+  },
   data () {
     return {
-      //actCardTab: 'dataStatistic',
-      actCardTab: 'taskStatistic',
+      actCardTab: 'dataStatistic',
       hidDangerTab: 'hidDanderStatistic',
-      optionsOfWeekAnalyze:{
+      optionsOfWeekAnalyze: {
         animation: false,
         grid: {
           top: 0,
@@ -437,7 +488,7 @@
             name: '鏁伴噺',
             type: 'bar',
             barWidth: '24%',
-            data: [270, 500, 300, 430, 620, 540]
+            data: [21, 102, 100, 1, 7, 14]
           }
         ]
       },
@@ -450,7 +501,7 @@
           orient: 'vertical',
           right: 10,
           y: 'center',
-          data: ['鏈福绗�', '鏈墜姣�', '鏈懠鍞�', '杩愯涓潯瑙�', '鏈鏌�', '鏈簲绛�']
+          data: ['鏈福绗�', '鏈墜姣�', '鏈懠鍞�', '杩愯涓潯瑙�', '鏈鏌�', '鏈簲绛�'],
         },
         series: [
           {
@@ -476,12 +527,57 @@
               show: false
             },
             data: [
-              { value: 270, name: '鏈福绗�' },
-              { value: 500, name: '鏈墜姣�' },
-              { value: 300, name: '鏈懠鍞�' },
-              { value: 430, name: '杩愯涓潯瑙�' },
-              { value: 620, name: '鏈鏌�' },
-              { value: 540, name: '鏈簲绛�' },
+              { value: 21, name: '鏈福绗�' },
+              { value: 102, name: '鏈墜姣�' },
+              { value: 100, name: '鏈懠鍞�' },
+              { value: 1, name: '杩愯涓潯瑙�' },
+              { value: 7, name: '鏈鏌�' },
+              { value: 14, name: '鏈簲绛�' },
+            ]
+          }
+        ]
+      },
+      optionsOfTaskAssignPie: {
+        tooltip: {
+          trigger: 'item',
+          formatter: '{a}<br>{b}:{c} ({d}%)'
+        },
+        legend: {
+          orient: 'vertical',
+          right: 10,
+          y: 'center',
+          data: ['寮犵', '鏉庡洓', '鐜嬩附', '椹畯瀹�', '鍒樹箖瓒�', '浣曞厜瀹�']
+        },
+        series: [
+          {
+            name: '寮傚父浜嬩欢',
+            type: 'pie',
+            color: ['#3aa0ff', '#36cbcb', '#4dcb73', '#fad337', '#f2637b', '#975fe4'],
+            radius: ['70%', '90%'],
+            //center: ['40%','60%'],
+            avoidLabelOverlap: false,
+            label: {
+              show: false,
+              position: 'center',
+              formatter: '{b}\n{c} '
+            },
+            emphasis: {
+              label: {
+                show: true,
+                fontSize: '30',
+                fontWeight: 'bold'
+              }
+            },
+            labelLine: {
+              show: false
+            },
+            data: [
+              { value: 270, name: '寮犵' },
+              { value: 500, name: '鏉庡洓' },
+              { value: 300, name: '鐜嬩附' },
+              { value: 430, name: '椹畯瀹�' },
+              { value: 620, name: '鍒樹箖瓒�' },
+              { value: 540, name: '浣曞厜瀹�' },
             ]
           }
         ]
@@ -489,19 +585,39 @@
       rankList: [{
         id: 'jl',
         name: '鏈鸿締鍒嗗叕鍙�',
-        val: 324456
-      }, {
-        id: 'jg',
-        name: '浜珮閾佽矾',
-        val: 328356
+        val: 121
       }, {
         id: 'ztyj',
         name: '涓搧涓�灞�',
-        val: 4563356
-      }, {
+        val: 52
+      },{
         id: 'ztsj',
+        name: '涓搧鍥涘眬',
+        val: 40
+      },{
+        id: 'ztsanj',
         name: '涓搧涓夊眬',
-        val: 4563856
+        val: 38
+      },{
+        id: 'ztswj',
+        name: '涓搧鍗佷簲灞�',
+        val: 36
+      },{
+        id: 'ztslj',
+        name: '涓搧鍗佸叚灞�',
+        val: 33
+      },{
+        id: 'jtjw',
+        name: '浜搧鏈哄姟',
+        val: 24
+      },{
+        id: 'lhjw',
+        name: '璺崕鏈哄姟',
+        val: 15
+      },{
+        id: 'nhjw',
+        name: '鍗楃幆鏈哄姟',
+        val: 14
       }],
       optionsOfIrregularSum: {
         animation: false,
@@ -594,14 +710,56 @@
           }
         ]
       },
-      irregularTableData: [],
+      irregularTableData: [{name:'鍚村浗姊�',wg:2},{name:'鐜嬩粊鍏�',wg:1},{name:'缃楀厓鍙�',wg:1}],
       PageIndex: 1,
       PageSize: 5,
       pageSizes: [5, 10],
       tableTotal: 0,
       irregularEventType: 'fhdd',
       optionsOfIrregularEventPie: {
-
+        tooltip: {
+          trigger: 'item',
+          formatter: '{a}<br>{b}:{c} ({d}%)'
+        },
+        legend: {
+          orient: 'vertical',
+          right: 10,
+          y: 'center',
+          data: ['闃叉姢鍦版', '杩涘嚭绔�', '杩囧垎鐩�', '浼氳溅', '涓存椂鎱㈡��']
+        },
+        series: [
+          {
+            name: '寮傚父浜嬩欢',
+            type: 'pie',
+            color: ['#3aa0ff', '#36cbcb', '#4dcb73', '#fad337', '#f2637b', '#975fe4'],
+            radius: ['70%', '90%'],
+            //center: ['40%','60%'],
+            avoidLabelOverlap: false,
+            label: {
+              show: false,
+              position: 'center',
+              formatter: '{b}\n{c} '
+            },
+            emphasis: {
+              label: {
+                show: true,
+                fontSize: '30',
+                fontWeight: 'bold'
+              }
+            },
+            labelLine: {
+              show: false
+            },
+            data: [
+              { value: 270, name: '闃叉姢鍦版' },
+              { value: 500, name: '杩涘嚭绔�' },
+              { value: 300, name: '杩囧垎鐩�' },
+              { value: 430, name: '浼氳溅' },
+              { value: 620, name: '涓存椂鎱㈡��' },
+ 
+            ]
+          }
+        ]
       },
       searchTaskAssignTime: [],
       optionsOfTaskAssign: {
@@ -649,18 +807,18 @@
           }
         ]
       },
-      searchTaskAnalyzeTime: [],
+      searchTaskAnalyzeTime: [new Date(2021,1,22),new Date(2021,2,1)],
       optionsOfTaskAnalyzeBar: {
         color: ['#fbd438', '#4fcb74'],
         dataset: {
           source: [
-            ['mon', 70, 30],
-            ['tue', 30, 50],
-            ['wed', 30, 60],
-            ['thu', 40, 50],
-            ['fri', 20, 30],
-            ['sat', 30, 20],
-            ['sun', 20, 40],
+            ['mon', 44, 83],
+            ['tue', 47, 83],
+            ['wed', 43, 85],
+            ['thu', 44, 85],
+            ['fri', 46, 80],
+            ['sat', 12, 40],
+            ['sun', 9, 34],
           ]
         },
         legend: {
@@ -720,14 +878,21 @@
           }
         ]
       },
-      taskAnalyzeCaseTableData: []
+      taskAnalyzeCaseTableData: [
+        { name: '寮犵', rwl: 127, fxl: 127, pdwgl: 44, pdwglv: '34.65%', wcl: '100%' },
+        { name: '鏉庡洓', rwl: 130, fxl: 129, pdwgl: 47, pdwglv: '36.43%', wcl: '99.23%' },
+        { name: '鐜嬩附', rwl: 128, fxl: 127, pdwgl: 43, pdwglv: '33.86%', wcl: '99.22%' },
+        { name: '椹畯瀹�', rwl: 129, fxl: 125, pdwgl: 44, pdwglv: '35.2%', wcl: '96.90%' },
+        { name: '鍒樹箖瓒�', rwl: 126, fxl: 126, pdwgl: 46, pdwglv: '33.50%', wcl: '100%' },
+        { name: '浣曞厜瀹�', rwl: 112, fxl: 112, pdwgl: 12, pdwglv: '10.71%', wcl: '100%'}],
+      jsTreeNodes: [],
     }
   },
   methods: {
-    checkTabInSwipe(tab){
+    checkTabInSwipe (tab) {
       debugger
     },
-    checkIrregularEventType(type){
+    checkIrregularEventType (type) {
       debugger
     },
     taskAnalyzeCase (time) {
@@ -758,7 +923,7 @@
 
     }
   },
-  
+
 }
 </script>
 

--
Gitblit v1.8.0