whychdw
2021-05-25 4725860496c2ed3a7a6d505708a4396cfabc6e95
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
<template>
    <div class="params-container params-container-flex">
        <div class="form-title">
            试验步骤结果
        </div>
        <div class="form-wrapper">
            <div class="test-explain">
                <p class="p-h">当前步骤</p>
                <p class="text-indent-two">① 被试电机在额定频率,额定电压及额定负载下运行到温升稳定  (已完成)</p>
                <p class="p-h">当前结果</p>
                <p class="text-indent-two">当前电机在设置的功率下运行到升温稳定</p>
                <el-form ref="ruleForm" class="params-dialog" label-width="100px">
                    <el-row :gutter="16">
                        <el-col :span="8">
                            <el-form-item label="当前功率:" class="inline" prop="power">
                                <el-input placeholder="" v-model="params.power">
                                    <template slot="append">W</template>
                                </el-input>
                            </el-form-item>
                        </el-col>
                    </el-row>
                    <el-row :gutter="16">
                        <el-col :span="8">
                            <el-form-item label="当前功率:" class="inline" prop="power">
                                <el-input placeholder="" v-model="params.temp">
                                    <template slot="append">℃</template>
                                </el-input>
                            </el-form-item>
                        </el-col>
                    </el-row>
                </el-form>
            </div>
        </div>
        <div class="footer-button">
            <el-button type="primary" size="small" @click="updatePoint">开始下一步</el-button>
        </div>
    </div>
</template>
 
<script>
export default {
    name: "heatingUpRs",
    props: {
        list: {
            type: Array,
            default() {
                return []
            }
        }
    },
    data() {
        return {
            params: {
                power: 0,
                temp: 0,
            },
        }
    },
    methods: {
        updatePoint(){
            this.$emit('updatePoint');
        },
    },
    mounted() {
        let list = this.list;
        if(list) {
            this.params.power = list[0]?list[0].value:0;
            this.params.temp = list[1]?list[1].value:0;
        }
    }
}
</script>
 
<style scoped>
.params-container {
    padding: 0;
}
.form-title {
    line-height: 50px;
    background-color: rgba(102, 110, 232, 1);
    color: #FFFFFF;
    text-align: center;
}
.form-wrapper {
    padding: 8px;
}
.p-h {
    font-size: 18px;
    font-weight: 700;
}
</style>