Nessuna descrizione
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

supportticket.js 747B

1234567891011121314151617181920212223242526272829
  1. function supportTicketNoInit(){
  2. let ticketId = null;
  3. INIT();
  4. function INIT(){
  5. ticketId = window.location.search.split("=")[1];
  6. getTicketData(ticketId);
  7. }
  8. async function getTicketData(id){
  9. let res = await API_SERVICES_ACTIONS.getAPIService(`apis/v4/anwisystems/integrations/products/getticketdetails/ticketno/${id}`);
  10. if(res.isError){
  11. toasterHelper("error",res.errorMsg,`toast-top-right`);
  12. return;
  13. }
  14. res = JSON.parse(res.response.result)[0];
  15. $('.description_support').html(res['Description']);
  16. $('.ticketidsupport').html(res['ticketno']);
  17. $('.raiseddate').html(res['Raised Date']);
  18. console.log(res);
  19. }
  20. }
  21. supportTicketNoInit();