vue2-client 1.15.61 → 1.15.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +110 -110
- package/src/base-client/components/common/XButtons/XButtons.vue +3 -12
- package/src/base-client/components/his/XTextCard/XTextCard.vue +207 -207
- package/src/base-client/components/his/threeTestOrders/editor.vue +111 -111
- package/src/components/FileImageItem/FileItem.vue +321 -305
- package/src/pages/WorkflowDetail/WorkflowDetail.vue +391 -379
- package/src/pages/WorkflowDetail/WorkflowPageDetail/worklog.vue +97 -0
- package/.history/public/his/editor/editor_20250606134713.html +0 -51
- package/.history/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox_20250527173925.vue +0 -509
- package/.history/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox_20250527174316.vue +0 -524
- package/.history/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox_20250527174419.vue +0 -524
- package/.history/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox_20250527174422.vue +0 -524
- package/.history/src/base-client/components/common/XAddReport/XAddReport_20250611172825.vue +0 -207
- package/.history/src/base-client/components/common/XAddReport/XAddReport_20250611172945.vue +0 -211
- package/.history/src/base-client/components/common/XAddReport/XAddReport_20250611172949.vue +0 -212
- package/.history/src/base-client/components/common/XAddReport/XAddReport_20250611173010.vue +0 -212
- package/.history/src/base-client/components/common/XForm/XFormItem_20250508134122.vue +0 -1320
- package/.history/src/base-client/components/common/XForm/XFormItem_20250527171604.vue +0 -1332
- package/.history/src/base-client/components/common/XForm/XFormItem_20250527171613.vue +0 -1331
- package/.history/src/base-client/components/common/XForm/XFormItem_20250527171703.vue +0 -1331
- package/.history/src/base-client/components/common/XForm/XFormItem_20250527171720.vue +0 -1331
- package/.history/src/base-client/components/common/XForm/XFormItem_20250527174327.vue +0 -1339
- package/.history/src/base-client/components/common/XReportGrid/XReportTrGroup_20250612092804.vue +0 -731
- package/.history/src/base-client/components/common/XReportGrid/XReportTrGroup_20250612112546.vue +0 -748
- package/.history/src/base-client/components/common/XReportGrid/XReportTrGroup_20250612113808.vue +0 -748
- package/.history/src/base-client/components/common/XReportGrid/XReport_20250612115237.vue +0 -1071
- package/.history/src/base-client/components/common/XReportGrid/XReport_20250612115346.vue +0 -1078
- package/.history/src/base-client/components/common/XReportGrid/XReport_20250612115350.vue +0 -1077
- package/.history/src/base-client/components/common/XReportGrid/XReport_20250612115415.vue +0 -1077
- package/.history/src/base-client/components/common/XReportGrid/XReport_20250612115429.vue +0 -1077
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611091619.vue +0 -442
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611092547.vue +0 -442
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611092552.vue +0 -442
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611092744.vue +0 -475
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611092955.vue +0 -475
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611092957.vue +0 -475
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611095652.vue +0 -477
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611095701.vue +0 -477
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611095704.vue +0 -477
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100005.vue +0 -473
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100011.vue +0 -473
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100014.vue +0 -473
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100833.vue +0 -473
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100853.vue +0 -473
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100940.vue +0 -473
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101011.vue +0 -473
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101013.vue +0 -473
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101014.vue +0 -473
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101159.vue +0 -473
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101238.vue +0 -474
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101240.vue +0 -474
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101242.vue +0 -474
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101404.vue +0 -472
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101410.vue +0 -472
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101459.vue +0 -472
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101500.vue +0 -472
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101502.vue +0 -472
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101504.vue +0 -472
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101610.vue +0 -501
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101700.vue +0 -501
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101702.vue +0 -501
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101741.vue +0 -504
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101749.vue +0 -504
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101759.vue +0 -504
- package/.history/src/base-client/components/his/XHisEditor/dome_20250611091349.vue +0 -131
- package/.history/src/base-client/components/his/XHisEditor/dome_20250611105854.vue +0 -160
- package/.history/src/base-client/components/his/XHisEditor/dome_20250611105902.vue +0 -160
- package/.history/src/base-client/components/his/XHisEditor/dome_20250611105924.vue +0 -160
- package/.history/src/base-client/components/his/XHisEditor/dome_20250611105932.vue +0 -158
- package/.history/src/base-client/components/his/XList/XList_20250609135848.vue +0 -173
- package/.history/src/base-client/components/his/XList/XList_20250609141026.vue +0 -222
- package/.history/src/base-client/components/his/XList/XList_20250609141035.vue +0 -229
- package/.history/src/base-client/components/his/XList/XList_20250609141103.vue +0 -229
- package/.history/src/base-client/components/his/XList/XList_20250609141105.vue +0 -229
- package/.history/src/base-client/components/his/XList/XList_20250609141334.vue +0 -241
- package/.history/src/base-client/components/his/XList/XList_20250609141404.vue +0 -241
- package/.history/src/base-client/components/his/XList/XList_20250609141406.vue +0 -241
- package/.history/src/base-client/components/his/XList/XList_20250609141801.vue +0 -245
- package/.history/src/base-client/components/his/XList/XList_20250609142033.vue +0 -245
- package/.history/src/base-client/components/his/XList/XList_20250609142038.vue +0 -245
- package/.history/src/base-client/components/his/XList/XList_20250609142435.vue +0 -255
- package/.history/src/base-client/components/his/XList/XList_20250609142503.vue +0 -255
- package/.history/src/base-client/components/his/XList/XList_20250609142504.vue +0 -255
- package/.history/src/base-client/components/his/XList/XList_20250609143012.vue +0 -270
- package/.history/src/base-client/components/his/XList/XList_20250609143044.vue +0 -270
- package/.history/src/base-client/components/his/XList/XList_20250609143046.vue +0 -270
- package/.history/src/base-client/components/his/XList/XList_20250609143210.vue +0 -270
- package/.history/src/base-client/components/his/XList/XList_20250609144339.vue +0 -294
- package/.history/src/base-client/components/his/XList/XList_20250609144410.vue +0 -294
- package/.history/src/base-client/components/his/XList/XList_20250609144412.vue +0 -294
- package/.history/src/base-client/components/his/XList/XList_20250609144647.vue +0 -303
- package/.history/src/base-client/components/his/XList/XList_20250609144716.vue +0 -303
- package/.history/src/base-client/components/his/XList/XList_20250609144729.vue +0 -303
- package/.history/src/base-client/components/his/XList/XList_20250609151232.vue +0 -288
- package/.history/src/base-client/components/his/XList/XList_20250609151247.vue +0 -288
- package/.history/src/base-client/components/his/XList/XList_20250609151252.vue +0 -288
- package/.history/src/base-client/components/his/XList/XList_20250609161220.vue +0 -317
- package/.history/src/base-client/components/his/XList/XList_20250609161258.vue +0 -306
- package/.history/src/base-client/components/his/XList/XList_20250609161319.vue +0 -306
- package/.history/src/base-client/components/his/XList/XList_20250609161320.vue +0 -306
- package/.history/src/base-client/components/his/XList/XList_20250704142024.vue +0 -495
- package/.history/src/base-client/components/his/XList/XList_20250704142033.vue +0 -495
- package/.history/src/base-client/components/his/XList/XList_20250704142040.vue +0 -494
- package/.history/src/base-client/components/his/XList/XList_20250704142211.vue +0 -494
- package/.history/src/base-client/components/his/XList/XList_20250704142214.vue +0 -494
- package/.history/src/base-client/components/his/XList/XList_20250704143010.vue +0 -495
- package/.history/src/base-client/components/his/XList/XList_20250704143203.vue +0 -495
- package/.history/src/base-client/components/his/XList/XList_20250707095101.vue +0 -492
- package/.history/src/base-client/components/his/XList/XList_20250707100152.vue +0 -492
- package/.history/src/base-client/components/his/XList/XList_20250707100200.vue +0 -485
- package/.history/src/base-client/components/his/XList/XList_20250707100208.vue +0 -485
- package/.history/src/base-client/components/his/XList/XList_20250707100259.vue +0 -488
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250609151519.vue +0 -222
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250612155514.vue +0 -183
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250612155556.vue +0 -183
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250612155600.vue +0 -183
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250612181609.vue +0 -206
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250612181629.vue +0 -209
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613095553.vue +0 -242
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613095610.vue +0 -242
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613095612.vue +0 -242
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613100041.vue +0 -251
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613100047.vue +0 -251
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613100054.vue +0 -250
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613100105.vue +0 -250
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613100107.vue +0 -250
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613100114.vue +0 -250
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613140844.vue +0 -238
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613140910.vue +0 -238
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613140912.vue +0 -238
- package/Users/objecrt/af-vue2-client/src/base-client/components/his/XShiftSchedule/XShiftSchedule.vue +0 -36
- package/src/base-client/components/TreeList/TreeList.vue +0 -91
- package/src/base-client/components/TreeList/TreeNode.vue +0 -81
- package/src/base-client/components/common/XCardSet/XTiltle.vue +0 -191
@@ -1,305 +1,321 @@
|
|
1
|
-
<template>
|
2
|
-
<div class="file-list">
|
3
|
-
<div class="file-grid">
|
4
|
-
<div v-for="file in files" :key="file.id" class="file-item">
|
5
|
-
<div class="file-info">
|
6
|
-
<div class="file-icon-wrapper" :class="getFileTypeClass(file.name)">
|
7
|
-
<
|
8
|
-
|
9
|
-
|
10
|
-
<
|
11
|
-
<
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
<span class="file-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
<a-tooltip
|
27
|
-
<a-button type="link" class="action-btn
|
28
|
-
<a-icon type="
|
29
|
-
</a-button>
|
30
|
-
</a-tooltip>
|
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
|
-
this.previewPath =
|
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
|
-
&.file-type-
|
197
|
-
background: linear-gradient(135deg, #
|
198
|
-
}
|
199
|
-
&.file-type-
|
200
|
-
background: linear-gradient(135deg, #
|
201
|
-
}
|
202
|
-
&.file-type-
|
203
|
-
background: linear-gradient(135deg, #
|
204
|
-
}
|
205
|
-
&.file-type-
|
206
|
-
background: linear-gradient(135deg, #
|
207
|
-
}
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
1
|
+
<template>
|
2
|
+
<div class="file-list">
|
3
|
+
<div class="file-grid">
|
4
|
+
<div v-for="file in files" :key="file.id" class="file-item">
|
5
|
+
<div class="file-info">
|
6
|
+
<div class="file-icon-wrapper" :class="getFileTypeClass(file.name)">
|
7
|
+
<template v-if="isImageType(file.name)">
|
8
|
+
<img :src="file.url" class="file-thumb" />
|
9
|
+
</template>
|
10
|
+
<template v-else>
|
11
|
+
<a-icon :type="getFileIcon(file.name)" class="file-icon" />
|
12
|
+
</template>
|
13
|
+
</div>
|
14
|
+
<div class="file-content">
|
15
|
+
<div class="file-header">
|
16
|
+
<span class="file-name">{{ file.real_name ? file.real_name : file.name }}</span>
|
17
|
+
<span class="file-type">{{ getFileType(file.name) }}</span>
|
18
|
+
</div>
|
19
|
+
<div class="file-footer">
|
20
|
+
<span class="file-size" v-if="file.size">{{ formatFileSize(file.size) }}</span>
|
21
|
+
<span class="file-time" v-if="file.upload_time">{{ file.upload_time }}</span>
|
22
|
+
</div>
|
23
|
+
</div>
|
24
|
+
</div>
|
25
|
+
<div class="file-actions">
|
26
|
+
<a-tooltip title="预览文件">
|
27
|
+
<a-button type="link" class="action-btn preview-btn" @click="handlePreview(file.url)">
|
28
|
+
<a-icon type="eye" />
|
29
|
+
</a-button>
|
30
|
+
</a-tooltip>
|
31
|
+
<a-tooltip v-if="downloadable" title="下载文件">
|
32
|
+
<a-button type="link" class="action-btn download-btn" @click="download(file)">
|
33
|
+
<a-icon type="download" />
|
34
|
+
</a-button>
|
35
|
+
</a-tooltip>
|
36
|
+
</div>
|
37
|
+
</div>
|
38
|
+
</div>
|
39
|
+
<!-- 文件预览弹窗 -->
|
40
|
+
<a-modal
|
41
|
+
v-model="previewVisible"
|
42
|
+
:footer="null"
|
43
|
+
:dialog-style="{ top: '20px' }"
|
44
|
+
width="85%"
|
45
|
+
:z-index="1001"
|
46
|
+
title="文件预览"
|
47
|
+
@cancel="handlePreviewClose"
|
48
|
+
>
|
49
|
+
<file-preview :path="previewPath" />
|
50
|
+
</a-modal>
|
51
|
+
</div>
|
52
|
+
</template>
|
53
|
+
|
54
|
+
<script>
|
55
|
+
import FilePreview from '@vue2-client/components/FilePreview'
|
56
|
+
|
57
|
+
export default {
|
58
|
+
name: 'FileImageItem',
|
59
|
+
components: {
|
60
|
+
FilePreview
|
61
|
+
},
|
62
|
+
props: {
|
63
|
+
files: {
|
64
|
+
type: Array,
|
65
|
+
required: true
|
66
|
+
},
|
67
|
+
downloadable: {
|
68
|
+
type: Boolean,
|
69
|
+
required: false,
|
70
|
+
default: true
|
71
|
+
}
|
72
|
+
},
|
73
|
+
data () {
|
74
|
+
return {
|
75
|
+
previewVisible: false,
|
76
|
+
previewPath: ''
|
77
|
+
}
|
78
|
+
},
|
79
|
+
methods: {
|
80
|
+
handlePreview (path) {
|
81
|
+
this.previewPath = path
|
82
|
+
this.previewVisible = true
|
83
|
+
},
|
84
|
+
handlePreviewClose () {
|
85
|
+
this.previewVisible = false
|
86
|
+
this.previewPath = ''
|
87
|
+
},
|
88
|
+
download (file) {
|
89
|
+
const a = document.createElement('a')
|
90
|
+
a.href = file.url
|
91
|
+
a.download = file.name
|
92
|
+
a.click()
|
93
|
+
},
|
94
|
+
formatFileSize (size) {
|
95
|
+
if (!size) return ''
|
96
|
+
// 如果小于1M,转换为KB显示
|
97
|
+
if (size < 1) {
|
98
|
+
const kbSize = size * 1024
|
99
|
+
return `${kbSize.toFixed(1)} KB`
|
100
|
+
}
|
101
|
+
// 大于等于1M,保持M为单位
|
102
|
+
return `${size.toFixed(1)} MB`
|
103
|
+
},
|
104
|
+
getFileType (filename) {
|
105
|
+
const ext = filename.split('.').pop().toLowerCase()
|
106
|
+
const typeMap = {
|
107
|
+
pdf: 'PDF文档',
|
108
|
+
doc: 'Word文档',
|
109
|
+
docx: 'Word文档',
|
110
|
+
xls: 'Excel表格',
|
111
|
+
xlsx: 'Excel表格',
|
112
|
+
ppt: 'PPT演示',
|
113
|
+
pptx: 'PPT演示',
|
114
|
+
jpg: '图片',
|
115
|
+
jpeg: '图片',
|
116
|
+
png: '图片',
|
117
|
+
gif: '图片',
|
118
|
+
txt: '文本文件',
|
119
|
+
zip: '压缩文件',
|
120
|
+
rar: '压缩文件'
|
121
|
+
}
|
122
|
+
return typeMap[ext] || '文件'
|
123
|
+
},
|
124
|
+
getFileIcon (filename) {
|
125
|
+
const ext = filename.split('.').pop().toLowerCase()
|
126
|
+
const iconMap = {
|
127
|
+
pdf: 'file-pdf',
|
128
|
+
doc: 'file-word',
|
129
|
+
docx: 'file-word',
|
130
|
+
xls: 'file-excel',
|
131
|
+
xlsx: 'file-excel',
|
132
|
+
ppt: 'file-ppt',
|
133
|
+
pptx: 'file-ppt',
|
134
|
+
jpg: 'file-image',
|
135
|
+
jpeg: 'file-image',
|
136
|
+
png: 'file-image',
|
137
|
+
gif: 'file-image',
|
138
|
+
txt: 'file-text',
|
139
|
+
zip: 'file-zip',
|
140
|
+
rar: 'file-zip'
|
141
|
+
}
|
142
|
+
return iconMap[ext] || 'file'
|
143
|
+
},
|
144
|
+
getFileTypeClass (filename) {
|
145
|
+
const ext = filename.split('.').pop().toLowerCase()
|
146
|
+
return `file-type-${ext}`
|
147
|
+
},
|
148
|
+
isImageType (filename) {
|
149
|
+
const ext = filename.split('.').pop().toLowerCase()
|
150
|
+
return ['jpg', 'jpeg', 'png', 'gif'].includes(ext)
|
151
|
+
}
|
152
|
+
}
|
153
|
+
}
|
154
|
+
</script>
|
155
|
+
|
156
|
+
<style lang="less" scoped>
|
157
|
+
.file-list {
|
158
|
+
.file-grid {
|
159
|
+
display: grid;
|
160
|
+
grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
|
161
|
+
gap: 16px;
|
162
|
+
}
|
163
|
+
|
164
|
+
.file-item {
|
165
|
+
display: flex;
|
166
|
+
align-items: center;
|
167
|
+
justify-content: space-between;
|
168
|
+
padding: 16px;
|
169
|
+
background: #fff;
|
170
|
+
border-radius: 12px;
|
171
|
+
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
172
|
+
border: 1px solid rgba(0, 0, 0, 0.06);
|
173
|
+
|
174
|
+
&:hover {
|
175
|
+
transform: translateY(-2px);
|
176
|
+
border-color: @primary-2;
|
177
|
+
background: rgba(24, 144, 255, 0.02);
|
178
|
+
}
|
179
|
+
|
180
|
+
.file-info {
|
181
|
+
display: flex;
|
182
|
+
align-items: center;
|
183
|
+
flex: 1;
|
184
|
+
min-width: 0;
|
185
|
+
|
186
|
+
.file-icon-wrapper {
|
187
|
+
display: flex;
|
188
|
+
align-items: center;
|
189
|
+
justify-content: center;
|
190
|
+
width: 48px;
|
191
|
+
height: 48px;
|
192
|
+
margin-right: 16px;
|
193
|
+
border-radius: 12px;
|
194
|
+
transition: all 0.3s;
|
195
|
+
|
196
|
+
&.file-type-pdf {
|
197
|
+
background: linear-gradient(135deg, #ff4d4f, #ff7875);
|
198
|
+
}
|
199
|
+
&.file-type-doc, &.file-type-docx {
|
200
|
+
background: linear-gradient(135deg, #1890ff, #69c0ff);
|
201
|
+
}
|
202
|
+
&.file-type-xls, &.file-type-xlsx {
|
203
|
+
background: linear-gradient(135deg, #52c41a, #95de64);
|
204
|
+
}
|
205
|
+
&.file-type-ppt, &.file-type-pptx {
|
206
|
+
background: linear-gradient(135deg, #fa8c16, #ffc069);
|
207
|
+
}
|
208
|
+
&.file-type-jpg, &.file-type-jpeg, &.file-type-png, &.file-type-gif {
|
209
|
+
background: linear-gradient(135deg, #722ed1, #b37feb);
|
210
|
+
}
|
211
|
+
&.file-type-txt {
|
212
|
+
background: linear-gradient(135deg, #13c2c2, #5cdbd3);
|
213
|
+
}
|
214
|
+
&.file-type-zip, &.file-type-rar {
|
215
|
+
background: linear-gradient(135deg, #eb2f96, #ff85c0);
|
216
|
+
}
|
217
|
+
|
218
|
+
.file-icon {
|
219
|
+
font-size: 24px;
|
220
|
+
color: #fff;
|
221
|
+
}
|
222
|
+
.file-thumb {
|
223
|
+
width: 40px;
|
224
|
+
height: 40px;
|
225
|
+
object-fit: cover;
|
226
|
+
border-radius: 8px;
|
227
|
+
box-shadow: 0 1px 4px rgba(0,0,0,0.08);
|
228
|
+
}
|
229
|
+
}
|
230
|
+
|
231
|
+
.file-content {
|
232
|
+
display: flex;
|
233
|
+
flex-direction: column;
|
234
|
+
min-width: 0;
|
235
|
+
flex: 1;
|
236
|
+
|
237
|
+
.file-header {
|
238
|
+
display: flex;
|
239
|
+
align-items: center;
|
240
|
+
margin-bottom: 4px;
|
241
|
+
|
242
|
+
.file-name {
|
243
|
+
color: rgba(0, 0, 0, 0.85);
|
244
|
+
font-size: 15px;
|
245
|
+
font-weight: 500;
|
246
|
+
overflow: hidden;
|
247
|
+
text-overflow: ellipsis;
|
248
|
+
white-space: nowrap;
|
249
|
+
margin-right: 8px;
|
250
|
+
width: 0;
|
251
|
+
flex: 1;
|
252
|
+
}
|
253
|
+
|
254
|
+
.file-type {
|
255
|
+
color: rgba(0, 0, 0, 0.45);
|
256
|
+
font-size: 12px;
|
257
|
+
padding: 2px 6px;
|
258
|
+
background: rgba(0, 0, 0, 0.04);
|
259
|
+
border-radius: 4px;
|
260
|
+
}
|
261
|
+
}
|
262
|
+
|
263
|
+
.file-footer {
|
264
|
+
display: flex;
|
265
|
+
align-items: center;
|
266
|
+
color: rgba(0, 0, 0, 0.45);
|
267
|
+
font-size: 12px;
|
268
|
+
|
269
|
+
.file-size {
|
270
|
+
margin-right: 12px;
|
271
|
+
}
|
272
|
+
|
273
|
+
.file-time {
|
274
|
+
position: relative;
|
275
|
+
padding-left: 12px;
|
276
|
+
|
277
|
+
&::before {
|
278
|
+
content: '';
|
279
|
+
position: absolute;
|
280
|
+
left: 0;
|
281
|
+
top: 50%;
|
282
|
+
transform: translateY(-50%);
|
283
|
+
width: 4px;
|
284
|
+
height: 4px;
|
285
|
+
background: rgba(0, 0, 0, 0.25);
|
286
|
+
border-radius: 50%;
|
287
|
+
}
|
288
|
+
}
|
289
|
+
}
|
290
|
+
}
|
291
|
+
}
|
292
|
+
|
293
|
+
.file-actions {
|
294
|
+
display: flex;
|
295
|
+
align-items: center;
|
296
|
+
margin-left: 16px;
|
297
|
+
|
298
|
+
.action-btn {
|
299
|
+
width: 36px;
|
300
|
+
height: 36px;
|
301
|
+
padding: 0;
|
302
|
+
margin-left: 8px;
|
303
|
+
border-radius: 8px;
|
304
|
+
color: rgba(0, 0, 0, 0.45);
|
305
|
+
background: transparent;
|
306
|
+
transition: all 0.3s;
|
307
|
+
|
308
|
+
&:hover {
|
309
|
+
color: #fff;
|
310
|
+
background: @primary-color;
|
311
|
+
transform: scale(1.05);
|
312
|
+
}
|
313
|
+
|
314
|
+
.anticon {
|
315
|
+
font-size: 16px;
|
316
|
+
}
|
317
|
+
}
|
318
|
+
}
|
319
|
+
}
|
320
|
+
}
|
321
|
+
</style>
|