fixed the bug

pull/141/MERGE^2
hyh123a 2022-04-19 10:12:51 +08:00
parent 5c67daed62
commit 7988638473
2 changed files with 5 additions and 6 deletions

View File

@ -237,8 +237,7 @@ const TicketAggent = ({ setRedirect, setRedirectUrl, t }) => {
ticketTypes.map(ticketType => { ticketTypes.map(ticketType => {
if (ticketType.id == target.value) { if (ticketType.id == target.value) {
setSelectedTicketTypeName(ticketType.name); setSelectedTicketTypeName(ticketType.name);
console.log("onWorkflowTypeChange", ticketType.name, ticketType.id, target.value) console.log('onWorkflowTypeChange', ticketType.name, ticketType.id, target.value);
} }
}); });
}; };

View File

@ -110,11 +110,13 @@ const TicketApplication = ({ setRedirect, setRedirectUrl, t }) => {
let isResponseOK = false; let isResponseOK = false;
// Get Ticket List // Get Ticket List
fetch(APIBaseURL + '/ticket/list', { fetch(APIBaseURL + '/ticket/list', {
method: 'GET', method: 'POST',
headers: { headers: {
'Content-type': 'application/json' 'Content-type': 'application/json'
}, },
body: null body: JSON.stringify({
user_name: 'admin'
})
}) })
.then(response => { .then(response => {
console.log(response); console.log(response);
@ -275,7 +277,6 @@ const TicketApplication = ({ setRedirect, setRedirectUrl, t }) => {
setApplyModalIsShown(true); setApplyModalIsShown(true);
}; };
// Submit // Submit
let submitApplication = target => { let submitApplication = target => {
hiddenModal(); hiddenModal();
@ -314,7 +315,6 @@ const TicketApplication = ({ setRedirect, setRedirectUrl, t }) => {
}); });
}; };
let hiddenModal = () => { let hiddenModal = () => {
setApplyModalIsShown(false); setApplyModalIsShown(false);
}; };