Refactoring code module 07_insignia
This commit is contained in:
parent
208d867dfd
commit
6fb6024f53
31 changed files with 1158 additions and 2444 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue