แก้วินัย อัพไฟล์ เเล้ว ข้อมูลเเก้ไขหาย/เเก้ฟิลเตอร์

This commit is contained in:
setthawutttty 2024-01-08 09:45:03 +07:00
parent b670ae3733
commit 9bf53d2689
8 changed files with 275 additions and 190 deletions

View file

@ -47,6 +47,10 @@ const props = defineProps({
type: Function,
default: () => "",
},
returnCount: {
type: Function,
default: () => "",
},
isReadonly: {
type: Boolean,
},
@ -57,7 +61,17 @@ const props = defineProps({
*/
async function uploadFile() {
console.log("test");
if (props.type === "relevant") {
props.returnCount(2);
} else if (props.type === "summaryEvidence") {
props.returnCount(3);
} else if (props.type === "recordAccuser") {
props.returnCount(4);
} else if (props.type === "witnesses") {
props.returnCount(5);
} else if (props.type === "other") {
props.returnCount(6);
}
const Data = new FormData();
Data.append("file", file.value);
showLoader();