@yilianjituan/yilian_dgerm 1.0.7-alpha.1 → 1.0.7-alpha.2

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.
Files changed (147) hide show
  1. package/.eslintrc.js +0 -0
  2. package/CHANGELOG.md +96 -0
  3. package/LICENSE +0 -0
  4. package/README.md +0 -0
  5. package/dist/business/Entry/index.d.ts +0 -0
  6. package/dist/business/Entry/index.interface.d.ts +0 -0
  7. package/dist/business/Entry/index.interface.js +0 -0
  8. package/dist/business/Entry/index.js +0 -0
  9. package/dist/business/Entry/index.scss +0 -0
  10. package/dist/business/TestBtn/index.d.ts +0 -0
  11. package/dist/business/TestBtn/index.interface.d.ts +0 -0
  12. package/dist/business/TestBtn/index.interface.js +0 -0
  13. package/dist/business/TestBtn/index.js +0 -0
  14. package/dist/commonAxios/Axios.d.ts +0 -0
  15. package/dist/commonAxios/Axios.js +0 -0
  16. package/dist/commonAxios/http.d.ts +0 -0
  17. package/dist/commonAxios/http.js +0 -0
  18. package/dist/commonAxios/index.d.ts +0 -0
  19. package/dist/commonAxios/index.js +0 -0
  20. package/dist/commonAxios/juicer.d.ts +0 -0
  21. package/dist/commonAxios/juicer.js +0 -0
  22. package/dist/commonData/address.d.ts +0 -0
  23. package/dist/commonData/address.js +0 -0
  24. package/dist/commonImg/ic_im_no_archives_new.png +0 -0
  25. package/dist/commonType/globalEnum.d.ts +0 -0
  26. package/dist/commonType/globalEnum.js +0 -0
  27. package/dist/commonType/globalFun.d.ts +0 -0
  28. package/dist/commonType/globalFun.js +0 -0
  29. package/dist/components/BigImage/index.d.ts +0 -0
  30. package/dist/components/BigImage/index.interface.d.ts +0 -0
  31. package/dist/components/BigImage/index.interface.js +0 -0
  32. package/dist/components/BigImage/index.js +0 -0
  33. package/dist/components/CustomButtonModal/index.d.ts +0 -0
  34. package/dist/components/CustomButtonModal/index.interface.d.ts +0 -0
  35. package/dist/components/CustomButtonModal/index.interface.js +0 -0
  36. package/dist/components/CustomButtonModal/index.js +0 -0
  37. package/dist/components/DateTimePicker/index.d.ts +0 -0
  38. package/dist/components/DateTimePicker/index.interface.d.ts +0 -0
  39. package/dist/components/DateTimePicker/index.interface.js +0 -0
  40. package/dist/components/DateTimePicker/index.js +0 -0
  41. package/dist/components/DropDownSelect/index.d.ts +0 -0
  42. package/dist/components/DropDownSelect/index.interface.d.ts +0 -0
  43. package/dist/components/DropDownSelect/index.interface.js +0 -0
  44. package/dist/components/DropDownSelect/index.js +0 -0
  45. package/dist/components/EmptyDom/index.d.ts +0 -0
  46. package/dist/components/EmptyDom/index.interface.d.ts +0 -0
  47. package/dist/components/EmptyDom/index.interface.js +0 -0
  48. package/dist/components/EmptyDom/index.js +0 -0
  49. package/dist/components/Entry/index.d.ts +0 -0
  50. package/dist/components/Entry/index.interface.d.ts +0 -0
  51. package/dist/components/Entry/index.interface.js +0 -0
  52. package/dist/components/Entry/index.js +0 -0
  53. package/dist/components/Entry/index.scss +0 -0
  54. package/dist/components/ExportExcels/ExportExcels.scss +0 -0
  55. package/dist/components/ExportExcels/index.d.ts +0 -0
  56. package/dist/components/ExportExcels/index.interface.d.ts +0 -0
  57. package/dist/components/ExportExcels/index.interface.js +0 -0
  58. package/dist/components/ExportExcels/index.js +0 -0
  59. package/dist/components/FileUpload/fileUtil.d.ts +0 -0
  60. package/dist/components/FileUpload/fileUtil.js +0 -0
  61. package/dist/components/FileUpload/index.d.ts +0 -0
  62. package/dist/components/FileUpload/index.interface.d.ts +0 -0
  63. package/dist/components/FileUpload/index.interface.js +0 -0
  64. package/dist/components/FileUpload/index.js +0 -0
  65. package/dist/components/FileUpload/index.scss +0 -0
  66. package/dist/components/FilterRadio/index.d.ts +0 -0
  67. package/dist/components/FilterRadio/index.interface.d.ts +0 -0
  68. package/dist/components/FilterRadio/index.interface.js +0 -0
  69. package/dist/components/FilterRadio/index.js +0 -0
  70. package/dist/components/FilterRadio/index.scss +0 -0
  71. package/dist/components/MyBtn/index.d.ts +0 -0
  72. package/dist/components/MyBtn/index.interface.d.ts +0 -0
  73. package/dist/components/MyBtn/index.interface.js +0 -0
  74. package/dist/components/MyBtn/index.js +0 -0
  75. package/dist/components/NumberInput/index.d.ts +0 -0
  76. package/dist/components/NumberInput/index.interface.d.ts +0 -0
  77. package/dist/components/NumberInput/index.interface.js +0 -0
  78. package/dist/components/NumberInput/index.js +0 -0
  79. package/dist/components/NumberInput/index.scss +0 -0
  80. package/dist/components/OcrCommon/index.config.d.ts +0 -0
  81. package/dist/components/OcrCommon/index.config.js +0 -0
  82. package/dist/components/OcrCommon/index.d.ts +0 -0
  83. package/dist/components/OcrCommon/index.interface.d.ts +0 -0
  84. package/dist/components/OcrCommon/index.interface.js +0 -0
  85. package/dist/components/OcrCommon/index.js +0 -0
  86. package/dist/components/OcrCommon/index.scss +0 -0
  87. package/dist/components/PageTemplate/index.d.ts +0 -0
  88. package/dist/components/PageTemplate/index.interface.d.ts +0 -0
  89. package/dist/components/PageTemplate/index.interface.js +0 -0
  90. package/dist/components/PageTemplate/index.js +25 -11
  91. package/dist/components/PageTemplate/index.scss +0 -0
  92. package/dist/components/PageTemplate/resizable/index.d.ts +0 -0
  93. package/dist/components/PageTemplate/resizable/index.js +0 -0
  94. package/dist/components/PageTemplate/resizable/index.scss +0 -0
  95. package/dist/components/ReactEcharts/index.d.ts +0 -0
  96. package/dist/components/ReactEcharts/index.interface.d.ts +0 -0
  97. package/dist/components/ReactEcharts/index.interface.js +0 -0
  98. package/dist/components/ReactEcharts/index.js +0 -0
  99. package/dist/components/SelectMax/index.d.ts +0 -0
  100. package/dist/components/SelectMax/index.interface.d.ts +0 -0
  101. package/dist/components/SelectMax/index.interface.js +0 -0
  102. package/dist/components/SelectMax/index.js +0 -0
  103. package/dist/components/SelectPosition/index.d.ts +0 -0
  104. package/dist/components/SelectPosition/index.interface.d.ts +0 -0
  105. package/dist/components/SelectPosition/index.interface.js +0 -0
  106. package/dist/components/SelectPosition/index.js +0 -0
  107. package/dist/components/SelectPosition/index.scss +0 -0
  108. package/dist/components/SuperCascader/index.d.ts +0 -0
  109. package/dist/components/SuperCascader/index.interface.d.ts +0 -0
  110. package/dist/components/SuperCascader/index.interface.js +0 -0
  111. package/dist/components/SuperCascader/index.js +0 -0
  112. package/dist/components/SuperInput/index.d.ts +0 -0
  113. package/dist/components/SuperInput/index.interface.d.ts +0 -0
  114. package/dist/components/SuperInput/index.interface.js +0 -0
  115. package/dist/components/SuperInput/index.js +0 -0
  116. package/dist/components/TabsMode/index.d.ts +0 -0
  117. package/dist/components/TabsMode/index.interface.d.ts +0 -0
  118. package/dist/components/TabsMode/index.interface.js +0 -0
  119. package/dist/components/TabsMode/index.js +0 -0
  120. package/dist/components/TypographyText/index.d.ts +0 -0
  121. package/dist/components/TypographyText/index.interface.d.ts +0 -0
  122. package/dist/components/TypographyText/index.interface.js +0 -0
  123. package/dist/components/TypographyText/index.js +0 -0
  124. package/dist/components/TypographyText/index.scss +0 -0
  125. package/dist/components/VideoProgressModal/index.d.ts +0 -0
  126. package/dist/components/VideoProgressModal/index.interface.d.ts +0 -0
  127. package/dist/components/VideoProgressModal/index.interface.js +0 -0
  128. package/dist/components/VideoProgressModal/index.js +0 -0
  129. package/dist/components/VideoProgressModal/index.scss +0 -0
  130. package/dist/components/YLModal/index.d.ts +0 -0
  131. package/dist/components/YLModal/index.interface.d.ts +0 -0
  132. package/dist/components/YLModal/index.interface.js +0 -0
  133. package/dist/components/YLModal/index.js +2 -3
  134. package/dist/index.d.ts +0 -0
  135. package/dist/index.js +0 -0
  136. package/dist/react-app-env.d.ts +0 -0
  137. package/dist/utils/common.d.ts +0 -0
  138. package/dist/utils/common.js +0 -0
  139. package/dist/utils/index.d.ts +0 -0
  140. package/dist/utils/index.js +0 -0
  141. package/dist/utils/notificationHelper.d.ts +0 -0
  142. package/dist/utils/notificationHelper.js +0 -0
  143. package/dist/utils/responseMessage.d.ts +0 -0
  144. package/dist/utils/responseMessage.js +0 -0
  145. package/dist/utils/userSessionActions.d.ts +0 -0
  146. package/dist/utils/userSessionActions.js +0 -0
  147. package/package.json +1 -1
package/.eslintrc.js CHANGED
File without changes
package/CHANGELOG.md ADDED
@@ -0,0 +1,96 @@
1
+ ## [1.0.6](https://git.yljt.cn:522/web-module/yl_dgerm/compare/v1.0.4...v1.0.6) (2025-09-18)
2
+
3
+ ### Bug Fixes
4
+
5
+ - pageTem 默认 small ([2b426fd](https://git.yljt.cn:522/web-module/yl_dgerm/commits/2b426fdd37c9cdaf4c8f99ad624de8e8cbbd784e))
6
+ - small 列表 ([8d578db](https://git.yljt.cn:522/web-module/yl_dgerm/commits/8d578dbc675282c6f25c5743a19aa4178de49603))
7
+ - 优化列表 ([ae29e68](https://git.yljt.cn:522/web-module/yl_dgerm/commits/ae29e6850e522fe9c1716e4efe9cbe18be9e65b0))
8
+ - 优化列表 ([55bb44f](https://git.yljt.cn:522/web-module/yl_dgerm/commits/55bb44f92cb2b1b94eefcba06972476722848257))
9
+ - 优化列表页导出 ([fbd3611](https://git.yljt.cn:522/web-module/yl_dgerm/commits/fbd36117e8d1e06d76ef02b913f6c98af14814f2))
10
+ - 修复列表滚动 ([d278335](https://git.yljt.cn:522/web-module/yl_dgerm/commits/d2783359c993bc3ef1b555978818421f9d3fc1c7))
11
+ - 修改分页重置时,页码也重置; ([03b812a](https://git.yljt.cn:522/web-module/yl_dgerm/commits/03b812aa12e00a83613d81a25648b193db7ba3b9))
12
+ - 列表优化 ([def63a8](https://git.yljt.cn:522/web-module/yl_dgerm/commits/def63a8b6c6ff44935dd2e4aa137a7676f63e180))
13
+ - 列表优化 ([ff1498e](https://git.yljt.cn:522/web-module/yl_dgerm/commits/ff1498e571fe8f0c7cd4e17cbcbf92bdd6c75e6c))
14
+ - 列表优化 ([e9becfd](https://git.yljt.cn:522/web-module/yl_dgerm/commits/e9becfd61668300a4bd44bd5417e97b416f9d335))
15
+ - 列表优化 ([c193fea](https://git.yljt.cn:522/web-module/yl_dgerm/commits/c193feac375e49f4dfbe5bd21a911b20c57823c7))
16
+
17
+ ### Features
18
+
19
+ - dropdownSelect 的 Option 添加禁用方法 ([34f7440](https://git.yljt.cn:522/web-module/yl_dgerm/commits/34f7440bb43ad5ede8a15d137905d76de4a860e0))
20
+ - dropdownSelect 添加 optionProps 增加 Options 的可扩展性 ([1cb2e46](https://git.yljt.cn:522/web-module/yl_dgerm/commits/1cb2e46109f500bae7ae05c005af8c328ebc8a52))
21
+ - filterRadio 支持防抖 ([9257ca6](https://git.yljt.cn:522/web-module/yl_dgerm/commits/9257ca607e7d89380343b74ddd4aa0c01800728e))
22
+
23
+ ## [1.0.4](https://git.yljt.cn:522/web-module/yl_dgerm/compare/v1.0.3...v1.0.4) (2025-05-29)
24
+
25
+ ### Bug Fixes
26
+
27
+ - 修复 OCR 识别组件受父组件刷新影响的问题 ([6266fbe](https://git.yljt.cn:522/web-module/yl_dgerm/commits/6266fbeaf2943f42b9e5e938c755714c47838f4a))
28
+
29
+ ## [1.0.3](https://git.yljt.cn:522/web-module/yl_dgerm/compare/v1.0.0...v1.0.3) (2025-05-19)
30
+
31
+ ### Bug Fixes
32
+
33
+ - 修复 pagetem 分页参数 ([2afa5b9](https://git.yljt.cn:522/web-module/yl_dgerm/commits/2afa5b99966c1faca007aa486aca86a1759fe3a2))
34
+ - 自定义 modal 弹窗样式,oss 上传组件优化 ([06e8a8f](https://git.yljt.cn:522/web-module/yl_dgerm/commits/06e8a8fb354b73698643ac0b67523a48cd5bcda2))
35
+
36
+ # [1.0.0](https://git.yljt.cn:522/web-module/yl_dgerm/compare/v0.0.1-alpha.47...v1.0.0) (2025-03-06)
37
+
38
+ ### Features
39
+
40
+ - 时间组件添加 showTime 判断,用来兼容 showTime === false 的情况 ([c365fc3](https://git.yljt.cn:522/web-module/yl_dgerm/commits/c365fc350bb7154bdebd7dc1ab69bccd5a8f5c7b))
41
+
42
+ ## [0.0.1-alpha.47](https://git.yljt.cn:522/web-module/yl_dgerm/compare/v0.0.1-alpha.39...v0.0.1-alpha.47) (2025-02-25)
43
+
44
+ ### Features
45
+
46
+ - YLModal 拖拽方案修改 ([4d0135](https://git.yljt.cn/web-module/yl_dgerm/-/commit/4d0135edc8bbf1acff4c66d6ebff3d9f7f1fc0f7))
47
+
48
+ ### Bug Fixes
49
+
50
+ - 修复 DropDownSelect 组件 ([40cf036](https://git.yljt.cn:522/web-module/yl_dgerm/commits/40cf03694b74d59e863e561830e10045074c49c7))
51
+
52
+ ## [0.0.1-alpha.39](https://git.yljt.cn:522/web-module/yl_dgerm/compare/eced17d51f298c04b61797eaea829549ed2c4bfa...v0.0.1-alpha.39) (2024-12-04)
53
+
54
+ ### Bug Fixes
55
+
56
+ - 版本修改 ([db121a2](https://git.yljt.cn:522/web-module/yl_dgerm/commits/db121a29a55e964bd8c2f54e74b51dd9961f93a8))
57
+ - 变量名称优化 ([3efe62f](https://git.yljt.cn:522/web-module/yl_dgerm/commits/3efe62f5037660137e01e2ad00b48345c93998d7))
58
+ - 封装 ocr 通用组件 ([de37c47](https://git.yljt.cn:522/web-module/yl_dgerm/commits/de37c476c1c70f3b17a264260c887342c0942095))
59
+ - 更新版本号 ([bb49068](https://git.yljt.cn:522/web-module/yl_dgerm/commits/bb49068c4aec1a75a095b5cbbc84885237fc6305))
60
+ - 更新版本号 ([22008e6](https://git.yljt.cn:522/web-module/yl_dgerm/commits/22008e6823a236515e88ff587ba998c23d0ea446))
61
+ - 清空粘贴板 ([0a38d1e](https://git.yljt.cn:522/web-module/yl_dgerm/commits/0a38d1ef8f9df314e68aff6265a9d4707a5ed152))
62
+ - 删除 html ([8bececc](https://git.yljt.cn:522/web-module/yl_dgerm/commits/8bececc59c80b0e98841f29f197896a95391fe60))
63
+ - 删除 jest ([bdbd693](https://git.yljt.cn:522/web-module/yl_dgerm/commits/bdbd693aa37c48f46310f94796ad51ac14c4b389))
64
+ - 文档维护 ([bd96292](https://git.yljt.cn:522/web-module/yl_dgerm/commits/bd9629247a451d22ca708cb9c6ca21026cfc9235))
65
+ - 文档维护 ([0794420](https://git.yljt.cn:522/web-module/yl_dgerm/commits/0794420b9fff50e5e497a49bcab898d61556bd9d))
66
+ - 文档维护 ([9503527](https://git.yljt.cn:522/web-module/yl_dgerm/commits/95035277799162ccb76fcaa82d877760114cf1da))
67
+ - 文档维护 ([e4d15d4](https://git.yljt.cn:522/web-module/yl_dgerm/commits/e4d15d4e86cfa79be49a46d7175adf59e9bbe2ca))
68
+ - 文档维护 ([303a5b6](https://git.yljt.cn:522/web-module/yl_dgerm/commits/303a5b60aef5b62463e95ca1ad62fa9f5699e072))
69
+ - 文档维护 ([b695706](https://git.yljt.cn:522/web-module/yl_dgerm/commits/b695706fd17290320f0b797b413612a617acc386))
70
+ - 文档维护 ([95dc2da](https://git.yljt.cn:522/web-module/yl_dgerm/commits/95dc2dae2d23e7141216ebd2bb86a33bac8099c8))
71
+ - 文档维护 ([5523d28](https://git.yljt.cn:522/web-module/yl_dgerm/commits/5523d28f00a8527a131a409ea3fd23a8fa5f8b05))
72
+ - 文档维护 ([8418bc2](https://git.yljt.cn:522/web-module/yl_dgerm/commits/8418bc288628080a93cfd504b11ac91505527573))
73
+ - 文档维护 ([0ca0a06](https://git.yljt.cn:522/web-module/yl_dgerm/commits/0ca0a06cce9c842b5f8b8a6e77883ae07c8d9d18))
74
+ - 文档维护 ([6303e90](https://git.yljt.cn:522/web-module/yl_dgerm/commits/6303e90100ea4cb545a3dfdbc591b0af74e6c124))
75
+ - 新版 ocr ([466896c](https://git.yljt.cn:522/web-module/yl_dgerm/commits/466896cbd5cdf8e67d66a3a6bdbdd8ab6f3bb5d9))
76
+ - 修复 ocr ([b5e1e6d](https://git.yljt.cn:522/web-module/yl_dgerm/commits/b5e1e6d3b4b456f674d49f653695ff976e52bf9c))
77
+ - 修复 ocr ([873297b](https://git.yljt.cn:522/web-module/yl_dgerm/commits/873297bd74ce73baebd33b9e5131ec36a1789646))
78
+ - 修复 ocr 样式 ([a5e2805](https://git.yljt.cn:522/web-module/yl_dgerm/commits/a5e2805007f0746918a9c0788c05221e9209e425))
79
+ - 修改版本号 ([7979da1](https://git.yljt.cn:522/web-module/yl_dgerm/commits/7979da1e60320e2c4ac393976986dfb8c01a168c))
80
+ - 修改名称 ([77d7d7d](https://git.yljt.cn:522/web-module/yl_dgerm/commits/77d7d7d174b79913b421208bb3e3408a5b61494a))
81
+ - 修改配置文件 ([3f1b7fa](https://git.yljt.cn:522/web-module/yl_dgerm/commits/3f1b7fa71c46fa09fe61b398429887aec356728d))
82
+ - 修改 favicon ([eced17d](https://git.yljt.cn:522/web-module/yl_dgerm/commits/eced17d51f298c04b61797eaea829549ed2c4bfa))
83
+ - 引入 jest 测试单元 ([9da3ee1](https://git.yljt.cn:522/web-module/yl_dgerm/commits/9da3ee178c7d2665b8da6dc61754e2fade1da02b))
84
+ - 组件梳理 ([8148b07](https://git.yljt.cn:522/web-module/yl_dgerm/commits/8148b07d054339c9b381eeba0a5554fc783dc8b3))
85
+ - config 配置 ([5615a1c](https://git.yljt.cn:522/web-module/yl_dgerm/commits/5615a1c763a6b834abefa8dcd29bb5e9debcbffb))
86
+ - config 配置 ([2504b67](https://git.yljt.cn:522/web-module/yl_dgerm/commits/2504b678703d5fc1bb679f949a348d6b5090da2f))
87
+ - config 配置 ([6f44588](https://git.yljt.cn:522/web-module/yl_dgerm/commits/6f44588e05fcd808c069e0f26e4c6e1da2923c89))
88
+ - jsdom 降版本 ([e37a38c](https://git.yljt.cn:522/web-module/yl_dgerm/commits/e37a38c4ff90f4ed24f52aaf0b3f5265e10f1ccc))
89
+ - jsdom 降版本 ([0b9dd48](https://git.yljt.cn:522/web-module/yl_dgerm/commits/0b9dd4871c5aff303c8c3eb1bb2e2da794861b76))
90
+ - jsdom 降版本 ([23d8f01](https://git.yljt.cn:522/web-module/yl_dgerm/commits/23d8f0188014fcee865396aaf665d06ede41929a))
91
+ - ocr 添加依赖 ([d23cd95](https://git.yljt.cn:522/web-module/yl_dgerm/commits/d23cd95f033fbd9ff4659e481136f87d0f5dbd8f))
92
+ - ocr 通用组件增加请求回调勾子 ([99951c9](https://git.yljt.cn:522/web-module/yl_dgerm/commits/99951c945fee863200909e135bead9e8110ca1bf))
93
+ - ocr 修复 ([42264e7](https://git.yljt.cn:522/web-module/yl_dgerm/commits/42264e76c39d9c1490d086b7a7b751edb6f7143c))
94
+ - test-library 降版本 ([1f93a8c](https://git.yljt.cn:522/web-module/yl_dgerm/commits/1f93a8caabe91943f534f19c3514bc3bae7951cb))
95
+ - test-library 降版本 ([03a5423](https://git.yljt.cn:522/web-module/yl_dgerm/commits/03a542314ce9736ec5a0faa8f0ee42243395e56f))
96
+ - title 文案修复 ([ed69177](https://git.yljt.cn:522/web-module/yl_dgerm/commits/ed69177cc96b63bc7a3bdeff483aa5a946f285dd))
package/LICENSE CHANGED
File without changes
package/README.md CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -111,14 +111,18 @@ var PageTemplate = function PageTemplate(props, ref) {
111
111
  useImperativeHandle(ref, function () {
112
112
  return {
113
113
  onSearch: function onSearch(param) {
114
+ // isRetainParam 是否保留参数
114
115
  var _ref = param || {},
115
- pageNo = _ref.pageNo;
116
- _onSearch(pageNo || 1);
116
+ pageNo = _ref.pageNo,
117
+ _ref$isRetainParam = _ref.isRetainParam,
118
+ isRetainParam = _ref$isRetainParam === void 0 ? false : _ref$isRetainParam;
119
+ _onSearch(pageNo, isRetainParam);
117
120
  },
118
121
  filters: _objectSpread({
119
122
  pageNo: current,
120
123
  pageSize: pageSizeRef.current
121
- }, form.getFieldsValue(true))
124
+ }, form.getFieldsValue(true)),
125
+ form: form
122
126
  };
123
127
  });
124
128
  useLayoutEffect(function () {
@@ -179,6 +183,7 @@ var PageTemplate = function PageTemplate(props, ref) {
179
183
  }, [props.columns, current, pageSizeRef.current]);
180
184
  var _onSearch = function _onSearch() {
181
185
  var current = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;
186
+ var isRetainParam = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
182
187
  if (Number.isNaN(Number(current))) current = 1;
183
188
  setTableLoading(true);
184
189
  var _props$url = props.url,
@@ -197,13 +202,15 @@ var PageTemplate = function PageTemplate(props, ref) {
197
202
  } : _props$afterErrorRequ;
198
203
  form.validateFields().then(function () {
199
204
  var values = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
205
+ // 是否保留参数
206
+ var _pageNo = isRetainParam ? paramsRef.current.pageNo : current;
200
207
  // 当前页码、每页条数暴露给beforeRequest的参数中
201
208
  var options = {
202
- pageNum: current,
209
+ pageNum: _pageNo,
203
210
  pageSize: pageSizeRef.current
204
211
  };
205
212
  paramsRef.current = beforeRequest(_objectSpread(_objectSpread({
206
- pageNo: current
213
+ pageNo: _pageNo
207
214
  }, values), options));
208
215
  if (!paramsRef.current) return; // 是否阻断搜索
209
216
 
@@ -231,12 +238,19 @@ var PageTemplate = function PageTemplate(props, ref) {
231
238
  return afterRequest(data.result || {});
232
239
  case 2:
233
240
  result = _context.sent;
234
- _ref3 = result || {}, totalElements = _ref3.totalElements, content = _ref3.content;
235
- setDataSource(content || []);
236
- dataSourceRef.current = content || [];
237
- setTotal(totalElements || '');
238
- setCurrent(current);
239
- case 8:
241
+ _ref3 = result || {}, totalElements = _ref3.totalElements, content = _ref3.content; // 没有数据,重置到上一页
242
+ if (content.length === 0 && _pageNo > 1) {
243
+ paramsRef.current = _objectSpread(_objectSpread({}, paramsRef.current), {}, {
244
+ pageNo: _pageNo - 1
245
+ });
246
+ _onSearch(paramsRef.current.pageNo, true);
247
+ } else {
248
+ setDataSource(content || []);
249
+ dataSourceRef.current = content || [];
250
+ setTotal(totalElements || '');
251
+ setCurrent(_pageNo);
252
+ }
253
+ case 5:
240
254
  case "end":
241
255
  return _context.stop();
242
256
  }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -8,12 +8,11 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
8
8
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
9
9
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
10
10
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11
- import React, { useRef, useState } from 'react';
11
+ import { CloseOutlined } from '@ant-design/icons';
12
12
  import { Modal } from 'antd';
13
13
  import debounce from 'lodash/debounce';
14
+ import React, { useRef, useState } from 'react';
14
15
  import Draggable from 'react-draggable';
15
- import { CloseOutlined } from '@ant-design/icons';
16
-
17
16
  // 平台常见弹窗宽度分类
18
17
  // 1300 审方 开户信息查询详情
19
18
  // 1000, 订单 | 药品 | 医生认证
package/dist/index.d.ts CHANGED
File without changes
package/dist/index.js CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yilianjituan/yilian_dgerm",
3
- "version": "1.0.7-alpha.1",
3
+ "version": "1.0.7-alpha.2",
4
4
  "description": "A react library developed with dumi",
5
5
  "keywords": [
6
6
  "React",