diff --git a/frontend/src/components/strategy-map/StrategyLayer.vue b/frontend/src/components/strategy-map/StrategyLayer.vue index ea361a13..bc4ecd72 100644 --- a/frontend/src/components/strategy-map/StrategyLayer.vue +++ b/frontend/src/components/strategy-map/StrategyLayer.vue @@ -58,14 +58,14 @@
- + 点击 + 添加目标
- + + 添加目标 diff --git a/frontend/src/views/MapCanvas.vue b/frontend/src/views/MapCanvas.vue index 669956aa..f08b491c 100644 --- a/frontend/src/views/MapCanvas.vue +++ b/frontend/src/views/MapCanvas.vue @@ -77,7 +77,7 @@ :all-kpis="allKpis" :get-node-level="getNodeLevel" :get-node-progress="getNodeProgress" - @add-objective="(k: string) => openAddDialog(k)" + @add-objective="openAddDialog" @edit-objective="(p: any) => openEditDialog(p.dimKey, p.idx, p.obj)" @delete-objective="(p: any) => deleteNode(p.dimKey, p.idx)" @start-link="(p: any) => { const ps = p.key.split('-'); startLink(ps[0], parseInt(ps[ps.length-1]), p.obj) }" @@ -114,6 +114,7 @@ -
+
版本历史 @@ -278,6 +279,7 @@ const kpiProgressMap = reactive>({}) const showNodeDialog = ref(false) const editingNodeData = ref(null) const editingLayerKey = ref('') +const dialogRefreshKey = ref(0) const showVersions = ref(false) const versions = ref([]) @@ -559,6 +561,7 @@ function onDeleteConnection(idx: number) { function openAddDialog(layerKey: string) { editingLayerKey.value = layerKey editingNodeData.value = null + dialogRefreshKey.value++ showNodeDialog.value = true }