gaoshp
2024-10-09 9ccaa7a607481405ee22519aa49c786a46b95e22
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-09 20:29:41
 * @FilePath: /cps-web/src/views/mdc/processParam/index.vue
 实时看板
-->
<template>
@@ -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()
                }
            })