dlt-for-react 1.1.3 → 1.1.4
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 +4 -0
- package/lib/index.js +7 -1
- package/lib/layouts/Top/index.js +1 -1
- package/lib/layouts/layout/index.js +77 -31
- package/lib/layouts/mixTop/index.js +3 -3
- package/lib/utils/createUuid.js +31 -11
- package/lib/utils/getLoginUser.js +1 -1
- package/lib/utils/getSize.js +11 -2
- package/lib/utils/index.js +35 -2
- package/package.json +1 -1
- package/lib/components/Button/index.js +0 -79
- package/lib/components/NHAuditPanel/config/Axios.js +0 -263
- package/lib/components/NHAuditPanel/config/api.js +0 -479
- package/lib/components/NHAuditPanel/config/data.js +0 -156
- package/lib/components/NHAuditPanel/config/typeMap.js +0 -1234
- package/lib/components/NHAuditPanel/config/uiValidate.js +0 -92
- package/lib/components/NHAuditPanel/index.js +0 -413
- package/lib/components/NHAuditPanel/node.js +0 -619
- package/lib/components/NHCascader/index.js +0 -355
- package/lib/components/NHCheckboxGroup/index.js +0 -135
- package/lib/components/NHDynamicFormShow/baseInfo/index.js +0 -194
- package/lib/components/NHDynamicFormShow/custom/index.js +0 -553
- package/lib/components/NHDynamicFormShow/customModule/common/CommonMethod.js +0 -43
- package/lib/components/NHDynamicFormShow/customModule/czxy/qgzx/EditForm.js +0 -1113
- package/lib/components/NHDynamicFormShow/customModule/czxy/qgzx/index.js +0 -263
- package/lib/components/NHDynamicFormShow/customModule/czxy/xfjm/EditForm.js +0 -880
- package/lib/components/NHDynamicFormShow/customModule/czxy/xfjm/index.js +0 -171
- package/lib/components/NHDynamicFormShow/customModule/czxy/zxj/EditForm.js +0 -865
- package/lib/components/NHDynamicFormShow/customModule/czxy/zxj/index.js +0 -138
- package/lib/components/NHDynamicFormShow/customModule/eszy/zsxxhd/EditForm.js +0 -571
- package/lib/components/NHDynamicFormShow/customModule/eszy/zsxxhd/index.js +0 -147
- package/lib/components/NHDynamicFormShow/customModule/eszy/zybjtz/EditForm.js +0 -474
- package/lib/components/NHDynamicFormShow/customModule/eszy/zybjtz/index.js +0 -139
- package/lib/components/NHDynamicFormShow/customModule/gnyxy/cqzg/EditForm.js +0 -506
- package/lib/components/NHDynamicFormShow/customModule/gnyxy/cqzg/index.js +0 -143
- package/lib/components/NHDynamicFormShow/customModule/gnyxy/gwsb/EditForm.js +0 -1074
- package/lib/components/NHDynamicFormShow/customModule/gnyxy/gwsb/index.js +0 -172
- package/lib/components/NHDynamicFormShow/customModule/gnyxy/qjgl/EditForm.js +0 -927
- package/lib/components/NHDynamicFormShow/customModule/gnyxy/qjgl/index.js +0 -195
- package/lib/components/NHDynamicFormShow/customModule/gnyxy/sxsqj/EditForm.js +0 -1064
- package/lib/components/NHDynamicFormShow/customModule/gnyxy/sxsqj/index.js +0 -183
- package/lib/components/NHDynamicFormShow/customModule/hblgxy/jxj/EditForm.js +0 -763
- package/lib/components/NHDynamicFormShow/customModule/hblgxy/jxj/index.js +0 -137
- package/lib/components/NHDynamicFormShow/customModule/hblgxy/lzjxj/EditForm.js +0 -819
- package/lib/components/NHDynamicFormShow/customModule/hblgxy/lzjxj/index.js +0 -137
- package/lib/components/NHDynamicFormShow/customModule/hblgxy/qgzx/EditForm.js +0 -700
- package/lib/components/NHDynamicFormShow/customModule/hblgxy/qgzx/index.js +0 -162
- package/lib/components/NHDynamicFormShow/customModule/hblgxy/xsqj/EditForm.js +0 -743
- package/lib/components/NHDynamicFormShow/customModule/hblgxy/xsqj/index.js +0 -177
- package/lib/components/NHDynamicFormShow/customModule/hblgxy/zxj/EditForm.js +0 -848
- package/lib/components/NHDynamicFormShow/customModule/hblgxy/zxj/index.js +0 -138
- package/lib/components/NHDynamicFormShow/customModule/hljwgy/qjgl/EditForm.js +0 -777
- package/lib/components/NHDynamicFormShow/customModule/hljwgy/qjgl/index.js +0 -161
- package/lib/components/NHDynamicFormShow/customModule/hljwgy/xjgl/EditForm.js +0 -706
- package/lib/components/NHDynamicFormShow/customModule/hljwgy/xjgl/index.js +0 -130
- package/lib/components/NHDynamicFormShow/customModule/jhysxy/cfjcsq/cfjcEditForm.js +0 -413
- package/lib/components/NHDynamicFormShow/customModule/jhysxy/cfjcsq/index.js +0 -135
- package/lib/components/NHDynamicFormShow/customModule/jhysxy/xsqj/EditForm.js +0 -1013
- package/lib/components/NHDynamicFormShow/customModule/jhysxy/xsqj/index.js +0 -175
- package/lib/components/NHDynamicFormShow/customModule/jjrlx/EditForm.js +0 -1345
- package/lib/components/NHDynamicFormShow/customModule/jjrlx/index.js +0 -274
- package/lib/components/NHDynamicFormShow/customModule/jxj/EditForm.js +0 -669
- package/lib/components/NHDynamicFormShow/customModule/jxj/index.js +0 -134
- package/lib/components/NHDynamicFormShow/customModule/jxsl/fqkns/EditForm.js +0 -378
- package/lib/components/NHDynamicFormShow/customModule/jxsl/fqkns/index.js +0 -120
- package/lib/components/NHDynamicFormShow/customModule/jxsl/xwryfjjd/EditForm.js +0 -638
- package/lib/components/NHDynamicFormShow/customModule/jxsl/xwryfjjd/index.js +0 -133
- package/lib/components/NHDynamicFormShow/customModule/qgzx/EditForm.js +0 -965
- package/lib/components/NHDynamicFormShow/customModule/qgzx/index.js +0 -237
- package/lib/components/NHDynamicFormShow/customModule/qjgl/EditForm.js +0 -823
- package/lib/components/NHDynamicFormShow/customModule/qjgl/index.js +0 -188
- package/lib/components/NHDynamicFormShow/customModule/rcgl/jqlssq/EditForm.js +0 -401
- package/lib/components/NHDynamicFormShow/customModule/rcgl/jqlssq/index.js +0 -472
- package/lib/components/NHDynamicFormShow/customModule/rcgl/tssq/EditForm.js +0 -304
- package/lib/components/NHDynamicFormShow/customModule/rcgl/tssq/NHCascader/index.js +0 -375
- package/lib/components/NHDynamicFormShow/customModule/rcgl/tssq/NHInputPicker/RadioGroup.js +0 -118
- package/lib/components/NHDynamicFormShow/customModule/rcgl/tssq/NHInputPicker/index.js +0 -62
- package/lib/components/NHDynamicFormShow/customModule/rcgl/tssq/NHInputPicker/input-const.js +0 -55
- package/lib/components/NHDynamicFormShow/customModule/rcgl/tssq/NHInputPicker/render.js +0 -1238
- package/lib/components/NHDynamicFormShow/customModule/rcgl/tssq/index.js +0 -375
- package/lib/components/NHDynamicFormShow/customModule/rych/collective/EditForm.js +0 -554
- package/lib/components/NHDynamicFormShow/customModule/rych/collective/index.js +0 -130
- package/lib/components/NHDynamicFormShow/customModule/rych/personal/EditForm.js +0 -542
- package/lib/components/NHDynamicFormShow/customModule/rych/personal/index.js +0 -133
- package/lib/components/NHDynamicFormShow/customModule/sxgy/rych/collective/EditForm.js +0 -575
- package/lib/components/NHDynamicFormShow/customModule/sxgy/rych/collective/index.js +0 -130
- package/lib/components/NHDynamicFormShow/customModule/sxgy/rych/personal/EditForm.js +0 -563
- package/lib/components/NHDynamicFormShow/customModule/sxgy/rych/personal/index.js +0 -133
- package/lib/components/NHDynamicFormShow/customModule/whcz/qjgl/EditForm.js +0 -745
- package/lib/components/NHDynamicFormShow/customModule/whcz/qjgl/index.js +0 -164
- package/lib/components/NHDynamicFormShow/customModule/whcz/rccrxy/EditForm.js +0 -587
- package/lib/components/NHDynamicFormShow/customModule/whcz/rccrxy/index.js +0 -143
- package/lib/components/NHDynamicFormShow/customModule/whdlqjgl/EditForm.js +0 -743
- package/lib/components/NHDynamicFormShow/customModule/whdlqjgl/index.js +0 -172
- package/lib/components/NHDynamicFormShow/customModule/whgc/jjrlx/EditForm.js +0 -1410
- package/lib/components/NHDynamicFormShow/customModule/whgc/jjrlx/index.js +0 -274
- package/lib/components/NHDynamicFormShow/customModule/whgc/jxj/EditForm.js +0 -755
- package/lib/components/NHDynamicFormShow/customModule/whgc/jxj/index.js +0 -130
- package/lib/components/NHDynamicFormShow/customModule/whgc/qjgl/EditForm.js +0 -814
- package/lib/components/NHDynamicFormShow/customModule/whgc/qjgl/index.js +0 -188
- package/lib/components/NHDynamicFormShow/customModule/whgc/zxj/EditForm.js +0 -769
- package/lib/components/NHDynamicFormShow/customModule/whgc/zxj/index.js +0 -130
- package/lib/components/NHDynamicFormShow/customModule/whgcrych/EditForm.js +0 -1004
- package/lib/components/NHDynamicFormShow/customModule/whgcrych/index.js +0 -126
- package/lib/components/NHDynamicFormShow/customModule/whtl/jsrzsq/EditForm.js +0 -503
- package/lib/components/NHDynamicFormShow/customModule/whtl/jsrzsq/index.js +0 -149
- package/lib/components/NHDynamicFormShow/customModule/whtlyhk/EditForm.js +0 -379
- package/lib/components/NHDynamicFormShow/customModule/whtlyhk/index.js +0 -148
- package/lib/components/NHDynamicFormShow/customModule/whtlzxj/EditForm.js +0 -748
- package/lib/components/NHDynamicFormShow/customModule/whtlzxj/index.js +0 -135
- package/lib/components/NHDynamicFormShow/customModule/whtlzy/jxj/EditForm.js +0 -762
- package/lib/components/NHDynamicFormShow/customModule/whtlzy/jxj/index.js +0 -134
- package/lib/components/NHDynamicFormShow/customModule/wjcf/cfjc/cfjcEditForm.js +0 -682
- package/lib/components/NHDynamicFormShow/customModule/wjcf/cfjc/index.js +0 -135
- package/lib/components/NHDynamicFormShow/customModule/wjcf/wjsb/index.js +0 -152
- package/lib/components/NHDynamicFormShow/customModule/wjcf/wjsb/wjsbEditForm.js +0 -783
- package/lib/components/NHDynamicFormShow/customModule/zxj/EditForm.js +0 -764
- package/lib/components/NHDynamicFormShow/customModule/zxj/index.js +0 -138
- package/lib/components/NHDynamicFormShow/customModule/zzsd/cfjcsq/cfjcEditForm.js +0 -677
- package/lib/components/NHDynamicFormShow/customModule/zzsd/cfjcsq/index.js +0 -138
- package/lib/components/NHDynamicFormShow/customModule/zzsd/qjgl/EditForm.js +0 -1173
- package/lib/components/NHDynamicFormShow/customModule/zzsd/qjgl/index.js +0 -242
- package/lib/components/NHDynamicFormShow/customModule/zzsd/rcgl/rcxwgrdj/IndividualRegistForm.js +0 -862
- package/lib/components/NHDynamicFormShow/customModule/zzsd/rcgl/rcxwgrdj/IndividualRegistIndex.js +0 -201
- package/lib/components/NHDynamicFormShow/customModule/zzsd/stuinfo/messageInfo.js +0 -196
- package/lib/components/NHDynamicFormShow/customModule/zzsd/wjsb/index.js +0 -167
- package/lib/components/NHDynamicFormShow/customModule/zzsd/wjsb/wjsbEditForm.js +0 -1096
- package/lib/components/NHDynamicFormShow/index.js +0 -647
- package/lib/components/NHDynamicFormShow/oneOnMany/cardForm/cardItem/index.js +0 -279
- package/lib/components/NHDynamicFormShow/oneOnMany/cardForm/index.js +0 -206
- package/lib/components/NHDynamicFormShow/oneOnMany/index.js +0 -419
- package/lib/components/NHDynamicFormShow/oneOnOne/EditForm.js +0 -401
- package/lib/components/NHDynamicFormShow/oneOnOne/index.js +0 -271
- package/lib/components/NHImagePicker/index.js +0 -554
- package/lib/components/NHInputPicker/RadioGroup.js +0 -118
- package/lib/components/NHInputPicker/index.js +0 -62
- package/lib/components/NHInputPicker/input-const.js +0 -55
- package/lib/components/NHInputPicker/render.js +0 -1271
- package/lib/components/NHListView/index.js +0 -374
- package/lib/components/NHMapGeolocation/index.js +0 -537
- package/lib/components/NHMapGeolocation/initMap/initGdMap.js +0 -104
- package/lib/components/NHMapGeolocation/initMap/initTencentMap.js +0 -138
- package/lib/components/NHMapGeolocation/style.js +0 -51
- package/lib/components/NHMultiSelect/index.js +0 -272
- package/lib/components/NHRadioGroup/index.js +0 -118
- package/lib/components/NHSelect/index.js +0 -364
- package/lib/components/NHTreeMenu/index.js +0 -126
- package/lib/components/NHTreeMenu/treeNode.js +0 -164
- package/lib/components/StuSelector/index.js +0 -611
- package/lib/layouts/KyInputPicker/edit-page.js +0 -585
- package/lib/layouts/KyInputPicker/index.js +0 -220
- package/lib/layouts/KyInputPicker/input-const.js +0 -134
- package/lib/layouts/KyInputPicker/render.js +0 -2477
- package/lib/layouts/KyInputPicker/setting-checkbox.js +0 -850
- package/lib/layouts/KyInputPicker/setting-datepicker.js +0 -430
- package/lib/layouts/KyInputPicker/setting-datetimepicker.js +0 -443
- package/lib/layouts/KyInputPicker/setting-input.js +0 -555
- package/lib/layouts/KyInputPicker/setting-inputNumber.js +0 -612
- package/lib/layouts/KyInputPicker/setting-monthpicker.js +0 -434
- package/lib/layouts/KyInputPicker/setting-multiSelect.js +0 -532
- package/lib/layouts/KyInputPicker/setting-nhcascader.js +0 -584
- package/lib/layouts/KyInputPicker/setting-old-upload.js +0 -428
- package/lib/layouts/KyInputPicker/setting-radio.js +0 -468
- package/lib/layouts/KyInputPicker/setting-rangepicker.js +0 -466
- package/lib/layouts/KyInputPicker/setting-select.js +0 -534
- package/lib/layouts/KyInputPicker/setting-stu-selector.js +0 -507
- package/lib/layouts/KyInputPicker/setting-switch.js +0 -274
- package/lib/layouts/KyInputPicker/setting-tea-selector.js +0 -507
- package/lib/layouts/KyInputPicker/setting-textarea.js +0 -619
- package/lib/layouts/KyInputPicker/setting-timepicker.js +0 -437
- package/lib/layouts/KyInputPicker/setting-upload.js +0 -766
- package/lib/layouts/KyModal/buildTitle.js +0 -81
- package/lib/layouts/KyModal/dragM.js +0 -127
- package/lib/layouts/KyModal/index.js +0 -321
- package/lib/layouts/KyPreview/index.js +0 -219
- package/lib/layouts/KyUpload/index.js +0 -1155
- package/lib/utils/browserJudge.js +0 -33
- package/lib/utils/dynamicLoadCss.js +0 -14
- package/lib/utils/dynamicLoadJs.js +0 -21
- package/lib/utils/getStyle.js +0 -26
- package/lib/utils/getSuitHeight.js +0 -49
- package/lib/utils/hasAuth.js +0 -11
- package/lib/utils/loadJS.js +0 -40
- /package/lib/layouts/{login → Login}/index-pre.js +0 -0
- /package/lib/layouts/{login → Login}/index.js +0 -0
- /package/lib/layouts/{login → Login}/login.js +0 -0
- /package/lib/layouts/{login → Login}/lyPassword.js +0 -0
package/README.md
CHANGED
package/lib/index.js
CHANGED
|
@@ -513,6 +513,12 @@ Object.defineProperty(exports, 'keyToLower', {
|
|
|
513
513
|
return _index4.keyToLower;
|
|
514
514
|
}
|
|
515
515
|
});
|
|
516
|
+
Object.defineProperty(exports, 'getTitleConfig', {
|
|
517
|
+
enumerable: true,
|
|
518
|
+
get: function get() {
|
|
519
|
+
return _index4.getTitleConfig;
|
|
520
|
+
}
|
|
521
|
+
});
|
|
516
522
|
|
|
517
523
|
var _common = require('./utils/common.js');
|
|
518
524
|
|
|
@@ -824,7 +830,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
824
830
|
* @Description:
|
|
825
831
|
* @Author: jiangzhongxin
|
|
826
832
|
* @LastEditors: jiangzhongxin
|
|
827
|
-
* @LastEditTime: 2023-11-
|
|
833
|
+
* @LastEditTime: 2023-11-21 14:30:14
|
|
828
834
|
* @Copyright: 2023 LIANYI TECHNOLOGY CO.,LTD. All Rights Reserved. 联奕科技有限公司
|
|
829
835
|
*/
|
|
830
836
|
var ENV = process.env.NODE_ENV;
|
package/lib/layouts/Top/index.js
CHANGED
|
@@ -25,6 +25,18 @@ var _stringify = require('babel-runtime/core-js/json/stringify');
|
|
|
25
25
|
|
|
26
26
|
var _stringify2 = _interopRequireDefault(_stringify);
|
|
27
27
|
|
|
28
|
+
var _promise = require('babel-runtime/core-js/promise');
|
|
29
|
+
|
|
30
|
+
var _promise2 = _interopRequireDefault(_promise);
|
|
31
|
+
|
|
32
|
+
var _regenerator = require('babel-runtime/regenerator');
|
|
33
|
+
|
|
34
|
+
var _regenerator2 = _interopRequireDefault(_regenerator);
|
|
35
|
+
|
|
36
|
+
var _asyncToGenerator2 = require('babel-runtime/helpers/asyncToGenerator');
|
|
37
|
+
|
|
38
|
+
var _asyncToGenerator3 = _interopRequireDefault(_asyncToGenerator2);
|
|
39
|
+
|
|
28
40
|
var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
|
|
29
41
|
|
|
30
42
|
var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
|
|
@@ -63,6 +75,10 @@ var _react2 = _interopRequireDefault(_react);
|
|
|
63
75
|
|
|
64
76
|
var _xguiForReact = require('xgui-for-react');
|
|
65
77
|
|
|
78
|
+
var _NHFetch = require('../../utils/NHFetch');
|
|
79
|
+
|
|
80
|
+
var _NHFetch2 = _interopRequireDefault(_NHFetch);
|
|
81
|
+
|
|
66
82
|
var _LeftMenu = require('../LeftMenu');
|
|
67
83
|
|
|
68
84
|
var _LeftMenu2 = _interopRequireDefault(_LeftMenu);
|
|
@@ -116,14 +132,70 @@ var NHLayout = function (_React$Component) {
|
|
|
116
132
|
(0, _inherits3.default)(NHLayout, _React$Component);
|
|
117
133
|
|
|
118
134
|
function NHLayout(props) {
|
|
135
|
+
var _this2 = this;
|
|
136
|
+
|
|
119
137
|
(0, _classCallCheck3.default)(this, NHLayout);
|
|
120
138
|
|
|
121
139
|
var _this = (0, _possibleConstructorReturn3.default)(this, (NHLayout.__proto__ || (0, _getPrototypeOf2.default)(NHLayout)).call(this, props));
|
|
122
140
|
|
|
141
|
+
_this.UNSAFE_componentWillMount = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee() {
|
|
142
|
+
var config, fwmcUrl, fwmc, data;
|
|
143
|
+
return _regenerator2.default.wrap(function _callee$(_context) {
|
|
144
|
+
while (1) {
|
|
145
|
+
switch (_context.prev = _context.next) {
|
|
146
|
+
case 0:
|
|
147
|
+
config = _this.props.config;
|
|
148
|
+
fwmcUrl = config.fwmcUrl, fwmc = config.fwmc;
|
|
149
|
+
//动态获取服务名称(优选使用fwmcUrl,如果未指定fwmcUrl则以fwmc为准)
|
|
150
|
+
|
|
151
|
+
if (!fwmcUrl) {
|
|
152
|
+
_context.next = 8;
|
|
153
|
+
break;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
_context.next = 5;
|
|
157
|
+
return _this.getFwmc(fwmcUrl);
|
|
158
|
+
|
|
159
|
+
case 5:
|
|
160
|
+
_context.t0 = _context.sent;
|
|
161
|
+
_context.next = 9;
|
|
162
|
+
break;
|
|
163
|
+
|
|
164
|
+
case 8:
|
|
165
|
+
_context.t0 = undefined;
|
|
166
|
+
|
|
167
|
+
case 9:
|
|
168
|
+
data = _context.t0;
|
|
169
|
+
|
|
170
|
+
if (data) {
|
|
171
|
+
fwmc = data;
|
|
172
|
+
}
|
|
173
|
+
_this.setState({
|
|
174
|
+
fwmc: fwmc
|
|
175
|
+
});
|
|
176
|
+
|
|
177
|
+
case 12:
|
|
178
|
+
case 'end':
|
|
179
|
+
return _context.stop();
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}, _callee, _this2);
|
|
183
|
+
}));
|
|
184
|
+
|
|
185
|
+
_this.getFwmc = function (fwmcUrl) {
|
|
186
|
+
return new _promise2.default(function (resolve, reject) {
|
|
187
|
+
(0, _NHFetch2.default)(fwmcUrl, 'GET').then(function (res) {
|
|
188
|
+
if (res && res.code === 200) {
|
|
189
|
+
resolve(res.data);
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
});
|
|
193
|
+
};
|
|
194
|
+
|
|
123
195
|
_this.getLayoutSetting = function () {
|
|
124
196
|
_this.setState({ layoutShow: false });
|
|
125
197
|
var baseUrl = window.xtglUrl || 'api/hq-xtgl';
|
|
126
|
-
(0,
|
|
198
|
+
(0, _NHFetch2.default)(baseUrl + '/outer/getCsszByCsbz', 'GET', {
|
|
127
199
|
csbz: 'XTGL_LAYOUT_SETTING'
|
|
128
200
|
}).then(function (res) {
|
|
129
201
|
if (res && res.code === 200 && res.data) {
|
|
@@ -256,7 +328,7 @@ var NHLayout = function (_React$Component) {
|
|
|
256
328
|
}
|
|
257
329
|
var prams = [{ csszxid: csszxid, csz: (0, _stringify2.default)(setting) }];
|
|
258
330
|
var baseUrl = window.xtglUrl || 'api/hq-xtgl';
|
|
259
|
-
(0,
|
|
331
|
+
(0, _NHFetch2.default)(baseUrl + '/parameterSetting/updateMulti', 'POST', prams).then(function (res) {
|
|
260
332
|
if (res && res.code === 200) {
|
|
261
333
|
_message3.default.success('Layout配置项保存成功!');
|
|
262
334
|
}
|
|
@@ -295,7 +367,7 @@ var NHLayout = function (_React$Component) {
|
|
|
295
367
|
|
|
296
368
|
_this.state = {
|
|
297
369
|
collapsed: false, //是否关闭菜单
|
|
298
|
-
fwmc:
|
|
370
|
+
fwmc: "", //服务名称
|
|
299
371
|
visible: true, //是否显示header
|
|
300
372
|
setting: sessionStorage.getItem('setting') ? JSON.parse(sessionStorage.getItem('setting')) : defaultSetting, // 配置
|
|
301
373
|
layoutShow: false, //展示layout
|
|
@@ -307,34 +379,6 @@ var NHLayout = function (_React$Component) {
|
|
|
307
379
|
}
|
|
308
380
|
|
|
309
381
|
(0, _createClass3.default)(NHLayout, [{
|
|
310
|
-
key: 'UNSAFE_componentWillMount',
|
|
311
|
-
value: function UNSAFE_componentWillMount() {
|
|
312
|
-
var _this2 = this;
|
|
313
|
-
|
|
314
|
-
var config = this.props.config;
|
|
315
|
-
|
|
316
|
-
var fwmcUrl = config.fwmcUrl,
|
|
317
|
-
fwmc = config.fwmc;
|
|
318
|
-
//动态获取服务名称(优选使用fwmcUrl,如果未指定fwmcUrl则以fwmc为准)
|
|
319
|
-
if (fwmcUrl && fwmcUrl.startsWith('api/')) {
|
|
320
|
-
(0, _xguiForReact.NHFetch)(fwmcUrl, 'GET').then(function (res) {
|
|
321
|
-
if (res && res.data) {
|
|
322
|
-
_this2.setState({
|
|
323
|
-
fwmc: res.data
|
|
324
|
-
});
|
|
325
|
-
} else {
|
|
326
|
-
_this2.setState({
|
|
327
|
-
fwmc: fwmc
|
|
328
|
-
});
|
|
329
|
-
}
|
|
330
|
-
});
|
|
331
|
-
} else if (fwmc) {
|
|
332
|
-
this.setState({
|
|
333
|
-
fwmc: fwmc
|
|
334
|
-
});
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
}, {
|
|
338
382
|
key: 'componentDidMount',
|
|
339
383
|
value: function componentDidMount() {
|
|
340
384
|
document.addEventListener('scroll', this.handScroll, { passive: true });
|
|
@@ -454,6 +498,7 @@ var NHLayout = function (_React$Component) {
|
|
|
454
498
|
collapsed: this.state.collapsed,
|
|
455
499
|
toggle: this.toggle,
|
|
456
500
|
config: this.props.config,
|
|
501
|
+
fwmc: this.state.fwmc,
|
|
457
502
|
menuIcons: menuIcons,
|
|
458
503
|
updataPassBtnAuth: this.props.config.updataPassBtnAuth,
|
|
459
504
|
setting: setting
|
|
@@ -490,6 +535,7 @@ var NHLayout = function (_React$Component) {
|
|
|
490
535
|
collapsed: this.state.collapsed,
|
|
491
536
|
toggle: this.toggle,
|
|
492
537
|
config: this.props.config,
|
|
538
|
+
fwmc: this.state.fwmc,
|
|
493
539
|
updataPassBtnAuth: this.props.config.updataPassBtnAuth,
|
|
494
540
|
setting: setting
|
|
495
541
|
}),
|
|
@@ -107,8 +107,8 @@ var Header = _layout2.default.Header; /*
|
|
|
107
107
|
* @Description: 混合菜单布局
|
|
108
108
|
* @Author: lisenlin
|
|
109
109
|
* @Date: 2021-06-22 17:18:16
|
|
110
|
-
* @LastEditors:
|
|
111
|
-
* @LastEditTime:
|
|
110
|
+
* @LastEditors: jiangzhongxin
|
|
111
|
+
* @LastEditTime: 2023-11-21 13:52:05
|
|
112
112
|
*/
|
|
113
113
|
|
|
114
114
|
var touxiangman = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA0ppVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6RDIzNTA5QjU0OUNDMTFFODhCMjVBMTc2Q0E2QTlCRUQiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6RDIzNTA5QjQ0OUNDMTFFODhCMjVBMTc2Q0E2QTlCRUQiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9ImFkb2JlOmRvY2lkOnBob3Rvc2hvcDo2MzZjYWQxYS00OWNiLTExZTgtYjFjOS05YmZmODYwYWE3ZWIiIHN0UmVmOmRvY3VtZW50SUQ9ImFkb2JlOmRvY2lkOnBob3Rvc2hvcDo2MzZjYWQxYS00OWNiLTExZTgtYjFjOS05YmZmODYwYWE3ZWIiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+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';
|
|
@@ -326,7 +326,7 @@ var MixTop = function (_React$Component) {
|
|
|
326
326
|
_react2.default.createElement(
|
|
327
327
|
'span',
|
|
328
328
|
{ className: 'xgui-layout-topHeader-logoSpan' },
|
|
329
|
-
this.props.
|
|
329
|
+
this.props.fwmc
|
|
330
330
|
)
|
|
331
331
|
)
|
|
332
332
|
)
|
package/lib/utils/createUuid.js
CHANGED
|
@@ -1,20 +1,40 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
//获取UUID
|
|
7
7
|
var createUuid = function createUuid() {
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
8
|
+
var len = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 32;
|
|
9
|
+
var radix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 16;
|
|
10
|
+
|
|
11
|
+
var chars = '0123456789abcdefghijklmnopqrstuvwxyz'.split('');
|
|
12
|
+
var uuid = [],
|
|
13
|
+
i;
|
|
14
|
+
radix = radix || chars.length;
|
|
15
|
+
|
|
16
|
+
if (len) {
|
|
17
|
+
// Compact form
|
|
18
|
+
for (i = 0; i < len; i++) {
|
|
19
|
+
uuid[i] = chars[0 | Math.random() * radix];
|
|
20
|
+
}
|
|
21
|
+
} else {
|
|
22
|
+
// rfc4122, version 4 form
|
|
23
|
+
var r;
|
|
16
24
|
|
|
17
|
-
|
|
18
|
-
|
|
25
|
+
// rfc4122 requires these characters
|
|
26
|
+
uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
|
|
27
|
+
uuid[14] = '4';
|
|
28
|
+
|
|
29
|
+
// Fill in random data. At i==19 set the high bits of clock sequence as
|
|
30
|
+
// per rfc4122, sec. 4.1.5
|
|
31
|
+
for (i = 0; i < 36; i++) {
|
|
32
|
+
if (!uuid[i]) {
|
|
33
|
+
r = 0 | Math.random() * 16;
|
|
34
|
+
uuid[i] = chars[i == 19 ? r & 0x3 | 0x8 : r];
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return uuid.join('');
|
|
19
39
|
};
|
|
20
40
|
exports.default = createUuid;
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
var getLoginUser = function getLoginUser(auth) {
|
|
7
|
-
var loginUser = sessionStorage.getItem('
|
|
7
|
+
var loginUser = sessionStorage.getItem('userLogin') ? JSON.parse(sessionStorage.getItem('userLogin')) : { authorization: {}, menus: [] };
|
|
8
8
|
return loginUser;
|
|
9
9
|
};
|
|
10
10
|
exports.default = getLoginUser;
|
package/lib/utils/getSize.js
CHANGED
|
@@ -1,9 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
var getSize = function getSize() {
|
|
7
|
+
var setting = sessionStorage.getItem('setting');
|
|
8
|
+
var breadcrumbHeight = 0; //面包屑高度
|
|
9
|
+
if (setting) {
|
|
10
|
+
// 存在布局配置
|
|
11
|
+
var _JSON$parse = JSON.parse(setting),
|
|
12
|
+
layout = _JSON$parse.layout;
|
|
13
|
+
|
|
14
|
+
breadcrumbHeight = layout === 'mixmenu' ? 40 : 0; //若是混合布局 contentH高度需要减去面包屑高度
|
|
15
|
+
}
|
|
7
16
|
var windowW = void 0,
|
|
8
17
|
windowH = void 0,
|
|
9
18
|
contentH = void 0,
|
|
@@ -11,7 +20,7 @@ var getSize = function getSize() {
|
|
|
11
20
|
windowH = window.innerHeight;
|
|
12
21
|
windowW = window.innerWidth;
|
|
13
22
|
scrollT = document.documentElement.scrollTop || document.body.scrollTop;
|
|
14
|
-
contentH = windowH - 65;
|
|
23
|
+
contentH = windowH - 65 - breadcrumbHeight;
|
|
15
24
|
return { windowW: windowW, windowH: windowH, contentH: contentH, scrollT: scrollT };
|
|
16
25
|
};
|
|
17
26
|
|
package/lib/utils/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.keyToLower = exports.randomNumEnum = exports.getValueFromArray = exports.getLabelValueTree = exports.cutArray = exports.arrayMove = exports.arrayMoveMutate = exports.checkPassword = exports.matchParamsPath = exports.urlToList = exports.getHashParam = exports.isUrl = exports.getRouterAuthority = exports.transformDate = exports.getStrLength = exports.DateUtil = exports._utf8_encode = exports.encode = exports.decode = undefined;
|
|
6
|
+
exports.getTitleConfig = exports.keyToLower = exports.randomNumEnum = exports.getValueFromArray = exports.getLabelValueTree = exports.cutArray = exports.arrayMove = exports.arrayMoveMutate = exports.checkPassword = exports.matchParamsPath = exports.urlToList = exports.getHashParam = exports.isUrl = exports.getRouterAuthority = exports.transformDate = exports.getStrLength = exports.DateUtil = exports._utf8_encode = exports.encode = exports.decode = undefined;
|
|
7
7
|
|
|
8
8
|
var _promise = require('babel-runtime/core-js/promise');
|
|
9
9
|
|
|
@@ -68,7 +68,7 @@ var decode = exports.decode = function decode(input) {
|
|
|
68
68
|
* @Author: admin
|
|
69
69
|
* @Date: 2020-03-06 09:45:52
|
|
70
70
|
* @LastEditors: jiangzhongxin
|
|
71
|
-
* @LastEditTime: 2023-
|
|
71
|
+
* @LastEditTime: 2023-11-21 15:09:28
|
|
72
72
|
*/
|
|
73
73
|
var encode = exports.encode = function encode(input) {
|
|
74
74
|
var _keyStr = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
|
|
@@ -596,4 +596,37 @@ var keyToLower = exports.keyToLower = function keyToLower(arr) {
|
|
|
596
596
|
});
|
|
597
597
|
return newObj;
|
|
598
598
|
});
|
|
599
|
+
};
|
|
600
|
+
|
|
601
|
+
var getTitleConfig = exports.getTitleConfig = function getTitleConfig(document) {
|
|
602
|
+
var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
603
|
+
|
|
604
|
+
var bool = !config.fwmc && !config.fwmcUrl;
|
|
605
|
+
if (config.title) {
|
|
606
|
+
document.title = config.title;
|
|
607
|
+
if (bool) {
|
|
608
|
+
config.fwmc = document.title;
|
|
609
|
+
}
|
|
610
|
+
return false;
|
|
611
|
+
} else if (config.titleUrl) {
|
|
612
|
+
fetch('' + config.titleUrl, {
|
|
613
|
+
method: "GET",
|
|
614
|
+
credentials: "include",
|
|
615
|
+
headers: {
|
|
616
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
617
|
+
"X-Requested-With": "XMLHttpRequest",
|
|
618
|
+
appId: config && config.appId ? config.appId : "ly-hq"
|
|
619
|
+
}
|
|
620
|
+
}).then(function (response) {
|
|
621
|
+
return response.json();
|
|
622
|
+
}).then(function (res) {
|
|
623
|
+
if (res && res.code === 200 && res.data) {
|
|
624
|
+
document.title = res.data;
|
|
625
|
+
if (bool) {
|
|
626
|
+
config.fwmc = res.data;
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
return res;
|
|
630
|
+
}).catch(function (error) {});
|
|
631
|
+
}
|
|
599
632
|
};
|
package/package.json
CHANGED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
|
|
7
|
-
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; }; }();
|
|
8
|
-
|
|
9
|
-
var _react = require('react');
|
|
10
|
-
|
|
11
|
-
var _react2 = _interopRequireDefault(_react);
|
|
12
|
-
|
|
13
|
-
var _antd = require('antd');
|
|
14
|
-
|
|
15
|
-
var _propTypes = require('prop-types');
|
|
16
|
-
|
|
17
|
-
var _propTypes2 = _interopRequireDefault(_propTypes);
|
|
18
|
-
|
|
19
|
-
var _hasAuth = require('../../utils/hasAuth.js');
|
|
20
|
-
|
|
21
|
-
var _hasAuth2 = _interopRequireDefault(_hasAuth);
|
|
22
|
-
|
|
23
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
24
|
-
|
|
25
|
-
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
|
|
26
|
-
|
|
27
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
28
|
-
|
|
29
|
-
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; }
|
|
30
|
-
|
|
31
|
-
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; }
|
|
32
|
-
|
|
33
|
-
var NHButton = function (_React$Component) {
|
|
34
|
-
_inherits(NHButton, _React$Component);
|
|
35
|
-
|
|
36
|
-
function NHButton(props) {
|
|
37
|
-
_classCallCheck(this, NHButton);
|
|
38
|
-
|
|
39
|
-
var _this = _possibleConstructorReturn(this, (NHButton.__proto__ || Object.getPrototypeOf(NHButton)).call(this, props));
|
|
40
|
-
|
|
41
|
-
_this.state = {};
|
|
42
|
-
return _this;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
_createClass(NHButton, [{
|
|
46
|
-
key: 'render',
|
|
47
|
-
value: function render() {
|
|
48
|
-
var _props = this.props,
|
|
49
|
-
auth = _props.auth,
|
|
50
|
-
restProps = _objectWithoutProperties(_props, ['auth']);
|
|
51
|
-
|
|
52
|
-
var isTrue = !auth || (0, _hasAuth2.default)(auth) ? true : false;
|
|
53
|
-
if (isTrue) {
|
|
54
|
-
return _react2.default.createElement(
|
|
55
|
-
_antd.Button,
|
|
56
|
-
restProps,
|
|
57
|
-
this.props.children
|
|
58
|
-
);
|
|
59
|
-
} else {
|
|
60
|
-
return null;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}]);
|
|
64
|
-
|
|
65
|
-
return NHButton;
|
|
66
|
-
}(_react2.default.Component);
|
|
67
|
-
|
|
68
|
-
//属性默认值
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
NHButton.defaultProps = {
|
|
72
|
-
sign: undefined
|
|
73
|
-
|
|
74
|
-
//属性检查
|
|
75
|
-
};NHButton.propTypes = {
|
|
76
|
-
sign: _propTypes2.default.string //权限标志
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
exports.default = NHButton;
|