Compare commits
No commits in common. "454294302d7deaf2e9d066288d9d54d5005af64a" and "7f21f2209f475f8afe425db66b5f3657885e6126" have entirely different histories.
454294302d
...
7f21f2209f
|
|
@ -79,18 +79,12 @@ const ticketDetail = ref({
|
||||||
});
|
});
|
||||||
const ticketLog = ref([]);
|
const ticketLog = ref([]);
|
||||||
const ticketId = ref(null);
|
const ticketId = ref(null);
|
||||||
watch(
|
|
||||||
() => props.ticket_,
|
|
||||||
async (newVal) => {
|
|
||||||
if (newVal && Object.keys(newVal).length > 0) {
|
|
||||||
ticketId.value = newVal.id
|
|
||||||
getTicketDetail()
|
|
||||||
getTicketLog()
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{ immediate: false }
|
|
||||||
)
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
if (props.ticket_) {
|
||||||
|
ticketId.value = props.ticket_.id;
|
||||||
|
getTicketDetail();
|
||||||
|
getTicketLog();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
const emit = defineEmits(['success']);
|
const emit = defineEmits(['success']);
|
||||||
const refreshTicket = async () => {
|
const refreshTicket = async () => {
|
||||||
|
|
@ -109,6 +103,7 @@ const getTicketDetail = () => {
|
||||||
if (isCreator) {
|
if (isCreator) {
|
||||||
isOwn.value = true
|
isOwn.value = true
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue