|  | @@ -104,9 +104,7 @@ const Analysis = (props) => {
 | 
											
												
													
														|  |      console.log(data);
 |  |      console.log(data);
 | 
											
												
													
														|  |      // alert(e)
 |  |      // alert(e)
 | 
											
												
													
														|  |      const itemIndex = data?.findIndex((item) => item.type == tab);
 |  |      const itemIndex = data?.findIndex((item) => item.type == tab);
 | 
											
												
													
														|  | -    const item = data[itemIndex]?.data?.find(
 |  | 
 | 
											
												
													
														|  | -      (item) => item.DeviceCode == e,
 |  | 
 | 
											
												
													
														|  | -    );
 |  | 
 | 
											
												
													
														|  | 
 |  | +    const item = data[itemIndex]?.data?.find((item) => item.DeviceCode == e);
 | 
											
												
													
														|  |      if (item) {
 |  |      if (item) {
 | 
											
												
													
														|  |        const dom = document.querySelector(`tr[data-row-key="${item.index}"]`);
 |  |        const dom = document.querySelector(`tr[data-row-key="${item.index}"]`);
 | 
											
												
													
														|  |        if (dom) {
 |  |        if (dom) {
 | 
											
										
											
												
													
														|  | @@ -157,7 +155,7 @@ const Analysis = (props) => {
 | 
											
												
													
														|  |      // selectedList[0] = index;
 |  |      // selectedList[0] = index;
 | 
											
												
													
														|  |      setSelectedRowKeys(index);
 |  |      setSelectedRowKeys(index);
 | 
											
												
													
														|  |      UnityAction.sendMsg('SynDev', record.DeviceCode);
 |  |      UnityAction.sendMsg('SynDev', record.DeviceCode);
 | 
											
												
													
														|  | -      };
 |  | 
 | 
											
												
													
														|  | 
 |  | +  };
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |    const setRowClassName = (record, index) => {
 |  |    const setRowClassName = (record, index) => {
 | 
											
												
													
														|  |      if (!selectedRowKeys && selectedRowKeys !== 0) return;
 |  |      if (!selectedRowKeys && selectedRowKeys !== 0) return;
 | 
											
										
											
												
													
														|  | @@ -168,32 +166,34 @@ const Analysis = (props) => {
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |    return (
 |  |    return (
 | 
											
												
													
														|  |      <Spin spinning={loading}>
 |  |      <Spin spinning={loading}>
 | 
											
												
													
														|  | -      <TabsContent
 |  | 
 | 
											
												
													
														|  | -        small={true}
 |  | 
 | 
											
												
													
														|  | -        center={false}
 |  | 
 | 
											
												
													
														|  | -        defaultActiveKey="1"
 |  | 
 | 
											
												
													
														|  | -        items={data?.map((item) => {
 |  | 
 | 
											
												
													
														|  | -          return {
 |  | 
 | 
											
												
													
														|  | -            label: `${item.name}(${item.data?.length || 0})`,
 |  | 
 | 
											
												
													
														|  | -            key: item.type,
 |  | 
 | 
											
												
													
														|  | -            children: (
 |  | 
 | 
											
												
													
														|  | -              <Table
 |  | 
 | 
											
												
													
														|  | -                dataSource={item.data}
 |  | 
 | 
											
												
													
														|  | -                columns={columns}
 |  | 
 | 
											
												
													
														|  | -                rowKey={'index'}
 |  | 
 | 
											
												
													
														|  | -                // rowSelection={rowSelection}
 |  | 
 | 
											
												
													
														|  | -                rowClassName={setRowClassName}
 |  | 
 | 
											
												
													
														|  | -                onRow={(record, index) => ({
 |  | 
 | 
											
												
													
														|  | -                  onClick: () => onSelectRow(record, index),
 |  | 
 | 
											
												
													
														|  | -                })}
 |  | 
 | 
											
												
													
														|  | -                pagination={false}
 |  | 
 | 
											
												
													
														|  | -                scroll={{ y: document.body.clientHeight - 730 }}
 |  | 
 | 
											
												
													
														|  | -              />
 |  | 
 | 
											
												
													
														|  | -            ),
 |  | 
 | 
											
												
													
														|  | -          };
 |  | 
 | 
											
												
													
														|  | -        })}
 |  | 
 | 
											
												
													
														|  | -        onChange={onTabChange}
 |  | 
 | 
											
												
													
														|  | -      />
 |  | 
 | 
											
												
													
														|  | 
 |  | +      <div style={{ height: 'calc(100vh - 5.6rem)', overflow: 'auto' }}>
 | 
											
												
													
														|  | 
 |  | +        <TabsContent
 | 
											
												
													
														|  | 
 |  | +          small={true}
 | 
											
												
													
														|  | 
 |  | +          center={false}
 | 
											
												
													
														|  | 
 |  | +          defaultActiveKey="1"
 | 
											
												
													
														|  | 
 |  | +          items={data?.map((item) => {
 | 
											
												
													
														|  | 
 |  | +            return {
 | 
											
												
													
														|  | 
 |  | +              label: `${item.name}(${item.data?.length || 0})`,
 | 
											
												
													
														|  | 
 |  | +              key: item.type,
 | 
											
												
													
														|  | 
 |  | +              children: (
 | 
											
												
													
														|  | 
 |  | +                <Table
 | 
											
												
													
														|  | 
 |  | +                  dataSource={item.data}
 | 
											
												
													
														|  | 
 |  | +                  columns={columns}
 | 
											
												
													
														|  | 
 |  | +                  rowKey={'index'}
 | 
											
												
													
														|  | 
 |  | +                  // rowSelection={rowSelection}
 | 
											
												
													
														|  | 
 |  | +                  rowClassName={setRowClassName}
 | 
											
												
													
														|  | 
 |  | +                  onRow={(record, index) => ({
 | 
											
												
													
														|  | 
 |  | +                    onClick: () => onSelectRow(record, index),
 | 
											
												
													
														|  | 
 |  | +                  })}
 | 
											
												
													
														|  | 
 |  | +                  pagination={false}
 | 
											
												
													
														|  | 
 |  | +                  scroll={{ y: document.body.clientHeight - 730 }}
 | 
											
												
													
														|  | 
 |  | +                />
 | 
											
												
													
														|  | 
 |  | +              ),
 | 
											
												
													
														|  | 
 |  | +            };
 | 
											
												
													
														|  | 
 |  | +          })}
 | 
											
												
													
														|  | 
 |  | +          onChange={onTabChange}
 | 
											
												
													
														|  | 
 |  | +        />
 | 
											
												
													
														|  | 
 |  | +      </div>
 | 
											
												
													
														|  |      </Spin>
 |  |      </Spin>
 | 
											
												
													
														|  |    );
 |  |    );
 | 
											
												
													
														|  |  };
 |  |  };
 |