fix: workflow template => flow form data, scroll to last item, sidemenu active
This commit is contained in:
parent
7554fe8150
commit
f2258e9e90
3 changed files with 31 additions and 45 deletions
|
|
@ -5,6 +5,7 @@ import StatCardComponent from 'src/components/StatCardComponent.vue';
|
|||
import CreateButton from 'src/components/AddButton.vue';
|
||||
import PaginationComponent from 'src/components/PaginationComponent.vue';
|
||||
import FlowDialog from '../04_product-service/FlowDialog.vue';
|
||||
import { WorkflowTemplatePayload } from 'src/stores/workflow-template/types';
|
||||
|
||||
const pageState = reactive({
|
||||
hideStat: false,
|
||||
|
|
@ -16,6 +17,11 @@ const pageState = reactive({
|
|||
addModal: false,
|
||||
});
|
||||
|
||||
const formFlowData = ref<WorkflowTemplatePayload>({
|
||||
name: '',
|
||||
step: [],
|
||||
});
|
||||
|
||||
const statusFilter = ref<'all' | 'statusACTIVE' | 'statusINACTIVE'>('all');
|
||||
|
||||
function triggerAddDialog() {
|
||||
|
|
@ -259,5 +265,5 @@ function triggerAddDialog() {
|
|||
</section>
|
||||
</div>
|
||||
|
||||
<FlowDialog v-model="pageState.addModal" />
|
||||
<FlowDialog v-model="pageState.addModal" v-model:flow-data="formFlowData" />
|
||||
</template>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue