lyh
2026-01-19 f60f18de3fa04a8f8ade71da232fed4bcef3766a
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
<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">
            <tr>
              <td width="15%">零件名称:</td>
              <td width="35%">{{nodeList.list.partsName}}</td>
              <td width="15%">零件代号:</td>
              <td width="35%">{{nodeList.list.partsCode}}</td>
            </tr>
            <tr>
              <td>零件型号:</td>
              <td>{{nodeList.list.partsModel}}</td>
              <td>物料编码:</td>
              <td>{{nodeList.list.materielCode}}</td>
            </tr>
            <tr>
              <td>材料:</td>
              <td>{{nodeList.list.materielDesp}}</td>
              <td>规格:</td>
              <td>{{nodeList.list.partsScale}}</td>
            </tr>
            <tr>
              <td>装配类型:</td>
              <td>{{nodeList.list.assembleType}}</td>
              <td>生产类型:</td>
              <td>{{nodeList.list.produceType}}</td>
            </tr>
            <tr>
              <td>处理类型:</td>
              <td>{{nodeList.list.processType}}</td>
              <td>结构类型:</td>
              <td>{{nodeList.list.structureType}}</td>
            </tr>
            <tr>
              <td>重量:</td>
              <td>{{nodeList.list.partsWeight}}</td>
              <td>描述:</td>
              <td>{{nodeList.list.description}}</td>
            </tr>
 
            <tr>
              <td>创建人:</td>
              <td>{{nodeList.list.createUser}}</td>
              <td>创建时间:</td>
              <td>{{nodeList.list.createTime}}</td>
            </tr>
 
            <tr>
              <td>修改人:</td>
              <td>{{nodeList.list.updateUser}}</td>
              <td>修改时间:</td>
              <td>{{nodeList.list.updateTime}}</td>
            </tr>
 
          </table>
        </el-row>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>
 
<script>
  export default {
    name: "part_attribute_info",
    props: ['nodeList'],
    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();
    },
    mounted() {
      window.addEventListener('resize', this.getTabHeight);
      this.getTabHeight();
    }
  }
</script>
 
<style scoped>
 
 
</style>
<style>
  .el-tabs__content {
    overflow: inherit;
  }
</style>