From 9a63bba31d58a95b0212f70dba881cd093335b28 Mon Sep 17 00:00:00 2001
From: gaoshp <291585735@qq.com>
Date: 星期二, 22 十月 2024 22:36:58 +0800
Subject: [PATCH] update text

---
 src/views/mdc/processParam/index.vue |   25 +++++++++++++++++--------
 1 files changed, 17 insertions(+), 8 deletions(-)

diff --git a/src/views/mdc/processParam/index.vue b/src/views/mdc/processParam/index.vue
index b33e583..6fab622 100644
--- a/src/views/mdc/processParam/index.vue
+++ b/src/views/mdc/processParam/index.vue
@@ -1,8 +1,8 @@
 <!--
  * @Date: 2024-04-09 22:11:21
- * @LastEditors: Sneed
- * @LastEditTime: 2024-06-22 19:21:12
- * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/mdc/processParam/index.vue
+ * @LastEditors: gaoshp
+ * @LastEditTime: 2024-10-22 22:30:19
+ * @FilePath: /cps-web/src/views/mdc/processParam/index.vue
  瀹炴椂鐪嬫澘
 -->
 <template>
@@ -12,7 +12,7 @@
                 <el-aside width="300px" style="height: 100%;">
                     <el-container>
                         <el-main class="nopadding">
-                            <el-row style="margin-top: 14px;">
+                            <el-row style="margin: 8px;font-size: 14px;">
                                 宸ヤ綅
                             </el-row>
                             <MYTree v-model="treeChecked" @loaded="query"></MYTree>
@@ -31,9 +31,9 @@
                                     start-placeholder="" end-placeholder="" :disabled-date="disabledDate"
                                     @calendar-change="change" />
                             </el-col>
-                            <el-col :span="2" style='text-align: right;'>
+                            <!-- <el-col :span="2" style='text-align: right;'>
                                 <el-button type="primary" @click="exportExcel">瀵煎嚭</el-button>
-                            </el-col>
+                            </el-col> -->
                         </el-row>
                         <TimeLine v-model="timeRange" ref="timeLine"></TimeLine>
                         <el-collapse v-model="activeList">
@@ -44,7 +44,7 @@
                                     <div>
                                         <el-button size="small" @click="viewData(item)">鏌ョ湅鏁版嵁</el-button>
                                     </div>
-                                    <scEcharts style="width:100%" height="200px" :option="item?.dayCharts">
+                                    <scEcharts style="width:100%" :height="item.height" :option="item?.dayCharts">
                                     </scEcharts>
                                 </div>
                                 <el-empty v-else description="鏆傛棤鏁版嵁" />
@@ -219,13 +219,22 @@
             })
         },
         query() {
+            if (!this.treeChecked.toString()) return
+            console.log(this.treeChecked.toString(), '>>>>>>>>>/')
             this.$refs?.timeLine?.init({
                 dates: this.time,
                 workstationId: this.treeChecked.toString()
             })
+            this.list = []
             this.$HTTP.get('/api/blade-mdc/process-parameter/param', { workstationId: this.treeChecked.toString() }).then(res => {
                 if (res.code === 200) {
-                    this.list = res.data
+                    console.log('jkjkjkjkj', this.list)
+                    this.list = res.data.map(v => {
+                        return {
+                            ...v,
+                            height: ['ProcessProgram', 'DeviceStatus'].includes(v.name) ? '100px' : '200px'
+                        }
+                    })
                     this.queryChart()
                 }
             })

--
Gitblit v1.9.3