Commit 4e0ef87b4c8ded734bab8b156fffec818b8568c0
1 parent
3a596bfc
机台任务操作按钮加长
Showing
1 changed file
with
7 additions
and
2 deletions
src/mes/scheduledTasks/machineTasks/index.js
| @@ -539,7 +539,7 @@ const MachineTasks = baseProps => { | @@ -539,7 +539,7 @@ const MachineTasks = baseProps => { | ||
| 539 | }); | 539 | }); |
| 540 | } | 540 | } |
| 541 | // 顶部表格配置 | 541 | // 顶部表格配置 |
| 542 | - const tableProps = { | 542 | + let tableProps = { |
| 543 | ...commonBusiness.getTableTypes("slave0", props), | 543 | ...commonBusiness.getTableTypes("slave0", props), |
| 544 | // data: [{ sId: "123" }], | 544 | // data: [{ sId: "123" }], |
| 545 | tableProps: { | 545 | tableProps: { |
| @@ -578,10 +578,15 @@ const MachineTasks = baseProps => { | @@ -578,10 +578,15 @@ const MachineTasks = baseProps => { | ||
| 578 | onTableBtnClick: item => { | 578 | onTableBtnClick: item => { |
| 579 | props.onTableBtnClick(item); | 579 | props.onTableBtnClick(item); |
| 580 | }, | 580 | }, |
| 581 | - tableBtnsWidth: "200px", | 581 | + tableBtnsWidth: "200px", |
| 582 | fixedHeight: "335px", | 582 | fixedHeight: "335px", |
| 583 | onCopyTo: handleCopyTo | 583 | onCopyTo: handleCopyTo |
| 584 | }; | 584 | }; |
| 585 | + const record = tableProps?.data?.[0] || {} | ||
| 586 | + // 如果bManual为true的时候 操作栏加长 | ||
| 587 | + if (record && record.bManual) { | ||
| 588 | + tableProps.tableBtnsWidth = '300px' | ||
| 589 | + } | ||
| 585 | // 全部按钮事件 | 590 | // 全部按钮事件 |
| 586 | const tableAll = () => { | 591 | const tableAll = () => { |
| 587 | setSSrcNo(""); | 592 | setSSrcNo(""); |