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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
<template>
  <a-table :columns="columns" :data-source="dataSource" bordered :pagination="ipagination"
           :scroll="{y:189}" :customRow="customRow" :size="size" rowKey="docId">
 
  </a-table>
</template>
 
<script>
  import { JeecgListMixin } from '@/mixins/JeecgListMixin'
 
  export default {
    name: 'NcDocumentTableList',
    components: {},
    mixins: [JeecgListMixin],
    props: {
      size: {
        type: String
      }
    },
    data() {
      return {
        columns: [
          {
            title: '序号',
            dataIndex: 'rowIndex',
            key: 'rowIndex',
            width: 65,
            align: 'center',
            customRender: function(t, r, index) {
              return parseInt(index) + 1
            }
          },
          { title: '文件名称', dataIndex: 'docName', align: 'center' },
          { title: '代码版本', dataIndex: 'docAlias', align: 'center' },
          { title: '出库状态', dataIndex: 'pullStatus', align: 'center' },
          { title: '状  态', dataIndex: 'docStatus', align: 'center' },
          { title: '系统指定版本', dataIndex: 'publishVersion', align: 'center' },
          { title: '上传时间', dataIndex: 'createTime', align: 'center' }
        ],
        dataSource: [
          {
            'docId': '1876099281127645185',
            'docName': 'avatar2.jpg',
            'docAlias': null,
            'docCode': null,
            'docSuffix': 'jpg',
            'docStatus': 1,
            'publishFileId': '1876099281458995202',
            'publishVersion': 'a.1',
            'description': null,
            'createTime': '2025-01-06 10:51:40',
            'updateTime': null,
            'createUser': '1254966905669160962',
            'updateUser': null,
            'docClassCode': null,
            'pullStatus': 1,
            'pullUser': null,
            'attributionType': 5,
            'attributionId': '1868504592315248641',
            'classificationId': '1257965381181095938',
            'syncStatus': null
          },
          {
            'docId': '1876114720452943873',
            'docName': 'color.less',
            'docAlias': null,
            'docCode': null,
            'docSuffix': 'less',
            'docStatus': 1,
            'publishFileId': '1876114720582967297',
            'publishVersion': 'a.1',
            'description': null,
            'createTime': '2025-01-06 11:53:01',
            'updateTime': null,
            'createUser': '1254966905669160962',
            'updateUser': null,
            'docClassCode': null,
            'pullStatus': 1,
            'pullUser': null,
            'attributionType': 5,
            'attributionId': '1868504592315248641',
            'classificationId': '1257965381181095938',
            'syncStatus': null
          },
          {
            'docId': '1876114736512933889',
            'docName': 'index.html',
            'docAlias': null,
            'docCode': null,
            'docSuffix': 'html',
            'docStatus': 1,
            'publishFileId': '1876114736705871874',
            'publishVersion': 'a.1',
            'description': null,
            'createTime': '2025-01-06 11:53:05',
            'updateTime': null,
            'createUser': '1254966905669160962',
            'updateUser': null,
            'docClassCode': null,
            'pullStatus': 1,
            'pullUser': null,
            'attributionType': 5,
            'attributionId': '1868504592315248641',
            'classificationId': '1257965381181095938',
            'syncStatus': null
          },
          {
            'docId': '1876114746621206529',
            'docName': 'logo.png',
            'docAlias': null,
            'docCode': null,
            'docSuffix': 'png',
            'docStatus': 1,
            'publishFileId': '1876114746818338818',
            'publishVersion': 'a.1',
            'description': null,
            'createTime': '2025-01-06 11:53:07',
            'updateTime': null,
            'createUser': '1254966905669160962',
            'updateUser': null,
            'docClassCode': null,
            'pullStatus': 1,
            'pullUser': null,
            'attributionType': 5,
            'attributionId': '1868504592315248641',
            'classificationId': '1257965381181095938',
            'syncStatus': null
          },
          {
            'docId': '1876114758923100161',
            'docName': 'lxzn.png',
            'docAlias': null,
            'docCode': null,
            'docSuffix': 'png',
            'docStatus': 1,
            'publishFileId': '1876114759111843842',
            'publishVersion': 'a.1',
            'description': null,
            'createTime': '2025-01-06 11:53:10',
            'updateTime': null,
            'createUser': '1254966905669160962',
            'updateUser': null,
            'docClassCode': null,
            'pullStatus': 1,
            'pullUser': null,
            'attributionType': 5,
            'attributionId': '1868504592315248641',
            'classificationId': '1257965381181095938',
            'syncStatus': null
          },
          {
            'docId': '1876114776241381377',
            'docName': 'v2.js',
            'docAlias': null,
            'docCode': null,
            'docSuffix': 'js',
            'docStatus': 1,
            'publishFileId': '1876114776438513666',
            'publishVersion': 'a.1',
            'description': null,
            'createTime': '2025-01-06 11:53:14',
            'updateTime': null,
            'createUser': '1254966905669160962',
            'updateUser': null,
            'docClassCode': null,
            'pullStatus': 1,
            'pullUser': null,
            'attributionType': 5,
            'attributionId': '1868504592315248641',
            'classificationId': '1257965381181095938',
            'syncStatus': null
          }
        ],
        url: {
          list: ''
        }
      }
    },
    methods: {
      customRow(record) {
        return {
          on: {
            contextmenu: event => {
              event.preventDefault()
              this.$emit('handleTableContextMenuOpen', { ...record, param: 'document' })
            },
            click: () => {
              this.$bus.$emit('sendCurrentLevelInfo', record)
            }
          }
        }
      }
    }
  }
</script>
 
<style scoped>
 
</style>