mirror of https://github.com/doccano/doccano.git
pythondatasetsactive-learningtext-annotationdatasetnatural-language-processingdata-labelingmachine-learningannotation-tool
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.
45 lines
837 B
45 lines
837 B
<template>
|
|
<project-list :headers="headers" :projects="projects" :selected="selected" @update="update" />
|
|
</template>
|
|
|
|
<script>
|
|
import { mapState } from 'vuex'
|
|
import ProjectList from '@/components/organisms/ProjectList'
|
|
|
|
export default {
|
|
components: {
|
|
ProjectList
|
|
},
|
|
data: () => ({
|
|
headers: [
|
|
{
|
|
text: 'Name',
|
|
align: 'left',
|
|
value: 'name'
|
|
},
|
|
{
|
|
text: 'Description',
|
|
value: 'description'
|
|
},
|
|
{
|
|
text: 'Type',
|
|
value: 'project_type'
|
|
}
|
|
]
|
|
}),
|
|
|
|
computed: {
|
|
...mapState('ProjectList', ['projects', 'selected'])
|
|
},
|
|
|
|
async created() {
|
|
await this.$store.dispatch('ProjectList/getProjectList')
|
|
},
|
|
|
|
methods: {
|
|
update(selected) {
|
|
this.$store.commit('ProjectList/updateSelected', selected)
|
|
}
|
|
}
|
|
}
|
|
</script>
|