| | |
| | | function flowNodeTagType(status?: string) { |
| | | if (status === "APPROVED") return "success"; |
| | | if (status === "REJECTED") return "danger"; |
| | | if (status === "CANCELLED") return "info"; |
| | | if (status === "PENDING") return "warning"; |
| | | return "info"; |
| | | } |
| | |
| | | function flowStatusClass(status?: string) { |
| | | if (status === "APPROVED") return "is-approved"; |
| | | if (status === "REJECTED") return "is-rejected"; |
| | | if (status === "CANCELLED") return "is-cancelled"; |
| | | if (status === "PENDING") return "is-pending"; |
| | | return "is-waiting"; |
| | | } |
| | |
| | | function flowNodeStatusText(status?: string) { |
| | | if (status === "APPROVED") return "已通过"; |
| | | if (status === "REJECTED") return "已拒绝"; |
| | | if (status === "CANCELLED") return "已取消"; |
| | | if (status === "PENDING") return "审批中"; |
| | | if (status === "WAITING") return "待处理"; |
| | | return status || "-"; |
| | |
| | | background: #f56c6c; |
| | | } |
| | | |
| | | .flow-marker.is-cancelled { |
| | | background: #c0c4cc; |
| | | } |
| | | |
| | | .flow-marker.is-pending { |
| | | background: #e6a23c; |
| | | } |