zhoushihao
2025-10-29 2fe150d7351d329fd1bae4f8ef9cbdfc9c172362
UI-Project/src/views/EngineerScheduling/engineerScheduling.vue
@@ -157,6 +157,11 @@
const saveScheduling = async () => {
  try {
    let type = 1;
    // 1. 动态确定 type 和接口路径(根据 activeTab 切换)
    const apiPath = activeTab.value === 'tempered'
        ? 'updateEngineerScheduling'
        : 'updateCuttingLayout';
    if (activeTab.value === 'cutting2') type = 2;
    else if (activeTab.value === 'tempered') type = 3;
@@ -167,8 +172,7 @@
    }))
    const response = await request.post(
        `/loadGlass/optimizeProject/updateEngineerScheduling?type=${type}`,
        engineerList
        `/loadGlass/optimizeProject/${apiPath}?type=${type}`, engineerList
    )
    if (response.code === 200) {
@@ -285,7 +289,7 @@
    // 查找所有非进行中任务的位置
    const nonProgressIndices = newList
        .map((item, i) => ({ item, index: i }))
        .map((item, i) => ({item, index: i}))
        .filter(item => item.item.state !== 1)
        .map(item => item.index);
@@ -392,7 +396,8 @@
              width="90"
              :formatter="stateFormatter"
          />
          <el-table-column :label="t('scheduling.operate')" :width="activeTab === 'tempered' ? 200 : 300" :align="center">
          <el-table-column :label="t('scheduling.operate')" :width="activeTab === 'tempered' ? 200 : 300"
                           :align="center">
            <template #default="{ row }">
              <div style="display: flex; gap: 5px; align-items: center;">
                <el-button
@@ -482,6 +487,7 @@
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  overflow: auto;
}
/* 详情表格样式 */