hejianhao
2025-04-16 dab2d210ca06c1faa514c6388fbd5de1ab355360
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
<template>
  <div class="box-a">
    <div class="nav">
      <el-button type="primary" size="medium" @click="$router.go(-1)"
        >返回</el-button
      >
    </div>
    
    <el-tabs v-model="activeName" type="card" @tab-click="handleClick">
      <el-tab-pane label="基础信息" name="house"><info :item="formData"></info></el-tab-pane>
      <!-- <el-tab-pane label="设备预警" name="user"
        ><device ref="userChild"></device
      ></el-tab-pane> -->
      <el-tab-pane label="体检数据" name="vehicle"
        ><healthtData :item="formData"></healthtData
      ></el-tab-pane>
    </el-tabs>
  </div>
</template>
<script>
import info from "./indexDetail_Info.vue";
import healthtData from "./indexDetail_HealthyData.vue";
import device from "./indexDetail_Device.vue";
export default {
  components: { info, device, healthtData },
  data() {
    return {
      activeName: "house",
      formData: {}
    };
  },
  created() {
    // this.init(this.$route.query.id);
    this.formData = this.$route.query;
  },
  mounted() {},
  methods: {
    init(id) {
      // this.$api.post("villagemanager/getVillage?villageId=" + id, "", e => {
      //   this.formData = e;
      // });
    },
    handleClick(tab, event) {
      switch (tab.name) {
        case "user": {
          // this.$refs.userChild.newMounted();
          break;
        }
        default: {
          // this.$refs.userChild.newDestroyed();
          break;
        }
      }
    }
  },
  watch: {},
  computed: {}
};
</script>
<style scoped lang="less">
.box-a {
  overflow: scroll;
}
.h1 {
  font-size: 18px;
  height: 40px;
  line-height: 40px;
  font-weight: 700;
}
.nav {
  padding: 20px 0;
  span {
    font-size: 18px;
    height: 40px;
    line-height: 40px;
    font-weight: 700;
    margin-right: 30px;
  }
}
 
.row {
  box-sizing: border-box;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
}
.col {
  height: 48px;
  line-height: 48px;
  min-width: 200px;
  border: solid 1px #d4dbe9;
  padding-right: 15px;
  margin: 10px 0 10px -1px;
}
 
.col:nth-child(1) {
  margin: 10px 0 10px 0px;
}
 
.col span {
  display: inline-block;
  height: 48px;
  background-color: #f3f7fa;
  color: #b3b6be;
  padding: 0 15px;
  margin-right: 15px;
  border-right: solid 1px #d4dbe9;
}
</style>