Skip to content

Commit 02ec268

Browse files
committed
style: billboard end color
1 parent 6c3b872 commit 02ec268

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

  • frontend/packages/web/src/components/business/crm-stage-board

frontend/packages/web/src/components/business/crm-stage-board/list.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,12 @@
106106
const { t } = useI18n();
107107
108108
const stageColor = computed(() => {
109-
const isSuccess = props.stage?.type === 'END' && String(props.stage?.rate) === '100';
110-
const isFail = props.stage?.type === 'END' && String(props.stage?.rate) === '0';
109+
const isSuccess =
110+
(props.stage?.type === 'END' && String(props.stage?.rate) === '100') ||
111+
(props.stage?.type === 'END' && ['COMPLETED', 'ARCHIVED'].includes(props.stage.id));
112+
const isFail =
113+
(props.stage?.type === 'END' && String(props.stage?.rate) === '0') ||
114+
(props.stage?.type === 'END' && ['VOIDED'].includes(props.stage.id));
111115
112116
if (isSuccess) {
113117
return 'success';

0 commit comments

Comments
 (0)