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
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
<template>
  <div style="height: 100%;">
    <el-tabs type="border-card">
      <el-tab-pane label="工序属性">
        <el-row id="nodeInfoTable" :style="tabStyle">
          <table class="el-table one_list">
            <tr>
              <td >工序名称</td>
              <td >{{nodeList.list.processName}}</td>
            </tr>
            <tr>
              <td>工序号</td>
              <td>{{nodeList.list.processCode}}</td>
            </tr>
            <tr>
              <td>工艺编号</td>
              <td>{{nodeList.list.craftNo}}</td>
            </tr>
            <tr>
              <td>工序类型</td>
              <td>{{nodeList.list.processType}}</td>
            </tr>
            <tr>
              <td>加工设备型号</td>
              <td>{{nodeList.list.processingEquipmentModel}}</td>
            </tr>
            <tr>
              <td>加工设备类型</td>
              <td>{{nodeList.list.processingEquipmentOs}}</td>
            </tr>
            <tr>
              <td>加工设备编号</td>
              <td>{{nodeList.list.processingEquipmentCode}}</td>
            </tr>
            <tr>
              <td>工装编号</td>
              <td>{{nodeList.list.assembleStep}}</td>
            </tr>
            <tr>
              <td>工装名称</td>
              <td>{{nodeList.list.assembleName}}</td>
            </tr>
            <tr>
              <td>工艺规程版本</td>
              <td>{{nodeList.list.craftVersion}}</td>
            </tr>
            <tr>
              <td>设备类</td>
              <td>{{nodeList.list.deviceManagementName}}</td>
            </tr>
            <tr>
              <td>描述</td>
              <td>{{nodeList.list.description}}</td>
            </tr>
          </table>
        </el-row>
       </el-tab-pane>
    </el-tabs>
  </div>
</template>
 
<script>
    export default {
      name: "process_attribute_info",
      props:['nodeList'],
      data(){
        return{
          tabStyle:{
            height:'',
            overflow:'auto'
          }
        }
      },
      methods:{
        getTabHeight(){
          let h = document.getElementById('attributeTab').offsetHeight;
          this.tabStyle.height = h-110+'px'
        }
      },
      //初始化  模板渲染前调用
      created(){
        window.addEventListener('resize', this.getTabHeight());
        this.getTabHeight();
      },
      mounted(){
        window.addEventListener('resize', this.getTabHeight);
        this.getTabHeight();
      }
    }
</script>
 
<style >
  .el-tabs__content{
    overflow: inherit;
  }
  .el-table tr td{
    border-bottom: 1px dashed #cccccc;
  }
</style>