Commit c702cfe83df4bd1bccf511407f0d4cbddc0c4f0f

Authored by chenxt
1 parent 94bc2b7c

机台任务自定义按钮

src/mes/scheduledTasks/machineTasks/index.js
... ... @@ -606,9 +606,20 @@ const MachineTasks = baseProps => {
606 606 ];
607 607 },
608 608 onTableBtnClick: item => {
609   - props.onTableBtnClick(item);
  609 + if (item.config.sControlName.includes("BtnTableSample")) {
  610 + const { sInstruct } = item.config;
  611 + if (sInstruct) {
  612 + props.onExecInstructSet({
  613 + ...props,
  614 + btnConfig: item.config
  615 + });
  616 + }
  617 +
  618 + } else {
  619 + props.onTableBtnClick(item);
  620 + }
610 621 },
611   - tableBtnsWidth: "200px",
  622 + tableBtnsWidth: "300px",
612 623 fixedHeight: "335px",
613 624 onCopyTo: handleCopyTo
614 625 };
... ...