|
@@ -35,7 +35,7 @@ export default function DuplicateFile() {
|
|
const [current, setCurrent] = useState(1); // 页码
|
|
const [current, setCurrent] = useState(1); // 页码
|
|
const [usePath, setUsePath] = useState<string>();
|
|
const [usePath, setUsePath] = useState<string>();
|
|
const [historyList, setHistoryList] = useState<historyListType[]>([]);
|
|
const [historyList, setHistoryList] = useState<historyListType[]>([]);
|
|
- const [fileList, setFileList] = useState<insertSearchFilesPasamsType[]>([
|
|
|
|
|
|
+ const [fileList, setFileList] = useState<FileInfoType[]>([
|
|
{
|
|
{
|
|
id: 1,
|
|
id: 1,
|
|
path: "D:/code/wb_project/bar_association_app",
|
|
path: "D:/code/wb_project/bar_association_app",
|
|
@@ -58,6 +58,8 @@ export default function DuplicateFile() {
|
|
const [isModalOpen, setIsModalOpen] = useState(false);
|
|
const [isModalOpen, setIsModalOpen] = useState(false);
|
|
const [fileInfo, setFileInfo] = useState<any>({});
|
|
const [fileInfo, setFileInfo] = useState<any>({});
|
|
const [fileInfoSource, setFileInfoSource] = useState<FileInfoType>({});
|
|
const [fileInfoSource, setFileInfoSource] = useState<FileInfoType>({});
|
|
|
|
+ const [current, setCurrent] = useState(1)
|
|
|
|
+ const [total, setTotal] = useState(0)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -67,8 +69,8 @@ export default function DuplicateFile() {
|
|
dataIndex: "id",
|
|
dataIndex: "id",
|
|
key: "id",
|
|
key: "id",
|
|
width: 30,
|
|
width: 30,
|
|
- render: (text: string, record: { id: number }) => (
|
|
|
|
- <CopyText width="30px" color="#333" name={record.id}></CopyText>
|
|
|
|
|
|
+ render: (text: string, record: { id?: number }) => (
|
|
|
|
+ <CopyText width="30px" color="#333" name={record.id || ''}></CopyText>
|
|
),
|
|
),
|
|
},
|
|
},
|
|
{
|
|
{
|
|
@@ -76,12 +78,12 @@ export default function DuplicateFile() {
|
|
dataIndex: "path",
|
|
dataIndex: "path",
|
|
key: "path",
|
|
key: "path",
|
|
width: 300,
|
|
width: 300,
|
|
- render: (text: string, record: { path: string }) => (
|
|
|
|
|
|
+ render: (text: string, record: { path?: string }) => (
|
|
<CopyText
|
|
<CopyText
|
|
width="300px"
|
|
width="300px"
|
|
ellipsisLine={1}
|
|
ellipsisLine={1}
|
|
color="#333"
|
|
color="#333"
|
|
- name={record.path}
|
|
|
|
|
|
+ name={record.path || ''}
|
|
></CopyText>
|
|
></CopyText>
|
|
),
|
|
),
|
|
},
|
|
},
|
|
@@ -90,12 +92,12 @@ export default function DuplicateFile() {
|
|
dataIndex: "time",
|
|
dataIndex: "time",
|
|
key: "time",
|
|
key: "time",
|
|
width: 100,
|
|
width: 100,
|
|
- render: (text: string, record: { time: string }) => (
|
|
|
|
|
|
+ render: (text: string, record: { time?: string }) => (
|
|
<CopyText
|
|
<CopyText
|
|
width="100px"
|
|
width="100px"
|
|
ellipsisLine={1}
|
|
ellipsisLine={1}
|
|
color="#333"
|
|
color="#333"
|
|
- name={record.time}
|
|
|
|
|
|
+ name={record.time || ''}
|
|
></CopyText>
|
|
></CopyText>
|
|
),
|
|
),
|
|
},
|
|
},
|
|
@@ -104,7 +106,7 @@ export default function DuplicateFile() {
|
|
dataIndex: "time",
|
|
dataIndex: "time",
|
|
key: "time",
|
|
key: "time",
|
|
with: 200,
|
|
with: 200,
|
|
- render: (text: string, record: { progress: number }) => (
|
|
|
|
|
|
+ render: (text: string, record: { progress?: number }) => (
|
|
<div style={{ width: "200px" }}>
|
|
<div style={{ width: "200px" }}>
|
|
<Progress percent={record.progress} />
|
|
<Progress percent={record.progress} />
|
|
</div>
|
|
</div>
|