wl-design-mobile 0.8.5 → 0.8.6
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/flow/comps/flow-util.js
CHANGED
|
@@ -58,9 +58,9 @@ export function getStatusText(status) {
|
|
|
58
58
|
export function getAuditResultClass(auditResult) {
|
|
59
59
|
const classMap = {
|
|
60
60
|
'30': 'pass',
|
|
61
|
-
'40': '
|
|
62
|
-
'50': '
|
|
63
|
-
'60': '
|
|
61
|
+
'40': 'return',
|
|
62
|
+
'50': 'reject',
|
|
63
|
+
'60': 'transfer'
|
|
64
64
|
}
|
|
65
65
|
return classMap[auditResult] || 'default'
|
|
66
66
|
}
|
|
@@ -73,9 +73,9 @@ export function getAuditResultClass(auditResult) {
|
|
|
73
73
|
export function getAuditResultText(auditResult) {
|
|
74
74
|
const textMap = {
|
|
75
75
|
'30': '同意',
|
|
76
|
-
'40': '
|
|
77
|
-
'50': '
|
|
78
|
-
'60': '
|
|
76
|
+
'40': '退回',
|
|
77
|
+
'50': '驳回',
|
|
78
|
+
'60': '转办'
|
|
79
79
|
}
|
|
80
80
|
return textMap[auditResult] || '审批'
|
|
81
81
|
}
|
|
@@ -88,9 +88,9 @@ export function getAuditResultText(auditResult) {
|
|
|
88
88
|
export function getAuditIcon(auditResult) {
|
|
89
89
|
const iconMap = {
|
|
90
90
|
'30': 'passed',
|
|
91
|
-
'40': '
|
|
92
|
-
'50': '
|
|
93
|
-
'60': '
|
|
91
|
+
'40': 'undo',
|
|
92
|
+
'50': 'cross',
|
|
93
|
+
'60': 'replay'
|
|
94
94
|
}
|
|
95
95
|
return iconMap[auditResult] || 'circle'
|
|
96
96
|
}
|
|
@@ -238,6 +238,7 @@ export default {
|
|
|
238
238
|
return this.enableCollapse && this.sortedFlowNodes.length > 4
|
|
239
239
|
},
|
|
240
240
|
shouldShowNode(index) {
|
|
241
|
+
if (!this.enableCollapse) return true
|
|
241
242
|
const total = this.sortedFlowNodes.length
|
|
242
243
|
if (total <= 4) return true
|
|
243
244
|
return index < 2 || index >= total - 2
|