diff --git a/frontend/src/components/flowEditor/left/ControlPanelC.vue b/frontend/src/components/flowEditor/left/ControlPanelC.vue index 89cf567..08bb1b9 100644 --- a/frontend/src/components/flowEditor/left/ControlPanelC.vue +++ b/frontend/src/components/flowEditor/left/ControlPanelC.vue @@ -5,7 +5,7 @@ selected-color="primary" default-expand-all :nodes="LeftDataBus.root" - v-model:selected="selected" + v-model:selected="flowNames1" node-key="label" > @@ -18,9 +18,12 @@ import { setControlPanelE, } from 'components/flowEditor/left/DataBus'; import { ref } from 'vue'; +import { storeToRefs } from 'pinia'; +import { useFlowEditorStore } from 'stores/flowEditor'; // 应该在page中用网络请求获取值并初始化组件 // 然后在page中执行setControlPane设置databus -const selected = ref('保存をクリックした時'); +const store = useFlowEditorStore(); +const { flowNames1 } = storeToRefs(store); setControlPanelE(); diff --git a/frontend/src/pages/FlowEditorPage.vue b/frontend/src/pages/FlowEditorPage.vue index fbb1f6b..184fe1f 100644 --- a/frontend/src/pages/FlowEditorPage.vue +++ b/frontend/src/pages/FlowEditorPage.vue @@ -10,6 +10,8 @@ :key="flowName" :label="flowName" /> + + (), { actName: '勤怠管理 - 4', flowNames: () => ['レコードを追加画面', '保存をクリックした時'], }); const actName = computed(() => props.actName); -const flowNames = computed(() => props.flowNames); - +const flowNames = computed(() => props.flowNames as Array); +flowNames.value.splice(1, 1, flowNames1.value) const drawerLeft = ref(false); - const showDg = () => { show.value = true; }; @@ -161,10 +165,8 @@ const closeDg = (val: string) => { if (document.getElementsByClassName('action').length > 0) { addshow.value = false; } - }; + } }; - -