Sfoglia il codice sorgente

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

xujunjie 1 anno fa
parent
commit
9b9f5ea854
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  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) {
     switch (type) {
       case 'ignore':
       case 'ignore':
         setIgnoreModalOpen(true);
         setIgnoreModalOpen(true);
         break;
         break;
       case 'manual':
       case 'manual':
-        UnityAction.sendMsg('menuItem', '工艺监控');
+        UnityAction.sendMsg('ToScada', String(mandateId));
         break;
         break;
       case 'auto':
       case 'auto':
         setAutoHandleModalOpen(true);
         setAutoHandleModalOpen(true);
@@ -849,7 +849,7 @@ function TaskDetail(props: IPropsType) {
                       className={styles.footerBtn}
                       className={styles.footerBtn}
                       shape="round"
                       shape="round"
                       onClick={() => {
                       onClick={() => {
-                        openSpecifiedModal('manual');
+                        openSpecifiedModal('manual', mandateDetail.Id);
                       }}
                       }}
                     >
                     >
                       手动处理
                       手动处理