feat: base 优化ticketd
This commit is contained in:
parent
fbad9178ff
commit
3faf0fd760
|
|
@ -81,7 +81,7 @@ const ticketLog = ref([]);
|
||||||
const ticketId = ref(null);
|
const ticketId = ref(null);
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
// 立即处理初始值
|
// 立即处理初始值
|
||||||
if (props.ticket_ && Object.keys(props.ticket_).length > 0) {
|
if (props.ticket_ && props.ticket_.id) {
|
||||||
ticketId.value = props.ticket_.id
|
ticketId.value = props.ticket_.id
|
||||||
getTicketDetail()
|
getTicketDetail()
|
||||||
getTicketLog()
|
getTicketLog()
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@ onMounted(async () => {
|
||||||
const ticketId = ref(null);
|
const ticketId = ref(null);
|
||||||
const actionShow = ref(false);
|
const actionShow = ref(false);
|
||||||
const init = async () => {
|
const init = async () => {
|
||||||
if (props.ticket_ && Object.keys(props.ticket_).length > 0) {
|
if (props.ticket_ && props.ticket_.id) {
|
||||||
const isParticipant =
|
const isParticipant =
|
||||||
(props.ticket_.participant_type === 1 && props.ticket_.participant === currentUser.value) ||
|
(props.ticket_.participant_type === 1 && props.ticket_.participant === currentUser.value) ||
|
||||||
(props.ticket_.participant_type === 2 && props.ticket_.participant.includes(currentUser.value))
|
(props.ticket_.participant_type === 2 && props.ticket_.participant.includes(currentUser.value))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue