lyh
14 小时以前 b6247699693bdc200539f20851b3d2105fe8b674
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
<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 one_list">
            <tr>
              <td >产品名称</td>
              <td colspan="3">{{nodeList.list.productName}}</td>
            </tr>
            <tr>
              <td>产品型号</td>
              <td>{{nodeList.list.productModel}}</td>
            </tr>
            <tr>
              <td>产品代码</td>
              <td>{{nodeList.list.productNo}}</td>
            </tr>
            <tr>
              <td>创建人:</td>
              <td>{{nodeList.list.createUser}}</td>
            </tr>
            <tr>
              <td>创建时间:</td>
              <td>{{nodeList.list.createTime}}</td>
            </tr>
            <tr>
              <td>修改人:</td>
              <td>{{nodeList.list.updateUser}}</td>
            </tr>
            <tr>
              <td>修改时间:</td>
              <td>{{nodeList.list.updateTime}}</td>
            </tr>
            <!-- <tr>
              <td>状态</td>
              <td>{{statusmap[nodeList.list.productStatus]}}</td>
            </tr> -->
          </table>
        </el-row>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>
 
<script>
import * as SystemApi from "../../../base/api/system";
    export default {
      name: "product_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;
  }
    .el-table tr td{
      border-bottom: 1px dashed #cccccc;
    }
</style>