lambo-design-bi 0.0.218 → 0.0.219
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
CHANGED
|
@@ -118,6 +118,7 @@ import {
|
|
|
118
118
|
getStatusIcon,
|
|
119
119
|
getStatusClass
|
|
120
120
|
} from '../comps/flow-util.js'
|
|
121
|
+
import { fileGetUrl } from '../../../bi/widget/api/config'
|
|
121
122
|
|
|
122
123
|
export default {
|
|
123
124
|
name: 'LamboFlowApproval',
|
|
@@ -255,8 +256,8 @@ export default {
|
|
|
255
256
|
return this.sortedFlowNodes[index].status === 'processing'
|
|
256
257
|
},
|
|
257
258
|
handleAttachmentClick(file) {
|
|
258
|
-
if (file && file.
|
|
259
|
-
this.previewFileUrl = file.
|
|
259
|
+
if (file && file.fileId && file.fileName) {
|
|
260
|
+
this.previewFileUrl = fileGetUrl + file.fileId
|
|
260
261
|
this.previewFileName = file.fileName
|
|
261
262
|
this.previewModalVisible = true
|
|
262
263
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<Icon type="md-add"></Icon>
|
|
11
11
|
添加
|
|
12
12
|
</Button>
|
|
13
|
-
<span v-if="internalCopyUsers.length === 0" class="empty-text"
|
|
13
|
+
<span v-if="internalCopyUsers.length === 0" class="empty-text"></span>
|
|
14
14
|
</div>
|
|
15
15
|
<div v-else class="avatar-list">
|
|
16
16
|
<Tooltip v-for="(user, index) in displayUsers" :key="index" placement="top">
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
+{{ internalCopyUsers.length - maxDisplay }}
|
|
33
33
|
</div>
|
|
34
34
|
</Tooltip>
|
|
35
|
-
<span v-if="internalCopyUsers.length === 0" class="empty-text"
|
|
35
|
+
<span v-if="internalCopyUsers.length === 0" class="empty-text"></span>
|
|
36
36
|
</div>
|
|
37
37
|
</div>
|
|
38
38
|
</div>
|
|
@@ -54,20 +54,14 @@
|
|
|
54
54
|
<!-- 右侧内容 -->
|
|
55
55
|
<div class="content-col">
|
|
56
56
|
<!-- 节点头部信息(使用公共组件) -->
|
|
57
|
-
<FlowNodeHeader
|
|
58
|
-
:node-info="item"
|
|
59
|
-
:node-index="index"
|
|
60
|
-
/>
|
|
57
|
+
<FlowNodeHeader :node-info="item" :node-index="index" />
|
|
61
58
|
|
|
62
59
|
<!-- 审批详情卡片(使用公共组件) -->
|
|
63
60
|
<FlowNodeCard v-if="item.auditResult || item.auditComment || item.auditTime || item.applyDescription"
|
|
64
61
|
:node-info="item" :is-apply-node="index === 0">
|
|
65
62
|
<template slot="attachments">
|
|
66
|
-
<FlowAttachmentList
|
|
67
|
-
|
|
68
|
-
:attachments="item.attachments"
|
|
69
|
-
@click="handleAttachmentClick"
|
|
70
|
-
/>
|
|
63
|
+
<FlowAttachmentList v-if="item.attachments && item.attachments.length > 0"
|
|
64
|
+
:attachments="item.attachments" @click="handleAttachmentClick" />
|
|
71
65
|
</template>
|
|
72
66
|
</FlowNodeCard>
|
|
73
67
|
|
|
@@ -96,12 +90,8 @@
|
|
|
96
90
|
</div>
|
|
97
91
|
|
|
98
92
|
<!-- 附件预览弹窗(使用公共组件) -->
|
|
99
|
-
<FlowAttachmentModal
|
|
100
|
-
:
|
|
101
|
-
:file-url="previewFileUrl"
|
|
102
|
-
:file-name="previewFileName"
|
|
103
|
-
:modal-width="previewModalWidth"
|
|
104
|
-
/>
|
|
93
|
+
<FlowAttachmentModal :visible.sync="previewModalVisible" :file-url="previewFileUrl" :file-name="previewFileName"
|
|
94
|
+
:modal-width="previewModalWidth" />
|
|
105
95
|
</div>
|
|
106
96
|
</template>
|
|
107
97
|
|
|
@@ -115,6 +105,7 @@ import {
|
|
|
115
105
|
getStatusIcon,
|
|
116
106
|
getStatusClass
|
|
117
107
|
} from '../comps/flow-util.js'
|
|
108
|
+
import { fileGetUrl } from '../../../bi/widget/api/config'
|
|
118
109
|
|
|
119
110
|
export default {
|
|
120
111
|
name: 'LamboFlowDetail',
|
|
@@ -220,8 +211,8 @@ export default {
|
|
|
220
211
|
// 触发外部点击事件
|
|
221
212
|
this.$emit('attachment-click', file)
|
|
222
213
|
// 打开预览弹窗
|
|
223
|
-
if (file && file.
|
|
224
|
-
this.previewFileUrl = file.
|
|
214
|
+
if (file && file.fileId && file.fileName) {
|
|
215
|
+
this.previewFileUrl = fileGetUrl + file.fileId
|
|
225
216
|
this.previewFileName = file.fileName
|
|
226
217
|
this.previewModalVisible = true
|
|
227
218
|
} else {
|
|
@@ -283,10 +274,12 @@ export default {
|
|
|
283
274
|
}
|
|
284
275
|
|
|
285
276
|
@keyframes float {
|
|
277
|
+
|
|
286
278
|
0%,
|
|
287
279
|
100% {
|
|
288
280
|
transform: translateY(0);
|
|
289
281
|
}
|
|
282
|
+
|
|
290
283
|
50% {
|
|
291
284
|
transform: translateY(-4px);
|
|
292
285
|
}
|
|
@@ -377,10 +370,12 @@ export default {
|
|
|
377
370
|
}
|
|
378
371
|
|
|
379
372
|
@keyframes pulse {
|
|
373
|
+
|
|
380
374
|
0%,
|
|
381
375
|
100% {
|
|
382
376
|
box-shadow: 0 0 0 0 rgba(24, 144, 255, 0.4);
|
|
383
377
|
}
|
|
378
|
+
|
|
384
379
|
50% {
|
|
385
380
|
box-shadow: 0 0 0 8px rgba(24, 144, 255, 0);
|
|
386
381
|
}
|
|
@@ -77,6 +77,7 @@ import {
|
|
|
77
77
|
getStatusIcon,
|
|
78
78
|
getStatusClass
|
|
79
79
|
} from '../comps/flow-util.js'
|
|
80
|
+
import { fileGetUrl } from '../../../bi/widget/api/config'
|
|
80
81
|
|
|
81
82
|
export default {
|
|
82
83
|
name: 'LamboFlowSubmit',
|
|
@@ -241,8 +242,8 @@ export default {
|
|
|
241
242
|
this.attachments.splice(index, 1)
|
|
242
243
|
},
|
|
243
244
|
handleAttachmentClick(file) {
|
|
244
|
-
if (file && file.
|
|
245
|
-
this.previewFileUrl = file.
|
|
245
|
+
if (file && file.fileId && file.fileName) {
|
|
246
|
+
this.previewFileUrl = fileGetUrl + file.fileId
|
|
246
247
|
this.previewFileName = file.fileName
|
|
247
248
|
this.previewModalVisible = true
|
|
248
249
|
}
|