diff --git a/src/api/05_command/api.command.ts b/src/api/05_command/api.command.ts new file mode 100644 index 00000000..74be17ad --- /dev/null +++ b/src/api/05_command/api.command.ts @@ -0,0 +1,6 @@ +import env from "../index"; +const order = `${env.API_URI}/order`; + +export default { + commandType: `${order}/order-type`, +}; diff --git a/src/app.config.ts b/src/app.config.ts index 9dfa43c6..f59817cf 100644 --- a/src/app.config.ts +++ b/src/app.config.ts @@ -43,6 +43,9 @@ import development from "./api/15_development/api.development"; /** API BackUp/*/ import backup from "./api/04_system/api.backup"; +/** API Command/*/ +import command from "./api/05_command/api.command"; + // environment variables export const compettitivePanel = import.meta.env.VITE_COMPETITIVE_EXAM_PANEL; export const qualifyDisableExamPanel = import.meta.env @@ -110,6 +113,8 @@ const API = { ...development, /** backup*/ ...backup, + /** command*/ + ...command, }; export default { diff --git a/src/modules/05_command/components/ListOrder.vue b/src/modules/05_command/components/ViewPdf.vue similarity index 90% rename from src/modules/05_command/components/ListOrder.vue rename to src/modules/05_command/components/ViewPdf.vue index 56158286..d087bcc5 100644 --- a/src/modules/05_command/components/ListOrder.vue +++ b/src/modules/05_command/components/ViewPdf.vue @@ -50,7 +50,6 @@ function backPage() { const showDocument = (url: any) => { const pdfData = usePDF(url); - console.log("🚀 ~ showDocument ~ pdfData:", pdfData); setTimeout(() => { pdfSrc.value = pdfData.pdf.value; numOfPages.value = pdfData.pages.value; @@ -64,7 +63,7 @@ watch( showLoader(); setTimeout(() => { const url = - "https://s3cluster.frappet.com/bma-ehr-fpt/b1638139-0753-45c7-adc4-c9824290a031?AWSAccessKeyId=frappet&Expires=1725631100&Signature=j5k81k0ofHDidwsSfiGz%2BpL3igA%3D"; + "https://s3cluster.frappet.com/public/template-command.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=A3O4SZ1Q1L0A2SPWLMDY%2F20240909%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240909T064638Z&X-Amz-Expires=604800&X-Amz-Security-Token=eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJhY2Nlc3NLZXkiOiJBM080U1oxUTFMMEEyU1BXTE1EWSIsImV4cCI6MTcyNTkwNzE4MiwicGFyZW50IjoiZnJhcHBldCJ9.4opHdRH9VegUbtcHsIucy-SpWyboCcuhg2jjtLT4Ypvg2Yg8WvvLoyL92-IabqEYlNvv_sMJMa7P8oQkMqpsSA&X-Amz-SignedHeaders=host&versionId=null&X-Amz-Signature=fce8a76e6d5d3e83eac102402b07ba2a8ac8c2a1e0a055f1d8a5ecc74434c0e0"; showDocument(url); hideLoader(); }, 1000); @@ -73,6 +72,7 @@ watch( { immediate: true } ); +