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
| <template>
| <div class="screening">
| <div class="title">设备编码 :</div>
| <div class="input_code">
| <el-input placeholder="请输入内容" v-model="code" clearable> </el-input>
| </div>
|
| <div class="title electric">电量区间 :</div>
|
| <div class="input_elec">
| <el-input placeholder="请输入" v-model="lowerElec" clearable> </el-input>
| </div>
| <div class="font-weight: 700;font-size: 25px;">-</div>
| <div class="input_elec">
| <el-input placeholder="请输入" v-model="UpperElec" clearable> </el-input>
| </div>
|
| <div class="save" @click="searchHelmet">查询</div>
| <div class="reset" @click="resetHelmet">清空</div>
| </div>
| </template>
|
| <script>
| export default {
| data() {
| return {
| code: "",
| lowerElec: "",
| UpperElec: "",
| };
| },
| methods: {
| searchHelmet() {
| this.$emit("searchHelmet", {
| sn: this.code,
| batteryStart: this.lowerElec,
| batteryEnd: this.UpperElec,
| });
| },
| resetHelmet() {
| this.code = "";
| this.lowerElec = "";
| this.UpperElec = "";
| this.$emit("resetHelmet");
| },
| },
| };
| </script>
|
| <style scoped lang="scss">
| .screening {
| display: flex;
| align-items: center;
| padding: 0 20px;
| height: 70px;
| border-radius: 15px;
| background-color: #f2f2f7;
|
| .title {
| font-size: 14px;
| color: #4f4f4f;
| }
|
| .input_code {
| margin: 0 20px 0 5px;
| width: 250px;
| }
|
| .input_elec {
| margin: 0 5px;
| width: 130px;
| }
|
| .save {
| margin-left: 22%;
| margin-right: 10px;
| width: 90px;
| height: 40px;
| border-radius: 10px;
| background: #fff;
| color: #333333;
| font-size: 14px;
| line-height: 40px;
| cursor: pointer;
|
| &:hover {
| background: #11aa66;
| color: #fff;
| }
| }
|
| .reset {
| width: 90px;
| height: 40px;
| background: #fff;
| border-radius: 10px;
| color: #333333;
| font-size: 14px;
| line-height: 40px;
| cursor: pointer;
|
| &:hover {
| background: #11aa66;
| color: #fff;
| }
| }
|
| .el-input ::v-deep input {
| border-radius: 10px;
|
| &:focus {
| border: 1px solid #11aa66;
| }
| }
| }
| </style>
|
|