|
|
|
@ -1,23 +1,17 @@
|
|
|
|
<script setup lang="ts">
|
|
|
|
<script setup>
|
|
|
|
|
|
|
|
import { ref } from 'vue'
|
|
|
|
|
|
|
|
|
|
|
|
import Summary from './components/summary.vue'
|
|
|
|
import Summary from './components/summary.vue'
|
|
|
|
import ShowCategory from './components/show_category.vue'
|
|
|
|
import ShowCategory from './components/show_category.vue'
|
|
|
|
import Songs from './components/songs.vue'
|
|
|
|
import Songs from './components/songs.vue'
|
|
|
|
import Timer from './components/timer.vue'
|
|
|
|
import Timer from './components/timer.vue'
|
|
|
|
import Status from './components/status.vue'
|
|
|
|
import Status from './components/status.vue'
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
const currentWorkingCategoryID = ref(1)
|
|
|
|
export default {
|
|
|
|
const updateCurrentWorkingCategoryID = (id) =>{
|
|
|
|
data() {
|
|
|
|
currentWorkingCategoryID.value = id
|
|
|
|
return {
|
|
|
|
|
|
|
|
currentWorkingCategoryID:1
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
setWorkingCategory(category){
|
|
|
|
|
|
|
|
this.currentWorkingCategoryID = category.category_id
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
@ -27,7 +21,7 @@
|
|
|
|
<Timer :currentWorkingCategoryID="currentWorkingCategoryID"/>
|
|
|
|
<Timer :currentWorkingCategoryID="currentWorkingCategoryID"/>
|
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
<section id="summary">
|
|
|
|
<section id="summary">
|
|
|
|
<Summary :setWorkingCategory="setWorkingCategory"/>
|
|
|
|
<Summary @update="updateCurrentWorkingCategoryID"/>
|
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
<section id="category">
|
|
|
|
<section id="category">
|
|
|
|
<ShowCategory :currentWorkingCategoryID="currentWorkingCategoryID"/>
|
|
|
|
<ShowCategory :currentWorkingCategoryID="currentWorkingCategoryID"/>
|
|
|
|
@ -37,6 +31,3 @@
|
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
</main>
|
|
|
|
</main>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|