zy-react-library 1.0.128 → 1.0.130
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.
- package/components/LeftTree/Department/Gwj/index.js +1 -1
- package/components/Select/Personnel/Gwj/index.js +1 -1
- package/components/SelectTree/Department/Gwj/index.js +1 -1
- package/hooks/useDeleteFile/index.js +2 -2
- package/hooks/useDownloadBlob/index.d.ts +1 -1
- package/hooks/useGetFile/index.js +1 -1
- package/hooks/useGetUserInfo/index.js +1 -1
- package/hooks/useUploadFile/index.js +1 -1
- package/package.json +1 -1
|
@@ -14,7 +14,7 @@ function DepartmentLeftTree(props) {
|
|
|
14
14
|
const [treeData, setTreeData] = useState([]);
|
|
15
15
|
|
|
16
16
|
const getData = async () => {
|
|
17
|
-
const { data } = await request("/
|
|
17
|
+
const { data } = await request("/basicInfo/department/listTree", "post", params);
|
|
18
18
|
setTreeData(data);
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -27,7 +27,7 @@ function PersonnelSelect(props) {
|
|
|
27
27
|
if (isNeedPostId && !params.postId)
|
|
28
28
|
return;
|
|
29
29
|
|
|
30
|
-
const { data } = await request("/
|
|
30
|
+
const { data } = await request("/basicInfo/user/listAll", "get", params);
|
|
31
31
|
setData(data);
|
|
32
32
|
};
|
|
33
33
|
|
|
@@ -28,7 +28,7 @@ function DepartmentSelectTree(props) {
|
|
|
28
28
|
return;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
const { data } = await request(searchType === "current" ? "/
|
|
31
|
+
const { data } = await request(searchType === "current" ? "/basicInfo/department/listTree" : "/basicInfo/department/listAllTree", "post", params);
|
|
32
32
|
setTreeData(data);
|
|
33
33
|
};
|
|
34
34
|
|
|
@@ -67,8 +67,8 @@ function useDeleteFile(returnType = "object") {
|
|
|
67
67
|
// 发送请求
|
|
68
68
|
request(
|
|
69
69
|
single
|
|
70
|
-
? `/
|
|
71
|
-
: `/
|
|
70
|
+
? `/basicInfo/imgFiles/delete?filePath=${files[0].filePath}`
|
|
71
|
+
: `/basicInfo/imgFiles/ids?ids=${files.filter(f => f.id).map(f => f.id)}`,
|
|
72
72
|
"delete",
|
|
73
73
|
)
|
|
74
74
|
.then((res) => {
|
|
@@ -7,7 +7,7 @@ interface UseDownloadBlobOptions {
|
|
|
7
7
|
params?: Record<string, any>;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
export type DownloadBlobFunction = (url: string, options
|
|
10
|
+
export type DownloadBlobFunction = (url: string, options?: UseDownloadBlobOptions) => Promise<any>;
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* 下载Blob流文件
|
|
@@ -100,7 +100,7 @@ function useUploadFile(returnType = "object") {
|
|
|
100
100
|
|
|
101
101
|
// 发送请求
|
|
102
102
|
request(
|
|
103
|
-
single ? "/
|
|
103
|
+
single ? "/basicInfo/imgFiles/save" : "/basicInfo/imgFiles/batchSave",
|
|
104
104
|
"post",
|
|
105
105
|
formData,
|
|
106
106
|
{ "Content-Type": "multipart/form-data" },
|