dlt-for-react 1.0.24 → 1.1.1

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 +187 -118
  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
@@ -8,10 +8,6 @@ var _form = require('antd/lib/form');
8
8
 
9
9
  var _form2 = _interopRequireDefault(_form);
10
10
 
11
- var _CheckButton2 = require('xgui-for-react/lib/components/CheckButton');
12
-
13
- var _CheckButton3 = _interopRequireDefault(_CheckButton2);
14
-
15
11
  var _defineProperty2 = require('babel-runtime/helpers/defineProperty');
16
12
 
17
13
  var _defineProperty3 = _interopRequireDefault(_defineProperty2);
@@ -64,8 +60,11 @@ var _propTypes = require('prop-types');
64
60
 
65
61
  var _propTypes2 = _interopRequireDefault(_propTypes);
66
62
 
63
+ var _xguiForReact = require('xgui-for-react');
64
+
67
65
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
68
66
 
67
+ var ButtonGroup = _button2.default.ButtonGroup;
69
68
  // import KyCheckButton from '../KyCheckButton';
70
69
  /*
71
70
  * @Description:科研 Checkbutton搜索
@@ -73,8 +72,6 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
73
72
  * @Author: 琴时
74
73
  */
75
74
 
76
- var ButtonGroup = _button2.default.ButtonGroup;
77
-
78
75
  var checkButtons = function (_Component) {
79
76
  (0, _inherits3.default)(checkButtons, _Component);
80
77
 
@@ -226,7 +223,7 @@ var checkButtons = function (_Component) {
226
223
  onChange: function onChange(val) {
227
224
  _this2.onChange(val, item.dataIndex);
228
225
  }
229
- })(_react2.default.createElement(_CheckButton3.default, {
226
+ })(_react2.default.createElement(_xguiForReact.CheckButton, {
230
227
  className: 'check',
231
228
  single: false,
232
229
  options: dataSource[item.dataIndex],
@@ -5,18 +5,10 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = undefined;
7
7
 
8
- var _hasAuth2 = require("xgui-for-react/lib/utils/hasAuth");
9
-
10
- var _hasAuth3 = _interopRequireDefault(_hasAuth2);
11
-
12
8
  var _stringify = require("babel-runtime/core-js/json/stringify");
13
9
 
14
10
  var _stringify2 = _interopRequireDefault(_stringify);
15
11
 
16
- var _NHFetch2 = require("xgui-for-react/lib/utils/NHFetch");
17
-
18
- var _NHFetch3 = _interopRequireDefault(_NHFetch2);
19
-
20
12
  var _extends2 = require("babel-runtime/helpers/extends");
21
13
 
22
14
  var _extends3 = _interopRequireDefault(_extends2);
@@ -37,10 +29,6 @@ var _popover = require("antd/lib/popover");
37
29
 
38
30
  var _popover2 = _interopRequireDefault(_popover);
39
31
 
40
- var _createUuid2 = require("xgui-for-react/lib/utils/createUuid");
41
-
42
- var _createUuid3 = _interopRequireDefault(_createUuid2);
43
-
44
32
  var _getPrototypeOf = require("babel-runtime/core-js/object/get-prototype-of");
45
33
 
46
34
  var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
@@ -95,6 +83,8 @@ var _reactDom = require("react-dom");
95
83
 
96
84
  var _reactDom2 = _interopRequireDefault(_reactDom);
97
85
 
86
+ var _xguiForReact = require("xgui-for-react");
87
+
98
88
  var _equalsObj = require("../../utils/equalsObj");
99
89
 
100
90
  var _equalsObj2 = _interopRequireDefault(_equalsObj);
@@ -249,7 +239,7 @@ var KyTree = function (_React$Component) {
249
239
  "a",
250
240
  {
251
241
  style: { display: "block", color: "inherit" },
252
- key: (0, _createUuid3.default)(),
242
+ key: (0, _xguiForReact.createUuid)(),
253
243
  onClick: function onClick() {
254
244
  return item.onClick(e.node.props.dataRef, e.node.props.eventKey, e);
255
245
  }
@@ -427,7 +417,7 @@ var _initialiseProps = function _initialiseProps() {
427
417
  var obj = _this3;
428
418
  var baseUrl = _this3.props.baseUrl;
429
419
  var url = _this3.props.url ? _this3.props.url : (baseUrl || window.baseUrl || "") + "/proData/getTreeList";
430
- (0, _NHFetch3.default)(url, "POST", {
420
+ (0, _xguiForReact.NHFetch)(url, "POST", {
431
421
  params: _this3.props.params,
432
422
  sqlParams: _this3.props.sqlParams,
433
423
  sign: _this3.props.sign
@@ -467,7 +457,7 @@ var _initialiseProps = function _initialiseProps() {
467
457
  params = treeParam;
468
458
  } else {
469
459
  var t = new Date().getTime();
470
- (0, _NHFetch3.default)(_this3.props.baseUrl + "/proData/queryAllConfig", "GET", t).then(function (res) {
460
+ (0, _xguiForReact.NHFetch)(_this3.props.baseUrl + "/proData/queryAllConfig", "GET", t).then(function (res) {
471
461
  if (res && res.code === 200) {
472
462
  var _treeParam = res.data.tree[_this3.props.sign];
473
463
  if (_treeParam) {
@@ -810,7 +800,7 @@ var _initialiseProps = function _initialiseProps() {
810
800
  //是否满足显示这个按钮的要求
811
801
  if (item.isShow === undefined || item.isShow(e.node.props.dataRef, e.node.props.eventKey, e)) {
812
802
  //是否满足权限的要求
813
- if (item.auth === undefined || (0, _hasAuth3.default)(item.auth)) {
803
+ if (item.auth === undefined || (0, _xguiForReact.hasAuth)(item.auth)) {
814
804
  newMenuList.push(item);
815
805
  }
816
806
  }
@@ -5,10 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = undefined;
7
7
 
8
- var _getLoginUser2 = require('xgui-for-react/lib/utils/getLoginUser');
9
-
10
- var _getLoginUser3 = _interopRequireDefault(_getLoginUser2);
11
-
12
8
  var _getIterator2 = require('babel-runtime/core-js/get-iterator');
13
9
 
14
10
  var _getIterator3 = _interopRequireDefault(_getIterator2);
@@ -41,18 +37,10 @@ var _message2 = require('antd/lib/message');
41
37
 
42
38
  var _message3 = _interopRequireDefault(_message2);
43
39
 
44
- var _NHFetch2 = require('xgui-for-react/lib/utils/NHFetch');
45
-
46
- var _NHFetch3 = _interopRequireDefault(_NHFetch2);
47
-
48
40
  var _stringify = require('babel-runtime/core-js/json/stringify');
49
41
 
50
42
  var _stringify2 = _interopRequireDefault(_stringify);
51
43
 
52
- var _createUuid2 = require('xgui-for-react/lib/utils/createUuid');
53
-
54
- var _createUuid3 = _interopRequireDefault(_createUuid2);
55
-
56
44
  var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
57
45
 
58
46
  var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
@@ -95,6 +83,8 @@ var _classnames = require('classnames');
95
83
 
96
84
  var _classnames2 = _interopRequireDefault(_classnames);
97
85
 
86
+ var _xguiForReact = require('xgui-for-react');
87
+
98
88
  var _KyModal = require('../KyModal');
99
89
 
100
90
  var _KyModal2 = _interopRequireDefault(_KyModal);
@@ -155,7 +145,7 @@ var KyUpload = function (_React$Component) {
155
145
 
156
146
  _this.state = {
157
147
  fileList: [], //上传的文件
158
- value: value !== undefined && value !== null && value.trim() !== '' ? value : (0, _createUuid3.default)(), //传了附件主表id,查询附件明细
148
+ value: value !== undefined && value !== null && value.trim() !== '' ? value : (0, _xguiForReact.createUuid)(), //传了附件主表id,查询附件明细
159
149
  imageVisible: false,
160
150
  previewFile: '',
161
151
  fileName: '',
@@ -194,7 +184,7 @@ var KyUpload = function (_React$Component) {
194
184
  this.setState({ value: value, fileList: [] });
195
185
  var t = new Date().getTime();
196
186
  // 获取动态文件
197
- (0, _NHFetch3.default)(this.state.xtglUrl + '/dynamic/' + value + '/getDetailed', 'GET', t).then(function (res) {
187
+ (0, _xguiForReact.NHFetch)(this.state.xtglUrl + '/dynamic/' + value + '/getDetailed', 'GET', t).then(function (res) {
198
188
  if (res && res.data && res.data.length > 0) {
199
189
  _this2.handleFileList(res.data);
200
190
  }
@@ -226,7 +216,7 @@ var KyUpload = function (_React$Component) {
226
216
  var value = this.state.value;
227
217
  if (newValue !== value) return;
228
218
  var t = new Date().getTime();
229
- (0, _NHFetch3.default)(this.state.xtglUrl + '/dynamic/' + value + '/getDetailed', 'GET', t).then(function (res) {
219
+ (0, _xguiForReact.NHFetch)(this.state.xtglUrl + '/dynamic/' + value + '/getDetailed', 'GET', t).then(function (res) {
230
220
  if (res && res.data && res.data.length > 0) {
231
221
  _this3.handleFileList(res.data);
232
222
  }
@@ -257,7 +247,7 @@ var KyUpload = function (_React$Component) {
257
247
  case 0:
258
248
  params = ['KY_FJFWBZ', 'KY_FJYLBZ'];
259
249
  _context.next = 3;
260
- return (0, _NHFetch3.default)(this.state.xtglUrl + '/common/parameters/get', 'POST', params);
250
+ return (0, _xguiForReact.NHFetch)(this.state.xtglUrl + '/common/parameters/get', 'POST', params);
261
251
 
262
252
  case 3:
263
253
  res = _context.sent;
@@ -802,12 +792,12 @@ var _initialiseProps = function _initialiseProps() {
802
792
 
803
793
  fjid: e.file.response.data.ssbh,
804
794
  fjmc: e.file.name,
805
- cjsid: (0, _getLoginUser3.default)().userId
795
+ cjsid: (0, _xguiForReact.getLoginUser)().userId
806
796
  };
807
797
  if (defaultEffective) {
808
798
  param.ztm = '1';
809
799
  }
810
- (0, _NHFetch3.default)(_this5.state.xtglUrl + '/dynamic/insert', 'POST', param).then(function (res) {
800
+ (0, _xguiForReact.NHFetch)(_this5.state.xtglUrl + '/dynamic/insert', 'POST', param).then(function (res) {
811
801
  if (res && res.code === 200) {
812
802
  // 插入主表成功后 去掉将size设置为false,size存在应该为上传阶段的,若存在则未成功保存到接口,getResult时将去掉当前数据
813
803
  fileList.map(function (item) {
@@ -882,7 +872,7 @@ var _initialiseProps = function _initialiseProps() {
882
872
  fileList = _this5.filterCurrentFile(e.fileList, e.file);
883
873
  } else if (e.file.status === 'removed') {
884
874
  //删除
885
- (0, _NHFetch3.default)(_this5.state.xtglUrl + '/dynamic/updateDel', 'POST', e.file.uid).then(function (res) {
875
+ (0, _xguiForReact.NHFetch)(_this5.state.xtglUrl + '/dynamic/updateDel', 'POST', e.file.uid).then(function (res) {
886
876
  if (res && res.code === 200) {
887
877
  _this5.getResult(fileList);
888
878
  } else {
@@ -906,7 +896,7 @@ var _initialiseProps = function _initialiseProps() {
906
896
 
907
897
  this.requestData = function () {
908
898
  if (_this5.props.uploadType === 'file') {
909
- return { uuid: (0, _createUuid3.default)(), type: '1' };
899
+ return { uuid: (0, _xguiForReact.createUuid)(), type: '1' };
910
900
  } else {
911
901
  return { redisData: _this5.props.redisData };
912
902
  }
@@ -0,0 +1,263 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ 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; };
8
+
9
+ exports.query = query;
10
+ exports.exportDataExcel = exportDataExcel;
11
+ exports.exportTemplateExcel = exportTemplateExcel;
12
+ exports.post = post;
13
+ exports.postForm = postForm;
14
+ exports.get = get;
15
+ exports.insert = insert;
16
+ exports.update = update;
17
+ exports.remove = remove;
18
+ exports.requestAll = requestAll;
19
+
20
+ var _axios = require("axios");
21
+
22
+ var _axios2 = _interopRequireDefault(_axios);
23
+
24
+ var _qs = require("qs");
25
+
26
+ var _qs2 = _interopRequireDefault(_qs);
27
+
28
+ var _getLoginUser = require("../../../utils/getLoginUser");
29
+
30
+ var _getLoginUser2 = _interopRequireDefault(_getLoginUser);
31
+
32
+ var _dva = require("dva");
33
+
34
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
35
+
36
+ // 注释原因,使用外部脚手架配置
37
+ // var baseAuthorization =
38
+ // "eyJhbGciOiJIUzI1NiIsInR5cCI6Imp3dCJ9.eyJzdWIiOiJhZG1pbiIsImF1ZCI6InBjIiwiaXNzIjoiTElBTllJIiwianRpIjoiMDUyZWQzOTctOGQ2Zi00ZDBhLWIyZTgtZWNhNjkwOGFmN2FhIiwiaWF0IjoxNTQ2NTY1NTYzNDk0fQ.-ua77tOmVpnqa9XWNNjii0YtdaMFrw3Hj-FYGT-Glko";
39
+ // axios.defaults.withCredentials = true;
40
+ // axios.defaults.headers.get["X-Requested-With"] = "XMLHttpRequest"; //Ajax get请求标识
41
+ // axios.defaults.headers.post["X-Requested-With"] = "XMLHttpRequest"; //Ajax post请求标识
42
+ // axios.defaults.headers.post["Content-Type"] =
43
+ // "application/x-www-form-urlencoded;charset=utf-8"; //POST请求参数获取不到的问题
44
+ // axios.defaults.headers.put["X-Requested-With"] = "XMLHttpRequest"; //Ajax put请求标识
45
+ // axios.defaults.headers.delete["X-Requested-With"] = "XMLHttpRequest"; //Ajax delete请求标识
46
+
47
+ // axios.interceptors.response.use(
48
+ // function(response) {
49
+ // if(response.data.meta) {
50
+ // if (response.data.meta.statusCode == 302) {
51
+ // Toast.fail(response.data.meta.message);
52
+ // window.sessionStorage.removeItem("access_user");
53
+ // if (window.casStatus) {
54
+ // window.location =
55
+ // window.location.origin +
56
+ // window.location.pathname +
57
+ // "auth?service=" +
58
+ // encodeURIComponent(
59
+ // window.location.origin +
60
+ // window.location.pathname +
61
+ // "#/workspace"
62
+ // );
63
+ // } else {
64
+ // history.push("/");
65
+ // }
66
+ // } else if (response.data.meta.statusCode == 401) {
67
+ // Toast.fail(response.data.meta.message);
68
+ // }
69
+ // }
70
+ // return response;
71
+ // },
72
+ // function(error) {
73
+ // if(error.response.data.meta) {
74
+ // if (error.response.data.meta.statusCode == 302) {
75
+ // Toast.fail(error.response.data.meta.message);
76
+ // window.sessionStorage.removeItem("access_user");
77
+ // //window.indexRouter.push("/");
78
+ // if (window.casStatus) {
79
+ // window.location =
80
+ // window.location.origin +
81
+ // window.location.pathname +
82
+ // "auth?service=" +
83
+ // encodeURIComponent(
84
+ // window.location.origin +
85
+ // window.location.pathname +
86
+ // "#/workspace"
87
+ // );
88
+ // } else {
89
+ // history.push("/");
90
+ // }
91
+ // } else if (error.response.data.meta.statusCode == 401) {
92
+ // Toast.fail(error.response.data.meta.message);
93
+ // } else if (error.response.data.meta.statusCode == 500) {
94
+ // return error.response;
95
+ // }
96
+ // }
97
+ // }
98
+ // );
99
+
100
+ // axios.interceptors.request.use(function(config) {
101
+ // let user = getLoginUser();
102
+ // let Authorization = window.sessionStorage.getItem("access_token") || baseAuthorization;
103
+ // if(Authorization!=null && Authorization!='') {
104
+ // config.headers.Authorization = Authorization;
105
+ // }
106
+ // if(user!=null) {
107
+ // config.headers.loginUserId = user.userId;
108
+ // config.headers.loginUserOrgId = user.orgId;
109
+ // }
110
+
111
+
112
+ // if (config.method == "get") {
113
+ // config.params = {
114
+ // _t: Date.parse(new Date()) / 1000,
115
+ // ...config.params
116
+ // };
117
+ // }
118
+ // return config;
119
+ // });
120
+
121
+ function query(url, params) {
122
+ return new Promise(function (resolve, reject) {
123
+ _axios2.default.get(url, { params: params }).then(function (res) {
124
+ resolve(res.data);
125
+ }).catch(function (err) {
126
+ reject(err.data);
127
+ });
128
+ });
129
+ }
130
+
131
+ // 导出数据
132
+ function exportDataExcel(url, params) {
133
+ return new Promise(function (resolve, reject) {
134
+ _axios2.default.post(url, _extends({}, params), { responseType: 'blob' }).then(function (res) {
135
+ resolve(res);
136
+ }).catch(function (err) {
137
+ reject(err.data);
138
+ });
139
+ });
140
+ }
141
+
142
+ // 导出模板
143
+ function exportTemplateExcel(url, params) {
144
+ return new Promise(function (resolve, reject) {
145
+ _axios2.default.get(url, { params: params, responseType: 'blob' }).then(function (res) {
146
+ resolve(res);
147
+ }).catch(function (err) {
148
+ reject(err.data);
149
+ });
150
+ });
151
+ }
152
+
153
+ //post请求会有post参数也可能有get参数
154
+ function post(url, datas, params) {
155
+ return new Promise(function (resolve, reject) {
156
+ _axios2.default.post(url, datas, { params: params }).then(function (res) {
157
+ resolve(res.data);
158
+ }).catch(function (err) {
159
+ reject(err.data);
160
+ });
161
+ });
162
+ }
163
+
164
+ function postForm(url, datas, params) {
165
+ return new Promise(function (resolve, reject) {
166
+ _axios2.default.post(url, _qs2.default.stringify(datas), { params: params }).then(function (res) {
167
+ resolve(res.data);
168
+ }).catch(function (err) {
169
+ reject(err.data);
170
+ });
171
+ });
172
+ }
173
+
174
+ function get(url, params) {
175
+ return new Promise(function (resolve, reject) {
176
+ _axios2.default.get(url, { params: params }).then(function (res) {
177
+ resolve(res.data);
178
+ }).catch(function (err) {
179
+ reject(err.data);
180
+ });
181
+ });
182
+ }
183
+
184
+ function insert(url, datas, params) {
185
+ return new Promise(function (resolve, reject) {
186
+ _axios2.default.post(url, datas, { params: params }).then(function (res) {
187
+ resolve(res.data);
188
+ }).catch(function (err) {
189
+ reject(err.data);
190
+ });
191
+ });
192
+ }
193
+
194
+ function update(url, datas, params) {
195
+ return new Promise(function (resolve, reject) {
196
+ _axios2.default.post(url, datas, { params: params }).then(function (res) {
197
+ resolve(res.data);
198
+ }).catch(function (err) {
199
+ reject(err.data);
200
+ });
201
+ });
202
+ }
203
+
204
+ function remove(url, datas, params) {
205
+ return new Promise(function (resolve, reject) {
206
+ _axios2.default.post(url, datas, { params: params }).then(function (res) {
207
+ resolve(res.data);
208
+ }).catch(function (err) {
209
+ reject(err.data);
210
+ });
211
+ });
212
+ }
213
+
214
+ function requestAll() {
215
+ for (var _len = arguments.length, paramsFun = Array(_len), _key = 0; _key < _len; _key++) {
216
+ paramsFun[_key] = arguments[_key];
217
+ }
218
+
219
+ return new Promise(function (resolve, reject) {
220
+ _axios2.default.all.apply(_axios2.default, paramsFun).then(_axios2.default.spread(function () {
221
+ var responseList = [];
222
+
223
+ for (var _len2 = arguments.length, response = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
224
+ response[_key2] = arguments[_key2];
225
+ }
226
+
227
+ var _iteratorNormalCompletion = true;
228
+ var _didIteratorError = false;
229
+ var _iteratorError = undefined;
230
+
231
+ try {
232
+ for (var _iterator = response[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
233
+ var res = _step.value;
234
+
235
+ if (!res.status && res.response) {
236
+ responseList.push(res.response.data);
237
+ } else {
238
+ responseList.push(res.data);
239
+ }
240
+ }
241
+ } catch (err) {
242
+ _didIteratorError = true;
243
+ _iteratorError = err;
244
+ } finally {
245
+ try {
246
+ if (!_iteratorNormalCompletion && _iterator.return) {
247
+ _iterator.return();
248
+ }
249
+ } finally {
250
+ if (_didIteratorError) {
251
+ throw _iteratorError;
252
+ }
253
+ }
254
+ }
255
+
256
+ return responseList;
257
+ })).then(function (res) {
258
+ resolve(res);
259
+ }).catch(function (err) {
260
+ reject(err.data);
261
+ });
262
+ });
263
+ }