dlt-for-react 1.1.3 → 1.1.5

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 (188) hide show
  1. package/README.md +9 -1
  2. package/lib/components/KyContainerFrame/index.js +46 -39
  3. package/lib/index.js +7 -1
  4. package/lib/layouts/Top/index.js +1 -1
  5. package/lib/layouts/layout/index.js +77 -31
  6. package/lib/layouts/mixTop/index.js +3 -3
  7. package/lib/utils/createUuid.js +31 -11
  8. package/lib/utils/getLoginUser.js +1 -1
  9. package/lib/utils/getSize.js +11 -2
  10. package/lib/utils/index.js +35 -2
  11. package/package.json +1 -1
  12. package/lib/components/Button/index.js +0 -79
  13. package/lib/components/NHAuditPanel/config/Axios.js +0 -263
  14. package/lib/components/NHAuditPanel/config/api.js +0 -479
  15. package/lib/components/NHAuditPanel/config/data.js +0 -156
  16. package/lib/components/NHAuditPanel/config/typeMap.js +0 -1234
  17. package/lib/components/NHAuditPanel/config/uiValidate.js +0 -92
  18. package/lib/components/NHAuditPanel/index.js +0 -413
  19. package/lib/components/NHAuditPanel/node.js +0 -619
  20. package/lib/components/NHCascader/index.js +0 -355
  21. package/lib/components/NHCheckboxGroup/index.js +0 -135
  22. package/lib/components/NHDynamicFormShow/baseInfo/index.js +0 -194
  23. package/lib/components/NHDynamicFormShow/custom/index.js +0 -553
  24. package/lib/components/NHDynamicFormShow/customModule/common/CommonMethod.js +0 -43
  25. package/lib/components/NHDynamicFormShow/customModule/czxy/qgzx/EditForm.js +0 -1113
  26. package/lib/components/NHDynamicFormShow/customModule/czxy/qgzx/index.js +0 -263
  27. package/lib/components/NHDynamicFormShow/customModule/czxy/xfjm/EditForm.js +0 -880
  28. package/lib/components/NHDynamicFormShow/customModule/czxy/xfjm/index.js +0 -171
  29. package/lib/components/NHDynamicFormShow/customModule/czxy/zxj/EditForm.js +0 -865
  30. package/lib/components/NHDynamicFormShow/customModule/czxy/zxj/index.js +0 -138
  31. package/lib/components/NHDynamicFormShow/customModule/eszy/zsxxhd/EditForm.js +0 -571
  32. package/lib/components/NHDynamicFormShow/customModule/eszy/zsxxhd/index.js +0 -147
  33. package/lib/components/NHDynamicFormShow/customModule/eszy/zybjtz/EditForm.js +0 -474
  34. package/lib/components/NHDynamicFormShow/customModule/eszy/zybjtz/index.js +0 -139
  35. package/lib/components/NHDynamicFormShow/customModule/gnyxy/cqzg/EditForm.js +0 -506
  36. package/lib/components/NHDynamicFormShow/customModule/gnyxy/cqzg/index.js +0 -143
  37. package/lib/components/NHDynamicFormShow/customModule/gnyxy/gwsb/EditForm.js +0 -1074
  38. package/lib/components/NHDynamicFormShow/customModule/gnyxy/gwsb/index.js +0 -172
  39. package/lib/components/NHDynamicFormShow/customModule/gnyxy/qjgl/EditForm.js +0 -927
  40. package/lib/components/NHDynamicFormShow/customModule/gnyxy/qjgl/index.js +0 -195
  41. package/lib/components/NHDynamicFormShow/customModule/gnyxy/sxsqj/EditForm.js +0 -1064
  42. package/lib/components/NHDynamicFormShow/customModule/gnyxy/sxsqj/index.js +0 -183
  43. package/lib/components/NHDynamicFormShow/customModule/hblgxy/jxj/EditForm.js +0 -763
  44. package/lib/components/NHDynamicFormShow/customModule/hblgxy/jxj/index.js +0 -137
  45. package/lib/components/NHDynamicFormShow/customModule/hblgxy/lzjxj/EditForm.js +0 -819
  46. package/lib/components/NHDynamicFormShow/customModule/hblgxy/lzjxj/index.js +0 -137
  47. package/lib/components/NHDynamicFormShow/customModule/hblgxy/qgzx/EditForm.js +0 -700
  48. package/lib/components/NHDynamicFormShow/customModule/hblgxy/qgzx/index.js +0 -162
  49. package/lib/components/NHDynamicFormShow/customModule/hblgxy/xsqj/EditForm.js +0 -743
  50. package/lib/components/NHDynamicFormShow/customModule/hblgxy/xsqj/index.js +0 -177
  51. package/lib/components/NHDynamicFormShow/customModule/hblgxy/zxj/EditForm.js +0 -848
  52. package/lib/components/NHDynamicFormShow/customModule/hblgxy/zxj/index.js +0 -138
  53. package/lib/components/NHDynamicFormShow/customModule/hljwgy/qjgl/EditForm.js +0 -777
  54. package/lib/components/NHDynamicFormShow/customModule/hljwgy/qjgl/index.js +0 -161
  55. package/lib/components/NHDynamicFormShow/customModule/hljwgy/xjgl/EditForm.js +0 -706
  56. package/lib/components/NHDynamicFormShow/customModule/hljwgy/xjgl/index.js +0 -130
  57. package/lib/components/NHDynamicFormShow/customModule/jhysxy/cfjcsq/cfjcEditForm.js +0 -413
  58. package/lib/components/NHDynamicFormShow/customModule/jhysxy/cfjcsq/index.js +0 -135
  59. package/lib/components/NHDynamicFormShow/customModule/jhysxy/xsqj/EditForm.js +0 -1013
  60. package/lib/components/NHDynamicFormShow/customModule/jhysxy/xsqj/index.js +0 -175
  61. package/lib/components/NHDynamicFormShow/customModule/jjrlx/EditForm.js +0 -1345
  62. package/lib/components/NHDynamicFormShow/customModule/jjrlx/index.js +0 -274
  63. package/lib/components/NHDynamicFormShow/customModule/jxj/EditForm.js +0 -669
  64. package/lib/components/NHDynamicFormShow/customModule/jxj/index.js +0 -134
  65. package/lib/components/NHDynamicFormShow/customModule/jxsl/fqkns/EditForm.js +0 -378
  66. package/lib/components/NHDynamicFormShow/customModule/jxsl/fqkns/index.js +0 -120
  67. package/lib/components/NHDynamicFormShow/customModule/jxsl/xwryfjjd/EditForm.js +0 -638
  68. package/lib/components/NHDynamicFormShow/customModule/jxsl/xwryfjjd/index.js +0 -133
  69. package/lib/components/NHDynamicFormShow/customModule/qgzx/EditForm.js +0 -965
  70. package/lib/components/NHDynamicFormShow/customModule/qgzx/index.js +0 -237
  71. package/lib/components/NHDynamicFormShow/customModule/qjgl/EditForm.js +0 -823
  72. package/lib/components/NHDynamicFormShow/customModule/qjgl/index.js +0 -188
  73. package/lib/components/NHDynamicFormShow/customModule/rcgl/jqlssq/EditForm.js +0 -401
  74. package/lib/components/NHDynamicFormShow/customModule/rcgl/jqlssq/index.js +0 -472
  75. package/lib/components/NHDynamicFormShow/customModule/rcgl/tssq/EditForm.js +0 -304
  76. package/lib/components/NHDynamicFormShow/customModule/rcgl/tssq/NHCascader/index.js +0 -375
  77. package/lib/components/NHDynamicFormShow/customModule/rcgl/tssq/NHInputPicker/RadioGroup.js +0 -118
  78. package/lib/components/NHDynamicFormShow/customModule/rcgl/tssq/NHInputPicker/index.js +0 -62
  79. package/lib/components/NHDynamicFormShow/customModule/rcgl/tssq/NHInputPicker/input-const.js +0 -55
  80. package/lib/components/NHDynamicFormShow/customModule/rcgl/tssq/NHInputPicker/render.js +0 -1238
  81. package/lib/components/NHDynamicFormShow/customModule/rcgl/tssq/index.js +0 -375
  82. package/lib/components/NHDynamicFormShow/customModule/rych/collective/EditForm.js +0 -554
  83. package/lib/components/NHDynamicFormShow/customModule/rych/collective/index.js +0 -130
  84. package/lib/components/NHDynamicFormShow/customModule/rych/personal/EditForm.js +0 -542
  85. package/lib/components/NHDynamicFormShow/customModule/rych/personal/index.js +0 -133
  86. package/lib/components/NHDynamicFormShow/customModule/sxgy/rych/collective/EditForm.js +0 -575
  87. package/lib/components/NHDynamicFormShow/customModule/sxgy/rych/collective/index.js +0 -130
  88. package/lib/components/NHDynamicFormShow/customModule/sxgy/rych/personal/EditForm.js +0 -563
  89. package/lib/components/NHDynamicFormShow/customModule/sxgy/rych/personal/index.js +0 -133
  90. package/lib/components/NHDynamicFormShow/customModule/whcz/qjgl/EditForm.js +0 -745
  91. package/lib/components/NHDynamicFormShow/customModule/whcz/qjgl/index.js +0 -164
  92. package/lib/components/NHDynamicFormShow/customModule/whcz/rccrxy/EditForm.js +0 -587
  93. package/lib/components/NHDynamicFormShow/customModule/whcz/rccrxy/index.js +0 -143
  94. package/lib/components/NHDynamicFormShow/customModule/whdlqjgl/EditForm.js +0 -743
  95. package/lib/components/NHDynamicFormShow/customModule/whdlqjgl/index.js +0 -172
  96. package/lib/components/NHDynamicFormShow/customModule/whgc/jjrlx/EditForm.js +0 -1410
  97. package/lib/components/NHDynamicFormShow/customModule/whgc/jjrlx/index.js +0 -274
  98. package/lib/components/NHDynamicFormShow/customModule/whgc/jxj/EditForm.js +0 -755
  99. package/lib/components/NHDynamicFormShow/customModule/whgc/jxj/index.js +0 -130
  100. package/lib/components/NHDynamicFormShow/customModule/whgc/qjgl/EditForm.js +0 -814
  101. package/lib/components/NHDynamicFormShow/customModule/whgc/qjgl/index.js +0 -188
  102. package/lib/components/NHDynamicFormShow/customModule/whgc/zxj/EditForm.js +0 -769
  103. package/lib/components/NHDynamicFormShow/customModule/whgc/zxj/index.js +0 -130
  104. package/lib/components/NHDynamicFormShow/customModule/whgcrych/EditForm.js +0 -1004
  105. package/lib/components/NHDynamicFormShow/customModule/whgcrych/index.js +0 -126
  106. package/lib/components/NHDynamicFormShow/customModule/whtl/jsrzsq/EditForm.js +0 -503
  107. package/lib/components/NHDynamicFormShow/customModule/whtl/jsrzsq/index.js +0 -149
  108. package/lib/components/NHDynamicFormShow/customModule/whtlyhk/EditForm.js +0 -379
  109. package/lib/components/NHDynamicFormShow/customModule/whtlyhk/index.js +0 -148
  110. package/lib/components/NHDynamicFormShow/customModule/whtlzxj/EditForm.js +0 -748
  111. package/lib/components/NHDynamicFormShow/customModule/whtlzxj/index.js +0 -135
  112. package/lib/components/NHDynamicFormShow/customModule/whtlzy/jxj/EditForm.js +0 -762
  113. package/lib/components/NHDynamicFormShow/customModule/whtlzy/jxj/index.js +0 -134
  114. package/lib/components/NHDynamicFormShow/customModule/wjcf/cfjc/cfjcEditForm.js +0 -682
  115. package/lib/components/NHDynamicFormShow/customModule/wjcf/cfjc/index.js +0 -135
  116. package/lib/components/NHDynamicFormShow/customModule/wjcf/wjsb/index.js +0 -152
  117. package/lib/components/NHDynamicFormShow/customModule/wjcf/wjsb/wjsbEditForm.js +0 -783
  118. package/lib/components/NHDynamicFormShow/customModule/zxj/EditForm.js +0 -764
  119. package/lib/components/NHDynamicFormShow/customModule/zxj/index.js +0 -138
  120. package/lib/components/NHDynamicFormShow/customModule/zzsd/cfjcsq/cfjcEditForm.js +0 -677
  121. package/lib/components/NHDynamicFormShow/customModule/zzsd/cfjcsq/index.js +0 -138
  122. package/lib/components/NHDynamicFormShow/customModule/zzsd/qjgl/EditForm.js +0 -1173
  123. package/lib/components/NHDynamicFormShow/customModule/zzsd/qjgl/index.js +0 -242
  124. package/lib/components/NHDynamicFormShow/customModule/zzsd/rcgl/rcxwgrdj/IndividualRegistForm.js +0 -862
  125. package/lib/components/NHDynamicFormShow/customModule/zzsd/rcgl/rcxwgrdj/IndividualRegistIndex.js +0 -201
  126. package/lib/components/NHDynamicFormShow/customModule/zzsd/stuinfo/messageInfo.js +0 -196
  127. package/lib/components/NHDynamicFormShow/customModule/zzsd/wjsb/index.js +0 -167
  128. package/lib/components/NHDynamicFormShow/customModule/zzsd/wjsb/wjsbEditForm.js +0 -1096
  129. package/lib/components/NHDynamicFormShow/index.js +0 -647
  130. package/lib/components/NHDynamicFormShow/oneOnMany/cardForm/cardItem/index.js +0 -279
  131. package/lib/components/NHDynamicFormShow/oneOnMany/cardForm/index.js +0 -206
  132. package/lib/components/NHDynamicFormShow/oneOnMany/index.js +0 -419
  133. package/lib/components/NHDynamicFormShow/oneOnOne/EditForm.js +0 -401
  134. package/lib/components/NHDynamicFormShow/oneOnOne/index.js +0 -271
  135. package/lib/components/NHImagePicker/index.js +0 -554
  136. package/lib/components/NHInputPicker/RadioGroup.js +0 -118
  137. package/lib/components/NHInputPicker/index.js +0 -62
  138. package/lib/components/NHInputPicker/input-const.js +0 -55
  139. package/lib/components/NHInputPicker/render.js +0 -1271
  140. package/lib/components/NHListView/index.js +0 -374
  141. package/lib/components/NHMapGeolocation/index.js +0 -537
  142. package/lib/components/NHMapGeolocation/initMap/initGdMap.js +0 -104
  143. package/lib/components/NHMapGeolocation/initMap/initTencentMap.js +0 -138
  144. package/lib/components/NHMapGeolocation/style.js +0 -51
  145. package/lib/components/NHMultiSelect/index.js +0 -272
  146. package/lib/components/NHRadioGroup/index.js +0 -118
  147. package/lib/components/NHSelect/index.js +0 -364
  148. package/lib/components/NHTreeMenu/index.js +0 -126
  149. package/lib/components/NHTreeMenu/treeNode.js +0 -164
  150. package/lib/components/StuSelector/index.js +0 -611
  151. package/lib/layouts/KyInputPicker/edit-page.js +0 -585
  152. package/lib/layouts/KyInputPicker/index.js +0 -220
  153. package/lib/layouts/KyInputPicker/input-const.js +0 -134
  154. package/lib/layouts/KyInputPicker/render.js +0 -2477
  155. package/lib/layouts/KyInputPicker/setting-checkbox.js +0 -850
  156. package/lib/layouts/KyInputPicker/setting-datepicker.js +0 -430
  157. package/lib/layouts/KyInputPicker/setting-datetimepicker.js +0 -443
  158. package/lib/layouts/KyInputPicker/setting-input.js +0 -555
  159. package/lib/layouts/KyInputPicker/setting-inputNumber.js +0 -612
  160. package/lib/layouts/KyInputPicker/setting-monthpicker.js +0 -434
  161. package/lib/layouts/KyInputPicker/setting-multiSelect.js +0 -532
  162. package/lib/layouts/KyInputPicker/setting-nhcascader.js +0 -584
  163. package/lib/layouts/KyInputPicker/setting-old-upload.js +0 -428
  164. package/lib/layouts/KyInputPicker/setting-radio.js +0 -468
  165. package/lib/layouts/KyInputPicker/setting-rangepicker.js +0 -466
  166. package/lib/layouts/KyInputPicker/setting-select.js +0 -534
  167. package/lib/layouts/KyInputPicker/setting-stu-selector.js +0 -507
  168. package/lib/layouts/KyInputPicker/setting-switch.js +0 -274
  169. package/lib/layouts/KyInputPicker/setting-tea-selector.js +0 -507
  170. package/lib/layouts/KyInputPicker/setting-textarea.js +0 -619
  171. package/lib/layouts/KyInputPicker/setting-timepicker.js +0 -437
  172. package/lib/layouts/KyInputPicker/setting-upload.js +0 -766
  173. package/lib/layouts/KyModal/buildTitle.js +0 -81
  174. package/lib/layouts/KyModal/dragM.js +0 -127
  175. package/lib/layouts/KyModal/index.js +0 -321
  176. package/lib/layouts/KyPreview/index.js +0 -219
  177. package/lib/layouts/KyUpload/index.js +0 -1155
  178. package/lib/utils/browserJudge.js +0 -33
  179. package/lib/utils/dynamicLoadCss.js +0 -14
  180. package/lib/utils/dynamicLoadJs.js +0 -21
  181. package/lib/utils/getStyle.js +0 -26
  182. package/lib/utils/getSuitHeight.js +0 -49
  183. package/lib/utils/hasAuth.js +0 -11
  184. package/lib/utils/loadJS.js +0 -40
  185. /package/lib/layouts/{login → Login}/index-pre.js +0 -0
  186. /package/lib/layouts/{login → Login}/index.js +0 -0
  187. /package/lib/layouts/{login → Login}/login.js +0 -0
  188. /package/lib/layouts/{login → Login}/lyPassword.js +0 -0
@@ -1,677 +0,0 @@
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);