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; } };