chen.lin
19 小时以前 c81fc5e2a4f4153be2bb8602ed14a0743e6ecd29
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import React from "react";
import { useNavigate } from "react-router-dom";
import { Box, IconButton, Typography } from "@mui/material";
import ArrowBackIcon from "@mui/icons-material/ArrowBack";
import RcsTestList from "./RcsTestList";
 
/**
 * RCS测试独立页面:无侧边栏、无标签栏,可单独打开或在新标签页打开
 */
const RcsTestStandalonePage = () => {
  const navigate = useNavigate();
 
  return (
    <Box sx={{ display: "flex", flexDirection: "column", height: "100vh" }}>
      <Box
        sx={{
          display: "flex",
          alignItems: "center",
          px: 1,
          py: 0.5,
          borderBottom: 1,
          borderColor: "divider",
          backgroundColor: "background.paper",
        }}
      >
        <IconButton
          onClick={() => navigate("/dashboard")}
          size="small"
          title="返回系统"
          sx={{ mr: 1 }}
        >
          <ArrowBackIcon />
        </IconButton>
        <Typography variant="subtitle1" component="span">
          RCS全流程自动测试(独立页)
        </Typography>
      </Box>
      <Box sx={{ flex: 1, overflow: "auto" }}>
        <RcsTestList />
      </Box>
    </Box>
  );
};
 
export default RcsTestStandalonePage;