研发图纸文件管理系统-前端项目
he wei
2025-03-13 ec8d9f802eac6841165425b228ef56474636fa9a
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 class="">
    <table class="table">
      <tbody>
        <tr>
          <th colspan="4">软件基本信息</th>
        </tr>
        <tr>
          <th class="col-1">文件名称</th>
          <td colspan="3">{{ summarize.fileName }}</td>
        </tr>
        <tr>
          <th class="col-1">板号</th>
          <td colspan="3">{{ summarize.boardNumber }}</td>
        </tr>
        <tr>
          <th class="col-1">软件类型</th>
          <td colspan="3">{{ summarize.type }}</td>
        </tr>
        <tr>
          <th class="col-1">软件版本</th>
          <td>{{ summarize.version }}</td>
          <th class="col-3">软件基于版本</th>
          <td>{{ summarize.basedVersion }}</td>
        </tr>
        <tr>
          <th class="col-1">软件负责人</th>
          <td>{{ summarize.owner }}</td>
          <th class="col-3">归档日期</th>
          <td>{{ summarize.filingDate }}</td>
        </tr>
        <tr>
          <th colspan="4">软件适用机型</th>
        </tr>
        <tr v-for="(item, idx) in list" :key="idx">
          <th class="col-1">物料编码</th>
          <td>{{ item.parentCode }}</td>
          <th class="col-3">规格型号</th>
          <td>{{ item.parentModel }}</td>
        </tr>
        <tr>
          <th class="col-1">发布说明</th>
          <td colspan="3">{{ summarize.releaseNotes }}</td>
        </tr>
      </tbody>
    </table>
  </div>
</template>
 
<script>
export default {
  name: "",
  props: {
    info: {
      type: Array,
      default() {
        return [];
      },
    },
  },
  data() {
    return {};
  },
  computed: {
    list() {
      return this.info.map((v) => ({
        parentCode: v.applyMaterialCode,
        parentModel: v.applyModel,
      }));
    },
    summarize() {
      // console.log(this.info[0]);
      return this.info[0] || {};
    },
  },
  methods: {},
 
  mounted() {
    // console.log(this.summarize, 90909);
  },
};
</script>
 
<style lang="less" scoped>
.table {
  width: 100%;
  // table-layout: fixed;
  border-collapse: collapse;
  th,
  td {
    border: 1px #333 solid;
    padding: 4px;
  }
  td {
    color: #13c2c2;
  }
}
// .col-1,
// .col-3 {
//   // word-break:break-all;
//   width: 5.4em;
// }
</style>