liu
3 天以前 f11bd0d8d9c1190340a445a67df9e43cdbde0a3e
src/views/mes/process-design/process/index.vue
@@ -17,15 +17,28 @@
import { useGridColumns, useGridFormSchema } from './data';
import Form from './modules/form.vue';
import ParamManage from './modules/param-manage.vue';
const [FormModal, formModalApi] = useVbenModal({
  connectedComponent: Form,
  destroyOnClose: true,
});
const [ParamManageModal, paramManageModalApi] = useVbenModal({
  connectedComponent: ParamManage,
  destroyOnClose: true,
});
/** 刷新表格 */
function handleRefresh() {
  gridApi.query();
}
/** 管理工序绑定的工艺参数 */
function handleParamManage(row: MesProProcessApi.Process) {
  paramManageModalApi
    .setData({ processId: row.id, processName: row.name })
    .open();
}
/** 创建生产工序 */
@@ -97,6 +110,7 @@
<template>
  <Page auto-content-height><FormModal @success="handleRefresh" />
    <ParamManageModal @success="handleRefresh" />
    <Grid table-title="生产工序列表">
      <template #toolbar-tools>
        <TableAction
@@ -125,6 +139,13 @@
        <TableAction
          :actions="[
            {
              label: '工艺参数',
              type: 'link',
              icon: ACTION_ICON.EDIT,
              auth: ['mes:pro-process:update'],
              onClick: handleParamManage.bind(null, row),
            },
            {
              label: $t('common.edit'),
              type: 'link',
              icon: ACTION_ICON.EDIT,