tanghaolin
2023-01-09 5bb13b470353a075404bf0cbe60a763932e0b5fc
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
<template>
  <div class="evaluation-model-page">
        <fks-row>
            <fks-col :span="24">
                <fks-card class="box-card" style="height:334px" shadow="never">
                    <titleBox title="评价模型">
                        <template v-slot:right>
                            <div class="titleBoxRightSlot">
                                 <fks-button style="float: right; padding: 3px 0" @click="evaluationModelSetting" type="text" icon="fks-icon-plus">新增</fks-button>
                            </div>
                        </template>
                    </titleBox>
                    <div class="text item">
                         <fks-table 
                            border
                            :data="evaluationModelTableData"
                            style="width: 100%">
                            <fks-table-column
                                prop="name"
                                label="名称"
                                width="180">
                            </fks-table-column>
                            <fks-table-column
                                prop="evaluationMethod"
                                label="评价方法"
                                width="180">
                            </fks-table-column>
                            <fks-table-column
                                prop="evaluationParam"
                                label="评价参数">
                            </fks-table-column>
                            <fks-table-column
                                prop="desc"
                                label="说明">
                            </fks-table-column>
                            <fks-table-column label="操作">
                            <template slot-scope="scope">
                                <fks-button
                                type="primary"
                                size="mini"
                                @click="handleEdit(scope.$index, scope.row)">编辑</fks-button>
                            </template>
                            </fks-table-column>
                        </fks-table>
                    </div>
                </fks-card>
            </fks-col>
        </fks-row>
  </div>
</template>
 
<script>
import titleBox from "@/views/main/components/titleBox.vue"
export default {
    components:{titleBox},
    data(){
        return{
            evaluationModelTableData:[
                {
                    name:"振动加速度",
                    evaluationMethod:"自动评价",
                    evaluationParam:"1.>=0.3 扣2分",
                    desc:"对振动波形中有效值进行扣分判定"
                },
                {
                    name:"电机温度",
                    evaluationMethod:"自动评价",
                    evaluationParam:"1.<=20 扣1分;2.>=60 扣5分",
                    desc:"电机温度过高,进行相应扣分"
                },
                {
                    name:"液位",
                    evaluationMethod:"自动评价",
                    evaluationParam:"3.<=7 扣 (x+7)*2分",
                    desc:"液位越低,扣分越多,需保持适度液位"
                },
                {
                    name:"电机表面光滑度",
                    evaluationMethod:"人工评价",
                    evaluationParam:"表面不光滑扣1分;有油污扣5分;有水渍扣5分;",
                    desc:"人工检查时,根据不同情况,进行手动评价"
                },
            ],
        }
    }
}
</script>
 
<style scoped>
.evaluation-model-page{
    width: 100%;
    height: 100%;
    background-color: #fff;
}
  .text {
    font-size: 14px;
  }
 
  .item {
    margin-bottom: 18px;
  }
.clearfix{
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.clearfix::before, .clearfix::after{
    display: unset;
    content: none;
}
  .fks-card__header{
    padding: 0px 20px ;
  }
</style>