From e1f31dc10f90f77f18986d91c9e07cdbaa7611b9 Mon Sep 17 00:00:00 2001 From: zlwu <704541015@qq.com> Date: Thu, 6 Aug 2026 23:25:06 +0800 Subject: [PATCH] feat(pl): add copy entry on transport plan list and view dialog Co-authored-by: Cursor --- web-admin/src/views/pl/plan/index.vue | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/web-admin/src/views/pl/plan/index.vue b/web-admin/src/views/pl/plan/index.vue index f1420399d..b2a9418e2 100644 --- a/web-admin/src/views/pl/plan/index.vue +++ b/web-admin/src/views/pl/plan/index.vue @@ -98,6 +98,13 @@ 新增计划 + + 复制 + @@ -387,6 +395,9 @@ > 编辑 + + 复制 + >() @@ -741,6 +754,7 @@ function handleSizeChange() { function handleAdd() { editingPlanId.value = '' + copyFromPlanId.value = '' formDialogVisible.value = true } @@ -756,9 +770,21 @@ function handleView(row: Plan) { function handleEdit(row: Plan) { editingPlanId.value = row.id + copyFromPlanId.value = '' formDialogVisible.value = true } +function handleCopy(row: Plan) { + editingPlanId.value = '' + copyFromPlanId.value = row.id + formDialogVisible.value = true +} + +function handleToolbarCopy() { + if (!selectedPlan.value) return + handleCopy(selectedPlan.value) +} + function canEditPlan(row: Plan) { return row.archiveStatus !== 'archived' && row.followStatus !== 'cancelled' }