dlt-for-react 1.0.23 → 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.
- package/README.md +12 -2
- package/lib/components/Button/index.js +79 -0
- package/lib/components/HqSelector/HqLsrySelector/index.js +3 -5
- package/lib/components/HqSelector/HqRySelector/index.js +3 -5
- package/lib/components/HqSelector/HqWzSelector/index.js +3 -5
- package/lib/components/KyEditableTable/component.js +3 -5
- package/lib/components/KyEditableTable/index.js +7 -13
- package/lib/components/KyExcel/index.js +3 -5
- package/lib/components/KyInputPicker/render.js +13 -43
- package/lib/components/KyInputPicker/setting-checkbox.js +3 -5
- package/lib/components/KyInputPicker/setting-multiSelect.js +3 -5
- package/lib/components/KyInputPicker/setting-nhcascader.js +3 -5
- package/lib/components/KyInputPicker/setting-select.js +3 -5
- package/lib/components/KyInputPicker/setting-stu-selector.js +3 -5
- package/lib/components/KyInputPicker/setting-tea-selector.js +3 -5
- package/lib/components/KyTable/checkButtons.js +4 -7
- package/lib/components/KyTree/index.js +6 -16
- package/lib/components/KyUpload/index.js +13 -21
- package/lib/components/NHAuditPanel/config/Axios.js +263 -0
- package/lib/components/NHAuditPanel/config/api.js +479 -0
- package/lib/components/NHAuditPanel/config/data.js +156 -0
- package/lib/components/NHAuditPanel/config/typeMap.js +1234 -0
- package/lib/components/NHAuditPanel/config/uiValidate.js +92 -0
- package/lib/components/NHAuditPanel/index.js +413 -0
- package/lib/components/NHAuditPanel/node.js +619 -0
- package/lib/components/NHCascader/index.js +355 -0
- package/lib/components/NHCheckboxGroup/index.js +135 -0
- package/lib/components/NHDynamicFormShow/baseInfo/index.js +194 -0
- package/lib/components/NHDynamicFormShow/custom/index.js +553 -0
- package/lib/components/NHDynamicFormShow/customModule/common/CommonMethod.js +43 -0
- package/lib/components/NHDynamicFormShow/customModule/czxy/qgzx/EditForm.js +1113 -0
- package/lib/components/NHDynamicFormShow/customModule/czxy/qgzx/index.js +263 -0
- package/lib/components/NHDynamicFormShow/customModule/czxy/xfjm/EditForm.js +880 -0
- package/lib/components/NHDynamicFormShow/customModule/czxy/xfjm/index.js +171 -0
- package/lib/components/NHDynamicFormShow/customModule/czxy/zxj/EditForm.js +865 -0
- package/lib/components/NHDynamicFormShow/customModule/czxy/zxj/index.js +138 -0
- package/lib/components/NHDynamicFormShow/customModule/eszy/zsxxhd/EditForm.js +571 -0
- package/lib/components/NHDynamicFormShow/customModule/eszy/zsxxhd/index.js +147 -0
- package/lib/components/NHDynamicFormShow/customModule/eszy/zybjtz/EditForm.js +474 -0
- package/lib/components/NHDynamicFormShow/customModule/eszy/zybjtz/index.js +139 -0
- package/lib/components/NHDynamicFormShow/customModule/gnyxy/cqzg/EditForm.js +506 -0
- package/lib/components/NHDynamicFormShow/customModule/gnyxy/cqzg/index.js +143 -0
- package/lib/components/NHDynamicFormShow/customModule/gnyxy/gwsb/EditForm.js +1074 -0
- package/lib/components/NHDynamicFormShow/customModule/gnyxy/gwsb/index.js +172 -0
- package/lib/components/NHDynamicFormShow/customModule/gnyxy/qjgl/EditForm.js +927 -0
- package/lib/components/NHDynamicFormShow/customModule/gnyxy/qjgl/index.js +195 -0
- package/lib/components/NHDynamicFormShow/customModule/gnyxy/sxsqj/EditForm.js +1064 -0
- package/lib/components/NHDynamicFormShow/customModule/gnyxy/sxsqj/index.js +183 -0
- package/lib/components/NHDynamicFormShow/customModule/hblgxy/jxj/EditForm.js +763 -0
- package/lib/components/NHDynamicFormShow/customModule/hblgxy/jxj/index.js +137 -0
- package/lib/components/NHDynamicFormShow/customModule/hblgxy/lzjxj/EditForm.js +819 -0
- package/lib/components/NHDynamicFormShow/customModule/hblgxy/lzjxj/index.js +137 -0
- package/lib/components/NHDynamicFormShow/customModule/hblgxy/qgzx/EditForm.js +700 -0
- package/lib/components/NHDynamicFormShow/customModule/hblgxy/qgzx/index.js +162 -0
- package/lib/components/NHDynamicFormShow/customModule/hblgxy/xsqj/EditForm.js +743 -0
- package/lib/components/NHDynamicFormShow/customModule/hblgxy/xsqj/index.js +177 -0
- package/lib/components/NHDynamicFormShow/customModule/hblgxy/zxj/EditForm.js +848 -0
- package/lib/components/NHDynamicFormShow/customModule/hblgxy/zxj/index.js +138 -0
- package/lib/components/NHDynamicFormShow/customModule/hljwgy/qjgl/EditForm.js +777 -0
- package/lib/components/NHDynamicFormShow/customModule/hljwgy/qjgl/index.js +161 -0
- package/lib/components/NHDynamicFormShow/customModule/hljwgy/xjgl/EditForm.js +706 -0
- package/lib/components/NHDynamicFormShow/customModule/hljwgy/xjgl/index.js +130 -0
- package/lib/components/NHDynamicFormShow/customModule/jhysxy/cfjcsq/cfjcEditForm.js +413 -0
- package/lib/components/NHDynamicFormShow/customModule/jhysxy/cfjcsq/index.js +135 -0
- package/lib/components/NHDynamicFormShow/customModule/jhysxy/xsqj/EditForm.js +1013 -0
- package/lib/components/NHDynamicFormShow/customModule/jhysxy/xsqj/index.js +175 -0
- package/lib/components/NHDynamicFormShow/customModule/jjrlx/EditForm.js +1345 -0
- package/lib/components/NHDynamicFormShow/customModule/jjrlx/index.js +274 -0
- package/lib/components/NHDynamicFormShow/customModule/jxj/EditForm.js +669 -0
- package/lib/components/NHDynamicFormShow/customModule/jxj/index.js +134 -0
- package/lib/components/NHDynamicFormShow/customModule/jxsl/fqkns/EditForm.js +378 -0
- package/lib/components/NHDynamicFormShow/customModule/jxsl/fqkns/index.js +120 -0
- package/lib/components/NHDynamicFormShow/customModule/jxsl/xwryfjjd/EditForm.js +638 -0
- package/lib/components/NHDynamicFormShow/customModule/jxsl/xwryfjjd/index.js +133 -0
- package/lib/components/NHDynamicFormShow/customModule/qgzx/EditForm.js +965 -0
- package/lib/components/NHDynamicFormShow/customModule/qgzx/index.js +237 -0
- package/lib/components/NHDynamicFormShow/customModule/qjgl/EditForm.js +823 -0
- package/lib/components/NHDynamicFormShow/customModule/qjgl/index.js +188 -0
- package/lib/components/NHDynamicFormShow/customModule/rcgl/jqlssq/EditForm.js +401 -0
- package/lib/components/NHDynamicFormShow/customModule/rcgl/jqlssq/index.js +472 -0
- package/lib/components/NHDynamicFormShow/customModule/rcgl/tssq/EditForm.js +304 -0
- package/lib/components/NHDynamicFormShow/customModule/rcgl/tssq/NHCascader/index.js +375 -0
- package/lib/components/NHDynamicFormShow/customModule/rcgl/tssq/NHInputPicker/RadioGroup.js +118 -0
- package/lib/components/NHDynamicFormShow/customModule/rcgl/tssq/NHInputPicker/index.js +62 -0
- package/lib/components/NHDynamicFormShow/customModule/rcgl/tssq/NHInputPicker/input-const.js +55 -0
- package/lib/components/NHDynamicFormShow/customModule/rcgl/tssq/NHInputPicker/render.js +1238 -0
- package/lib/components/NHDynamicFormShow/customModule/rcgl/tssq/index.js +375 -0
- package/lib/components/NHDynamicFormShow/customModule/rych/collective/EditForm.js +554 -0
- package/lib/components/NHDynamicFormShow/customModule/rych/collective/index.js +130 -0
- package/lib/components/NHDynamicFormShow/customModule/rych/personal/EditForm.js +542 -0
- package/lib/components/NHDynamicFormShow/customModule/rych/personal/index.js +133 -0
- package/lib/components/NHDynamicFormShow/customModule/sxgy/rych/collective/EditForm.js +575 -0
- package/lib/components/NHDynamicFormShow/customModule/sxgy/rych/collective/index.js +130 -0
- package/lib/components/NHDynamicFormShow/customModule/sxgy/rych/personal/EditForm.js +563 -0
- package/lib/components/NHDynamicFormShow/customModule/sxgy/rych/personal/index.js +133 -0
- package/lib/components/NHDynamicFormShow/customModule/whcz/qjgl/EditForm.js +745 -0
- package/lib/components/NHDynamicFormShow/customModule/whcz/qjgl/index.js +164 -0
- package/lib/components/NHDynamicFormShow/customModule/whcz/rccrxy/EditForm.js +587 -0
- package/lib/components/NHDynamicFormShow/customModule/whcz/rccrxy/index.js +143 -0
- package/lib/components/NHDynamicFormShow/customModule/whdlqjgl/EditForm.js +743 -0
- package/lib/components/NHDynamicFormShow/customModule/whdlqjgl/index.js +172 -0
- package/lib/components/NHDynamicFormShow/customModule/whgc/jjrlx/EditForm.js +1410 -0
- package/lib/components/NHDynamicFormShow/customModule/whgc/jjrlx/index.js +274 -0
- package/lib/components/NHDynamicFormShow/customModule/whgc/jxj/EditForm.js +755 -0
- package/lib/components/NHDynamicFormShow/customModule/whgc/jxj/index.js +130 -0
- package/lib/components/NHDynamicFormShow/customModule/whgc/qjgl/EditForm.js +814 -0
- package/lib/components/NHDynamicFormShow/customModule/whgc/qjgl/index.js +188 -0
- package/lib/components/NHDynamicFormShow/customModule/whgc/zxj/EditForm.js +769 -0
- package/lib/components/NHDynamicFormShow/customModule/whgc/zxj/index.js +130 -0
- package/lib/components/NHDynamicFormShow/customModule/whgcrych/EditForm.js +1004 -0
- package/lib/components/NHDynamicFormShow/customModule/whgcrych/index.js +126 -0
- package/lib/components/NHDynamicFormShow/customModule/whtl/jsrzsq/EditForm.js +503 -0
- package/lib/components/NHDynamicFormShow/customModule/whtl/jsrzsq/index.js +149 -0
- package/lib/components/NHDynamicFormShow/customModule/whtlyhk/EditForm.js +379 -0
- package/lib/components/NHDynamicFormShow/customModule/whtlyhk/index.js +148 -0
- package/lib/components/NHDynamicFormShow/customModule/whtlzxj/EditForm.js +748 -0
- package/lib/components/NHDynamicFormShow/customModule/whtlzxj/index.js +135 -0
- package/lib/components/NHDynamicFormShow/customModule/whtlzy/jxj/EditForm.js +762 -0
- package/lib/components/NHDynamicFormShow/customModule/whtlzy/jxj/index.js +134 -0
- package/lib/components/NHDynamicFormShow/customModule/wjcf/cfjc/cfjcEditForm.js +682 -0
- package/lib/components/NHDynamicFormShow/customModule/wjcf/cfjc/index.js +135 -0
- package/lib/components/NHDynamicFormShow/customModule/wjcf/wjsb/index.js +152 -0
- package/lib/components/NHDynamicFormShow/customModule/wjcf/wjsb/wjsbEditForm.js +783 -0
- package/lib/components/NHDynamicFormShow/customModule/zxj/EditForm.js +764 -0
- package/lib/components/NHDynamicFormShow/customModule/zxj/index.js +138 -0
- package/lib/components/NHDynamicFormShow/customModule/zzsd/cfjcsq/cfjcEditForm.js +677 -0
- package/lib/components/NHDynamicFormShow/customModule/zzsd/cfjcsq/index.js +138 -0
- package/lib/components/NHDynamicFormShow/customModule/zzsd/qjgl/EditForm.js +1173 -0
- package/lib/components/NHDynamicFormShow/customModule/zzsd/qjgl/index.js +242 -0
- package/lib/components/NHDynamicFormShow/customModule/zzsd/rcgl/rcxwgrdj/IndividualRegistForm.js +862 -0
- package/lib/components/NHDynamicFormShow/customModule/zzsd/rcgl/rcxwgrdj/IndividualRegistIndex.js +201 -0
- package/lib/components/NHDynamicFormShow/customModule/zzsd/stuinfo/messageInfo.js +196 -0
- package/lib/components/NHDynamicFormShow/customModule/zzsd/wjsb/index.js +167 -0
- package/lib/components/NHDynamicFormShow/customModule/zzsd/wjsb/wjsbEditForm.js +1096 -0
- package/lib/components/NHDynamicFormShow/index.js +647 -0
- package/lib/components/NHDynamicFormShow/oneOnMany/cardForm/cardItem/index.js +279 -0
- package/lib/components/NHDynamicFormShow/oneOnMany/cardForm/index.js +206 -0
- package/lib/components/NHDynamicFormShow/oneOnMany/index.js +419 -0
- package/lib/components/NHDynamicFormShow/oneOnOne/EditForm.js +401 -0
- package/lib/components/NHDynamicFormShow/oneOnOne/index.js +271 -0
- package/lib/components/NHImagePicker/index.js +554 -0
- package/lib/components/NHInputPicker/RadioGroup.js +118 -0
- package/lib/components/NHInputPicker/index.js +62 -0
- package/lib/components/NHInputPicker/input-const.js +55 -0
- package/lib/components/NHInputPicker/render.js +1271 -0
- package/lib/components/NHListView/index.js +374 -0
- package/lib/components/NHMapGeolocation/index.js +537 -0
- package/lib/components/NHMapGeolocation/initMap/initGdMap.js +104 -0
- package/lib/components/NHMapGeolocation/initMap/initTencentMap.js +138 -0
- package/lib/components/NHMapGeolocation/style.js +51 -0
- package/lib/components/NHMultiSelect/index.js +272 -0
- package/lib/components/NHRadioGroup/index.js +118 -0
- package/lib/components/NHSelect/index.js +364 -0
- package/lib/components/NHTreeMenu/index.js +126 -0
- package/lib/components/NHTreeMenu/treeNode.js +164 -0
- package/lib/components/StuSelector/index.js +611 -0
- package/lib/index.js +161 -116
- package/lib/layouts/KyInputPicker/edit-page.js +585 -0
- package/lib/layouts/KyInputPicker/index.js +220 -0
- package/lib/layouts/KyInputPicker/input-const.js +134 -0
- package/lib/layouts/KyInputPicker/render.js +2477 -0
- package/lib/layouts/KyInputPicker/setting-checkbox.js +850 -0
- package/lib/layouts/KyInputPicker/setting-datepicker.js +430 -0
- package/lib/layouts/KyInputPicker/setting-datetimepicker.js +443 -0
- package/lib/layouts/KyInputPicker/setting-input.js +555 -0
- package/lib/layouts/KyInputPicker/setting-inputNumber.js +612 -0
- package/lib/layouts/KyInputPicker/setting-monthpicker.js +434 -0
- package/lib/layouts/KyInputPicker/setting-multiSelect.js +532 -0
- package/lib/layouts/KyInputPicker/setting-nhcascader.js +584 -0
- package/lib/layouts/KyInputPicker/setting-old-upload.js +428 -0
- package/lib/layouts/KyInputPicker/setting-radio.js +468 -0
- package/lib/layouts/KyInputPicker/setting-rangepicker.js +466 -0
- package/lib/layouts/KyInputPicker/setting-select.js +534 -0
- package/lib/layouts/KyInputPicker/setting-stu-selector.js +507 -0
- package/lib/layouts/KyInputPicker/setting-switch.js +274 -0
- package/lib/layouts/KyInputPicker/setting-tea-selector.js +507 -0
- package/lib/layouts/KyInputPicker/setting-textarea.js +619 -0
- package/lib/layouts/KyInputPicker/setting-timepicker.js +437 -0
- package/lib/layouts/KyInputPicker/setting-upload.js +766 -0
- package/lib/layouts/KyModal/buildTitle.js +81 -0
- package/lib/layouts/KyModal/dragM.js +127 -0
- package/lib/layouts/KyModal/index.js +321 -0
- package/lib/layouts/KyPreview/index.js +219 -0
- package/lib/layouts/KyUpload/index.js +1155 -0
- package/lib/layouts/LeftMenu/index.js +5 -11
- package/lib/layouts/NavigationBar/index.js +4 -10
- package/lib/layouts/Top/editPassWord.js +5 -7
- package/lib/layouts/Top/index.js +6 -20
- package/lib/layouts/TopMenu/index.js +11 -14
- package/lib/layouts/layout/index.js +7 -13
- package/lib/layouts/{Login → login}/index-pre.js +3 -5
- package/lib/layouts/{Login → login}/index.js +6 -8
- package/lib/layouts/{Login → login}/login.js +8 -17
- package/lib/layouts/mixTop/index.js +13 -28
- package/lib/layouts/settingDrawer/index.js +3 -5
- package/lib/routes/AuthorizedRoute.js +7 -13
- package/lib/utils/NHCore.js +46 -2
- package/lib/utils/base64.js +238 -0
- package/lib/utils/browserJudge.js +33 -0
- package/lib/utils/common.js +18 -20
- package/lib/utils/createUuid.js +11 -31
- package/lib/utils/device.js +44 -0
- package/lib/utils/dynamicLoadCss.js +14 -0
- package/lib/utils/dynamicLoadJs.js +21 -0
- package/lib/utils/getLoginUser.js +1 -1
- package/lib/utils/getSize.js +2 -11
- package/lib/utils/getStyle.js +26 -0
- package/lib/utils/getSuitHeight.js +49 -0
- package/lib/utils/hasAuth.js +11 -0
- package/lib/utils/index.js +1 -34
- package/lib/utils/loadJS.js +40 -0
- package/package.json +1 -1
- /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(
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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);
|
|
@@ -103,6 +93,8 @@ var _KyPreview = require('../KyPreview');
|
|
|
103
93
|
|
|
104
94
|
var _KyPreview2 = _interopRequireDefault(_KyPreview);
|
|
105
95
|
|
|
96
|
+
var _base = require('../../utils/base64');
|
|
97
|
+
|
|
106
98
|
require('../../../assets/components/KyUpload/index.less');
|
|
107
99
|
|
|
108
100
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -153,7 +145,7 @@ var KyUpload = function (_React$Component) {
|
|
|
153
145
|
|
|
154
146
|
_this.state = {
|
|
155
147
|
fileList: [], //上传的文件
|
|
156
|
-
value: value !== undefined && value !== null && value.trim() !== '' ? value : (0,
|
|
148
|
+
value: value !== undefined && value !== null && value.trim() !== '' ? value : (0, _xguiForReact.createUuid)(), //传了附件主表id,查询附件明细
|
|
157
149
|
imageVisible: false,
|
|
158
150
|
previewFile: '',
|
|
159
151
|
fileName: '',
|
|
@@ -192,7 +184,7 @@ var KyUpload = function (_React$Component) {
|
|
|
192
184
|
this.setState({ value: value, fileList: [] });
|
|
193
185
|
var t = new Date().getTime();
|
|
194
186
|
// 获取动态文件
|
|
195
|
-
(0,
|
|
187
|
+
(0, _xguiForReact.NHFetch)(this.state.xtglUrl + '/dynamic/' + value + '/getDetailed', 'GET', t).then(function (res) {
|
|
196
188
|
if (res && res.data && res.data.length > 0) {
|
|
197
189
|
_this2.handleFileList(res.data);
|
|
198
190
|
}
|
|
@@ -224,7 +216,7 @@ var KyUpload = function (_React$Component) {
|
|
|
224
216
|
var value = this.state.value;
|
|
225
217
|
if (newValue !== value) return;
|
|
226
218
|
var t = new Date().getTime();
|
|
227
|
-
(0,
|
|
219
|
+
(0, _xguiForReact.NHFetch)(this.state.xtglUrl + '/dynamic/' + value + '/getDetailed', 'GET', t).then(function (res) {
|
|
228
220
|
if (res && res.data && res.data.length > 0) {
|
|
229
221
|
_this3.handleFileList(res.data);
|
|
230
222
|
}
|
|
@@ -255,7 +247,7 @@ var KyUpload = function (_React$Component) {
|
|
|
255
247
|
case 0:
|
|
256
248
|
params = ['KY_FJFWBZ', 'KY_FJYLBZ'];
|
|
257
249
|
_context.next = 3;
|
|
258
|
-
return (0,
|
|
250
|
+
return (0, _xguiForReact.NHFetch)(this.state.xtglUrl + '/common/parameters/get', 'POST', params);
|
|
259
251
|
|
|
260
252
|
case 3:
|
|
261
253
|
res = _context.sent;
|
|
@@ -800,12 +792,12 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
800
792
|
|
|
801
793
|
fjid: e.file.response.data.ssbh,
|
|
802
794
|
fjmc: e.file.name,
|
|
803
|
-
cjsid: (0,
|
|
795
|
+
cjsid: (0, _xguiForReact.getLoginUser)().userId
|
|
804
796
|
};
|
|
805
797
|
if (defaultEffective) {
|
|
806
798
|
param.ztm = '1';
|
|
807
799
|
}
|
|
808
|
-
(0,
|
|
800
|
+
(0, _xguiForReact.NHFetch)(_this5.state.xtglUrl + '/dynamic/insert', 'POST', param).then(function (res) {
|
|
809
801
|
if (res && res.code === 200) {
|
|
810
802
|
// 插入主表成功后 去掉将size设置为false,size存在应该为上传阶段的,若存在则未成功保存到接口,getResult时将去掉当前数据
|
|
811
803
|
fileList.map(function (item) {
|
|
@@ -880,7 +872,7 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
880
872
|
fileList = _this5.filterCurrentFile(e.fileList, e.file);
|
|
881
873
|
} else if (e.file.status === 'removed') {
|
|
882
874
|
//删除
|
|
883
|
-
(0,
|
|
875
|
+
(0, _xguiForReact.NHFetch)(_this5.state.xtglUrl + '/dynamic/updateDel', 'POST', e.file.uid).then(function (res) {
|
|
884
876
|
if (res && res.code === 200) {
|
|
885
877
|
_this5.getResult(fileList);
|
|
886
878
|
} else {
|
|
@@ -904,7 +896,7 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
904
896
|
|
|
905
897
|
this.requestData = function () {
|
|
906
898
|
if (_this5.props.uploadType === 'file') {
|
|
907
|
-
return { uuid: (0,
|
|
899
|
+
return { uuid: (0, _xguiForReact.createUuid)(), type: '1' };
|
|
908
900
|
} else {
|
|
909
901
|
return { redisData: _this5.props.redisData };
|
|
910
902
|
}
|
|
@@ -1074,7 +1066,7 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
1074
1066
|
}
|
|
1075
1067
|
|
|
1076
1068
|
var previewUrl = originUrl + '&fullfilename=/' + _name;
|
|
1077
|
-
window.open(KY_FJYLBZ + '/onlinePreview?url=' + encodeURIComponent(
|
|
1069
|
+
window.open(KY_FJYLBZ + '/onlinePreview?url=' + encodeURIComponent((0, _base.encode)(previewUrl)));
|
|
1078
1070
|
} else {
|
|
1079
1071
|
//旧版-预览非图片格式
|
|
1080
1072
|
if (fileListType.includes(name)) {
|
|
@@ -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
|
+
}
|