1
z8018
2025-06-10 e46aa927d231af83724683c7286d9db503e24cf7
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
<template>
  <div class="container">
    <el-button type="primary" style="width: 200px;height: 100px;" @click="goBack(1)">一号龙门架</el-button>
    <el-button type="primary" style="width: 200px;height: 100px;" @click="goBack(2)">二号龙门架</el-button>
    <el-button type="primary" style="width: 200px;height: 100px;" @click="goBack(3)">三号龙门架</el-button>
  </div>
</template>
 
<script>
export default {
  name: "temppage",
  methods: {
    goBack(index) {
      // 这里可以根据需要传递不同的参数
      // 例如,传递一个设备代码作为查询参数
      // 你可以根据按钮的不同,传递不同的参数
      // 这里假设你有一个设备代码的数组
      const deviceCodes = ["GT01", "GT02", "GT03"];
      const deviceCode = deviceCodes[index - 1]; // 根据按钮的索引获取设备代码
 
      this.$router.push({
        path: "/bigdata",
        query: { deviceCode: deviceCode }
      });
    }
  }
};
</script>
 
<style scoped>
.container {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(1, 1fr);
  gap: 15px;
  padding: 20px;
  background: #f8f9fa;
  justify-content: center;
  align-items: center;
  justify-items: center;
}
</style>