+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/frontends/apps/simple-platform-vue/src/workflow/assignCarParams.ts b/frontends/apps/simple-platform-vue/src/workflow/assignCarParams.ts
index a4adff3..88ef76e 100644
--- a/frontends/apps/simple-platform-vue/src/workflow/assignCarParams.ts
+++ b/frontends/apps/simple-platform-vue/src/workflow/assignCarParams.ts
@@ -1,12 +1,12 @@
import type { ParamFieldDef } from '@/types/workflow'
export const ASSIGN_STRATEGY_OPTIONS = [
- { label: '指定车辆', value: 'fixed' },
- { label: '指定类型', value: 'byType' }
+ { label: '指定车辆', value: 'carId' },
+ { label: '指定类型', value: 'carType' }
] as const
-const FIXED = { key: 'strategy', equals: 'fixed' as const }
-const BY_TYPE = { key: 'strategy', equals: 'byType' as const }
+const BY_CAR_ID = { key: 'strategy', equals: 'carId' as const }
+const BY_CAR_TYPE = { key: 'strategy', equals: 'carType' as const }
/** 分配车辆:指定车辆 / 指定类型 */
export function assignCarParams(): ParamFieldDef[] {
@@ -16,7 +16,7 @@ export function assignCarParams(): ParamFieldDef[] {
label: '分配策略',
type: 'select',
required: true,
- defaultValue: 'fixed',
+ defaultValue: 'carId',
options: [...ASSIGN_STRATEGY_OPTIONS]
},
{
@@ -25,7 +25,7 @@ export function assignCarParams(): ParamFieldDef[] {
type: 'string',
required: true,
placeholder: '如 C01',
- when: FIXED
+ when: BY_CAR_ID
},
{
key: 'carType',
@@ -33,7 +33,7 @@ export function assignCarParams(): ParamFieldDef[] {
type: 'string',
required: true,
placeholder: '如 Forklift / SimpleLite.RCS.Cars.AgvCar',
- when: BY_TYPE
+ when: BY_CAR_TYPE
}
]
}
diff --git a/frontends/apps/simple-platform-vue/src/workflow/nodeCatalog.ts b/frontends/apps/simple-platform-vue/src/workflow/nodeCatalog.ts
index b581553..e7a23e6 100644
--- a/frontends/apps/simple-platform-vue/src/workflow/nodeCatalog.ts
+++ b/frontends/apps/simple-platform-vue/src/workflow/nodeCatalog.ts
@@ -132,7 +132,7 @@ export const DEMO_WORKFLOW: WorkflowDefinition = {
viewport: { x: 0, y: 0, zoom: 1 },
nodes: [
{ id: 'n1', type: 'start', label: '开始', position: { x: 60, y: 200 }, params: {} },
- { id: 'n2', type: 'assignCar', label: '分配车辆', position: { x: 240, y: 180 }, params: { strategy: 'fixed', carId: 'C01' } },
+ { id: 'n2', type: 'assignCar', label: '分配车辆', position: { x: 240, y: 180 }, params: { strategy: 'carId', carId: 'C01' } },
{ id: 'n3', type: 'gotoSite', label: '前往入库点', position: { x: 460, y: 180 }, params: { siteId: 'S001' } },
{
id: 'n4',
diff --git a/frontends/apps/simple-platform-vue/src/workflow/workflowUtils.ts b/frontends/apps/simple-platform-vue/src/workflow/workflowUtils.ts
index 43079af..5b150dd 100644
--- a/frontends/apps/simple-platform-vue/src/workflow/workflowUtils.ts
+++ b/frontends/apps/simple-platform-vue/src/workflow/workflowUtils.ts
@@ -72,8 +72,10 @@ export const WORKFLOW_CATALOG_VERSION = 3
export const WORKFLOW_EDITOR_STORAGE_KEY = 'workflowEditor.draft'
const DEPRECATED_ASSIGN_STRATEGY: Record