Refactoring code module 07_insignia

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-09-25 16:44:07 +07:00
parent 208d867dfd
commit 6fb6024f53
31 changed files with 1158 additions and 2444 deletions

View file

@ -1,19 +1,18 @@
<script setup lang="ts">
import { ref } from "vue";
import { useQuasar } from "quasar";
import { useCounterMixin } from "@/stores/mixin";
import http from "@/plugins/http";
import config from "@/app.config";
import { useQuasar } from "quasar";
import type { Optionround } from "@/modules/07_insignia/interface/index/Main";
/**import Stores */
import { useCounterMixin } from "@/stores/mixin";
/** use Store*/
/** use*/
const $q = useQuasar();
const mixin = useCounterMixin();
const { messageError, showLoader, hideLoader } = mixin;
const $q = useQuasar();
/** props*/
const props = defineProps({
profileId: {
@ -27,7 +26,7 @@ const props = defineProps({
},
});
const titleReport = ref<string>("");
const titleReport = ref<string>(""); //
/**
* function ดาวนโหลดไฟล
@ -63,6 +62,11 @@ async function downloadDocument(type: string) {
}
}
/**
* function โหลดเอกสาร
* @param response อม
* @param filename อไฟล
*/
function downloadFile(response: any, filename: string) {
const link = document.createElement("a");
var fileName = filename;