|
@@ -545,13 +545,13 @@ function TaskDetail(props: IPropsType) {
|
|
|
};
|
|
|
|
|
|
// 打开指定弹窗
|
|
|
- const openSpecifiedModal = (type: any) => {
|
|
|
+ const openSpecifiedModal = (type: any, mandateId?: number) => {
|
|
|
switch (type) {
|
|
|
case 'ignore':
|
|
|
setIgnoreModalOpen(true);
|
|
|
break;
|
|
|
case 'manual':
|
|
|
- UnityAction.sendMsg('menuItem', '工艺监控');
|
|
|
+ UnityAction.sendMsg('ToScada', String(mandateId));
|
|
|
break;
|
|
|
case 'auto':
|
|
|
setAutoHandleModalOpen(true);
|
|
@@ -849,7 +849,7 @@ function TaskDetail(props: IPropsType) {
|
|
|
className={styles.footerBtn}
|
|
|
shape="round"
|
|
|
onClick={() => {
|
|
|
- openSpecifiedModal('manual');
|
|
|
+ openSpecifiedModal('manual', mandateDetail.Id);
|
|
|
}}
|
|
|
>
|
|
|
手动处理
|