From 3649df054707e8a43581f4dbcdd29ff5c63a11c6 Mon Sep 17 00:00:00 2001 From: hwj Date: Thu, 8 Jan 2026 18:41:32 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E9=85=8D=E6=96=B9=E9=85=8D?= =?UTF-8?q?=E7=BD=AE-=E9=85=8D=E7=BD=AE=E5=BC=B9=E6=A1=86=E5=AF=B9?= =?UTF-8?q?=E6=8E=A5=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/iot/recipeConfig/index.ts | 4 + src/views/formula/formulaConfig/index.vue | 277 +++++++++++++++--- .../producereport/ProduceReportDetailForm.vue | 2 +- 3 files changed, 237 insertions(+), 46 deletions(-) diff --git a/src/api/iot/recipeConfig/index.ts b/src/api/iot/recipeConfig/index.ts index 90e6a386..53034c1e 100644 --- a/src/api/iot/recipeConfig/index.ts +++ b/src/api/iot/recipeConfig/index.ts @@ -177,6 +177,10 @@ export const RecipeConfigApi = { return await request.get({ url: `/iot/recipe-device-attribute/page`, params }) }, + updateRecipeDeviceAttribute: async (data: { recipeId: string | number; ids: number[] }) => { + return await request.put({ url: `/iot/recipe-device-attribute/update`, data }) + }, + saveRecipePointConfig: async (data: { recipeId: string | number; attributeIds: number[] }) => { ensureMockSeeded() await sleep(120) diff --git a/src/views/formula/formulaConfig/index.vue b/src/views/formula/formulaConfig/index.vue index f63a98fd..4fbb86ad 100644 --- a/src/views/formula/formulaConfig/index.vue +++ b/src/views/formula/formulaConfig/index.vue @@ -21,6 +21,9 @@ v-model="queryParams.productName" placeholder="请输入产品名称" clearable 查询 + + 重置 + 新增 @@ -49,7 +52,7 @@ ref="tableRef" v-loading="loading" :data="list" :stripe="true" :show-overflow-to @@ -60,15 +63,9 @@ ref="tableRef" v-loading="loading" :data="list" :stripe="true" :show-overflow-to +ref="detailRef" :visible="detailVisible" + :recipe-id="detailMeta.id ? String(detailMeta.id) : undefined" :manual-recipe-id="detailMeta.id" + :recipe-code="detailMeta.recipeCode" :name="detailMeta.name" @config="handleDetailConfig" @close="closeDetail" /> @@ -111,9 +108,59 @@ v-model="dialogForm.machineName" placeholder="请选择关联设备" clearable f
- +
+
+
+
来源
+
{{ filteredSourceItems.length }}
+
+
+ +
+ + + + +
+ +
+ + >> + + + << + +
+ +
+
+
目标
+
{{ filteredTargetItems.length }}
+
+
+ +
+ + + + +
+