From a241b66efcc41e973290a6722fb7a4d79b833ea1 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期二, 13 十月 2026 09:54:32 +0800
Subject: [PATCH] feat(bi): 为图表配置接口添加名称字段

---
 src/views/mes/process-design/parameter/index.vue |   33 +++++++++++++++++++++++++++------
 1 files changed, 27 insertions(+), 6 deletions(-)

diff --git a/src/views/mes/process-design/parameter/index.vue b/src/views/mes/process-design/parameter/index.vue
index da91e8b..83ec01c 100644
--- a/src/views/mes/process-design/parameter/index.vue
+++ b/src/views/mes/process-design/parameter/index.vue
@@ -2,7 +2,7 @@
 import type { VxeTableGridOptions } from '#/adapter/vxe-table';
 import type { MesPdParameterApi } from '#/api/mes/pro/processdesign/parameter';
 
-import { Page, useVbenModal } from '../../../../packages/effects/common-ui/src';
+import { Page, useVbenModal } from '@vben/common-ui';
 
 import { Button, message } from 'ant-design-vue';
 
@@ -13,19 +13,32 @@
   exportParameterExcel,
 } from '#/api/mes/pro/processdesign/parameter';
 import { $t } from '#/locales';
-import { downloadFileFromBlobPart } from '../../../../packages/utils/src';
+import { downloadFileFromBlobPart } from '@vben/utils';
 
 import { useGridColumns, useGridFormSchema } from './data';
 import Form from './modules/form.vue';
+import ProcessLinkDialog from './modules/process-link-dialog.vue';
 
 const [FormModal, formModalApi] = useVbenModal({
   connectedComponent: Form,
   destroyOnClose: true,
 });
 
+const [ProcessLinkModal, processLinkModalApi] = useVbenModal({
+  connectedComponent: ProcessLinkDialog,
+  destroyOnClose: true,
+});
+
 /** 鍒锋柊琛ㄦ牸 */
 function handleRefresh() {
   gridApi.query();
+}
+
+/** 鏌ョ湅璇ュ弬鏁拌鍝簺宸ュ簭缁戝畾 */
+function handleViewProcessLink(row: MesPdParameterApi.Parameter) {
+  processLinkModalApi
+    .setData({ paramId: row.id, paramName: row.paramName })
+    .open();
 }
 
 /** 鍒涘缓宸ヨ壓鍙傛暟 */
@@ -98,6 +111,7 @@
 
 <template>
   <Page auto-content-height><FormModal @success="handleRefresh" />
+    <ProcessLinkModal />
     <Grid table-title="宸ヨ壓鍙傛暟鍒楄〃">
       <template #toolbar-tools>
         <TableAction
@@ -106,14 +120,14 @@
               label: $t('ui.actionTitle.create', ['鍙傛暟']),
               type: 'primary',
               icon: ACTION_ICON.ADD,
-              auth: ['mes:pd:parameter:create'],
+              auth: ['mes:pd-process-param:create'],
               onClick: handleCreate,
             },
             {
               label: $t('ui.actionTitle.export'),
               type: 'primary',
               icon: ACTION_ICON.DOWNLOAD,
-              auth: ['mes:pd:parameter:export'],
+              auth: ['mes:pd-process-param:export'],
               onClick: handleExport,
             },
           ]"
@@ -126,10 +140,17 @@
         <TableAction
           :actions="[
             {
+              label: '鍏宠仈宸ュ簭',
+              type: 'link',
+              icon: ACTION_ICON.LINK,
+              auth: ['mes:pd-process-param:update'],
+              onClick: handleViewProcessLink.bind(null, row),
+            },
+            {
               label: $t('common.edit'),
               type: 'link',
               icon: ACTION_ICON.EDIT,
-              auth: ['mes:pd:parameter:update'],
+              auth: ['mes:pd-process-param:update'],
               onClick: handleEdit.bind(null, row),
             },
             {
@@ -137,7 +158,7 @@
               type: 'link',
               danger: true,
               icon: ACTION_ICON.DELETE,
-              auth: ['mes:pd:parameter:delete'],
+              auth: ['mes:pd-process-param:delete'],
               popConfirm: {
                 title: $t('ui.actionMessage.deleteConfirm', [row.paramName]),
                 confirm: handleDelete.bind(null, row),

--
Gitblit v1.9.3