longyvfengyun
2023-12-25 d8d792a6842832e8f6af6604274c438b25053afe
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
<template>
  <flex-layout direction="row" style="color:#ffffff">
    <content-Box>
      <div slot="title">电池放电测试 显示与隐藏查询条件</div>
      <div class="headrs">
        <table class="table-head" width="100%" border="1" cellspacing="0">
          <thead>
            <tr>
              <th>维护区</th>
              <th>机房站点</th>
              <th>电池组名称</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td width="300px">
                <el-select v-model="value" placeholder="维护区" class="weihu">
                  <el-option
                    v-for="item in options"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                  ></el-option>
                </el-select>
              </td>
              <td width="500px">
                <el-select v-model="value" placeholder="湖北省-武汉市-东西湖区-武汉原畅模拟机房-LD9设备" class="rooms">
                  <el-option
                    v-for="item in options"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                  ></el-option>
                </el-select>
              </td>
              <td width="300px">
                <el-select v-model="value" placeholder="蓄电池组" class="dainchi">
                  <el-option
                    v-for="item in options"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                  ></el-option>
                </el-select>
              </td>
            </tr>
          </tbody>
        </table>
      </div>
      <!-- 表单 -->
      <el-table stripe size="small" :data="table.datas" height="82%" class="tableCent">
        <el-table-column
          v-for="header in table.headers"
          :key="header.prop"
          :prop="header.prop"
          :label="header.label"
          :width="header.width"
          align="center"></el-table-column>
      </el-table>
 
      <!-- 底部 -->
      <div class="footer">添加单组电池组</div>
    </content-Box>
  </flex-layout>
</template>
 
<script>
import ContentBox from "../../components/ContentBox";
export default {
  components: {
    ContentBox
  },
  data() {
    return {
      /* 选择器内容 */
      options: [
        {
          value: "选项1",
          label: "黄金糕"
        },
        {
          value: "选项2",
          label: "双皮奶"
        },
        {
          value: "选项3",
          label: "蚵仔煎"
        },
        {
          value: "选项4",
          label: "龙须面"
        },
        {
          value: "选项5",
          label: "北京烤鸭"
        }
      ],
      value: "",
      /* 表单 */
      table: {
        headers: [
          {
            prop: "room1",
            label: "机房名称",
            width: ""
          },
          {
            prop: "battery1",
            label: "电池组名称",
            width: ""
          },
          {
            prop: "tes1",
            label: "设备ID",
            width: ""
          },
          {
            prop: "tester1",
            label: "被测电池组号",
            width: ""
          },
          {
            prop: "current1",
            label: "设定测试类型",
            width: ""
          },
          {
            prop: "capacity1",
            label: "设定测试电流",
            width: ""
          },
          {
            prop: "monomer1",
            label: "设备工作状态",
            width: ""
          },
          {
            prop: "number1",
            label: "已测时间",
            width: ""
          },
          {
            prop: "vol1",
            label: "FBS9100通信计数",
            width: ""
          }
        ],
        datas: [
          {
            room1: 0,
            battery1: 0,
            tes1: 0,
            tester1: 0,
            current1: 0,
            capacity1: 0,
            monomer1: 0,
            number1: 0,
            vol1: 0
          }
        ]
      }
    };
  },
  created() {},
  methods: {}
};
</script>
 
<style lang="less" scoped>
.headrs {
  font-weight: 900;
  height: 80px;
  width: 100%;
  position: relative;
  .table-head {
    color: #ffff;
    position: absolute;
    top: 3%;
    border: 1px solid #ffffff;
    thead tr {
      height: 35px;
    }
 
    tbody tr {
      height: 70%;
    }
  }
 
  .weihu {
    width: 100%;
  }
 
  .dainchi {
    width: 100%;
  }
 
  .rooms {
    width: 100%;
  }
}
 
/* 表单 */
.tableCent {
  margin-top: 5px;
}
 
/* 底部 */
.footer {
  text-align: center;
}
</style>