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