Browse Source

修改手动处理时发送的消息

xujunjie 1 năm trước cách đây
mục cha
commit
9b9f5ea854
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      src/pages/TaskManage/Detail/TaskDetail/TaskDetail.tsx

+ 3 - 3
src/pages/TaskManage/Detail/TaskDetail/TaskDetail.tsx

@@ -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);
                       }}
                     >
                       手动处理