瀏覽代碼

fix: bug#8207、8223、8224、8226

fix: bug#8207、8223、8224、8226
hear 3 年之前
父節點
當前提交
102147c4f6

+ 1 - 4
src/pages/device/Instance/Detail/Running/Event/index.tsx

@@ -18,7 +18,7 @@ const EventLog = (props: Props) => {
   const params = useParams<{ id: string }>();
   const { data } = props;
   const actionRef = useRef<ActionType>();
-  const [searchParams, setSearchParams] = useState<any>({ pageSize: 10 });
+  const [searchParams, setSearchParams] = useState<any>({});
   // const device = InstanceModel.detail;
   // const [subscribeTopic] = useSendWebsocketMessage();
 
@@ -142,9 +142,6 @@ const EventLog = (props: Props) => {
             ...param,
           });
         }}
-        pagination={{
-          pageSize: 10,
-        }}
         columns={[...createColumn(), ...columns]}
       />
     </div>

+ 4 - 1
src/pages/link/AccessConfig/Detail/components/Finish/index.tsx

@@ -350,7 +350,10 @@ const Finish = (props: Props) => {
                         channelId: props?.config?.network,
                       };
                     }
-                    const resp: any = await service[!props.data?.id ? 'save' : 'update'](param);
+                    const resp: any = await service[!props.data?.id ? 'save' : 'update']({
+                      ...param,
+                      id: props.data.id ? props.data.id : undefined,
+                    });
                     if (resp.status === 200) {
                       onlyMessage('操作成功!');
                       history.goBack();

+ 2 - 2
src/pages/link/AccessConfig/Detail/components/Protocol/index.less

@@ -68,8 +68,8 @@
 }
 
 .action {
-  position: absolute;
-  bottom: 0;
+  // position: absolute;
+  // bottom: 0;
   width: 100%;
   background: white;
 }