From c9268d6be2baae3e9c3a97ee6ed6684482b0574e Mon Sep 17 00:00:00 2001
From: zhuzhuanzhuan
Date: 星期二, 01 八月 2023 17:55:26 +0800
Subject: [PATCH] 设备日志界面的持续时间的显示处理,设备数据对比分析界面调取接口,渲染,设备工作日历界面的班制接口的修改

---
 src/views/mdc/base/modules/comparativeAnalysis/comparativeAnalysisGauge.vue |  126 ++++++++
 src/views/mdc/base/ComparativeAnalysis.vue                                  |    4 
 src/views/mdc/base/modules/comparativeAnalysis/comparativeAnalysismain.vue  |  599 ++++++++++++++-------------------------
 src/views/mdc/base/modules/deviceLog/AlarmLogList.vue                       |   19 +
 src/views/mdc/base/modules/deviceLog/WorkLogList.vue                        |   19 +
 src/views/mdc/base/modules/deviceLog/LogList.vue                            |   22 +
 src/views/mdc/base/modules/comparativeAnalysis/conparativeAnalysisPie.vue   |   37 ++
 src/views/mdc/base/modules/comparativeAnalysis/comparativeAnalysisBar.vue   |   49 ++
 8 files changed, 489 insertions(+), 386 deletions(-)

diff --git a/src/views/mdc/base/ComparativeAnalysis.vue b/src/views/mdc/base/ComparativeAnalysis.vue
index b3ead03..a3649cc 100644
--- a/src/views/mdc/base/ComparativeAnalysis.vue
+++ b/src/views/mdc/base/ComparativeAnalysis.vue
@@ -29,11 +29,13 @@
 <script>
   import BaseTree from '../common/BaseTree'
   import comparativeAnalysismain from './modules/comparativeAnalysis/comparativeAnalysismain'
+  import DepartTree from './modules/DepartList/DepartListTree/DepartTree'
   export default {
     name: 'ComparativeAnalysis',
     components:{
       BaseTree,
-      comparativeAnalysismain
+      comparativeAnalysismain,
+      DepartTree
     },
     data() {
       return {
diff --git a/src/views/mdc/base/modules/comparativeAnalysis/comparativeAnalysisBar.vue b/src/views/mdc/base/modules/comparativeAnalysis/comparativeAnalysisBar.vue
index 9874792..18c9796 100644
--- a/src/views/mdc/base/modules/comparativeAnalysis/comparativeAnalysisBar.vue
+++ b/src/views/mdc/base/modules/comparativeAnalysis/comparativeAnalysisBar.vue
@@ -9,17 +9,28 @@
   import * as echarts from 'echarts'
   export default {
     name: 'comparativeAnalysisBar',
-    propa:{},
+    props:{
+      dataList:''
+
+    },
     data(){
       return{
-        openRate:0,
-        utilizationRate:0,
-        openLong:0,
-        closeLong:0
+        OpenCloseList:[],
+        openRate:[],
+        utilizationRate:[],
+        openLong:[],
+        closeLong:[],
+        equipmentList:[]
       }
     },
     created(){
 
+    },
+    watch:{
+      dataList(val){
+        this.OpenCloseList = val
+        this.drawTu()
+      },
     },
     mounted() {
       this.drawTu()
@@ -328,8 +339,32 @@
             }
           ]
         };
-        compAnalBar1.setOption(compAnalBarOption1);
-        compAnalBar2.setOption(compAnalBarOption2);
+
+        if(this.OpenCloseList != null){
+          this.equipmentList = []
+          this.openRate =[]
+          this.utilizationRate =[]
+          this.openLong = []
+          this.closeLong = []
+          for(var i = 0;i<this.OpenCloseList.length;i++){
+              this.equipmentList.push(this.OpenCloseList[i].equipmentId)
+              this.openRate.push(this.OpenCloseList[i].openRate)
+              this.utilizationRate.push(this.OpenCloseList[i].utilizationRate)
+              this.openLong.push(this.OpenCloseList[i].openLong)
+              this.closeLong.push(this.OpenCloseList[i].closeLong)
+          }
+          compAnalBarOption1.xAxis[0].data = this.equipmentList
+          compAnalBarOption1.series[0].data = this.openRate
+          compAnalBarOption1.series[1].data = this.utilizationRate
+          compAnalBarOption2.xAxis[0].data = this.equipmentList
+          compAnalBarOption2.series[0].data = this.openLong
+          compAnalBarOption2.series[1].data = this.closeLong
+          compAnalBar1.setOption(compAnalBarOption1);
+          compAnalBar2.setOption(compAnalBarOption2);
+        }else{
+          compAnalBar1.setOption(compAnalBarOption1);
+          compAnalBar2.setOption(compAnalBarOption2);
+        }
         window.addEventListener('resize', function() {
           compAnalBar1.resize()
           compAnalBar2.resize()
diff --git a/src/views/mdc/base/modules/comparativeAnalysis/comparativeAnalysisGauge.vue b/src/views/mdc/base/modules/comparativeAnalysis/comparativeAnalysisGauge.vue
index e8334c1..1fa304c 100644
--- a/src/views/mdc/base/modules/comparativeAnalysis/comparativeAnalysisGauge.vue
+++ b/src/views/mdc/base/modules/comparativeAnalysis/comparativeAnalysisGauge.vue
@@ -29,20 +29,38 @@
   import * as echarts from 'echarts'
   export default {
     name: 'comparativeAnalysisGauge',
-    props:{},
+    props:{dataList:''},
     data(){
       return{
         utilizationRateTopOne:0,
+        utilizationRateTopOneEquipment:0,
         utilizationRateTopTwo:0,
+        utilizationRateTopTwoEquipment:0,
         utilizationRateTopThree:0,
+        utilizationRateTopThreeEquipment:0,
         utilizationRateTopFour:0,
+        utilizationRateTopFourEquipment:0,
         utilizationRateTopFive:0,
+        utilizationRateTopFiveEquipment:0,
         utilizationRateLastOne:0,
+        utilizationRateLastOneEquipment:0,
         utilizationRateLastTwo:0,
+        utilizationRateLastTwoEquipment:0,
         utilizationRateLastThree:0,
+        utilizationRateLastThreeEquipment:0,
         utilizationRateLastFour:0,
-        utilizationRateLastFive:0
+        utilizationRateLastFourEquipment:0,
+        utilizationRateLastFive:0,
+        utilizationRateLastFiveEquipment:0,
+        TopLastList:[]
       }
+    },
+    watch:{
+      dataList(val){
+        console.log(val);
+        this.TopLastList = val
+        this.draw()
+      },
     },
     mounted(){
       this.draw();
@@ -679,6 +697,110 @@
             }
           ]
         };
+        if(this.TopLastList != null){
+            this.utilizationRateTopOne=0
+            this.utilizationRateTopOneEquipment = 'TOP1'
+            this.utilizationRateTopTwo=0
+            this.utilizationRateTopTwoEquipment = 'TOP2'
+            this.utilizationRateTopThree=0
+            this.utilizationRateTopThreeEquipment = 'TOP3'
+            this.utilizationRateTopFour =0
+            this.utilizationRateTopFourEquipment = 'TOP4'
+            this.utilizationRateTopFive=0
+            this.utilizationRateTopFiveEquipment = 'TOP5'
+            this.utilizationRateLastOne=0
+            this.utilizationRateLastOneEquipment = 'LAST1'
+            this.utilizationRateLastTwo=0
+            this.utilizationRateLastTwoEquipment = 'LAST2'
+            this.utilizationRateLastThree=0
+            this.utilizationRateLastThreeEquipment = 'LAST3'
+            this.utilizationRateLastFour=0
+            this.utilizationRateLastFourEquipment = 'LAST4'
+            this.utilizationRateLastFive=0
+            this.utilizationRateLastFiveEquipment = 'LAST5'
+          if(this.TopLastList.tops){
+            for(var i = 0;i<this.TopLastList.tops.length;i++){
+              if(i == 0){
+                this.utilizationRateTopOneEquipment=this.TopLastList.tops[0].equipmentId
+                this.utilizationRateTopOne=this.TopLastList.tops[0].utilizationRate
+              }else if(i == 1){
+                this.utilizationRateTopTwoEquipment=this.TopLastList.tops[1].equipmentId
+                this.utilizationRateTopTwo=this.TopLastList.tops[1].utilizationRate
+              }else if(i == 2){
+                this.utilizationRateTopThreeEquipment=this.TopLastList.tops[2].equipmentId
+                this.utilizationRateTopThree=this.TopLastList.tops[2].utilizationRate
+              }else if(i == 3){
+                this.utilizationRateTopFourEquipment=this.TopLastList.tops[3].equipmentId
+                this.utilizationRateTopFour=this.TopLastList.tops[3].utilizationRate
+              }else if(i == 4){
+                this.utilizationRateTopFiveEquipment=this.TopLastList.tops[4].equipmentId
+                this.utilizationRateTopFive=this.TopLastList.tops[4].utilizationRate
+              }
+            }
+          }
+          if(this.TopLastList.lasts){
+            for(var j = 0;j<this.TopLastList.lasts.length;j++){
+              if(j == 0){
+                this.utilizationRateLastOneEquipment=this.TopLastList.lasts[0].equipmentId
+                this.utilizationRateLastOne=this.TopLastList.lasts[0].utilizationRate
+              }else if(j == 1){
+                this.utilizationRateLastTwoEquipment=this.TopLastList.lasts[1].equipmentId
+                this.utilizationRateLastTwo=this.TopLastList.lasts[1].utilizationRate
+              }else if(j == 2){
+                this.utilizationRateLastThreeEquipment=this.TopLastList.lasts[2].equipmentId
+                this.utilizationRateLastThree=this.TopLastList.lasts[2].utilizationRate
+              }else if(j == 3){
+                this.utilizationRateLastFourEquipment=this.TopLastList.lasts[3].equipmentId
+                this.utilizationRateLastFour=this.TopLastList.lasts[3].utilizationRate
+              }else if(j == 4){
+                this.utilizationRateLastFiveEquipment=this.TopLastList.lasts[4].equipmentId
+                this.utilizationRateLastFive=this.TopLastList.lasts[4].utilizationRate
+              }
+            }
+          }
+          gaugeTopOption1.title.text = this.utilizationRateTopOneEquipment
+          gaugeTopOption1.series[0].data = [{value : (this.utilizationRateTopOne * 100).toFixed(2), name : '鍒╃敤鐜�'}];
+          gaugeTopOption2.title.text = this.utilizationRateTopTwoEquipment
+          gaugeTopOption2.series[0].data = [{value : (this.utilizationRateTopTwo * 100).toFixed(2), name : '鍒╃敤鐜�'}];
+          gaugeTopOption3.title.text = this.utilizationRateTopThreeEquipment
+          gaugeTopOption3.series[0].data = [{value : (this.utilizationRateTopThree * 100).toFixed(2), name : '鍒╃敤鐜�'}];
+          gaugeTopOption4.title.text = this.utilizationRateTopFourEquipment
+          gaugeTopOption4.series[0].data = [{value : (this.utilizationRateTopFour * 100).toFixed(2), name : '鍒╃敤鐜�'}];
+          gaugeTopOption5.title.text = this.utilizationRateTopFiveEquipment
+          gaugeTopOption5.series[0].data = [{value : (this.utilizationRateTopFive * 100).toFixed(2), name : '鍒╃敤鐜�'}];
+
+          gaugeLessOption1.title.text = this.utilizationRateLastOneEquipment
+          gaugeLessOption1.series[0].data = [{value : (this.utilizationRateLastOne * 100).toFixed(2), name : '鍒╃敤鐜�'}];
+          gaugeLessOption2.title.text = this.utilizationRateLastTwoEquipment
+          gaugeLessOption2.series[0].data = [{value : (this.utilizationRateLastTwo * 100).toFixed(2), name : '鍒╃敤鐜�'}];
+          gaugeLessOption3.title.text = this.utilizationRateLastThreeEquipment
+          gaugeLessOption3.series[0].data = [{value : (this.utilizationRateLastThree * 100).toFixed(2), name : '鍒╃敤鐜�'}];
+          gaugeLessOption4.title.text = this.utilizationRateLastFourEquipment
+          gaugeLessOption4.series[0].data = [{value : (this.utilizationRateLastFour * 100).toFixed(2), name : '鍒╃敤鐜�'}];
+          gaugeLessOption5.title.text = this.utilizationRateLastFiveEquipment
+          gaugeLessOption5.series[0].data = [{value : (this.utilizationRateLastFive * 100).toFixed(2), name : '鍒╃敤鐜�'}];
+          gaugeTopChart1.setOption(gaugeTopOption1);
+          gaugeTopChart2.setOption(gaugeTopOption2);
+          gaugeTopChart3.setOption(gaugeTopOption3);
+          gaugeTopChart4.setOption(gaugeTopOption4);
+          gaugeTopChart5.setOption(gaugeTopOption5);
+          gaugeLastChart1.setOption(gaugeLessOption1);
+          gaugeLastChart2.setOption(gaugeLessOption2);
+          gaugeLastChart3.setOption(gaugeLessOption3);
+          gaugeLastChart4.setOption(gaugeLessOption4);
+          gaugeLastChart5.setOption(gaugeLessOption5);
+        }else{
+          gaugeTopChart1.setOption(gaugeTopOption1);
+          gaugeTopChart2.setOption(gaugeTopOption2);
+          gaugeTopChart3.setOption(gaugeTopOption3);
+          gaugeTopChart4.setOption(gaugeTopOption4);
+          gaugeTopChart5.setOption(gaugeTopOption5);
+          gaugeLastChart1.setOption(gaugeLessOption1);
+          gaugeLastChart2.setOption(gaugeLessOption2);
+          gaugeLastChart3.setOption(gaugeLessOption3);
+          gaugeLastChart4.setOption(gaugeLessOption4);
+          gaugeLastChart5.setOption(gaugeLessOption5);
+        }
         gaugeTopChart1.setOption(gaugeTopOption1);
         gaugeTopChart2.setOption(gaugeTopOption2);
         gaugeTopChart3.setOption(gaugeTopOption3);
diff --git a/src/views/mdc/base/modules/comparativeAnalysis/comparativeAnalysismain.vue b/src/views/mdc/base/modules/comparativeAnalysis/comparativeAnalysismain.vue
index 87b3561..00de61a 100644
--- a/src/views/mdc/base/modules/comparativeAnalysis/comparativeAnalysismain.vue
+++ b/src/views/mdc/base/modules/comparativeAnalysis/comparativeAnalysismain.vue
@@ -5,21 +5,21 @@
     <div style="width: 100%; background-color: #fff" class="table-page-search-wrapper">
       <a-form layout="inline" @keyup.enter.native="searchQuery">
         <a-row :gutter="24">
+          <!--<a-col :md="5" :sm="5">-->
+            <!--<a-form-item label="鍚嶇О">-->
+              <!--<a-input placeholder="杈撳叆璁惧鍚嶇О鏌ヨ" :readOnly="readOnly" v-model="queryParam.tierName"></a-input>-->
+            <!--</a-form-item>-->
+          <!--</a-col>-->
           <a-col :md="5" :sm="5">
-            <a-form-item label="鍚嶇О">
-              <a-input placeholder="杈撳叆璁惧鍚嶇О鏌ヨ" :readOnly="readOnly" v-model="queryParam.tierName"></a-input>
+            <a-form-item label="椹卞姩绫诲瀷">
+              <j-dict-select-tag placeholder="璇烽�夋嫨椹卞姩绫诲瀷"
+                                 :triggerChange="true" dictCode="mdc_driveType"
+                                 v-model="queryParam.driveType" allow-clear/>
             </a-form-item>
           </a-col>
-          <!--<a-col :md="4" :sm="4">-->
-          <!--<a-form-model-item label="椹卞姩绫诲瀷" :labelCol="labelCol" :wrapperCol="wrapperCol">-->
-            <!--<j-dict-select-tag :disabled="true" :readOnly="disableSubmit" placeholder="璇烽�夋嫨椹卞姩绫诲瀷"-->
-                               <!--:triggerChange="true" dictCode="mdc_driveType"-->
-                               <!--v-model="model.driveType" allow-clear/>-->
-          <!--</a-form-model-item>-->
-        <!--</a-col>-->
           <a-col :md="9" :sm="9" :xs="4">
             <a-form-item label="鏃堕棿">
-              <a-range-picker @change="dateParamChange" v-model="dates"  format="YYYY-MM-DD"/>
+              <a-range-picker @change="dateParamChange" v-model="dates"  format="YYYYMMDD"/>
             </a-form-item>
           </a-col>
           <a-col :md="2" :sm="3" :xs="3">
@@ -35,16 +35,13 @@
     <div id="DeviceList">
       <a-tabs :activeKey="activeKey" @change="tabChange" tabPosition="top">
         <a-tab-pane key="1" tab="鍥惧舰" force-render>
-          <comparative-analysis-bar></comparative-analysis-bar>
-          <!--<log-list :dataList='normalList' ref="logList" :loadingequip='loadingstayus'></log-list>-->
+          <comparative-analysis-bar ref="AnalysisBar" :dataList='AnalysisBarList'></comparative-analysis-bar>
         </a-tab-pane>
         <a-tab-pane key="2" tab="浠〃">
-          <comparative-analysis-gauge></comparative-analysis-gauge>
-          <!--<work-log-list :dataList='runList' ref="workLogList" :loadingrun="loadingrunStatus"></work-log-list>-->
+          <comparative-analysis-gauge ref="AnalysisGauge" :dataList="AnalysisGauge"></comparative-analysis-gauge>
         </a-tab-pane>
         <a-tab-pane key="3" tab="楗煎浘">
-          <conparative-analysis-pie></conparative-analysis-pie>
-          <!--<alarm-log-list :dataList='waringList' ref="alarmLogList" :loadingwarn="loadingwarnStatus"></alarm-log-list>-->
+          <conparative-analysis-pie ref="AnalysisPie" :dataList="AnalysisPie"></conparative-analysis-pie>
         </a-tab-pane>
       </a-tabs>
     </div>
@@ -67,16 +64,13 @@
   import comparativeAnalysisGauge from'./comparativeAnalysisGauge'
   import conparativeAnalysisPie from './conparativeAnalysisPie'
   import '@/components/table2excel/table2excel'
-  import {
-    JeecgListMixin
-  } from '@/mixins/JeecgListMixin'
   import JInput from '@/components/jeecg/JInput'
   import JEllipsis from '@/components/jeecg/JEllipsis'
   import Tooltip from 'ant-design-vue/es/tooltip'
   import { ajaxGetDictItems, getDictItemsFromCache, duplicateCheck } from '@/api/api'
   export default {
     name: 'comparativeAnalysismain',
-    mixins: [JeecgListMixin],
+    // mixins: [JeecgListMixin],
     components: {
       Tooltip,
       comparativeAnalysisBar,
@@ -94,6 +88,9 @@
         typeTree:"",
         typeParent:1,
         typeEquipment:1,
+        AnalysisBarList:[],
+        AnalysisGauge:[],
+        AnalysisPie:[],
         dates: [],
         xianshi:"",
         readOnly:true,
@@ -102,52 +99,10 @@
         queryParamEquip:{},
         queryParamPeople:{},
         dataStartsoucre:[],
-        columns: [
-          {
-            title: '璁惧缂栧彿',
-            align: 'center',
-            dataIndex: 'equipmentId'
-          },
-          {
-            title: '璁惧鍚嶇О',
-            align: 'center',
-            dataIndex: 'equipmentName',
-            defaultSortOrder:'descend',
-            sorter: (a, b) => {return a.equipmentName>b.equipmentName?1:-1}
-          },
-          {
-            title: '缁翠慨绫诲瀷',
-            align: 'center',
-            dataIndex: 'mdcRepairTypeDictText'
-          },
-          {
-            title: '寮�濮嬫椂闂�',
-            align: 'center',
-            dataIndex: 'startTime',
-            // scopedSlots:{customRender:'startTime'},
-            // customRender:(text,row,index) => {
-            //   return moment(text).format("YYYY-MM-DD HH:mm:ss")
-            // }
-          },
-          {
-            title: '缁撴潫鏃堕棿',
-            align: 'center',
-            dataIndex: 'endTime'
-          },
-          {
-            title: '鎿嶄綔',
-            dataIndex: 'action',
-            scopedSlots: {customRender: 'action'},
-            align: "center",
-            width: 150
-          }
-        ],
         url: {
-          list: '/mdc/mdcEquipmentRepair/pageList',
-          deleteBatch: '/mdc/mdcEquipmentRepair/delete',
-          getEquipmentByPid: '/mdc/mdcequipment/getEquipmentByPid',
-          getBaseTree: '/mdc/mdcEquipment/queryTreeListByProduction',
-        }
+          comparativeAnalysis:'/mdc/efficiencyReport/comparativeAnalysis'
+        },
+        AnalysisList:{}
       }
     },
     watch:{
@@ -159,28 +114,30 @@
       nodeTree(val) { //鐩戝惉currSelected 鍙樺寲锛屽皢鍙樺寲鍚庣殑鏁板�间紶閫掔粰 getCurrSelected 浜嬩欢
         if (JSON.stringify(val) != '{}') {
           if (val.equipmentId) {
-            this.$set(this.queryParam, 'tierName', val.title)
+            // this.$set(this.queryParam, 'tierName', val.title)
             this.queryParamEquip.parentId =  ""
             this.queryParams.equipmentId = val.equipmentId
             this.queryParamEquip.equipmentId = val.equipmentId
           } else {
-            this.$set(this.queryParam, 'tierName', val.title)
+            // this.$set(this.queryParam, 'tierName', val.title)
             this.queryParamEquip.parentId = val.key
             this.queryParams.equipmentId = ''
           }
           this.searchQuery()
+
         }
       },
       nodePeople(val){
+
         if (JSON.stringify(val) != '{}') {
           if (val.equipmentId) {
-            this.$set(this.queryParam, 'tierName', val.title)
+            // this.$set(this.queryParam, 'tierName', val.title)
             this.queryParamEquip.parentId =  ""
             this.queryParams.equipmentId = val.equipmentId
             this.queryParamEquip.equipmentId = val.equipmentId
           } else {
-            this.$set(this.queryParam, 'tierName', val.title)
-            this.queryParamPeople.parentId = val.key
+            // this.$set(this.queryParam, 'tierName', val.title)
+            this.queryParamEquip.parentId = val.key
             this.queryParams.equipmentId = ''
           }
           this.searchQuery()
@@ -188,34 +145,6 @@
       }
     },
     methods: {
-      initEquipmentNode(id) {
-        let _this = this
-        getAction(this.url.getBaseTree).then((res) => {
-          if (res.success) {
-            // console.log(res.result[0].entity.tierName)
-            _this.$set(this.queryParam, 'tierName', res.result[0].title)
-            _this.$set(this.queryParams, 'parentId', res.result[0].key)
-            // _this.queryStatistical()
-          } else {
-            this.$message.warn(res.message)
-          }
-        }).finally(() => {
-          this.loading = false
-          this.cardLoading = false
-        })
-        // getAction(this.url.getEquipmentByPid, { pid: id }).then((res) => {
-        //   if (res.success) {
-        //     if (res.result) {
-        //       _this.$set(this.queryParam, 'tierName', res.result.tierName)
-        //       _this.$set(this.queryParam, 'equipmentId', res.result.equipmentId)
-        //       // _this.quip = res.result
-        //       _this.searchQuery()
-        //     } else {
-        //       _this.$message.warning('璇烽厤缃澶囷紒')
-        //     }
-        //   }
-        // })
-      },
       tabChange(val) {
         this.activeKey = val
       },
@@ -223,16 +152,61 @@
         // console.log(v1,v2)
         this.queryParam.startTime = v2[0]
         this.queryParam.endTime = v2[1]
-        // console.log(v2[0],v2[1])
+        console.log(v2[0],v2[1])
       },
-      onChange(value, dateString) {
-        // console.log('Selected Time: ', value);
-        // console.log('Formatted Selected Time: ', dateString);
+      loadAnalysis(){
+        getAction(this.url.comparativeAnalysis,this.queryParam).then(res => {
+          if (res.success) {
+            this.AnalysisList = res.result
+            this.AnalysisBarList = res.result.graphics
+            this.AnalysisGauge = res.result.meters
+            this.AnalysisPie.push(res.result.pieCharts)
+          } else {
+            this.$message.warning(res.message)
+          }
+        }).finally(() => {
+          this.loading = false
+        })
       },
-      onOk(value) {
-        console.log('onOk: ', value);
+      searchQuery(){
+        this.AnalysisList = []
+        this.AnalysisBarList = []
+        this.AnalysisGauge = []
+        this.AnalysisPie = []
+        if(this.queryParams.typeTree == "1"){
+          this.queryParams.parentId =  this.queryParamEquip.parentId
+          // this.queryParams.equipmentId =  this.queryParamEquip.equipmentId
+
+        }else{
+          this.queryParams.parentId = this.queryParamEquip.parentId
+
+          // this.queryParams.equipmentId = ""
+        }
+        this.AnalysisList = [];
+        //鑾峰彇鏌ヨ鏉′欢
+        this.queryParam.parentId = this.queryParams.parentId;
+        this.queryParam.equipmentId = this.queryParams.equipmentId;
+        this.queryParam.typeTree = this.queryParams.typeTree
+        getAction(this.url.comparativeAnalysis,this.queryParam).then((res) => {
+          if(res.success){
+            this.AnalysisList = res.result
+            this.AnalysisBarList = res.result.graphics
+            this.AnalysisGauge = res.result.meters
+            this.AnalysisPie.push(res.result.pieCharts)
+            console.log(res.result.pieCharts)
+            console.log(this.AnalysisPie)
+          }else{
+            this.$message.warning(res.message)
+          }
+        }).finally(() => {
+          this.loading = false
+        })
       },
       searchReset() {
+        this.AnalysisList = []
+        this.AnalysisBarList = []
+        this.AnalysisGauge = []
+        this.AnalysisPie = []
         if(this.queryParams.typeTree == "1"){
           this.typeTree = this.queryParams.typeTree
           this.typeParent =  this.queryParams.parentId
@@ -250,295 +224,170 @@
             }else{
               this.queryParams.equipmentId = this.queryParamEquip.equipmentId
             }
-
           }
-
-          this.ipagination.current = 1
-          this.ResetloadData();
+          getAction(this.url.comparativeAnalysis,this.queryParams).then((res) => {
+            if(res.success){
+              this.AnalysisList = res.result
+              this.AnalysisBarList = res.result.graphics
+              this.AnalysisGauge = res.result.meters
+              this.AnalysisPie.push(res.result.pieCharts)
+            }else{
+              this.$message.warning(res.message)
+            }
+          }).finally(() => {
+            this.loading = false
+          })
         }else{
           this.typeTree = this.queryParams.typeTree
           this.typeParent =  this.queryParams.parentId
-          // this.typeEquipment = this.queryParams.equipmentId
+          this.typeEquipment = this.queryParams.equipmentId
           this.queryParams = {}
           this.queryParam = {}
           this.dates = []
           this.queryParams.typeTree = this.typeTree
           this.queryParams.parentId = this.typeParent
-          // this.queryParams.equipmentId =  this.typeEquipment
-          this.ipagination.current = 1
-          this.ResetloadData();
+          if(this.queryParams.parentId !=  ""){
+            this.queryParams.equipmentId =  ""
+          }else{
+            if(this.queryParams.equipmentId == this.queryParamEquip.equipmentId){
+              this.queryParams.equipmentId =  this.typeEquipment
+            }else{
+              this.queryParams.equipmentId = this.queryParamEquip.equipmentId
+            }
+          }
+          getAction(this.url.comparativeAnalysis,this.queryParams).then((res) => {
+            if(res.success){
+              this.AnalysisList = res.result
+              this.AnalysisBarList = res.result.graphics
+              this.AnalysisGauge = res.result.meters
+              this.AnalysisPie.push(res.result.pieCharts)
+            }else{
+              this.$message.warning(res.message)
+            }
+          }).finally(() => {
+            this.loading = false
+          })
         }
 
       },
-      ResetloadData() {
-        if(!this.url.list){
-          this.$message.error("璇疯缃畊rl.list灞炴��!")
-          return
-        }
-        //鍔犺浇鏁版嵁 鑻ヤ紶鍏ュ弬鏁�1鍒欏姞杞界涓�椤电殑鍐呭
-        var params = this.getQueryParams();//鏌ヨ鏉′欢
-        if(!params){
-          return false;
-        }
-        params.typeTree = this.queryParams.typeTree
-        params.parentId = this.queryParams.parentId
-        params.equipmentId = this.queryParams.equipmentId
-        this.loading = true;
-        getAction(this.url.list, params).then((res) => {
-          if (res.success) {
-            this.dataSource = res.result.records||res.result;
-            // this.initDeviceType(this.dataSource)
-            //update-begin---author:zhangyafei    Date:20201118  for锛氶�傞厤涓嶅垎椤电殑鏁版嵁鍒楄〃------------
-            // this.dataSource = res.result.records||res.result;
-            if(res.result.total)
-            {
-              this.ipagination.total = res.result.total;
-            }else{
-              this.ipagination.total = 0;
-            }
-            //update-end---author:zhangyafei    Date:20201118  for锛氶�傞厤涓嶅垎椤电殑鏁版嵁鍒楄〃------------
-          }else{
-            this.$message.warning(res.message)
-          }
-        }).finally(() => {
-          this.loading = false
-        })
-      },
-      handleEdit: function (record) {
-        this.$refs.modalFormedit.edit(record);
-        this.$refs.modalFormedit.title = "缂栬緫";
-        this.$refs.modalFormedit.disableSubmit = false;
-      },
-      handleTableChange(pagination, filters, sorter) {
-        this.dataSource = []
-        //鍒嗛〉銆佹帓搴忋�佺瓫閫夊彉鍖栨椂瑙﹀彂
-        //TODO 绛涢��
-        // console.log(pagination)
-        if (Object.keys(sorter).length > 0) {
-          this.isorter.column = sorter.field;
-          this.isorter.order = "ascend" == sorter.order ? "asc" : "desc"
-        }
-        this.ipagination = pagination;
-        //鑾峰彇鏌ヨ鏉′欢
-        let sqp = {}
-        if(this.superQueryParams){
-          sqp['superQueryParams']=encodeURI(this.superQueryParams)
-          sqp['superQueryMatchType'] = this.superQueryMatchType
-        }
-        var param = Object.assign(sqp, this.queryParams, this.isorter ,this.filters);
-        param.pageNo = this.ipagination.current;
-        param.pageSize = this.ipagination.pageSize;
-        param.field = this.getQueryField();
-        param.parentId = this.queryParams.parentId;
-        param.equipmentId = this.queryParams.equipmentId;
-        param.startTime = this.queryParam.startTime;
-        param.endTime =  this.queryParam.endTime;
-        getAction(this.url.list,param).then((res) => {
-          if(res.success){
-            this.dataSource = res.result.records||res.result;
-            if(res.result.total)
-            {
-              this.ipagination.total = res.result.total;
-            }else{
-              this.ipagination.total = 0;
-            }
-          }else{
-            this.$message.warning(res.message)
-          }
-        }).finally(() => {
-          this.loading = false
-        })
-      },
-      searchQueryEdit(){
-        if(this.queryParams.typeTree == "1"){
-          this.queryParams.parentId =  this.queryParamEquip.parentId
-        }else{
-          this.queryParams.parentId = this.queryParamPeople.parentId
-          this.queryParams.equipmentIds = ""
-        }
-        this.dataSource = [];
-        //鑾峰彇鏌ヨ鏉′欢
-        let sqp = {}
-        if(this.superQueryParams){
-          sqp['superQueryParams']=encodeURI(this.superQueryParams)
-          sqp['superQueryMatchType'] = this.superQueryMatchType
-        }
-        var param = Object.assign(sqp, this.queryParams, this.isorter ,this.filters);
-        param.pageNo = this.ipagination.current;
-        param.pageSize = this.ipagination.pageSize;
-        param.field = this.getQueryField();
-        param.parentId = this.queryParams.parentId;
-        param.equipmentId = this.queryParams.equipmentId;
-        param.startTime = this.queryParam.startTime;
-        param.endTime =  this.queryParam.endTime;
-        getAction(this.url.list,param).then((res) => {
-          if(res.success){
-            this.dataSource = res.result.records||res.result;
-            if(res.result.total)
-            {
-              this.ipagination.total = res.result.total;
-            }else{
-              this.ipagination.total = 0;
-            }
-          }else{
-            this.$message.warning(res.message)
-          }
-        }).finally(() => {
-          this.loading = false
-        })
-      },
-      searchQuery(){
-        if(this.queryParams.typeTree == "1"){
-          this.queryParams.parentId =  this.queryParamEquip.parentId
-          // this.queryParams.equipmentId =  this.queryParamEquip.equipmentId
-
-        }else{
-          this.queryParams.parentId = this.queryParamPeople.parentId
-
-          // this.queryParams.equipmentId = ""
-        }
-        this.dataSource = [];
-        //鑾峰彇鏌ヨ鏉′欢
-        let sqp = {}
-        if(this.superQueryParams){
-          sqp['superQueryParams']=encodeURI(this.superQueryParams)
-          sqp['superQueryMatchType'] = this.superQueryMatchType
-        }
-        var param = Object.assign(sqp, this.queryParams, this.isorter ,this.filters);
-        param.pageNo = 1;
-        param.pageSize = this.ipagination.pageSize;
-        param.field = this.getQueryField();
-        param.parentId = this.queryParams.parentId;
-        param.equipmentId = this.queryParams.equipmentId;
-        param.startTime = this.queryParam.startTime;
-        param.endTime =  this.queryParam.endTime;
-        // console.log(param);
-        getAction(this.url.list,param).then((res) => {
-          if(res.success){
-            this.dataSource = res.result.records||res.result;
-            if(res.result.total)
-            {
-              this.ipagination.total = res.result.total;
-            }else{
-              this.ipagination.total = 0;
-            }
-          }else{
-            this.$message.warning(res.message)
-          }
-        }).finally(() => {
-          this.loading = false
-        })
-      },
-      loadData(arg) {
-        if(!this.url.list){
-          this.$message.error("璇疯缃畊rl.list灞炴��!")
-          return
-        }
-        //鍔犺浇鏁版嵁 鑻ヤ紶鍏ュ弬鏁�1鍒欏姞杞界涓�椤电殑鍐呭
-        if (arg === 1) {
-          this.ipagination.current = 1;
-        }
-        var params = this.getQueryParams();//鏌ヨ鏉′欢
-        if(!params){
-          return false;
-        }
-        this.loading = true;
-        getAction(this.url.list, params).then((res) => {
-          if (res.success) {
-            this.dataSource = res.result.records||res.result;
-            // this.initDeviceType(this.dataSource)
-            //update-begin---author:zhangyafei    Date:20201118  for锛氶�傞厤涓嶅垎椤电殑鏁版嵁鍒楄〃------------
-            // this.dataSource = res.result.records||res.result;
-            if(res.result.total)
-            {
-              this.ipagination.total = res.result.total;
-            }else{
-              this.ipagination.total = 0;
-            }
-            //update-end---author:zhangyafei    Date:20201118  for锛氶�傞厤涓嶅垎椤电殑鏁版嵁鍒楄〃------------
-          }else{
-            this.$message.warning(res.message)
-          }
-        }).finally(() => {
-          this.loading = false
-        })
-      },
-      modalFormOk(val) {
-        // 鏂板/淇敼 鎴愬姛鏃讹紝閲嶈浇鍒楄〃
-        this.searchQueryEdit();
-        // this.$emit('openBasetree','')
-        this.selectedRowKeys = []
-      },
-      handleDelete: function (id) {
-        if(!this.url.deleteBatch){
-          this.$message.error("璇疯缃畊rl.delete灞炴��!")
-          return
-        }
-        var that = this;
-        deleteAction(that.url.deleteBatch, {id: id}).then((res) => {
-          if (res.success) {
-            //閲嶆柊璁$畻鍒嗛〉闂
-            that.reCalculatePage(1)
-            that.$message.success(res.message);
-            that.searchQuery();
-          } else {
-            that.$message.warning(res.message);
-          }
-        });
-      },
-      handleAdd() {
-        this.$refs.modalForm.add(this.node)
-        this.$refs.modalForm.title = '鏂板'
-        this.$refs.modalForm.disableSubmit = false
-      },
-      handleAddXIU() {
-        this.$refs.modalFormadd.add()
-        this.$refs.modalFormadd.title = '鏂板'
-        this.$refs.modalFormadd.disableSubmit = false
-      },
-      pQuery(parentId) {
-        this.queryParam.parentId = parentId[0]
-        if(this.selectedRowKeys.length >= 1) {
-          this.selectedRowKeys.length = 0
-        }
-        this.loadData()
-      },
-      onSelectChange(selectedRowKeys) {
-        this.selectedRowKeys = selectedRowKeys
-      },
-      initEquipment(id) {
-        let _this = this
-        getAction(this.url.getEquipmentByPid, { pid: id }).then((res) => {
-          if (res.success) {
-            if (res.result) {
-              _this.$set(this.queryParams, 'equipmentName', res.result.equipmentName)
-              _this.$set(this.queryParams, 'equipmentId', res.result.equipmentId)
-              _this.equipment = res.result
-              _this.searchQuery()
-            } else {
-              _this.$message.warning('璇烽厤缃澶囷紒')
-            }
-          }
-        })
-      },
-      exportExcel() {
-        $("#DeviceList").table2excel({
-          exclude: ".noExl",
-          name: "Excel Document Name",
-          filename: "璁惧缁翠慨璇︽儏",
-          exclude_img: true,
-          fileext: ".xls",
-          exclude_links: true,
-          exclude_inputs: true
-        });
-      },
+      // onChange(value, dateString) {
+      //   // console.log('Selected Time: ', value);
+      //   // console.log('Formatted Selected Time: ', dateString);
+      // },
+      // searchReset() {
+      //   if(this.queryParams.typeTree == "1"){
+      //     this.typeTree = this.queryParams.typeTree
+      //     this.typeParent =  this.queryParams.parentId
+      //     this.typeEquipment = this.queryParams.equipmentId
+      //     this.queryParams = {}
+      //     this.queryParam = {}
+      //     this.dates = []
+      //     this.queryParams.typeTree = this.typeTree
+      //     this.queryParams.parentId = this.typeParent
+      //     if(this.queryParams.parentId !=  ""){
+      //       this.queryParams.equipmentId =  ""
+      //     }else{
+      //       if(this.queryParams.equipmentId == this.queryParamEquip.equipmentId){
+      //         this.queryParams.equipmentId =  this.typeEquipment
+      //       }else{
+      //         this.queryParams.equipmentId = this.queryParamEquip.equipmentId
+      //       }
+      //
+      //     }
+      //
+      //     this.ipagination.current = 1
+      //     this.ResetloadData();
+      //   }else{
+      //     this.typeTree = this.queryParams.typeTree
+      //     this.typeParent =  this.queryParams.parentId
+      //     // this.typeEquipment = this.queryParams.equipmentId
+      //     this.queryParams = {}
+      //     this.queryParam = {}
+      //     this.dates = []
+      //     this.queryParams.typeTree = this.typeTree
+      //     this.queryParams.parentId = this.typeParent
+      //     // this.queryParams.equipmentId =  this.typeEquipment
+      //     this.ipagination.current = 1
+      //     this.ResetloadData();
+      //   }
+      //
+      // },
+      // ResetloadData() {
+      //   if(!this.url.list){
+      //     this.$message.error("璇疯缃畊rl.list灞炴��!")
+      //     return
+      //   }
+      //   var params = {}
+      //   params.typeTree = this.queryParams.typeTree
+      //   params.parentId = this.queryParams.parentId
+      //   params.equipmentId = this.queryParams.equipmentId
+      //   this.loading = true;
+      //   getAction(this.url.list, params).then((res) => {
+      //     if (res.success) {
+      //       this.dataSource = res.result.records||res.result;
+      //     }else{
+      //       this.$message.warning(res.message)
+      //     }
+      //   }).finally(() => {
+      //     this.loading = false
+      //   })
+      // },
+      // searchQuery(){
+      //   if(this.queryParams.typeTree == "1"){
+      //     this.queryParams.parentId =  this.queryParamEquip.parentId
+      //     // this.queryParams.equipmentId =  this.queryParamEquip.equipmentId
+      //
+      //   }else{
+      //     this.queryParams.parentId = this.queryParamPeople.parentId
+      //
+      //     // this.queryParams.equipmentId = ""
+      //   }
+      //   this.dataSource = [];
+      //   //鑾峰彇鏌ヨ鏉′欢
+      //   let  param = {}
+      //   param.parentId = this.queryParams.parentId;
+      //   param.equipmentId = this.queryParams.equipmentId;
+      //   param.startTime = this.queryParam.startTime;
+      //   param.driveType = this.queryParam.driveType;
+      //   param.endTime =  this.queryParam.endTime;
+      //   getAction(this.url.list,param).then((res) => {
+      //     if(res.success){
+      //       this.dataSource = res.result.records||res.result;
+      //     }else{
+      //       this.$message.warning(res.message)
+      //     }
+      //   }).finally(() => {
+      //     this.loading = false
+      //   })
+      // },
+      // loadData() {
+      //   if(!this.url.list){
+      //     this.$message.error("璇疯缃畊rl.list灞炴��!")
+      //     return
+      //   }
+      //   //鍔犺浇鏁版嵁 鑻ヤ紶鍏ュ弬鏁�1鍒欏姞杞界涓�椤电殑鍐呭
+      //   var params = {}
+      //   this.loading = true;
+      //   params.startTime = this.queryParam.startTime;
+      //   params.endTime =  this.queryParam.endTime;
+      //   params.typeTree = this.queryParams.typeTree
+      //   getAction(this.url.list, params).then((res) => {
+      //     if (res.success) {
+      //       this.dataSource = res.result.records||res.result;
+      //     }else{
+      //       this.$message.warning(res.message)
+      //     }
+      //   }).finally(() => {
+      //     this.loading = false
+      //   })
+      // },
     },
     created() {
       this.dates = [moment().subtract('days', 7), moment().subtract('days', 0)]
       this.queryParam.startTime = moment(this.dates[0]).format('YYYYMMDD')
       this.queryParam.endTime = moment(this.dates[1]).format('YYYYMMDD')
       this.queryParam.typeTree = "1";
-      this.initEquipmentNode()
+      this.loadAnalysis();
     }
   }
 </script>
diff --git a/src/views/mdc/base/modules/comparativeAnalysis/conparativeAnalysisPie.vue b/src/views/mdc/base/modules/comparativeAnalysis/conparativeAnalysisPie.vue
index bec9df9..10e0b5c 100644
--- a/src/views/mdc/base/modules/comparativeAnalysis/conparativeAnalysisPie.vue
+++ b/src/views/mdc/base/modules/comparativeAnalysis/conparativeAnalysisPie.vue
@@ -9,17 +9,25 @@
   import * as echarts from 'echarts'
   export default {
     name: 'conparativeAnalysisPie',
-    propa:{},
+    props:{ dataList:''},
     data(){
       return{
         closeRate:0,
         openRate:0,
         usedRate:0,
         waitRate:0,
+        RateList:[]
       }
     },
     created(){
 
+    },
+    watch:{
+      dataList(val){
+        this.RateList = val
+        console.log(val)
+        this.drawTu()
+      },
     },
     mounted() {
       this.drawTu()
@@ -105,6 +113,33 @@
               {value: 0, name: '鍏虫満鐜�'}]
           }]
         };
+       console.log(this.RateList)
+        if(this.RateList != null){
+          console.log(this.RateList)
+          this.closeRate =[]
+          this.openRate =[]
+          this.usedRate = []
+          this.waitRate = []
+          if(this.RateList.length>0){
+            this.closeRate=this.RateList[0].closeRate
+            this.openRate=this.RateList[0].openRate
+            this.usedRate=this.RateList[0].processRate
+            this.waitRate=this.RateList[0].waitRate
+            pieCompChartOption1.series[0].data = [{value:this.openRate, name:'寮�鏈虹巼'},{value:this.closeRate, name:'鍏虫満鐜�'}];
+            pieCompChartOption2.series[0].data = [{value:(this.usedRate * 100).toFixed(2), name:'鍔犲伐鐜�'},{value:(this.waitRate * 100).toFixed(2), name:'寰呮満鐜�'},{value:(this.closeRate * 100).toFixed(2), name:'鍏虫満鐜�'}];
+            console.log(pieCompChartOption1.series[0].data)
+            pieCompChart1.setOption(pieCompChartOption1);
+            pieCompChart2.setOption(pieCompChartOption2);
+          }else{
+            pieCompChart1.setOption(pieCompChartOption1);
+            pieCompChart2.setOption(pieCompChartOption2);
+          }
+
+        }else{
+          pieCompChart1.setOption(pieCompChartOption1);
+          pieCompChart2.setOption(pieCompChartOption2);
+        }
+
         pieCompChart1.setOption(pieCompChartOption1);
         pieCompChart2.setOption(pieCompChartOption2);
         window.addEventListener('resize', function() {
diff --git a/src/views/mdc/base/modules/deviceLog/AlarmLogList.vue b/src/views/mdc/base/modules/deviceLog/AlarmLogList.vue
index 87b2736..40f73fd 100644
--- a/src/views/mdc/base/modules/deviceLog/AlarmLogList.vue
+++ b/src/views/mdc/base/modules/deviceLog/AlarmLogList.vue
@@ -69,6 +69,25 @@
             title: '鎸佺画鏃堕棿',
             align: 'center',
             dataIndex: 'duration',
+            customRender:(t,r,index) =>{
+              // console.log(t)
+              var ss = parseInt(t)
+              if(ss>=3600){
+                // 鏍规嵁绉掓暟杞崲鎴愬搴旂殑鏃跺垎绉�
+                const hour = parseInt(ss / 3600) < 10 ? '0' + parseInt(ss / 3600) : parseInt(ss / 3600)
+                const min = parseInt(ss % 3600 / 60) < 10 ? '0' + parseInt(ss % 3600 / 60) : parseInt(ss % 3600 / 60)
+                const sec = parseInt(ss % 3600 % 60) < 10 ? '0' + parseInt(ss % 3600 % 60) : parseInt(ss % 3600 % 60)
+                return hour + '鏃�' + min + '鍒�' + sec + '绉�'
+
+              }else if(60<ss && ss<3600){
+                const min1 = parseInt(ss % 3600 / 60) < 10 ? '0' + parseInt(ss % 3600 / 60) : parseInt(ss % 3600 / 60)
+                const sec1 = parseInt(ss % 3600 % 60) < 10 ? '0' + parseInt(ss % 3600 % 60) : parseInt(ss % 3600 % 60)
+                return  min1 + '鍒�' + sec1 + "绉�"
+              }else{
+                const sec2 = parseInt(ss % 3600 % 60) < 10 ? '0' + parseInt(ss % 3600 % 60) : parseInt(ss % 3600 % 60)
+                return sec2 + '绉�'
+              }
+            }
             // defaultSortOrder:'descend',
             // sorter: (a, b) => {return a.duration>b.duration?1:-1}
           },
diff --git a/src/views/mdc/base/modules/deviceLog/LogList.vue b/src/views/mdc/base/modules/deviceLog/LogList.vue
index 69a3f5e..d58caea 100644
--- a/src/views/mdc/base/modules/deviceLog/LogList.vue
+++ b/src/views/mdc/base/modules/deviceLog/LogList.vue
@@ -48,6 +48,9 @@
         default: false
       }
     },
+    watch:{
+
+    },
     data() {
       return {
         statusName: '',
@@ -90,6 +93,25 @@
             title: '鎸佺画鏃堕棿',
             align: 'center',
             dataIndex: 'duration',
+            customRender:(t,r,index) =>{
+              // console.log(t)
+              var ss = parseInt(t)
+              if(ss>=3600){
+                // 鏍规嵁绉掓暟杞崲鎴愬搴旂殑鏃跺垎绉�
+                const hour = parseInt(ss / 3600) < 10 ? '0' + parseInt(ss / 3600) : parseInt(ss / 3600)
+                const min = parseInt(ss % 3600 / 60) < 10 ? '0' + parseInt(ss % 3600 / 60) : parseInt(ss % 3600 / 60)
+                const sec = parseInt(ss % 3600 % 60) < 10 ? '0' + parseInt(ss % 3600 % 60) : parseInt(ss % 3600 % 60)
+                return hour + '鏃�' + min + '鍒�' + sec + '绉�'
+
+              }else if(60<ss && ss<3600){
+                const min1 = parseInt(ss % 3600 / 60) < 10 ? '0' + parseInt(ss % 3600 / 60) : parseInt(ss % 3600 / 60)
+                const sec1 = parseInt(ss % 3600 % 60) < 10 ? '0' + parseInt(ss % 3600 % 60) : parseInt(ss % 3600 % 60)
+                return  min1 + '鍒�' + sec1 + "绉�"
+              }else{
+                const sec2 = parseInt(ss % 3600 % 60) < 10 ? '0' + parseInt(ss % 3600 % 60) : parseInt(ss % 3600 % 60)
+                return sec2 + '绉�'
+              }
+            }
             // defaultSortOrder:'descend',
             // sorter: (a, b) => {return a.duration>b.duration?1:-1}
           },
diff --git a/src/views/mdc/base/modules/deviceLog/WorkLogList.vue b/src/views/mdc/base/modules/deviceLog/WorkLogList.vue
index 1e5b549..6f5390b 100644
--- a/src/views/mdc/base/modules/deviceLog/WorkLogList.vue
+++ b/src/views/mdc/base/modules/deviceLog/WorkLogList.vue
@@ -73,6 +73,25 @@
             title: '鎸佺画鏃堕棿',
             align: 'center',
             dataIndex: 'duration',
+            customRender:(t,r,index) =>{
+              // console.log(t)
+              var ss = parseInt(t)
+              if(ss>=3600){
+                // 鏍规嵁绉掓暟杞崲鎴愬搴旂殑鏃跺垎绉�
+                const hour = parseInt(ss / 3600) < 10 ? '0' + parseInt(ss / 3600) : parseInt(ss / 3600)
+                const min = parseInt(ss % 3600 / 60) < 10 ? '0' + parseInt(ss % 3600 / 60) : parseInt(ss % 3600 / 60)
+                const sec = parseInt(ss % 3600 % 60) < 10 ? '0' + parseInt(ss % 3600 % 60) : parseInt(ss % 3600 % 60)
+                return hour + '鏃�' + min + '鍒�' + sec + '绉�'
+
+              }else if(60<ss && ss<3600){
+                const min1 = parseInt(ss % 3600 / 60) < 10 ? '0' + parseInt(ss % 3600 / 60) : parseInt(ss % 3600 / 60)
+                const sec1 = parseInt(ss % 3600 % 60) < 10 ? '0' + parseInt(ss % 3600 % 60) : parseInt(ss % 3600 % 60)
+                return  min1 + '鍒�' + sec1 + "绉�"
+              }else{
+                const sec2 = parseInt(ss % 3600 % 60) < 10 ? '0' + parseInt(ss % 3600 % 60) : parseInt(ss % 3600 % 60)
+                return sec2 + '绉�'
+              }
+            }
             // defaultSortOrder:'descend',
             // sorter: (a, b) => {return a.duration>b.duration?1:-1}
           },

--
Gitblit v1.9.3