zy-react-library 1.0.73 → 1.0.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { request } from "@cqsjjb/jjb-common-lib/http";
|
|
2
|
-
import {
|
|
2
|
+
import {Button, Descriptions, Divider, Space, Spin} from "antd";
|
|
3
3
|
import dayjs from "dayjs";
|
|
4
4
|
import { useEffect, useState } from "react";
|
|
5
5
|
import { HIDDEN_SOURCE_ENUM, HIDDEN_STATE_ENUM } from "../../../enum/hidden/gwj";
|
|
@@ -202,7 +202,12 @@ function HiddenInfo(props) {
|
|
|
202
202
|
children: (
|
|
203
203
|
getFileSuffix(item.disposalFile) === "pdf"
|
|
204
204
|
? <PreviewPdf name={getFileName(item.disposalFile)} url={item.disposalFile} />
|
|
205
|
-
:
|
|
205
|
+
: (
|
|
206
|
+
<Space>
|
|
207
|
+
<span>{getFileName(item.disposalFile)}</span>
|
|
208
|
+
<Button type="primary" size="small" onClick={() => downloadFile(item.disposalFile)}>预览</Button>
|
|
209
|
+
</Space>
|
|
210
|
+
)
|
|
206
211
|
),
|
|
207
212
|
},
|
|
208
213
|
]
|
|
@@ -255,7 +260,12 @@ function HiddenInfo(props) {
|
|
|
255
260
|
children: (
|
|
256
261
|
getFileSuffix(item.disposalFile) === "pdf"
|
|
257
262
|
? <PreviewPdf name={getFileName(item.disposalFile)} url={item.disposalFile} />
|
|
258
|
-
:
|
|
263
|
+
: (
|
|
264
|
+
<Space>
|
|
265
|
+
<span>{getFileName(item.disposalFile)}</span>
|
|
266
|
+
<Button type="primary" size="small" onClick={() => downloadFile(item.disposalFile)}>预览</Button>
|
|
267
|
+
</Space>
|
|
268
|
+
)
|
|
259
269
|
),
|
|
260
270
|
},
|
|
261
271
|
{ label: "是否更换整改负责人", children: item.rectifyUserCO && Object.keys(item.rectifyUserCO).length > 0 ? "是" : "否" },
|
|
@@ -4,4 +4,4 @@ export type getUserInfoFunction = () => Promise<Record<string, any>>;
|
|
|
4
4
|
* 获取用户信息
|
|
5
5
|
*/
|
|
6
6
|
export default function useGetUserInfo(returnType: "array"): [boolean, getUserInfoFunction];
|
|
7
|
-
export default function useGetUserInfo(returnType?: "object"): { loading: boolean;
|
|
7
|
+
export default function useGetUserInfo(returnType?: "object"): { loading: boolean; getUserInfo: getUserInfoFunction };
|