zhuguifei
2025-09-02 9dfbc038667839631578c12ff748534e5939bc82
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<template>
    <view class="danmu_bg">
        <view class="barrage-box">
            <view class="itme-box">
                <view class="title"></view>
                <view class="h-table" style=" width: 100vh;">
                    <view class="h-tr h-tr-12 h-thead">
                        <view class="h-td">品名</view>
                        <view class="h-td">装料量</view>
                        <view class="h-td">目标</view>
                        <view class="h-td h-td-colspan h-td-rowspan">
                            <view class="h-tr h-tr-1">
                                <view class="h-td  h-td-colspan">前</view>
                            </view>
                            <view class="h-tr h-tr-2">
                                <view class="h-td">左</view>
                                <view class="h-td">右</view>
                            </view>
 
                        </view>
                        <view class="h-td h-td-colspan h-td-rowspan">
                            <view class="h-tr h-tr-1">
                                <view class="h-td  h-td-colspan">中</view>
                            </view>
                            <view class="h-tr h-tr-2">
                                <view class="h-td">左</view>
                                <view class="h-td">右</view>
                            </view>
 
                        </view>
                        <view class="h-td h-td-colspan h-td-rowspan">
                            <view class="h-tr h-tr-1">
                                <view class="h-td  h-td-colspan">后</view>
                            </view>
                            <view class="h-tr h-tr-2">
                                <view class="h-td">左</view>
                                <view class="h-td">右</view>
                            </view>
 
                        </view>
 
                        <view class="h-td">平均</view>
                        <view class="h-td">时间(分钟)</view>
                        <view class="h-td">蒸汽(立方)</view>
                    </view>
 
                    <view v-for="(item,index) in list" class="h-tr h-tr-12" style="background-color: white">
                        <view class="h-td">{{item.herbName}}</view>
                        <view class="h-td">{{fweight(item) }}</view>
                        <view class="h-td">{{ $lget(item ,'target' ) || ''}}% </view>
                        <view class="h-td">{{item.frontLeft}}</view>
                        <view class="h-td">{{item.frontRight}}</view>
                        <view class="h-td">{{item.middleLeft}}</view>
                        <view class="h-td">{{item.middleRight}}</view>
                        <view class="h-td">{{item.backLeft}}</view>
                        <view class="h-td">{{item.backRight}}</view>
                        <view class="h-td">{{item.avg}}</view>
                        <view class="h-td">{{item.dryTime}}</view>
                        <view class="h-td">{{item.steam}}</view>
                    </view>
 
                </view>
 
 
            </view>
 
 
        </view>
 
    </view>
</template>
 
<script>
    import get from 'lodash.get'
    export default {
        data() {
            return {
                StatusBar: this.StatusBar,
                CustomBar: this.CustomBar,
                queryParam: {},
                list: []
 
            }
        },
        onReady() {
            this.getAnalyList()
 
        },
        methods: {
            getAnalyList() {
                this.$api.getAnalyList(this.queryParam).then((res) => {
                    if (res.success) {
                        this.list = this.$lget(res, 'result.records') || [];
                        this.list = [...this.list, ...this.$lget(res, 'result.records')]
 
                    }
                }).catch((err) => {
                    console.log('request fail', err);
                })
            },
            fweight(data) {
                let feed = this.$lget(data, 'feed');
                let weight = this.$lget(data, 'weight');
                if (feed && weight) {
                    return feed + '/' + weight
                }
                return ""
 
            }
 
        },
        computed: {
 
        }
    }
</script>
 
<style lang="scss" scoped>
    @import "components/table/helang-table";
 
    page {
        background: #fbfbfb;
        height: auto;
        overflow: scroll;
    }
 
    .danmu_bg {
        width: 100vw;
        height: 100vh;
 
        .barrage-box {
            /* 设置基准点为左上角 */
            transform-origin: top left;
            /* 以左上角为基准点,顺时针旋转90度 然后沿Y轴反方向平移100% */
            /* 为什么沿Y轴,因为旋转使坐标轴方向发生了变化 */
            transform: rotate(90deg) translateY(-100%);
            /*设置元素的宽度为 100%父元素的高度 并提高样式优先级 */
            width: 100vh !important;
            /*设置元素的宽度为 100%父元素的宽度  并提高样式优先级 */
            height: 100vw !important;
            overflow: scroll;
        }
    }
</style>