mirror of https://github.com/doccano/doccano.git
pythondatasetnatural-language-processingdata-labelingmachine-learningannotation-tooldatasetsactive-learningtext-annotation
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
830 B
38 lines
830 B
<template>
|
|
<base-modal
|
|
text="Upload"
|
|
:is-create="true"
|
|
>
|
|
<template v-slot="slotProps">
|
|
<document-upload-form
|
|
:upload-document="uploadDocument"
|
|
:formats="formatList"
|
|
:headers="headers"
|
|
:parse-file="parseFile"
|
|
:parsed-doc="parsedDoc"
|
|
@close="slotProps.close"
|
|
/>
|
|
</template>
|
|
</base-modal>
|
|
</template>
|
|
|
|
<script>
|
|
import { mapActions, mapGetters } from 'vuex'
|
|
import BaseModal from '@/components/molecules/BaseModal'
|
|
import DocumentUploadForm from '@/components/organisms/DocumentUploadForm'
|
|
|
|
export default {
|
|
components: {
|
|
BaseModal,
|
|
DocumentUploadForm
|
|
},
|
|
|
|
computed: {
|
|
...mapGetters('documents', ['formatList', 'parsedDoc', 'headers'])
|
|
},
|
|
|
|
methods: {
|
|
...mapActions('documents', ['uploadDocument', 'parseFile'])
|
|
}
|
|
}
|
|
</script>
|