Files
mono/components/desktop/extensions/capital/pages/ComponentRequirementsPage/ui/ComponentRequirementsPage.vue
T

29 lines
861 B
Vue

<template lang="pug">
div
// Виджет списка требований в виде таблицы
RequirementsListWidget(
:filter='requirementsFilter',
:maxItems='50'
)
</template>
<script lang="ts" setup>
import { computed } from 'vue';
import { useRoute } from 'vue-router';
import { RequirementsListWidget } from 'app/extensions/capital/widgets/RequirementsListWidget';
const route = useRoute();
// Получаем hash проекта из параметров маршрута
const projectHash = computed(() => route.params.project_hash as string);
// Фильтр для требований проекта
const requirementsFilter = computed(() => ({
project_hash: projectHash.value,
issue_id: undefined, // Только требования проекта, не задач
}));
</script>
<style lang="scss" scoped>
</style>