From f645b8fbe8f3fd84825962895037aeccae282552 Mon Sep 17 00:00:00 2001 From: fangjiakai <450850793@qq.com> Date: Wed, 21 Feb 2024 10:48:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=AB=E9=A1=B9=E4=BD=9C=E4=B8=9A=E6=B5=81?= =?UTF-8?q?=E7=A8=8B=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../job_data/components/flow_chart.vue | 12 ++++++------ src/views/high/job_data/components/flow_chart.vue | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/views/confined_space/job_data/components/flow_chart.vue b/src/views/confined_space/job_data/components/flow_chart.vue index 883fdf7..be4f435 100644 --- a/src/views/confined_space/job_data/components/flow_chart.vue +++ b/src/views/confined_space/job_data/components/flow_chart.vue @@ -35,12 +35,12 @@ const props = defineProps({ const emits = defineEmits(["update:visible"]); const visible = useVModel(props, "visible", emits); const fnGetStatus = (step) => { - if (step.STATUS === 1) { - return "finish"; - } else if (step.STATUS < 0) { - return "error"; - } else if (step.CURRENT_STEP) { - return "process"; + if (step.SIGN_USER) { + return step.SIGN_USER; + } else if (step.FINISHED_SIGN_USER) { + return step.FINISHED_SIGN_USER; + } else if (step.ACT_USER_NAME) { + return step.ACT_USER_NAME; } }; diff --git a/src/views/high/job_data/components/flow_chart.vue b/src/views/high/job_data/components/flow_chart.vue index a701438..a09d4e8 100644 --- a/src/views/high/job_data/components/flow_chart.vue +++ b/src/views/high/job_data/components/flow_chart.vue @@ -35,12 +35,12 @@ const emits = defineEmits(["update:visible"]); const visible = useVModel(props, "visible", emits); const fnGetStatus = (step) => { - if (step.STATUS === 1) { - return "finish"; - } else if (step.STATUS < 0) { - return "error"; - } else if (step.CURRENT_STEP) { - return "process"; + if (step.SIGN_USER) { + return step.SIGN_USER; + } else if (step.FINISHED_SIGN_USER) { + return step.FINISHED_SIGN_USER; + } else if (step.ACT_USER_NAME) { + return step.ACT_USER_NAME; } };