From 89905a0cc5d9d37a3f61b51d5432290fbd4b8365 Mon Sep 17 00:00:00 2001
From: zhuzhuanzhuan
Date: 星期三, 19 七月 2023 18:01:46 +0800
Subject: [PATCH] 统计分析界面的接口调取,渲染,调整

---
 src/views/mdc/base/modules/StatisticsChart/StatisticsLegend.vue |   32 ++++++++++++++++----------------
 1 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/src/views/mdc/base/modules/StatisticsChart/StatisticsLegend.vue b/src/views/mdc/base/modules/StatisticsChart/StatisticsLegend.vue
index 7d867a3..4444581 100644
--- a/src/views/mdc/base/modules/StatisticsChart/StatisticsLegend.vue
+++ b/src/views/mdc/base/modules/StatisticsChart/StatisticsLegend.vue
@@ -4,7 +4,7 @@
     <div style="width: 100%; height: 44px; background-color: #fff" class="table-page-search-wrapper">
       <a-form layout="inline" @keyup.enter.native="searchQuery">
         <a-row :gutter="24">
-          <a-col :md="4" :sm="4" :xs="4">
+          <a-col :md="5" :sm="5" :xs="5">
             <a-form-item label="鍚嶇О">
               <a-input placeholder="杈撳叆璁惧鍚嶇О鏌ヨ" :readOnly="readOnly" v-model="queryParam.tierName"></a-input>
             </a-form-item>
@@ -125,7 +125,7 @@
         url: {
           getEquipmentByPid: '/mdc/mdcequipment/getEquipmentByPid',
           dayStatisticalRate:'/mdc/efficiencyReport/dayStatisticalRate',
-          getBaseTree: '/mdc/mdcequipment/loadTree',
+          getBaseTree: '/mdc/mdcEquipment/queryTreeListByProduction',
         },
       }
     },
@@ -562,14 +562,14 @@
             if(res.success){
               // console.log(res);
               this.StatCharOpeningRate = res.result.openRate;
-              this.StatCharUsedRate = res.result.usedRate;
+              this.StatCharUsedRate = res.result.utilizationRate;
               this.UtilizationHeight = res.result.openRate;
-              this.StatCharUsedopeningRate = res.result.usedopeningRate;
-              this.StartupHeight = res.result.usedopeningRate;
-              this.openingLong = this.getTime(res.result.openingLong)
-              this.waitingLong = this.getTime(res.result.waitingLong);
-              this.processLong = this.getTime(res.result.processingLong);
-              this.closedLong = this.getTime(res.result.closedLong);
+              this.StatCharUsedopeningRate = res.result.StartupHeight;
+              this.StartupHeight = res.result.StartupHeight;
+              this.openingLong = this.getTime(res.result.openLong)
+              this.waitingLong = this.getTime(res.result.waitLong);
+              this.processLong = this.getTime(res.result.processLong);
+              this.closedLong = this.getTime(res.result.closeLong);
               this.totalLong = parseInt(this.openingLong) + parseInt(this.closedLong);
               this.draw();
             }
@@ -586,7 +586,7 @@
         getAction(this.url.getBaseTree).then((res) => {
           if (res.success) {
             // console.log(res.result[0].entity.tierName)
-            _this.$set(this.queryParam, 'tierName', res.result[0].entity.tierName)
+            _this.$set(this.queryParam, 'tierName', res.result[0].title)
           } else {
             this.$message.warn(res.message)
           }
@@ -621,16 +621,16 @@
     watch: {
       equip(val) {
           // console.log(val);
-          if (val.entity && val.entity.equipmentId) {
-            this.$set(this.queryParam, 'tierName', val.entity.tierName)
-            this.$set(this.queryParam, 'equipmentId', val.entity.equipmentId)
+          if (val && val.equipmentId) {
+            this.$set(this.queryParam, 'tierName', val.title)
+            this.$set(this.queryParam, 'equipmentId', val.equipmentId)
             this.queryParams.parentId = ''
-            this.queryParams.equipmentIds = val.entity.equipmentId
+            this.queryParams.equipmentIds = val.equipmentId
             this.searchQuery()
           }else{
-            this.queryParams.parentId = val.entity.id
+            this.queryParams.parentId = val.key
             this.queryParams.equipmentIds = ''
-            this.$set(this.queryParam, 'tierName', val.entity.tierName)
+            this.$set(this.queryParam, 'tierName', val.title)
             this.searchQuery()
             }
             this.searchQuery()

--
Gitblit v1.9.3