เปลี่ยน id เป็น id card
This commit is contained in:
parent
19bf90fee5
commit
64f60eead9
4 changed files with 19 additions and 8 deletions
|
|
@ -8,10 +8,11 @@ import { useRoute } from "vue-router";
|
|||
import http from "@/plugins/http";
|
||||
import config from "@/app.config";
|
||||
import { useCounterMixin } from "@/stores/mixin";
|
||||
|
||||
import { useRegistryNewDataStore } from "@/modules/04_registryPerson/store";
|
||||
import type { ArrayFileList } from "@/modules/04_registryPerson/interface/index/document";
|
||||
|
||||
const $q = useQuasar();
|
||||
const storeRegistry = useRegistryNewDataStore();
|
||||
const route = useRoute();
|
||||
const mixin = useCounterMixin();
|
||||
const {
|
||||
|
|
@ -43,10 +44,18 @@ async function getData() {
|
|||
showLoader();
|
||||
await http
|
||||
.get(
|
||||
config.API.file("ระบบทะเบียนประวัติ", "เอกสารหลักฐานเพิ่มเติม", profileId.value)
|
||||
config.API.file(
|
||||
"ระบบทะเบียนประวัติ",
|
||||
"เอกสารหลักฐานเพิ่มเติม",
|
||||
storeRegistry.citizenId
|
||||
)
|
||||
)
|
||||
.then((res) => {
|
||||
console.log("ระบบทะเบียนประวัติ", "เอกสารหลักฐานเพิ่มเติม", profileId.value)
|
||||
console.log(
|
||||
"ระบบทะเบียนประวัติ",
|
||||
"เอกสารหลักฐานเพิ่มเติม",
|
||||
storeRegistry.citizenId
|
||||
);
|
||||
fileList.value = res.data;
|
||||
})
|
||||
.catch((e) => {
|
||||
|
|
@ -74,7 +83,7 @@ function clickUpload(file: any) {
|
|||
config.API.file(
|
||||
"ระบบทะเบียนประวัติ",
|
||||
"เอกสารหลักฐานเพิ่มเติม",
|
||||
profileId.value
|
||||
storeRegistry.citizenId
|
||||
),
|
||||
{
|
||||
replace: false,
|
||||
|
|
@ -136,7 +145,7 @@ function downloadFile(fileName: string) {
|
|||
config.API.fileByFile(
|
||||
"ระบบทะเบียนประวัติ",
|
||||
"เอกสารหลักฐานเพิ่มเติม",
|
||||
profileId.value,
|
||||
storeRegistry.citizenId,
|
||||
fileName
|
||||
)
|
||||
)
|
||||
|
|
@ -164,7 +173,7 @@ function deleteFile(fileName: string) {
|
|||
config.API.fileByFile(
|
||||
"ระบบทะเบียนประวัติ",
|
||||
"เอกสารหลักฐานเพิ่มเติม",
|
||||
profileId.value,
|
||||
storeRegistry.citizenId,
|
||||
fileName
|
||||
)
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue