lyh
6 天以前 73e6916dfb4956e733be0542bb3f8bf87fd89925
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
<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></td>
            </tr>
            <tr>
              <td>描述:</td>
              <td colspan="3">{{nodeList.list.description}}</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>