✨ Submit video number list
This commit is contained in:
parent
8783a91a65
commit
5d15b3c372
6 changed files with 155 additions and 6 deletions
33
frontend/src/views/InputVideoNumber.vue
Normal file
33
frontend/src/views/InputVideoNumber.vue
Normal file
|
@ -0,0 +1,33 @@
|
|||
<script setup>
|
||||
import { ref, onMounted, inject } from "vue";
|
||||
|
||||
const emit = defineEmits(["change-stage"]);
|
||||
|
||||
const input = ref(null);
|
||||
const nvlist = ref("");
|
||||
|
||||
const axios = inject("axios");
|
||||
|
||||
onMounted(() => {
|
||||
input.value.focus();
|
||||
});
|
||||
|
||||
function sendNVList() {
|
||||
axios.post("http://localhost:8000/video", { nvlist: nvlist.value });
|
||||
emit("change-stage");
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="container-fluid vh-100 bg-body-secondary d-flex flex-column p-3">
|
||||
<textarea
|
||||
ref="input"
|
||||
v-model="nvlist"
|
||||
class="form-control form-control-lg flex-grow-1"
|
||||
placeholder="Input AV/BV numbers here."
|
||||
></textarea>
|
||||
<button @click="sendNVList" type="button" class="btn btn-primary mt-3">
|
||||
OK
|
||||
</button>
|
||||
</div>
|
||||
</template>
|
Loading…
Add table
Add a link
Reference in a new issue