diff --git a/src/views/ofm/mroombooking_form.vue b/src/views/ofm/mroombooking_form.vue index ac2fcca6..ede39d11 100644 --- a/src/views/ofm/mroombooking_form.vue +++ b/src/views/ofm/mroombooking_form.vue @@ -68,7 +68,7 @@ 取消 ({{ ticketDetail.sn }}){{ ticketDetail.title }} + + {{ ticketDetail.create_by_name }} + {{ ticketDetail.state_.name }} diff --git a/src/views/wf/ticketd_b.vue b/src/views/wf/ticketd_b.vue index 7ecc3c6f..7f28467c 100644 --- a/src/views/wf/ticketd_b.vue +++ b/src/views/wf/ticketd_b.vue @@ -50,15 +50,17 @@ onMounted(async () => { const ticketId = ref(null); const actionShow = ref(false); const init = async () => { + actionShow.value = false; + transitions.value = []; if (props.ticket_ && props.ticket_.id) { + ticketId.value = props.ticket_.id; const isParticipant = (props.ticket_.participant_type === 1 && props.ticket_.participant === currentUser.value) || (props.ticket_.participant_type === 2 && props.ticket_.participant.includes(currentUser.value)) if (isParticipant) { actionShow.value = true; + transitions.value = await API.wf.ticket.ticketTransitions.req(ticketId.value); } - ticketId.value = props.ticket_.id; - transitions.value = await API.wf.ticket.ticketTransitions.req(ticketId.value); }else if (props.workflow_key !=null && props.workflow_key != undefined) { let res = await API.wf.workflow.initkey.req(props.workflow_key); actionShow.value = true