dlt-for-react 1.0.24 → 1.1.0

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 (212) hide show
  1. package/README.md +12 -2
  2. package/lib/components/Button/index.js +79 -0
  3. package/lib/components/HqSelector/HqLsrySelector/index.js +3 -5
  4. package/lib/components/HqSelector/HqRySelector/index.js +3 -5
  5. package/lib/components/HqSelector/HqWzSelector/index.js +3 -5
  6. package/lib/components/KyEditableTable/component.js +3 -5
  7. package/lib/components/KyEditableTable/index.js +7 -13
  8. package/lib/components/KyExcel/index.js +3 -5
  9. package/lib/components/KyInputPicker/render.js +13 -43
  10. package/lib/components/KyInputPicker/setting-checkbox.js +3 -5
  11. package/lib/components/KyInputPicker/setting-multiSelect.js +3 -5
  12. package/lib/components/KyInputPicker/setting-nhcascader.js +3 -5
  13. package/lib/components/KyInputPicker/setting-select.js +3 -5
  14. package/lib/components/KyInputPicker/setting-stu-selector.js +3 -5
  15. package/lib/components/KyInputPicker/setting-tea-selector.js +3 -5
  16. package/lib/components/KyTable/checkButtons.js +4 -7
  17. package/lib/components/KyTree/index.js +6 -16
  18. package/lib/components/KyUpload/index.js +10 -20
  19. package/lib/components/NHAuditPanel/config/Axios.js +263 -0
  20. package/lib/components/NHAuditPanel/config/api.js +479 -0
  21. package/lib/components/NHAuditPanel/config/data.js +156 -0
  22. package/lib/components/NHAuditPanel/config/typeMap.js +1234 -0
  23. package/lib/components/NHAuditPanel/config/uiValidate.js +92 -0
  24. package/lib/components/NHAuditPanel/index.js +413 -0
  25. package/lib/components/NHAuditPanel/node.js +619 -0
  26. package/lib/components/NHCascader/index.js +355 -0
  27. package/lib/components/NHCheckboxGroup/index.js +135 -0
  28. package/lib/components/NHDynamicFormShow/baseInfo/index.js +194 -0
  29. package/lib/components/NHDynamicFormShow/custom/index.js +553 -0
  30. package/lib/components/NHDynamicFormShow/customModule/common/CommonMethod.js +43 -0
  31. package/lib/components/NHDynamicFormShow/customModule/czxy/qgzx/EditForm.js +1113 -0
  32. package/lib/components/NHDynamicFormShow/customModule/czxy/qgzx/index.js +263 -0
  33. package/lib/components/NHDynamicFormShow/customModule/czxy/xfjm/EditForm.js +880 -0
  34. package/lib/components/NHDynamicFormShow/customModule/czxy/xfjm/index.js +171 -0
  35. package/lib/components/NHDynamicFormShow/customModule/czxy/zxj/EditForm.js +865 -0
  36. package/lib/components/NHDynamicFormShow/customModule/czxy/zxj/index.js +138 -0
  37. package/lib/components/NHDynamicFormShow/customModule/eszy/zsxxhd/EditForm.js +571 -0
  38. package/lib/components/NHDynamicFormShow/customModule/eszy/zsxxhd/index.js +147 -0
  39. package/lib/components/NHDynamicFormShow/customModule/eszy/zybjtz/EditForm.js +474 -0
  40. package/lib/components/NHDynamicFormShow/customModule/eszy/zybjtz/index.js +139 -0
  41. package/lib/components/NHDynamicFormShow/customModule/gnyxy/cqzg/EditForm.js +506 -0
  42. package/lib/components/NHDynamicFormShow/customModule/gnyxy/cqzg/index.js +143 -0
  43. package/lib/components/NHDynamicFormShow/customModule/gnyxy/gwsb/EditForm.js +1074 -0
  44. package/lib/components/NHDynamicFormShow/customModule/gnyxy/gwsb/index.js +172 -0
  45. package/lib/components/NHDynamicFormShow/customModule/gnyxy/qjgl/EditForm.js +927 -0
  46. package/lib/components/NHDynamicFormShow/customModule/gnyxy/qjgl/index.js +195 -0
  47. package/lib/components/NHDynamicFormShow/customModule/gnyxy/sxsqj/EditForm.js +1064 -0
  48. package/lib/components/NHDynamicFormShow/customModule/gnyxy/sxsqj/index.js +183 -0
  49. package/lib/components/NHDynamicFormShow/customModule/hblgxy/jxj/EditForm.js +763 -0
  50. package/lib/components/NHDynamicFormShow/customModule/hblgxy/jxj/index.js +137 -0
  51. package/lib/components/NHDynamicFormShow/customModule/hblgxy/lzjxj/EditForm.js +819 -0
  52. package/lib/components/NHDynamicFormShow/customModule/hblgxy/lzjxj/index.js +137 -0
  53. package/lib/components/NHDynamicFormShow/customModule/hblgxy/qgzx/EditForm.js +700 -0
  54. package/lib/components/NHDynamicFormShow/customModule/hblgxy/qgzx/index.js +162 -0
  55. package/lib/components/NHDynamicFormShow/customModule/hblgxy/xsqj/EditForm.js +743 -0
  56. package/lib/components/NHDynamicFormShow/customModule/hblgxy/xsqj/index.js +177 -0
  57. package/lib/components/NHDynamicFormShow/customModule/hblgxy/zxj/EditForm.js +848 -0
  58. package/lib/components/NHDynamicFormShow/customModule/hblgxy/zxj/index.js +138 -0
  59. package/lib/components/NHDynamicFormShow/customModule/hljwgy/qjgl/EditForm.js +777 -0
  60. package/lib/components/NHDynamicFormShow/customModule/hljwgy/qjgl/index.js +161 -0
  61. package/lib/components/NHDynamicFormShow/customModule/hljwgy/xjgl/EditForm.js +706 -0
  62. package/lib/components/NHDynamicFormShow/customModule/hljwgy/xjgl/index.js +130 -0
  63. package/lib/components/NHDynamicFormShow/customModule/jhysxy/cfjcsq/cfjcEditForm.js +413 -0
  64. package/lib/components/NHDynamicFormShow/customModule/jhysxy/cfjcsq/index.js +135 -0
  65. package/lib/components/NHDynamicFormShow/customModule/jhysxy/xsqj/EditForm.js +1013 -0
  66. package/lib/components/NHDynamicFormShow/customModule/jhysxy/xsqj/index.js +175 -0
  67. package/lib/components/NHDynamicFormShow/customModule/jjrlx/EditForm.js +1345 -0
  68. package/lib/components/NHDynamicFormShow/customModule/jjrlx/index.js +274 -0
  69. package/lib/components/NHDynamicFormShow/customModule/jxj/EditForm.js +669 -0
  70. package/lib/components/NHDynamicFormShow/customModule/jxj/index.js +134 -0
  71. package/lib/components/NHDynamicFormShow/customModule/jxsl/fqkns/EditForm.js +378 -0
  72. package/lib/components/NHDynamicFormShow/customModule/jxsl/fqkns/index.js +120 -0
  73. package/lib/components/NHDynamicFormShow/customModule/jxsl/xwryfjjd/EditForm.js +638 -0
  74. package/lib/components/NHDynamicFormShow/customModule/jxsl/xwryfjjd/index.js +133 -0
  75. package/lib/components/NHDynamicFormShow/customModule/qgzx/EditForm.js +965 -0
  76. package/lib/components/NHDynamicFormShow/customModule/qgzx/index.js +237 -0
  77. package/lib/components/NHDynamicFormShow/customModule/qjgl/EditForm.js +823 -0
  78. package/lib/components/NHDynamicFormShow/customModule/qjgl/index.js +188 -0
  79. package/lib/components/NHDynamicFormShow/customModule/rcgl/jqlssq/EditForm.js +401 -0
  80. package/lib/components/NHDynamicFormShow/customModule/rcgl/jqlssq/index.js +472 -0
  81. package/lib/components/NHDynamicFormShow/customModule/rcgl/tssq/EditForm.js +304 -0
  82. package/lib/components/NHDynamicFormShow/customModule/rcgl/tssq/NHCascader/index.js +375 -0
  83. package/lib/components/NHDynamicFormShow/customModule/rcgl/tssq/NHInputPicker/RadioGroup.js +118 -0
  84. package/lib/components/NHDynamicFormShow/customModule/rcgl/tssq/NHInputPicker/index.js +62 -0
  85. package/lib/components/NHDynamicFormShow/customModule/rcgl/tssq/NHInputPicker/input-const.js +55 -0
  86. package/lib/components/NHDynamicFormShow/customModule/rcgl/tssq/NHInputPicker/render.js +1238 -0
  87. package/lib/components/NHDynamicFormShow/customModule/rcgl/tssq/index.js +375 -0
  88. package/lib/components/NHDynamicFormShow/customModule/rych/collective/EditForm.js +554 -0
  89. package/lib/components/NHDynamicFormShow/customModule/rych/collective/index.js +130 -0
  90. package/lib/components/NHDynamicFormShow/customModule/rych/personal/EditForm.js +542 -0
  91. package/lib/components/NHDynamicFormShow/customModule/rych/personal/index.js +133 -0
  92. package/lib/components/NHDynamicFormShow/customModule/sxgy/rych/collective/EditForm.js +575 -0
  93. package/lib/components/NHDynamicFormShow/customModule/sxgy/rych/collective/index.js +130 -0
  94. package/lib/components/NHDynamicFormShow/customModule/sxgy/rych/personal/EditForm.js +563 -0
  95. package/lib/components/NHDynamicFormShow/customModule/sxgy/rych/personal/index.js +133 -0
  96. package/lib/components/NHDynamicFormShow/customModule/whcz/qjgl/EditForm.js +745 -0
  97. package/lib/components/NHDynamicFormShow/customModule/whcz/qjgl/index.js +164 -0
  98. package/lib/components/NHDynamicFormShow/customModule/whcz/rccrxy/EditForm.js +587 -0
  99. package/lib/components/NHDynamicFormShow/customModule/whcz/rccrxy/index.js +143 -0
  100. package/lib/components/NHDynamicFormShow/customModule/whdlqjgl/EditForm.js +743 -0
  101. package/lib/components/NHDynamicFormShow/customModule/whdlqjgl/index.js +172 -0
  102. package/lib/components/NHDynamicFormShow/customModule/whgc/jjrlx/EditForm.js +1410 -0
  103. package/lib/components/NHDynamicFormShow/customModule/whgc/jjrlx/index.js +274 -0
  104. package/lib/components/NHDynamicFormShow/customModule/whgc/jxj/EditForm.js +755 -0
  105. package/lib/components/NHDynamicFormShow/customModule/whgc/jxj/index.js +130 -0
  106. package/lib/components/NHDynamicFormShow/customModule/whgc/qjgl/EditForm.js +814 -0
  107. package/lib/components/NHDynamicFormShow/customModule/whgc/qjgl/index.js +188 -0
  108. package/lib/components/NHDynamicFormShow/customModule/whgc/zxj/EditForm.js +769 -0
  109. package/lib/components/NHDynamicFormShow/customModule/whgc/zxj/index.js +130 -0
  110. package/lib/components/NHDynamicFormShow/customModule/whgcrych/EditForm.js +1004 -0
  111. package/lib/components/NHDynamicFormShow/customModule/whgcrych/index.js +126 -0
  112. package/lib/components/NHDynamicFormShow/customModule/whtl/jsrzsq/EditForm.js +503 -0
  113. package/lib/components/NHDynamicFormShow/customModule/whtl/jsrzsq/index.js +149 -0
  114. package/lib/components/NHDynamicFormShow/customModule/whtlyhk/EditForm.js +379 -0
  115. package/lib/components/NHDynamicFormShow/customModule/whtlyhk/index.js +148 -0
  116. package/lib/components/NHDynamicFormShow/customModule/whtlzxj/EditForm.js +748 -0
  117. package/lib/components/NHDynamicFormShow/customModule/whtlzxj/index.js +135 -0
  118. package/lib/components/NHDynamicFormShow/customModule/whtlzy/jxj/EditForm.js +762 -0
  119. package/lib/components/NHDynamicFormShow/customModule/whtlzy/jxj/index.js +134 -0
  120. package/lib/components/NHDynamicFormShow/customModule/wjcf/cfjc/cfjcEditForm.js +682 -0
  121. package/lib/components/NHDynamicFormShow/customModule/wjcf/cfjc/index.js +135 -0
  122. package/lib/components/NHDynamicFormShow/customModule/wjcf/wjsb/index.js +152 -0
  123. package/lib/components/NHDynamicFormShow/customModule/wjcf/wjsb/wjsbEditForm.js +783 -0
  124. package/lib/components/NHDynamicFormShow/customModule/zxj/EditForm.js +764 -0
  125. package/lib/components/NHDynamicFormShow/customModule/zxj/index.js +138 -0
  126. package/lib/components/NHDynamicFormShow/customModule/zzsd/cfjcsq/cfjcEditForm.js +677 -0
  127. package/lib/components/NHDynamicFormShow/customModule/zzsd/cfjcsq/index.js +138 -0
  128. package/lib/components/NHDynamicFormShow/customModule/zzsd/qjgl/EditForm.js +1173 -0
  129. package/lib/components/NHDynamicFormShow/customModule/zzsd/qjgl/index.js +242 -0
  130. package/lib/components/NHDynamicFormShow/customModule/zzsd/rcgl/rcxwgrdj/IndividualRegistForm.js +862 -0
  131. package/lib/components/NHDynamicFormShow/customModule/zzsd/rcgl/rcxwgrdj/IndividualRegistIndex.js +201 -0
  132. package/lib/components/NHDynamicFormShow/customModule/zzsd/stuinfo/messageInfo.js +196 -0
  133. package/lib/components/NHDynamicFormShow/customModule/zzsd/wjsb/index.js +167 -0
  134. package/lib/components/NHDynamicFormShow/customModule/zzsd/wjsb/wjsbEditForm.js +1096 -0
  135. package/lib/components/NHDynamicFormShow/index.js +647 -0
  136. package/lib/components/NHDynamicFormShow/oneOnMany/cardForm/cardItem/index.js +279 -0
  137. package/lib/components/NHDynamicFormShow/oneOnMany/cardForm/index.js +206 -0
  138. package/lib/components/NHDynamicFormShow/oneOnMany/index.js +419 -0
  139. package/lib/components/NHDynamicFormShow/oneOnOne/EditForm.js +401 -0
  140. package/lib/components/NHDynamicFormShow/oneOnOne/index.js +271 -0
  141. package/lib/components/NHImagePicker/index.js +554 -0
  142. package/lib/components/NHInputPicker/RadioGroup.js +118 -0
  143. package/lib/components/NHInputPicker/index.js +62 -0
  144. package/lib/components/NHInputPicker/input-const.js +55 -0
  145. package/lib/components/NHInputPicker/render.js +1271 -0
  146. package/lib/components/NHListView/index.js +374 -0
  147. package/lib/components/NHMapGeolocation/index.js +537 -0
  148. package/lib/components/NHMapGeolocation/initMap/initGdMap.js +104 -0
  149. package/lib/components/NHMapGeolocation/initMap/initTencentMap.js +138 -0
  150. package/lib/components/NHMapGeolocation/style.js +51 -0
  151. package/lib/components/NHMultiSelect/index.js +272 -0
  152. package/lib/components/NHRadioGroup/index.js +118 -0
  153. package/lib/components/NHSelect/index.js +364 -0
  154. package/lib/components/NHTreeMenu/index.js +126 -0
  155. package/lib/components/NHTreeMenu/treeNode.js +164 -0
  156. package/lib/components/StuSelector/index.js +611 -0
  157. package/lib/index.js +156 -120
  158. package/lib/layouts/KyInputPicker/edit-page.js +585 -0
  159. package/lib/layouts/KyInputPicker/index.js +220 -0
  160. package/lib/layouts/KyInputPicker/input-const.js +134 -0
  161. package/lib/layouts/KyInputPicker/render.js +2477 -0
  162. package/lib/layouts/KyInputPicker/setting-checkbox.js +850 -0
  163. package/lib/layouts/KyInputPicker/setting-datepicker.js +430 -0
  164. package/lib/layouts/KyInputPicker/setting-datetimepicker.js +443 -0
  165. package/lib/layouts/KyInputPicker/setting-input.js +555 -0
  166. package/lib/layouts/KyInputPicker/setting-inputNumber.js +612 -0
  167. package/lib/layouts/KyInputPicker/setting-monthpicker.js +434 -0
  168. package/lib/layouts/KyInputPicker/setting-multiSelect.js +532 -0
  169. package/lib/layouts/KyInputPicker/setting-nhcascader.js +584 -0
  170. package/lib/layouts/KyInputPicker/setting-old-upload.js +428 -0
  171. package/lib/layouts/KyInputPicker/setting-radio.js +468 -0
  172. package/lib/layouts/KyInputPicker/setting-rangepicker.js +466 -0
  173. package/lib/layouts/KyInputPicker/setting-select.js +534 -0
  174. package/lib/layouts/KyInputPicker/setting-stu-selector.js +507 -0
  175. package/lib/layouts/KyInputPicker/setting-switch.js +274 -0
  176. package/lib/layouts/KyInputPicker/setting-tea-selector.js +507 -0
  177. package/lib/layouts/KyInputPicker/setting-textarea.js +619 -0
  178. package/lib/layouts/KyInputPicker/setting-timepicker.js +437 -0
  179. package/lib/layouts/KyInputPicker/setting-upload.js +766 -0
  180. package/lib/layouts/KyModal/buildTitle.js +81 -0
  181. package/lib/layouts/KyModal/dragM.js +127 -0
  182. package/lib/layouts/KyModal/index.js +321 -0
  183. package/lib/layouts/KyPreview/index.js +219 -0
  184. package/lib/layouts/KyUpload/index.js +1155 -0
  185. package/lib/layouts/LeftMenu/index.js +5 -11
  186. package/lib/layouts/NavigationBar/index.js +4 -10
  187. package/lib/layouts/Top/editPassWord.js +5 -7
  188. package/lib/layouts/Top/index.js +6 -20
  189. package/lib/layouts/TopMenu/index.js +11 -14
  190. package/lib/layouts/layout/index.js +7 -13
  191. package/lib/layouts/{Login → login}/index-pre.js +3 -5
  192. package/lib/layouts/{Login → login}/index.js +6 -8
  193. package/lib/layouts/{Login → login}/login.js +8 -17
  194. package/lib/layouts/mixTop/index.js +13 -28
  195. package/lib/layouts/settingDrawer/index.js +3 -5
  196. package/lib/routes/AuthorizedRoute.js +7 -13
  197. package/lib/utils/NHCore.js +46 -2
  198. package/lib/utils/browserJudge.js +33 -0
  199. package/lib/utils/common.js +18 -20
  200. package/lib/utils/createUuid.js +11 -31
  201. package/lib/utils/device.js +44 -0
  202. package/lib/utils/dynamicLoadCss.js +14 -0
  203. package/lib/utils/dynamicLoadJs.js +21 -0
  204. package/lib/utils/getLoginUser.js +1 -1
  205. package/lib/utils/getSize.js +2 -11
  206. package/lib/utils/getStyle.js +26 -0
  207. package/lib/utils/getSuitHeight.js +49 -0
  208. package/lib/utils/hasAuth.js +11 -0
  209. package/lib/utils/index.js +1 -34
  210. package/lib/utils/loadJS.js +40 -0
  211. package/package.json +1 -1
  212. /package/lib/layouts/{Login → login}/lyPassword.js +0 -0
@@ -0,0 +1,677 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ var _card = require("antd-mobile/lib/card");
8
+
9
+ var _card2 = _interopRequireDefault(_card);
10
+
11
+ var _whiteSpace = require("antd-mobile/lib/white-space");
12
+
13
+ var _whiteSpace2 = _interopRequireDefault(_whiteSpace);
14
+
15
+ var _inputItem = require("antd-mobile/lib/input-item");
16
+
17
+ var _inputItem2 = _interopRequireDefault(_inputItem);
18
+
19
+ var _textareaItem = require("antd-mobile/lib/textarea-item");
20
+
21
+ var _textareaItem2 = _interopRequireDefault(_textareaItem);
22
+
23
+ var _list = require("antd-mobile/lib/list");
24
+
25
+ var _list2 = _interopRequireDefault(_list);
26
+
27
+ var _toast = require("antd-mobile/lib/toast");
28
+
29
+ var _toast2 = _interopRequireDefault(_toast);
30
+
31
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
32
+
33
+ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
34
+
35
+ require("antd-mobile/lib/card/style/css");
36
+
37
+ require("antd-mobile/lib/white-space/style/css");
38
+
39
+ require("antd-mobile/lib/input-item/style/css");
40
+
41
+ require("antd-mobile/lib/textarea-item/style/css");
42
+
43
+ require("antd-mobile/lib/list/style/css");
44
+
45
+ require("antd-mobile/lib/toast/style/css");
46
+
47
+ var _react = require("react");
48
+
49
+ var _react2 = _interopRequireDefault(_react);
50
+
51
+ var _moment = require("moment");
52
+
53
+ var _moment2 = _interopRequireDefault(_moment);
54
+
55
+ var _NHFetch = require("../../../../../utils/NHFetch");
56
+
57
+ var _NHFetch2 = _interopRequireDefault(_NHFetch);
58
+
59
+ var _index = require("../../../../NHImagePicker/index");
60
+
61
+ var _index2 = _interopRequireDefault(_index);
62
+
63
+ var _rcForm = require("rc-form");
64
+
65
+ var _classnames = require("classnames");
66
+
67
+ var _classnames2 = _interopRequireDefault(_classnames);
68
+
69
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
70
+
71
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
72
+
73
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
74
+
75
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
76
+
77
+ var basicUrl = 'api/sm-punish/';
78
+ var getHashParam = function getHashParam(name) {
79
+ var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)'),
80
+ queryString = window.location.hash.split('?')[1] || '',
81
+ result = queryString.match(reg);
82
+ return result ? decodeURIComponent(result[2]) : null;
83
+ };
84
+
85
+ var ZzsdCfjcEditForm = function (_React$Component) {
86
+ _inherits(ZzsdCfjcEditForm, _React$Component);
87
+
88
+ function ZzsdCfjcEditForm(props) {
89
+ _classCallCheck(this, ZzsdCfjcEditForm);
90
+
91
+ var _this = _possibleConstructorReturn(this, (ZzsdCfjcEditForm.__proto__ || Object.getPrototypeOf(ZzsdCfjcEditForm)).call(this, props));
92
+
93
+ _this.componentDidMount = function () {
94
+ var pkid = _this.props.pkid;
95
+
96
+ _this.getXscfjcxxByPkid(pkid, function (data) {
97
+ if (data) {
98
+ _this.initData(data);
99
+ } else {
100
+ //非审核
101
+ var wjdjid = getHashParam('wjdjid');
102
+ if (wjdjid) {
103
+ (0, _NHFetch2.default)(basicUrl + ("openapi/getXsWjdjByPkidWjjc/" + wjdjid), 'GET').then(function (res) {
104
+ if (res && res.code === 200) {
105
+ _this.initData(_extends({}, res.data, { FJID: undefined }));
106
+ } else {
107
+ _toast2.default.fail("获取处分信息失败");
108
+ }
109
+ }).catch(function (e) {
110
+ _toast2.default.fail("获取处分信息失败");
111
+ });
112
+ } else {
113
+ _toast2.default.info('缺少处分信息');
114
+ }
115
+ }
116
+ });
117
+ };
118
+
119
+ _this.initData = function (data) {
120
+ _this.setState({
121
+ cfjgid: data.CFJGID,
122
+ wjlxmc: data.WJLXMC,
123
+ wjsj: data.WJSJSTR || data.WJSJ,
124
+ wjnr: data.WJNR,
125
+ wjss: data.WJSS,
126
+ cflxmc: data.CFMC,
127
+ cfxqmc: data.CFXQMC || data.XQMC,
128
+ cfkssj: data.CFKSSJSTR || data.CFKSSJ,
129
+ cfjssj: data.CFJSSJSTR || data.CFJSSJ,
130
+ cfwh: data.CFWH,
131
+ cfjcwh: data.CFJCWH,
132
+ jcly: data.JCLY,
133
+ jljl: data.JLJL,
134
+ fjid: data.FJID || _this.state.fjid,
135
+ jclx: data.JCLX,
136
+ jclxmc: data.JCLXMC
137
+ });
138
+ };
139
+
140
+ _this.onChange = function (seq, value, text) {
141
+ _this.props.onChange && _this.props.onChange(seq, value, text);
142
+ };
143
+
144
+ _this.getXscfjcxxByPkid = function (pkid, callback) {
145
+ (0, _NHFetch2.default)(basicUrl + 'openapi/' + pkid + '/getXscfjcxxByPkid', 'GET').then(function (res) {
146
+ if (res && res.code === 200) {
147
+ callback(res.data);
148
+ } else {
149
+ _toast2.default.fail("获取处分信息失败");
150
+ }
151
+ });
152
+ };
153
+
154
+ _this.requiredParams = function (required, id) {
155
+ var getFieldError = _this.props.form.getFieldError;
156
+
157
+ return {
158
+ error: getFieldError(id) !== undefined
159
+ };
160
+ };
161
+
162
+ _this.getDataList = function (fieldMap) {
163
+ var _this$props$form = _this.props.form,
164
+ getFieldProps = _this$props$form.getFieldProps,
165
+ getFieldError = _this$props$form.getFieldError;
166
+ var _this$state = _this.state,
167
+ wjlxmc = _this$state.wjlxmc,
168
+ wjsj = _this$state.wjsj,
169
+ wjnr = _this$state.wjnr,
170
+ wjss = _this$state.wjss,
171
+ cflxmc = _this$state.cflxmc,
172
+ cfxqmc = _this$state.cfxqmc,
173
+ cfkssj = _this$state.cfkssj,
174
+ cfjssj = _this$state.cfjssj,
175
+ cfjcwh = _this$state.cfjcwh,
176
+ jcly = _this$state.jcly,
177
+ cfjgid = _this$state.cfjgid,
178
+ fjid = _this$state.fjid,
179
+ jclx = _this$state.jclx,
180
+ jljl = _this$state.jljl,
181
+ jclxmc = _this$state.jclxmc;
182
+
183
+ var fieldMapList = [];
184
+ //违纪类型,只展示,不能编辑,因此不做处理
185
+ if (fieldMap.WJLXMC && fieldMap.WJLXMC.sfxs === '1') {
186
+ var required = fieldMap.WJLXMC.sfbt === "1" ? true : false;
187
+ var editable = fieldMap.WJLXMC.sfbj === "1" ? true : false;
188
+ fieldMapList.push({
189
+ id: 'wjlxmc',
190
+ title: '违纪类型',
191
+ isUpload: false,
192
+ text: wjlxmc,
193
+ required: required,
194
+ render: function render() {
195
+ getFieldProps('cfjgid', {
196
+ initialValue: cfjgid
197
+ });
198
+ return _react2.default.createElement(
199
+ "div",
200
+ { className: (0, _classnames2.default)({ 'nh-inputrender': editable, 'nh-inputrender-disabled': !editable }) },
201
+ _react2.default.createElement(
202
+ _list2.default.Item,
203
+ {
204
+ extra: wjlxmc
205
+ },
206
+ "\u8FDD\u7EAA\u7C7B\u578B"
207
+ )
208
+ );
209
+ }
210
+ });
211
+ }
212
+
213
+ //违纪时间
214
+ if (fieldMap.WJSJ && fieldMap.WJSJ.sfxs === '1') {
215
+ var _required = fieldMap.WJSJ.sfbt === "1" ? true : false;
216
+ var _editable = fieldMap.WJSJ.sfbj === "1" ? true : false;
217
+ fieldMapList.push({
218
+ id: 'wjsj',
219
+ title: '违纪时间',
220
+ isUpload: false,
221
+ text: wjsj,
222
+ required: _required,
223
+ render: function render() {
224
+ getFieldProps('wjsj', {
225
+ initialValue: wjsj ? (0, _moment2.default)(wjsj, "YYYY-MM-DD") : null
226
+ });
227
+ return _react2.default.createElement(
228
+ "div",
229
+ { className: (0, _classnames2.default)({ 'nh-inputrender': _editable, 'nh-inputrender-disabled': !_editable }) },
230
+ _react2.default.createElement(
231
+ _list2.default.Item,
232
+ {
233
+ extra: wjsj
234
+ },
235
+ "\u8FDD\u7EAA\u65F6\u95F4"
236
+ )
237
+ );
238
+ }
239
+ });
240
+ }
241
+
242
+ //处分类型
243
+ if (fieldMap.CFLXMC && fieldMap.CFLXMC.sfxs === '1') {
244
+ var _required2 = fieldMap.CFLXMC.sfbt === "1" ? true : false;
245
+ var _editable2 = fieldMap.CFLXMC.sfbj === "1" ? true : false;
246
+ fieldMapList.push({
247
+ id: 'cflxmc',
248
+ title: '处分类型',
249
+ isUpload: false,
250
+ text: cflxmc,
251
+ required: _required2,
252
+ render: function render() {
253
+ getFieldProps('cflxmc', {
254
+ initialValue: cflxmc
255
+ });
256
+ return _react2.default.createElement(
257
+ "div",
258
+ { className: (0, _classnames2.default)({ 'nh-inputrender': _editable2, 'nh-inputrender-disabled': !_editable2 }) },
259
+ _react2.default.createElement(
260
+ _list2.default.Item,
261
+ {
262
+ extra: cflxmc
263
+ },
264
+ "\u5904\u5206\u7C7B\u578B"
265
+ )
266
+ );
267
+ }
268
+ });
269
+ }
270
+
271
+ //处分学期
272
+ if (fieldMap.CFXQMC && fieldMap.CFXQMC.sfxs === '1') {
273
+ var _required3 = fieldMap.CFXQMC.sfbt === "1" ? true : false;
274
+ var _editable3 = fieldMap.CFXQMC.sfbj === "1" ? true : false;
275
+ fieldMapList.push({
276
+ id: 'cfxqmc',
277
+ title: '处分学期',
278
+ isUpload: false,
279
+ text: cfxqmc,
280
+ required: _required3,
281
+ render: function render() {
282
+ getFieldProps('cfxqmc', {
283
+ initialValue: cfxqmc
284
+ });
285
+ return _react2.default.createElement(
286
+ "div",
287
+ { className: (0, _classnames2.default)({ 'nh-inputrender': _editable3, 'nh-inputrender-disabled': !_editable3 }) },
288
+ _react2.default.createElement(
289
+ _list2.default.Item,
290
+ {
291
+ multipleLine: true
292
+ },
293
+ "\u5904\u5206\u5B66\u671F",
294
+ _react2.default.createElement(
295
+ _list2.default.Item.Brief,
296
+ null,
297
+ cfxqmc
298
+ )
299
+ )
300
+ );
301
+ }
302
+ });
303
+ }
304
+
305
+ //处分开始时间
306
+ if (fieldMap.CFKSSJ && fieldMap.CFKSSJ.sfxs === '1') {
307
+ var _required4 = fieldMap.CFKSSJ.sfbt === "1" ? true : false;
308
+ var _editable4 = fieldMap.CFKSSJ.sfbj === "1" ? true : false;
309
+ fieldMapList.push({
310
+ id: 'cfkssj',
311
+ title: '处分开始时间',
312
+ isUpload: false,
313
+ text: cfkssj,
314
+ required: _required4,
315
+ render: function render() {
316
+ getFieldProps('cfkssj', {
317
+ initialValue: cfkssj
318
+ });
319
+ return _react2.default.createElement(
320
+ "div",
321
+ { className: (0, _classnames2.default)({ 'nh-inputrender': _editable4, 'nh-inputrender-disabled': !_editable4 }) },
322
+ _react2.default.createElement(
323
+ _list2.default.Item,
324
+ {
325
+ extra: cfkssj
326
+ },
327
+ "\u5904\u5206\u5F00\u59CB\u65F6\u95F4"
328
+ )
329
+ );
330
+ }
331
+ });
332
+ }
333
+
334
+ //处分结束时间
335
+ if (fieldMap.CFJSSJ && fieldMap.CFJSSJ.sfxs === '1') {
336
+ var _required5 = fieldMap.CFJSSJ.sfbt === "1" ? true : false;
337
+ var _editable5 = fieldMap.CFJSSJ.sfbj === "1" ? true : false;
338
+ fieldMapList.push({
339
+ id: 'cfjssj',
340
+ title: '处分结束时间',
341
+ isUpload: false,
342
+ text: cfjssj,
343
+ required: _required5,
344
+ render: function render() {
345
+ getFieldProps('cfjssj', {
346
+ initialValue: cfjssj
347
+ });
348
+ return _react2.default.createElement(
349
+ "div",
350
+ { className: (0, _classnames2.default)({ 'nh-inputrender': _editable5, 'nh-inputrender-disabled': !_editable5 }) },
351
+ _react2.default.createElement(
352
+ _list2.default.Item,
353
+ {
354
+ extra: cfjssj
355
+ },
356
+ "\u5904\u5206\u7ED3\u675F\u65F6\u95F4"
357
+ )
358
+ );
359
+ }
360
+ });
361
+ }
362
+
363
+ //违纪内容
364
+ if (fieldMap.WJNR && fieldMap.WJNR.sfxs === '1') {
365
+ var _required6 = fieldMap.WJNR.sfbt === "1" ? true : false;
366
+ fieldMapList.push({
367
+ id: 'wjnr',
368
+ title: '违纪内容',
369
+ isUpload: false,
370
+ text: wjnr,
371
+ required: _required6,
372
+ render: function render() {
373
+ getFieldProps('wjnr', {
374
+ initialValue: wjnr
375
+ });
376
+ return _react2.default.createElement(_textareaItem2.default, {
377
+ title: "\u8FDD\u7EAA\u5185\u5BB9",
378
+ rows: 3,
379
+ disabled: true,
380
+ value: wjnr
381
+ });
382
+ }
383
+ });
384
+ }
385
+
386
+ //违纪事实
387
+ if (fieldMap.WJSS && fieldMap.WJSS.sfxs === '1') {
388
+ var _required7 = fieldMap.WJSS.sfbt === "1" ? true : false;
389
+ fieldMapList.push({
390
+ id: 'wjss',
391
+ title: '违纪事实',
392
+ isUpload: false,
393
+ text: wjss,
394
+ required: _required7,
395
+ render: function render() {
396
+ getFieldProps('wjss', {
397
+ initialValue: wjss
398
+ });
399
+ return _react2.default.createElement(_textareaItem2.default, {
400
+ title: fieldMap.WJSS.title,
401
+ rows: 3,
402
+ disabled: true,
403
+ value: wjss
404
+ });
405
+ }
406
+ });
407
+ }
408
+
409
+ if (fieldMap.FJID && fieldMap.FJID.sfxs === '1') {
410
+ var _required8 = fieldMap.FJID.sfbt === "1" ? true : false;
411
+ var _editable6 = fieldMap.FJID.sfbj === "1" ? true : false;
412
+ fieldMapList.push({
413
+ id: 'fjid',
414
+ title: '附件上传',
415
+ text: fjid,
416
+ required: _required8,
417
+ isUpload: true,
418
+ render: function render() {
419
+ return _react2.default.createElement(
420
+ _list2.default.Item,
421
+ _this.requiredParams(_required8, 'fjid'),
422
+ _react2.default.createElement(
423
+ "label",
424
+ { className: (0, _classnames2.default)({ 'nh-dynamic-form-disabled': !_editable6 }) },
425
+ "\u9644\u4EF6\u4E0A\u4F20"
426
+ ),
427
+ _react2.default.createElement(_index2.default, _extends({
428
+ serviceMark: 'sm-punish',
429
+ moduleName: '违纪处分-处分解除',
430
+ isEdit: _this.props.isEdit && _editable6,
431
+ numberOfLimit: 10,
432
+ numberOfSize: 5
433
+ }, getFieldProps('fjid', {
434
+ initialValue: fjid,
435
+ rules: [{ required: _required8, message: '请上传附件' }]
436
+ })))
437
+ );
438
+ },
439
+ renderView: function renderView() {
440
+ return _react2.default.createElement(_index2.default, {
441
+ serviceMark: 'sm-punish',
442
+ moduleName: '违纪处分-处分解除',
443
+ isEdit: false,
444
+ value: fjid
445
+ });
446
+ }
447
+ });
448
+ }
449
+
450
+ //奖励记录
451
+ if (fieldMap.JLJL && fieldMap.JLJL.sfxs === '1') {
452
+ var _required9 = fieldMap.JLJL.sfbt === "1" ? true : false;
453
+ fieldMapList.push({
454
+ id: 'jljl',
455
+ title: '奖励记录',
456
+ isUpload: false,
457
+ text: jljl,
458
+ required: _required9,
459
+ render: function render() {
460
+ getFieldProps('jljl', {
461
+ initialValue: jljl
462
+ });
463
+ return _react2.default.createElement(_textareaItem2.default, {
464
+ title: fieldMap.JLJL.title,
465
+ rows: 3,
466
+ disabled: true,
467
+ value: jljl
468
+ });
469
+ }
470
+ });
471
+ }
472
+
473
+ // 解除类型
474
+ if (fieldMap.JCLX && fieldMap.JCLX.sfxs === '1') {
475
+ //解除类型
476
+ var _required10 = fieldMap.JCLX.sfbt === "1" ? true : false;
477
+ var _editable7 = fieldMap.JCLX.sfbj === "1" ? true : false;
478
+
479
+ fieldMapList.push({
480
+ id: 'jclx',
481
+ title: '解除类型',
482
+ isUpload: false,
483
+ text: jclxmc,
484
+ required: _required10,
485
+ render: function render() {
486
+ getFieldProps('jclx', {
487
+ initialValue: jclx
488
+ });
489
+ return _react2.default.createElement(
490
+ "div",
491
+ { className: (0, _classnames2.default)({ 'nh-inputrender': _editable7, 'nh-inputrender-disabled': !_editable7 }) },
492
+ _react2.default.createElement(
493
+ _list2.default.Item,
494
+ {
495
+ extra: jclxmc
496
+ },
497
+ "\u89E3\u9664\u7C7B\u578B"
498
+ )
499
+ );
500
+ }
501
+ });
502
+ }
503
+
504
+ //解除理由
505
+ if (fieldMap.JCLY && fieldMap.JCLY.sfxs === '1') {
506
+ var _required11 = fieldMap.JCLY.sfbt === "1" ? true : false;
507
+ var _editable8 = fieldMap.JCLY.sfbj === "1" ? true : false;
508
+ fieldMapList.push({
509
+ id: 'jcly',
510
+ title: '解除理由',
511
+ isUpload: false,
512
+ text: jcly,
513
+ required: _required11,
514
+ render: function render() {
515
+ return _react2.default.createElement(_textareaItem2.default, _extends({
516
+ title: "\u89E3\u9664\u7406\u7531",
517
+ placeholder: "\u8BF7\u8F93\u5165",
518
+ rows: 4,
519
+ count: 120,
520
+ editable: _editable8,
521
+ disabled: !_editable8
522
+ }, _this.requiredParams(_required11, 'jcly'), getFieldProps('jcly', {
523
+ initialValue: jcly,
524
+ rules: [{ required: _required11, message: '请输入解除理由' }]
525
+ })));
526
+ }
527
+ });
528
+ }
529
+
530
+ //处分解除文号
531
+ if (fieldMap.CFJCWH && fieldMap.CFJCWH.sfxs === '1') {
532
+ //处分文号
533
+ var _required12 = fieldMap.CFJCWH.sfbt === "1" ? true : false;
534
+ var _editable9 = fieldMap.CFJCWH.sfbj === "1" ? true : false;
535
+
536
+ fieldMapList.push({
537
+ id: 'cfjcwh',
538
+ title: '解除文号',
539
+ isUpload: false,
540
+ text: cfjcwh,
541
+ required: _required12,
542
+ render: function render() {
543
+ return _react2.default.createElement(
544
+ _inputItem2.default,
545
+ _extends({
546
+ placeholder: "\u8BF7\u8F93\u5165",
547
+ className: "nh-input-item",
548
+ editable: _editable9,
549
+ count: 15,
550
+ disabled: !_editable9
551
+ }, _this.requiredParams(_required12, 'cfjcwh'), getFieldProps('cfjcwh', {
552
+ initialValue: cfjcwh,
553
+ rules: [{ required: _required12, message: '请输入解除文号' }]
554
+ })),
555
+ "\u89E3\u9664\u6587\u53F7"
556
+ );
557
+ }
558
+ });
559
+ }
560
+
561
+ return fieldMapList;
562
+ };
563
+
564
+ _this.state = {
565
+ wjlxmc: '', //违纪类型名称
566
+ wjsj: '', //违纪时间
567
+ wjnr: '', //违纪内容
568
+ wjss: '', //违纪事实
569
+ jljl: '', //奖励记录
570
+ cflxmc: '', //处分类型
571
+ cfxqmc: '', //处分学期
572
+ cfkssj: '', //处分开始时间
573
+ cfjssj: '', //处分结束时间
574
+ cfwh: '', //处分文号
575
+ cfjcwh: '', //处分解除文号
576
+ jcly: '', //申请理由
577
+ cfjgid: '', //处分结果ID
578
+ jclx: '', //解除类型
579
+ jclxmc: '', //解除类型名称
580
+ fjid: undefined
581
+ };
582
+ return _this;
583
+ }
584
+
585
+ //查询学生处分解除信息
586
+
587
+
588
+ _createClass(ZzsdCfjcEditForm, [{
589
+ key: "render",
590
+ value: function render() {
591
+ var _props = this.props,
592
+ form = _props.form,
593
+ isEdit = _props.isEdit,
594
+ fieldMap = _props.fieldMap,
595
+ title = _props.title;
596
+
597
+ var dataList = this.getDataList(fieldMap);
598
+ if (isEdit) {
599
+ return _react2.default.createElement(
600
+ "div",
601
+ null,
602
+ _react2.default.createElement(
603
+ "form",
604
+ null,
605
+ _react2.default.createElement(
606
+ _list2.default,
607
+ { renderHeader: function renderHeader() {
608
+ return title;
609
+ } },
610
+ dataList.map(function (item, index) {
611
+ return _react2.default.createElement(
612
+ "div",
613
+ { key: index, className: (0, _classnames2.default)('nh-dynamic-list-item', { 'nh-dynamic-required': item.required }) },
614
+ item.render !== undefined ? item.render() : null
615
+ );
616
+ })
617
+ ),
618
+ _react2.default.createElement(_whiteSpace2.default, { size: "lg" })
619
+ ),
620
+ _react2.default.createElement("input", { id: "isEndZzsd", hidden: true })
621
+ );
622
+ }
623
+ return _react2.default.createElement(
624
+ "div",
625
+ null,
626
+ _react2.default.createElement(
627
+ _card2.default,
628
+ { full: true },
629
+ _react2.default.createElement(_card2.default.Header, {
630
+ title: _react2.default.createElement(
631
+ "div",
632
+ { style: { borderLeft: '3px solid #1890ff', paddingLeft: '10px' } },
633
+ title
634
+ )
635
+ }),
636
+ _react2.default.createElement(
637
+ _card2.default.Body,
638
+ null,
639
+ dataList.map(function (item, index) {
640
+ if (item.isUpload) {
641
+ return _react2.default.createElement(
642
+ "div",
643
+ { key: index },
644
+ _react2.default.createElement(
645
+ "font",
646
+ { color: "grey" },
647
+ item.title,
648
+ "\uFF1A "
649
+ ),
650
+ item.renderView()
651
+ );
652
+ }
653
+ return _react2.default.createElement(
654
+ "div",
655
+ { key: index },
656
+ _react2.default.createElement(
657
+ "font",
658
+ { color: "grey" },
659
+ item.title,
660
+ "\uFF1A "
661
+ ),
662
+ item.text,
663
+ _react2.default.createElement("br", null)
664
+ );
665
+ })
666
+ )
667
+ ),
668
+ _react2.default.createElement(_whiteSpace2.default, { size: "lg" }),
669
+ _react2.default.createElement("input", { id: "isEndZzsd", hidden: true })
670
+ );
671
+ }
672
+ }]);
673
+
674
+ return ZzsdCfjcEditForm;
675
+ }(_react2.default.Component);
676
+
677
+ exports.default = (0, _rcForm.createForm)()(ZzsdCfjcEditForm);