lambo-design-bi 0.0.218 → 0.0.220

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lambo-design-bi",
3
- "version": "0.0.218",
3
+ "version": "0.0.220",
4
4
  "description": "Vue2 BI 数据可视化组件库",
5
5
  "main": "index.js",
6
6
  "author": "finch",
@@ -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.fileUrl && file.fileName) {
259
- this.previewFileUrl = file.fileUrl
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">无</span>
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">无</span>
35
+ <span v-if="internalCopyUsers.length === 0" class="empty-text"></span>
36
36
  </div>
37
37
  </div>
38
38
  </div>
@@ -74,9 +74,9 @@ export function getStatusText(status) {
74
74
  export function getAuditResultClass(auditResult) {
75
75
  const classMap = {
76
76
  '30': 'pass',
77
- '40': 'reject',
78
- '50': 'transfer',
79
- '60': 'return'
77
+ '40': 'return',
78
+ '50': 'reject',
79
+ '60': 'transfer',
80
80
  }
81
81
  return classMap[auditResult] || 'default'
82
82
  }
@@ -89,9 +89,9 @@ export function getAuditResultClass(auditResult) {
89
89
  export function getAuditResultText(auditResult) {
90
90
  const textMap = {
91
91
  '30': '同意',
92
- '40': '驳回',
93
- '50': '转办',
94
- '60': '退回'
92
+ '40': '退回',
93
+ '50': '驳回',
94
+ '60': '转办'
95
95
  }
96
96
  return textMap[auditResult] || '审批'
97
97
  }
@@ -104,9 +104,9 @@ export function getAuditResultText(auditResult) {
104
104
  export function getAuditIcon(auditResult) {
105
105
  const iconMap = {
106
106
  '30': 'md-checkmark',
107
- '40': 'md-close',
108
- '50': 'md-redo',
109
- '60': 'md-undo'
107
+ '40': 'md-undo',
108
+ '50': 'md-close',
109
+ '60': 'md-redo'
110
110
  }
111
111
  return iconMap[auditResult] || 'md-radio-button-off'
112
112
  }
@@ -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
- v-if="item.attachments && item.attachments.length > 0"
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
- :visible.sync="previewModalVisible"
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.fileUrl && file.fileName) {
224
- this.previewFileUrl = file.fileUrl
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.fileUrl && file.fileName) {
245
- this.previewFileUrl = file.fileUrl
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
  }