YangYuGang
2025-03-08 8cae1dcd8d2bde01880ac4b70bdda4e61df3c7ef
src/views/tigerprojects/mes/eng/routelist/index.vue
@@ -2,7 +2,7 @@
  <div>
    <BasicTable @register="registerTable">
      <template #toolbar>
        <a-button type="primary" @click="handleCreate"> 新增工艺路线 </a-button>
        <a-button type="primary" @click="handleCreate" preIcon="add_02|svg"> 新增 </a-button>
      </template>
      <template #action="{ record }">
        <TableAction
@@ -10,10 +10,12 @@
            {
              icon: 'clarity:note-edit-line',
              onClick: handleEdit.bind(null, record),
              name: undefined,
            },
            {
              icon: 'gphDesign|svg',
              onClick: handleDesign.bind(null, record),
              name: undefined,
            },
            {
              icon: 'ant-design:delete-outlined',
@@ -23,6 +25,7 @@
                placement: 'left',
                confirm: handleDelete.bind(null, record),
              },
              name: undefined,
            },
          ]"
        />
@@ -84,7 +87,7 @@
      go('/RouteDetail/' + record.ID);
    } else {
      createErrorModal({
        title: t('提示'),
        title: t('警告'),
        content: t('工艺路线未启用不能设计'),
        getContainer: () => document.body,
      });
@@ -94,7 +97,7 @@
  function handleDelete(record: Recordable) {
    console.log(record);
    //删除工艺路线
    const apiAction = DeleteRoute(record);
    const apiAction = DeleteRoute(record.ID);
    apiAction.then((action) => {
      if (action.IsSuccessed) {
        reload();