lyh
6 天以前 c60e141e9b43be2eb5122eaa7da13bc0cf3848cd
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
<template>
  <div style="height: 100%;">
    <el-tabs type="border-card" style="height: 100%;">
      <el-tab-pane label="设备属性">
        <el-row id="nodeInfoTable" :style="tabStyle">
          <table class="el-table"  style="text-align:center">
            <tr>
              <td>设备编号</td>
              <td>{{baseNode.list.deviceNo}}</td>
              <td>设备名称</td>
              <td>{{baseNode.list.deviceName}}</td>
            </tr>
            <tr>
              <td>数控系统</td>
              <td>{{baseNode.list.controlSystem}}</td>
              <td>设备型号</td>
              <td>{{baseNode.list.deviceModel}}</td>
            </tr>
            <tr>
              <td>链接IP</td>
              <td>{{baseNode.list.linkIp}}</td>
              <td>链接端口</td>
              <td>{{baseNode.list.linkPort}}</td>
            </tr>
            <tr>
              <td>创建人:</td>
              <td>{{baseNode.list.createUser}}</td>
              <td>创建时间:</td>
              <td>{{baseNode.list.createTime}}</td>
            </tr>
            <tr>
              <td>修改人:</td>
              <td>{{baseNode.list.updateUser}}</td>
              <td>修改时间:</td>
              <td>{{baseNode.list.updateTime}}</td>
            </tr>
          </table>
        </el-row>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>
 
<script>
    export default {
      name: "device_attribute_info",
      props:['baseNode'],
      data(){
        return{
          tabStyle:{
            height:'',
            overflow:'auto',
          },
        }
      },
      methods:{
        getTabHeight(){
          let h = document.getElementById('attributeTab').offsetHeight;
          this.tabStyle.height = h-100+'px';
        },
      },
      created(){
        window.addEventListener('resize', this.getTabHeight);
        this.getTabHeight();
      },
    }
</script>
 
<style scoped>
  .el-table tr td{
    border-bottom: 1px dashed #cccccc;
  }
</style>