|
|
@ -6,6 +6,8 @@ |
|
|
|
|
|
|
|
<button-filter :value="filterOption" @click:filter="changeFilter" /> |
|
|
|
|
|
|
|
<button-order :value="orderOption" @click:order="changeOrder" /> |
|
|
|
|
|
|
|
<button-guideline @click:guideline="dialogGuideline = true" /> |
|
|
|
<v-dialog v-model="dialogGuideline"> |
|
|
|
<form-guideline :guideline-text="guidelineText" @click:close="dialogGuideline = false" /> |
|
|
@ -64,6 +66,7 @@ import ButtonClear from './buttons/ButtonClear.vue' |
|
|
|
import ButtonComment from './buttons/ButtonComment.vue' |
|
|
|
import ButtonFilter from './buttons/ButtonFilter.vue' |
|
|
|
import ButtonGuideline from './buttons/ButtonGuideline.vue' |
|
|
|
import ButtonOrder from './buttons/ButtonOrder.vue' |
|
|
|
import ButtonPagination from './buttons/ButtonPagination.vue' |
|
|
|
import ButtonReview from './buttons/ButtonReview.vue' |
|
|
|
import ButtonKeyboardShortcut from './buttons/ButtonKeyboardShortcut.vue' |
|
|
@ -80,6 +83,7 @@ export default Vue.extend({ |
|
|
|
ButtonComment, |
|
|
|
ButtonFilter, |
|
|
|
ButtonGuideline, |
|
|
|
ButtonOrder, |
|
|
|
ButtonKeyboardShortcut, |
|
|
|
ButtonPagination, |
|
|
|
ButtonReview, |
|
|
@ -134,6 +138,10 @@ export default Vue.extend({ |
|
|
|
filterOption(): string { |
|
|
|
// @ts-ignore |
|
|
|
return this.$route.query.isChecked |
|
|
|
}, |
|
|
|
orderOption(): string { |
|
|
|
// @ts-ignore |
|
|
|
return this.$route.query.ordering |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
@ -143,6 +151,7 @@ export default Vue.extend({ |
|
|
|
query: { |
|
|
|
page: page.toString(), |
|
|
|
isChecked: this.filterOption, |
|
|
|
ordering: this.$route.query.ordering, |
|
|
|
q: this.$route.query.q |
|
|
|
} |
|
|
|
}) |
|
|
@ -153,11 +162,23 @@ export default Vue.extend({ |
|
|
|
query: { |
|
|
|
page: '1', |
|
|
|
isChecked, |
|
|
|
ordering: this.$route.query.ordering, |
|
|
|
q: this.$route.query.q |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
changeOrder(ordering: string) { |
|
|
|
this.$router.push({ |
|
|
|
query: { |
|
|
|
page: '1', |
|
|
|
isChecked: this.filterOption, |
|
|
|
q: this.$route.query.q, |
|
|
|
ordering |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
updateAutoLabeling(isEnable: boolean) { |
|
|
|
if (isEnable) { |
|
|
|
this.$emit('update:enable-auto-labeling', true) |
|
|
|