diff --git a/Services/client/src/components/FormUpload.vue b/Services/client/src/components/FormUpload.vue index 902c5de..daff78a 100644 --- a/Services/client/src/components/FormUpload.vue +++ b/Services/client/src/components/FormUpload.vue @@ -17,6 +17,26 @@ const props = withDefaults(defineProps<{ drawerFile: boolean }>(), { drawerFile: false, }) +const tag = ref('') +const tagList = ref>([]) + +function deleteTag(index?: string) { + console.log(index) + + if (index === undefined) { + tagList.value.pop() + } else { + tagList.value = tagList.value.filter((t) => t !== index) + } +} + +function saveTag() { + if (!!tag.value?.trim()) { + tagList.value.push(tag.value) + tag.value = '' + } +} + async function handleSubmit(continueUpload: boolean = false) { if (!inputFile.value) return // getFile(p) @@ -93,13 +113,43 @@ async function handleSubmit(continueUpload: boolean = false) { dense /> คำสำคัญ - + /> --> + + + + -
เตือนพบไฟล์ชื่อซ้ำในระบบ
+
+ เตือนพบไฟล์ชื่อซ้ำในระบบ +
@@ -147,6 +203,9 @@ async function handleSubmit(continueUpload: boolean = false) {