gaoshp
2024-06-25 9626bf75c0cfe5b80be9941d2667ee3579d623e3
update height
已修改1个文件
12 ■■■■ 文件已修改
src/views/mdc/processParam/index.vue 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mdc/processParam/index.vue
@@ -1,7 +1,7 @@
<!--
 * @Date: 2024-04-09 22:11:21
 * @LastEditors: Sneed
 * @LastEditTime: 2024-06-22 19:21:12
 * @LastEditTime: 2024-06-25 19:22:46
 * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/mdc/processParam/index.vue
 实时看板
-->
@@ -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="暂无数据" />
@@ -225,7 +225,13 @@
            })
            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()
                }
            })