Skip to content

Commit

Permalink
feat: don't list deprecated mark in select component
Browse files Browse the repository at this point in the history
  • Loading branch information
greenhat616 committed Sep 5, 2023
1 parent c025436 commit d8dc6f0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/do/review/CardActionsContainer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ const emit = defineEmits<{
// 标记列表
const marksStore = useMarksStore()
const marks = computed(() =>
marksStore.marks.filter((v) => v.deprecated_at === null)
)
const marksSelected = ref<number[]>([])
watch(
() => marksSelected.value,
Expand Down Expand Up @@ -100,7 +103,7 @@ const onCancelPoll = async () => {
placeholder="请选择您对此句的看法,部分选项会展示给其他审核员以辅助审核(选填,若选择“需要修改”则为必填)"
@change="emit('update:marksSelectedValues', marksSelected)"
>
<a-select-option v-for="i in marksStore.marks" :key="i.id">
<a-select-option v-for="i in marks" :key="i.id">
{{ i.text }}
</a-select-option>
</a-select>
Expand Down
1 change: 1 addition & 0 deletions composables/api/reviewer/poll.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export type PollMarkRes = {
text: string
level: PollMarkLevel
property: number
deprecated_at?: string
updated_at: string
created_at: string
}[]
Expand Down

0 comments on commit d8dc6f0

Please sign in to comment.