dlt-for-react 1.1.3 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -1
- package/lib/components/KyContainerFrame/index.js +46 -39
- 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
|
@@ -1,850 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
|
|
7
|
-
var _NHSelect2 = require('xgui-for-react/lib/components/NHSelect');
|
|
8
|
-
|
|
9
|
-
var _NHSelect3 = _interopRequireDefault(_NHSelect2);
|
|
10
|
-
|
|
11
|
-
var _tooltip = require('antd/lib/tooltip');
|
|
12
|
-
|
|
13
|
-
var _tooltip2 = _interopRequireDefault(_tooltip);
|
|
14
|
-
|
|
15
|
-
var _icon = require('antd/lib/icon');
|
|
16
|
-
|
|
17
|
-
var _icon2 = _interopRequireDefault(_icon);
|
|
18
|
-
|
|
19
|
-
var _checkbox = require('antd/lib/checkbox');
|
|
20
|
-
|
|
21
|
-
var _checkbox2 = _interopRequireDefault(_checkbox);
|
|
22
|
-
|
|
23
|
-
var _inputNumber = require('antd/lib/input-number');
|
|
24
|
-
|
|
25
|
-
var _inputNumber2 = _interopRequireDefault(_inputNumber);
|
|
26
|
-
|
|
27
|
-
var _row = require('antd/lib/row');
|
|
28
|
-
|
|
29
|
-
var _row2 = _interopRequireDefault(_row);
|
|
30
|
-
|
|
31
|
-
var _col = require('antd/lib/col');
|
|
32
|
-
|
|
33
|
-
var _col2 = _interopRequireDefault(_col);
|
|
34
|
-
|
|
35
|
-
var _getIterator2 = require('babel-runtime/core-js/get-iterator');
|
|
36
|
-
|
|
37
|
-
var _getIterator3 = _interopRequireDefault(_getIterator2);
|
|
38
|
-
|
|
39
|
-
var _message2 = require('antd/lib/message');
|
|
40
|
-
|
|
41
|
-
var _message3 = _interopRequireDefault(_message2);
|
|
42
|
-
|
|
43
|
-
var _stringify = require('babel-runtime/core-js/json/stringify');
|
|
44
|
-
|
|
45
|
-
var _stringify2 = _interopRequireDefault(_stringify);
|
|
46
|
-
|
|
47
|
-
var _extends2 = require('babel-runtime/helpers/extends');
|
|
48
|
-
|
|
49
|
-
var _extends3 = _interopRequireDefault(_extends2);
|
|
50
|
-
|
|
51
|
-
var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
|
|
52
|
-
|
|
53
|
-
var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
|
|
54
|
-
|
|
55
|
-
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
|
|
56
|
-
|
|
57
|
-
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
|
|
58
|
-
|
|
59
|
-
var _createClass2 = require('babel-runtime/helpers/createClass');
|
|
60
|
-
|
|
61
|
-
var _createClass3 = _interopRequireDefault(_createClass2);
|
|
62
|
-
|
|
63
|
-
var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');
|
|
64
|
-
|
|
65
|
-
var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
|
|
66
|
-
|
|
67
|
-
var _inherits2 = require('babel-runtime/helpers/inherits');
|
|
68
|
-
|
|
69
|
-
var _inherits3 = _interopRequireDefault(_inherits2);
|
|
70
|
-
|
|
71
|
-
var _input = require('antd/lib/input');
|
|
72
|
-
|
|
73
|
-
var _input2 = _interopRequireDefault(_input);
|
|
74
|
-
|
|
75
|
-
var _radio = require('antd/lib/radio');
|
|
76
|
-
|
|
77
|
-
var _radio2 = _interopRequireDefault(_radio);
|
|
78
|
-
|
|
79
|
-
require('antd/lib/tooltip/style');
|
|
80
|
-
|
|
81
|
-
require('antd/lib/icon/style');
|
|
82
|
-
|
|
83
|
-
require('antd/lib/checkbox/style');
|
|
84
|
-
|
|
85
|
-
require('antd/lib/input-number/style');
|
|
86
|
-
|
|
87
|
-
require('antd/lib/row/style');
|
|
88
|
-
|
|
89
|
-
require('antd/lib/col/style');
|
|
90
|
-
|
|
91
|
-
require('antd/lib/message/style');
|
|
92
|
-
|
|
93
|
-
require('antd/lib/input/style');
|
|
94
|
-
|
|
95
|
-
require('antd/lib/radio/style');
|
|
96
|
-
|
|
97
|
-
var _react = require('react');
|
|
98
|
-
|
|
99
|
-
var _react2 = _interopRequireDefault(_react);
|
|
100
|
-
|
|
101
|
-
var _inputConst = require('./input-const');
|
|
102
|
-
|
|
103
|
-
var _reactCustomScrollbars = require('react-custom-scrollbars');
|
|
104
|
-
|
|
105
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
106
|
-
|
|
107
|
-
var RadioGroup = _radio2.default.Group;
|
|
108
|
-
var TextArea = _input2.default.TextArea;
|
|
109
|
-
|
|
110
|
-
//最小宽度
|
|
111
|
-
|
|
112
|
-
var minWidth = 1;
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* 教师选择器控件配置组件
|
|
116
|
-
* Author: yangpeisen@ly-sky.com
|
|
117
|
-
* Created on: 2022-11-23 15:56:12
|
|
118
|
-
* Version: 1.0
|
|
119
|
-
* Modify log:
|
|
120
|
-
* 2022-11-23:1、create
|
|
121
|
-
*/
|
|
122
|
-
|
|
123
|
-
var SettingCheckbox = function (_React$Component) {
|
|
124
|
-
(0, _inherits3.default)(SettingCheckbox, _React$Component);
|
|
125
|
-
|
|
126
|
-
function SettingCheckbox(props) {
|
|
127
|
-
(0, _classCallCheck3.default)(this, SettingCheckbox);
|
|
128
|
-
|
|
129
|
-
var _this = (0, _possibleConstructorReturn3.default)(this, (SettingCheckbox.__proto__ || (0, _getPrototypeOf2.default)(SettingCheckbox)).call(this, props));
|
|
130
|
-
|
|
131
|
-
_this.getFeature = function () {
|
|
132
|
-
return _this.state.feature;
|
|
133
|
-
};
|
|
134
|
-
|
|
135
|
-
_this.handleWidthRadioChange = function (e) {
|
|
136
|
-
var widthType = e.target.value;
|
|
137
|
-
|
|
138
|
-
var fp = (0, _extends3.default)({}, _this.state.featureParams);
|
|
139
|
-
fp.widthType = widthType;
|
|
140
|
-
fp.widthStr = '';
|
|
141
|
-
|
|
142
|
-
_this.setState({ width: '', featureParams: fp });
|
|
143
|
-
_this.createFeature(fp);
|
|
144
|
-
};
|
|
145
|
-
|
|
146
|
-
_this.handleWidthChange = function (value) {
|
|
147
|
-
var widthStr = void 0;
|
|
148
|
-
var widthType = _this.state.featureParams.widthType;
|
|
149
|
-
|
|
150
|
-
if (widthType == _inputConst.WidthType.RELATIVE) {
|
|
151
|
-
widthStr = value + '%';
|
|
152
|
-
} else if (widthType == _inputConst.WidthType.FIXED) {
|
|
153
|
-
widthStr = value + 'px';
|
|
154
|
-
} else {
|
|
155
|
-
widthStr = '';
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
var fp = (0, _extends3.default)({}, _this.state.featureParams);
|
|
159
|
-
fp.widthStr = widthStr;
|
|
160
|
-
|
|
161
|
-
_this.setState({ width: value, featureParams: fp });
|
|
162
|
-
_this.createFeature(fp);
|
|
163
|
-
};
|
|
164
|
-
|
|
165
|
-
_this.handleResponseRadioChange = function (e) {
|
|
166
|
-
var gridType = e.target.value;
|
|
167
|
-
|
|
168
|
-
var fp = (0, _extends3.default)({}, _this.state.featureParams);
|
|
169
|
-
fp.gridType = gridType;
|
|
170
|
-
fp.columnsNum = null;
|
|
171
|
-
|
|
172
|
-
_this.setState({ columnsNum: null, featureParams: fp });
|
|
173
|
-
_this.createFeature(fp);
|
|
174
|
-
};
|
|
175
|
-
|
|
176
|
-
_this.handleResponseChange = function (value) {
|
|
177
|
-
var columnsNum = value || null;
|
|
178
|
-
|
|
179
|
-
var fp = (0, _extends3.default)({}, _this.state.featureParams);
|
|
180
|
-
fp.columnsNum = columnsNum;
|
|
181
|
-
_this.setState({ columnsNum: columnsNum, featureParams: fp });
|
|
182
|
-
_this.createFeature(fp);
|
|
183
|
-
};
|
|
184
|
-
|
|
185
|
-
_this.handleDataTagChange = function (e) {
|
|
186
|
-
var dataTag = e.target.value;
|
|
187
|
-
var fp = (0, _extends3.default)({}, _this.state.featureParams);
|
|
188
|
-
if (dataTag.length > 0) {
|
|
189
|
-
//只能输入英文
|
|
190
|
-
var en_characters_pattern = new RegExp(_inputConst.RegularExpression.EN_NUMBER_UNDERLINE.pattern);
|
|
191
|
-
if (!en_characters_pattern.test(dataTag)) {
|
|
192
|
-
dataTag = '';
|
|
193
|
-
} else {
|
|
194
|
-
//dataTag = dataTag.toLowerCase(); //将英文字母统一转换为小写
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
fp.dataTag = dataTag;
|
|
198
|
-
_this.setState({ featureParams: fp });
|
|
199
|
-
_this.createFeature(fp);
|
|
200
|
-
};
|
|
201
|
-
|
|
202
|
-
_this.handleRadioLabelChange = function (e) {
|
|
203
|
-
var labels = e.target.value;
|
|
204
|
-
var labelArray = [];
|
|
205
|
-
if (labels.length > 0) {
|
|
206
|
-
//去除末尾的中英文逗号
|
|
207
|
-
var endChar = labels.charAt(labels.length - 1);
|
|
208
|
-
var tempLabels = labels;
|
|
209
|
-
if (endChar == ',' || endChar == ',') {
|
|
210
|
-
tempLabels = tempLabels.substring(0, labels.length - 1);
|
|
211
|
-
}
|
|
212
|
-
labelArray = tempLabels.trim().split(/,|,/);
|
|
213
|
-
console.info(labelArray);
|
|
214
|
-
} else {
|
|
215
|
-
var fp = (0, _extends3.default)({}, _this.state.featureParams);
|
|
216
|
-
fp.options.splice(0, fp.options.length);
|
|
217
|
-
_this.setState({ featureParams: fp });
|
|
218
|
-
_this.createFeature(fp);
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
if (labelArray.length > 0) {
|
|
222
|
-
var values = _this.state.radioValues;
|
|
223
|
-
var valueArray = [];
|
|
224
|
-
if (values.length > 0) {
|
|
225
|
-
//去除末尾的中英文逗号
|
|
226
|
-
var _endChar = values.charAt(values.length - 1);
|
|
227
|
-
if (_endChar == ',' || _endChar == ',') {
|
|
228
|
-
values = values.substring(0, values.length - 1);
|
|
229
|
-
}
|
|
230
|
-
valueArray = values.trim().split(/,|,/);
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
_this.setFeatureOptions(labelArray, valueArray);
|
|
234
|
-
}
|
|
235
|
-
_this.setState({ radioLabels: labels });
|
|
236
|
-
};
|
|
237
|
-
|
|
238
|
-
_this.handleRadioValueChange = function (e) {
|
|
239
|
-
var values = e.target.value;
|
|
240
|
-
var valueArray = [];
|
|
241
|
-
if (values.length > 0) {
|
|
242
|
-
//去除末尾的中英文逗号
|
|
243
|
-
var endChar = values.charAt(values.length - 1);
|
|
244
|
-
var tempValues = values;
|
|
245
|
-
if (endChar == ',' || endChar == ',') {
|
|
246
|
-
tempValues = tempValues.substring(0, values.length - 1);
|
|
247
|
-
}
|
|
248
|
-
valueArray = tempValues.trim().split(/,|,/);
|
|
249
|
-
console.info(valueArray);
|
|
250
|
-
} else {
|
|
251
|
-
var fp = (0, _extends3.default)({}, _this.state.featureParams);
|
|
252
|
-
fp.options.splice(0, fp.options.length);
|
|
253
|
-
_this.setState({ featureParams: fp });
|
|
254
|
-
_this.createFeature(fp);
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
if (valueArray.length > 0) {
|
|
258
|
-
var labels = _this.state.radioLabels;
|
|
259
|
-
var labelArray = [];
|
|
260
|
-
if (labels.length > 0) {
|
|
261
|
-
//去除末尾的中英文逗号
|
|
262
|
-
var _endChar2 = labels.charAt(labels.length - 1);
|
|
263
|
-
if (_endChar2 == ',' || _endChar2 == ',') {
|
|
264
|
-
labels = labels.substring(0, labels.length - 1);
|
|
265
|
-
}
|
|
266
|
-
labelArray = labels.trim().split(/,|,/);
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
_this.setFeatureOptions(labelArray, valueArray);
|
|
270
|
-
}
|
|
271
|
-
_this.setState({ radioValues: values });
|
|
272
|
-
};
|
|
273
|
-
|
|
274
|
-
_this.setFeatureOptions = function (labelArray, valueArray) {
|
|
275
|
-
var fp = (0, _extends3.default)({}, _this.state.featureParams);
|
|
276
|
-
fp.options.splice(0, fp.options.length);
|
|
277
|
-
|
|
278
|
-
//当label的个数与value不相等时,以较少的为准,多余的将不纳入参数
|
|
279
|
-
var indexRange = labelArray.length > valueArray.length ? valueArray.length : labelArray.length;
|
|
280
|
-
|
|
281
|
-
//构建radio的options值,方便render以options形式渲染单选框
|
|
282
|
-
for (var index = 0; index < indexRange; index++) {
|
|
283
|
-
var option = {};
|
|
284
|
-
option.label = labelArray[index];
|
|
285
|
-
option.value = valueArray[index];
|
|
286
|
-
fp.options.push(option);
|
|
287
|
-
}
|
|
288
|
-
_this.setState({ featureParams: fp });
|
|
289
|
-
_this.createFeature(fp);
|
|
290
|
-
};
|
|
291
|
-
|
|
292
|
-
_this.handleRequiredRadioChange = function (e) {
|
|
293
|
-
var required = e.target.value;
|
|
294
|
-
|
|
295
|
-
var fp = (0, _extends3.default)({}, _this.state.featureParams);
|
|
296
|
-
fp.required = required;
|
|
297
|
-
|
|
298
|
-
_this.setState({ featureParams: fp });
|
|
299
|
-
_this.createFeature(fp);
|
|
300
|
-
};
|
|
301
|
-
|
|
302
|
-
_this.handleDisableRadioChange = function (e) {
|
|
303
|
-
var disabled = e.target.value;
|
|
304
|
-
|
|
305
|
-
var fp = (0, _extends3.default)({}, _this.state.featureParams);
|
|
306
|
-
fp.disabled = disabled;
|
|
307
|
-
|
|
308
|
-
_this.setState({ featureParams: fp });
|
|
309
|
-
_this.createFeature(fp);
|
|
310
|
-
};
|
|
311
|
-
|
|
312
|
-
_this.handleDefaultValueChange = function (e) {
|
|
313
|
-
var defaultValueStr = e.target.value;
|
|
314
|
-
var arr = [];
|
|
315
|
-
if (defaultValueStr.length > 0) {
|
|
316
|
-
//去除末尾的中英文逗号
|
|
317
|
-
var endChar = defaultValueStr.charAt(defaultValueStr.length - 1);
|
|
318
|
-
if (endChar == ',' || endChar == ',') {
|
|
319
|
-
defaultValueStr = defaultValueStr.substring(0, defaultValueStr.length - 1);
|
|
320
|
-
}
|
|
321
|
-
arr = defaultValueStr.trim().split(/,|,/);
|
|
322
|
-
}
|
|
323
|
-
var fp = (0, _extends3.default)({}, _this.state.featureParams);
|
|
324
|
-
fp.defaultValue = arr;
|
|
325
|
-
_this.setState({
|
|
326
|
-
featureParams: fp,
|
|
327
|
-
defaultValueStr: defaultValueStr
|
|
328
|
-
});
|
|
329
|
-
_this.createFeature(fp);
|
|
330
|
-
};
|
|
331
|
-
|
|
332
|
-
_this.createFeature = function (featureParams) {
|
|
333
|
-
try {
|
|
334
|
-
var feature = (0, _stringify2.default)(featureParams);
|
|
335
|
-
_this.setState({
|
|
336
|
-
feature: feature
|
|
337
|
-
});
|
|
338
|
-
_this.props.onChange(feature);
|
|
339
|
-
} catch (e) {
|
|
340
|
-
console.log(e);
|
|
341
|
-
_message3.default.error('生成控件配置参数出错!');
|
|
342
|
-
}
|
|
343
|
-
};
|
|
344
|
-
|
|
345
|
-
_this.radioChange = function (e) {
|
|
346
|
-
var value = e.target.checked;
|
|
347
|
-
_this.setState({ showSelect: value });
|
|
348
|
-
};
|
|
349
|
-
|
|
350
|
-
_this.selectChange = function (v) {
|
|
351
|
-
var fp = (0, _extends3.default)({}, _this.state.featureParams);
|
|
352
|
-
fp.baseUrl = v;
|
|
353
|
-
_this.setState({ featureParams: fp });
|
|
354
|
-
_this.createFeature(fp);
|
|
355
|
-
};
|
|
356
|
-
|
|
357
|
-
_this.state = {
|
|
358
|
-
feature: '', //原参数json字符串
|
|
359
|
-
width: minWidth, //设置的宽度值,初始为最小宽度值
|
|
360
|
-
columnsNum: null,
|
|
361
|
-
radioLabels: '', //label textarea文本域的值
|
|
362
|
-
radioValues: '', //value textarea文本域的值
|
|
363
|
-
defaultValueStr: '',
|
|
364
|
-
featureParams: {
|
|
365
|
-
name: '复选框组件',
|
|
366
|
-
type: _inputConst.InputType.CHECKBOX, //控件类型,必须有此属性,用于渲染时期判断控件类型
|
|
367
|
-
widthType: _inputConst.WidthType.DEFAULT, //宽度类型:自适应'default'、百分比'relative'、固定值'fixed'
|
|
368
|
-
widthStr: '', //input宽度值
|
|
369
|
-
dataTag: '', //下拉数据标识
|
|
370
|
-
required: false, //是否必须
|
|
371
|
-
defaultValue: [], //默认值
|
|
372
|
-
validationValueType: 'array', //用于校验的值的类型
|
|
373
|
-
baseUrl: null,
|
|
374
|
-
gridType: false,
|
|
375
|
-
columnsNum: null,
|
|
376
|
-
options: [],
|
|
377
|
-
disabled: false
|
|
378
|
-
},
|
|
379
|
-
showSelect: false
|
|
380
|
-
};
|
|
381
|
-
return _this;
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
(0, _createClass3.default)(SettingCheckbox, [{
|
|
385
|
-
key: 'componentWillMount',
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
//在渲染前调用,可在此最后一次初始化组件状态
|
|
389
|
-
value: function componentWillMount() {
|
|
390
|
-
//将输入控件配置参数设置到状态中
|
|
391
|
-
if (this.props.initFeature) {
|
|
392
|
-
try {
|
|
393
|
-
var initFeature = JSON.parse(this.props.initFeature);
|
|
394
|
-
if (initFeature.type == _inputConst.InputType.CHECKBOX) {
|
|
395
|
-
var widthType = initFeature.widthType,
|
|
396
|
-
_initFeature$widthStr = initFeature.widthStr,
|
|
397
|
-
widthStr = _initFeature$widthStr === undefined ? '' : _initFeature$widthStr,
|
|
398
|
-
_initFeature$dataTag = initFeature.dataTag,
|
|
399
|
-
dataTag = _initFeature$dataTag === undefined ? '' : _initFeature$dataTag,
|
|
400
|
-
_initFeature$required = initFeature.required,
|
|
401
|
-
required = _initFeature$required === undefined ? false : _initFeature$required,
|
|
402
|
-
_initFeature$defaultV = initFeature.defaultValue,
|
|
403
|
-
defaultValue = _initFeature$defaultV === undefined ? [] : _initFeature$defaultV,
|
|
404
|
-
baseUrl = initFeature.baseUrl,
|
|
405
|
-
options = initFeature.options,
|
|
406
|
-
gridType = initFeature.gridType,
|
|
407
|
-
columnsNum = initFeature.columnsNum;
|
|
408
|
-
|
|
409
|
-
var width = '';
|
|
410
|
-
|
|
411
|
-
if (widthType == _inputConst.WidthType.RELATIVE) {
|
|
412
|
-
width = widthStr.replace('%', '');
|
|
413
|
-
} else if (widthType == _inputConst.WidthType.FIXED) {
|
|
414
|
-
width = widthStr.replace('px', '');
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
var radioLabels = '';
|
|
418
|
-
var radioValues = '';
|
|
419
|
-
var defaultValueStr = '';
|
|
420
|
-
var _iteratorNormalCompletion = true;
|
|
421
|
-
var _didIteratorError = false;
|
|
422
|
-
var _iteratorError = undefined;
|
|
423
|
-
|
|
424
|
-
try {
|
|
425
|
-
for (var _iterator = (0, _getIterator3.default)(options), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
426
|
-
var radioParam = _step.value;
|
|
427
|
-
|
|
428
|
-
radioLabels += radioParam.label + ',';
|
|
429
|
-
radioValues += radioParam.value + ',';
|
|
430
|
-
}
|
|
431
|
-
} catch (err) {
|
|
432
|
-
_didIteratorError = true;
|
|
433
|
-
_iteratorError = err;
|
|
434
|
-
} finally {
|
|
435
|
-
try {
|
|
436
|
-
if (!_iteratorNormalCompletion && _iterator.return) {
|
|
437
|
-
_iterator.return();
|
|
438
|
-
}
|
|
439
|
-
} finally {
|
|
440
|
-
if (_didIteratorError) {
|
|
441
|
-
throw _iteratorError;
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
if (radioLabels.length > 0) {
|
|
447
|
-
radioLabels = radioLabels.substring(0, radioLabels.length - 1);
|
|
448
|
-
}
|
|
449
|
-
if (radioValues.length > 0) {
|
|
450
|
-
radioValues = radioValues.substring(0, radioValues.length - 1);
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
for (var i = 0; i < defaultValue.length; i++) {
|
|
454
|
-
defaultValueStr += defaultValue[i] + ',';
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
if (defaultValueStr.length > 0) {
|
|
458
|
-
defaultValueStr = defaultValueStr.substring(0, defaultValueStr.length - 1);
|
|
459
|
-
}
|
|
460
|
-
|
|
461
|
-
var fp = (0, _extends3.default)({}, this.state.featureParams);
|
|
462
|
-
fp.widthType = widthType;
|
|
463
|
-
fp.widthStr = widthStr;
|
|
464
|
-
fp.dataTag = dataTag;
|
|
465
|
-
fp.required = required;
|
|
466
|
-
fp.defaultValue = defaultValue;
|
|
467
|
-
fp.baseUrl = baseUrl;
|
|
468
|
-
fp.options = options;
|
|
469
|
-
fp.gridType = gridType, fp.columnsNum = columnsNum, this.setState({
|
|
470
|
-
feature: this.props.initFeature,
|
|
471
|
-
defaultValueStr: defaultValueStr,
|
|
472
|
-
width: width,
|
|
473
|
-
columnsNum: columnsNum,
|
|
474
|
-
radioLabels: radioLabels,
|
|
475
|
-
radioValues: radioValues,
|
|
476
|
-
featureParams: fp
|
|
477
|
-
});
|
|
478
|
-
}
|
|
479
|
-
} catch (e) {
|
|
480
|
-
console.log(e);
|
|
481
|
-
_message3.default.error('解析控件配置参数出错!');
|
|
482
|
-
}
|
|
483
|
-
} else {
|
|
484
|
-
try {
|
|
485
|
-
var feature = (0, _stringify2.default)(this.state.featureParams);
|
|
486
|
-
this.setState({
|
|
487
|
-
feature: feature
|
|
488
|
-
});
|
|
489
|
-
} catch (e) {
|
|
490
|
-
console.log(e);
|
|
491
|
-
_message3.default.error('生成控件配置参数出错!');
|
|
492
|
-
}
|
|
493
|
-
}
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
//供父组件获取feature
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
//切换宽度类型radio时回调,清空之前的值
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
//宽度值改变的时候,同步更新状态参数
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
//切换响应式radio时回调,清空之前的值
|
|
506
|
-
|
|
507
|
-
// 响应式模式下,一行的列数变化时,同步更新状态参数
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
//当下拉数据标识改变时
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
// 复选框选项lable
|
|
514
|
-
|
|
515
|
-
// 复选框选项value
|
|
516
|
-
|
|
517
|
-
// 设置选项参数
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
//当是否必填改变时
|
|
521
|
-
|
|
522
|
-
//当是否禁用改变时
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
//当输入默认值改变时
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
//生成feature参数json字符串
|
|
529
|
-
|
|
530
|
-
}, {
|
|
531
|
-
key: 'render',
|
|
532
|
-
value: function render() {
|
|
533
|
-
var _state = this.state,
|
|
534
|
-
width = _state.width,
|
|
535
|
-
columnsNum = _state.columnsNum,
|
|
536
|
-
radioLabels = _state.radioLabels,
|
|
537
|
-
radioValues = _state.radioValues,
|
|
538
|
-
defaultValueStr = _state.defaultValueStr;
|
|
539
|
-
var _state$featureParams = this.state.featureParams,
|
|
540
|
-
widthType = _state$featureParams.widthType,
|
|
541
|
-
dataTag = _state$featureParams.dataTag,
|
|
542
|
-
required = _state$featureParams.required,
|
|
543
|
-
defaultValue = _state$featureParams.defaultValue,
|
|
544
|
-
baseUrl = _state$featureParams.baseUrl,
|
|
545
|
-
gridType = _state$featureParams.gridType,
|
|
546
|
-
disabled = _state$featureParams.disabled;
|
|
547
|
-
|
|
548
|
-
var showSelectFlag = this.state.showSelect === true || baseUrl !== undefined && baseUrl !== null && baseUrl !== '';
|
|
549
|
-
return _react2.default.createElement(
|
|
550
|
-
_reactCustomScrollbars.Scrollbars,
|
|
551
|
-
{ style: { height: '500px' } },
|
|
552
|
-
_react2.default.createElement(
|
|
553
|
-
'div',
|
|
554
|
-
{ id: 'input-setting-div', style: { paddingBottom: '30px' } },
|
|
555
|
-
_react2.default.createElement(
|
|
556
|
-
_row2.default,
|
|
557
|
-
{ type: 'flex' },
|
|
558
|
-
_react2.default.createElement(
|
|
559
|
-
_col2.default,
|
|
560
|
-
null,
|
|
561
|
-
_react2.default.createElement(
|
|
562
|
-
'div',
|
|
563
|
-
{ style: { margin: '16px 0' } },
|
|
564
|
-
'\u5BBD\u5EA6'
|
|
565
|
-
)
|
|
566
|
-
)
|
|
567
|
-
),
|
|
568
|
-
_react2.default.createElement(
|
|
569
|
-
_row2.default,
|
|
570
|
-
{ type: 'flex' },
|
|
571
|
-
_react2.default.createElement(
|
|
572
|
-
_col2.default,
|
|
573
|
-
null,
|
|
574
|
-
_react2.default.createElement(
|
|
575
|
-
RadioGroup,
|
|
576
|
-
{
|
|
577
|
-
onChange: this.handleWidthRadioChange,
|
|
578
|
-
name: 'widthradiogroup',
|
|
579
|
-
value: widthType
|
|
580
|
-
},
|
|
581
|
-
_react2.default.createElement(
|
|
582
|
-
_radio2.default,
|
|
583
|
-
{ value: _inputConst.WidthType.DEFAULT },
|
|
584
|
-
'\u81EA\u9002\u5E94'
|
|
585
|
-
),
|
|
586
|
-
_react2.default.createElement(
|
|
587
|
-
_radio2.default,
|
|
588
|
-
{ value: _inputConst.WidthType.RELATIVE },
|
|
589
|
-
'\u767E\u5206\u6BD4'
|
|
590
|
-
),
|
|
591
|
-
_react2.default.createElement(
|
|
592
|
-
_radio2.default,
|
|
593
|
-
{ value: _inputConst.WidthType.FIXED },
|
|
594
|
-
'\u56FA\u5B9A\u5BBD\u5EA6'
|
|
595
|
-
)
|
|
596
|
-
)
|
|
597
|
-
),
|
|
598
|
-
_react2.default.createElement(
|
|
599
|
-
_col2.default,
|
|
600
|
-
null,
|
|
601
|
-
widthType == _inputConst.WidthType.RELATIVE ? _react2.default.createElement(_inputNumber2.default, {
|
|
602
|
-
size: 'small',
|
|
603
|
-
min: minWidth,
|
|
604
|
-
formatter: function formatter(value) {
|
|
605
|
-
return value + '%';
|
|
606
|
-
},
|
|
607
|
-
parser: function parser(value) {
|
|
608
|
-
return value.replace('%', '');
|
|
609
|
-
},
|
|
610
|
-
onChange: this.handleWidthChange,
|
|
611
|
-
value: width
|
|
612
|
-
}) : widthType == _inputConst.WidthType.FIXED ? _react2.default.createElement(_inputNumber2.default, {
|
|
613
|
-
size: 'small',
|
|
614
|
-
min: minWidth,
|
|
615
|
-
formatter: function formatter(value) {
|
|
616
|
-
return value + 'px';
|
|
617
|
-
},
|
|
618
|
-
parser: function parser(value) {
|
|
619
|
-
return value.replace('px', '');
|
|
620
|
-
},
|
|
621
|
-
onChange: this.handleWidthChange,
|
|
622
|
-
value: width
|
|
623
|
-
}) : null
|
|
624
|
-
)
|
|
625
|
-
),
|
|
626
|
-
_react2.default.createElement(
|
|
627
|
-
_row2.default,
|
|
628
|
-
{ type: 'flex' },
|
|
629
|
-
_react2.default.createElement(
|
|
630
|
-
'div',
|
|
631
|
-
{ style: { margin: '16px 0', whiteSpace: 'normal' } },
|
|
632
|
-
'\u662F\u5426\u6805\u683C\u5E03\u5C40'
|
|
633
|
-
)
|
|
634
|
-
),
|
|
635
|
-
_react2.default.createElement(
|
|
636
|
-
_row2.default,
|
|
637
|
-
{ type: 'flex' },
|
|
638
|
-
_react2.default.createElement(
|
|
639
|
-
_col2.default,
|
|
640
|
-
{ span: 24 },
|
|
641
|
-
_react2.default.createElement(
|
|
642
|
-
RadioGroup,
|
|
643
|
-
{
|
|
644
|
-
onChange: this.handleResponseRadioChange,
|
|
645
|
-
name: 'responseradiogroup',
|
|
646
|
-
value: gridType
|
|
647
|
-
},
|
|
648
|
-
_react2.default.createElement(
|
|
649
|
-
_radio2.default,
|
|
650
|
-
{ value: false },
|
|
651
|
-
'\u5426'
|
|
652
|
-
),
|
|
653
|
-
_react2.default.createElement(
|
|
654
|
-
_radio2.default,
|
|
655
|
-
{ value: true },
|
|
656
|
-
'\u662F'
|
|
657
|
-
)
|
|
658
|
-
)
|
|
659
|
-
),
|
|
660
|
-
_react2.default.createElement(
|
|
661
|
-
_col2.default,
|
|
662
|
-
{ span: 24, style: { marginTop: '12px' } },
|
|
663
|
-
gridType == 1 && _react2.default.createElement(_inputNumber2.default, {
|
|
664
|
-
size: 'small',
|
|
665
|
-
min: minWidth,
|
|
666
|
-
placeholder: '请输入列数',
|
|
667
|
-
onChange: this.handleResponseChange,
|
|
668
|
-
value: columnsNum
|
|
669
|
-
})
|
|
670
|
-
)
|
|
671
|
-
),
|
|
672
|
-
_react2.default.createElement(
|
|
673
|
-
_row2.default,
|
|
674
|
-
{ type: 'flex' },
|
|
675
|
-
_react2.default.createElement(
|
|
676
|
-
_col2.default,
|
|
677
|
-
null,
|
|
678
|
-
_react2.default.createElement(
|
|
679
|
-
'div',
|
|
680
|
-
{ style: { margin: '16px 0' } },
|
|
681
|
-
'\u4E0B\u62C9\u6570\u636E\u6807\u8BC6'
|
|
682
|
-
)
|
|
683
|
-
)
|
|
684
|
-
),
|
|
685
|
-
_react2.default.createElement(
|
|
686
|
-
_row2.default,
|
|
687
|
-
{ type: 'flex' },
|
|
688
|
-
_react2.default.createElement(
|
|
689
|
-
_col2.default,
|
|
690
|
-
{ span: 6 },
|
|
691
|
-
_react2.default.createElement(
|
|
692
|
-
_checkbox2.default,
|
|
693
|
-
{ onChange: this.radioChange, checked: showSelectFlag },
|
|
694
|
-
'\u6307\u5B9A\u670D\u52A1'
|
|
695
|
-
),
|
|
696
|
-
_react2.default.createElement(
|
|
697
|
-
_tooltip2.default,
|
|
698
|
-
{ title: '不指定服务的情况下默认使用当前服务', placement: 'top' },
|
|
699
|
-
_react2.default.createElement(_icon2.default, { type: 'question-circle' })
|
|
700
|
-
)
|
|
701
|
-
),
|
|
702
|
-
_react2.default.createElement(
|
|
703
|
-
_col2.default,
|
|
704
|
-
{ span: 18 },
|
|
705
|
-
showSelectFlag && _react2.default.createElement(_NHSelect3.default, {
|
|
706
|
-
style: { marginLeft: 6, width: '200px' },
|
|
707
|
-
dropdownMatchSelectWidth: false,
|
|
708
|
-
onChange: this.selectChange,
|
|
709
|
-
value: baseUrl,
|
|
710
|
-
baseUrl: this.props.serverUrl || 'api/zhxg-xtgl',
|
|
711
|
-
sign: this.props.serverSign || 'zhxg_server_select'
|
|
712
|
-
})
|
|
713
|
-
)
|
|
714
|
-
),
|
|
715
|
-
_react2.default.createElement(
|
|
716
|
-
_row2.default,
|
|
717
|
-
{ type: 'flex', style: { marginTop: 10 } },
|
|
718
|
-
_react2.default.createElement(
|
|
719
|
-
_col2.default,
|
|
720
|
-
{ span: 12 },
|
|
721
|
-
_react2.default.createElement(_input2.default, {
|
|
722
|
-
placeholder: '\u8BF7\u8F93\u5165\u4E0B\u62C9\u6570\u636E\u82F1\u6587\u5B57\u6BCD\u6807\u8BC6',
|
|
723
|
-
value: dataTag,
|
|
724
|
-
onChange: this.handleDataTagChange
|
|
725
|
-
})
|
|
726
|
-
)
|
|
727
|
-
),
|
|
728
|
-
_react2.default.createElement(
|
|
729
|
-
_row2.default,
|
|
730
|
-
{ type: 'flex' },
|
|
731
|
-
_react2.default.createElement(
|
|
732
|
-
_col2.default,
|
|
733
|
-
null,
|
|
734
|
-
_react2.default.createElement(
|
|
735
|
-
'div',
|
|
736
|
-
{ style: { margin: '16px 0' } },
|
|
737
|
-
'\u662F\u5426\u5FC5\u586B'
|
|
738
|
-
)
|
|
739
|
-
)
|
|
740
|
-
),
|
|
741
|
-
_react2.default.createElement(
|
|
742
|
-
_row2.default,
|
|
743
|
-
{ type: 'flex' },
|
|
744
|
-
_react2.default.createElement(
|
|
745
|
-
_col2.default,
|
|
746
|
-
null,
|
|
747
|
-
_react2.default.createElement(
|
|
748
|
-
RadioGroup,
|
|
749
|
-
{
|
|
750
|
-
onChange: this.handleRequiredRadioChange,
|
|
751
|
-
name: 'requiredradiogroup',
|
|
752
|
-
value: required
|
|
753
|
-
},
|
|
754
|
-
_react2.default.createElement(
|
|
755
|
-
_radio2.default,
|
|
756
|
-
{ value: false },
|
|
757
|
-
'\u975E\u5FC5\u586B'
|
|
758
|
-
),
|
|
759
|
-
_react2.default.createElement(
|
|
760
|
-
_radio2.default,
|
|
761
|
-
{ value: true },
|
|
762
|
-
'\u5FC5\u586B'
|
|
763
|
-
)
|
|
764
|
-
)
|
|
765
|
-
)
|
|
766
|
-
),
|
|
767
|
-
_react2.default.createElement(
|
|
768
|
-
_row2.default,
|
|
769
|
-
{ type: 'flex' },
|
|
770
|
-
_react2.default.createElement(
|
|
771
|
-
_col2.default,
|
|
772
|
-
null,
|
|
773
|
-
_react2.default.createElement(
|
|
774
|
-
'div',
|
|
775
|
-
{ style: { margin: '16px 0', whiteSpace: 'normal' } },
|
|
776
|
-
'\u590D\u9009\u6846\u914D\u7F6E\u4FE1\u606F'
|
|
777
|
-
)
|
|
778
|
-
)
|
|
779
|
-
),
|
|
780
|
-
_react2.default.createElement(
|
|
781
|
-
_row2.default,
|
|
782
|
-
{ type: 'flex' },
|
|
783
|
-
_react2.default.createElement(
|
|
784
|
-
_col2.default,
|
|
785
|
-
{ span: 24 },
|
|
786
|
-
_react2.default.createElement(
|
|
787
|
-
'div',
|
|
788
|
-
null,
|
|
789
|
-
'\u9ED8\u8BA4\u503C'
|
|
790
|
-
)
|
|
791
|
-
)
|
|
792
|
-
),
|
|
793
|
-
_react2.default.createElement(
|
|
794
|
-
_row2.default,
|
|
795
|
-
{ type: 'flex' },
|
|
796
|
-
_react2.default.createElement(
|
|
797
|
-
_col2.default,
|
|
798
|
-
{ span: 12 },
|
|
799
|
-
_react2.default.createElement(_input2.default, {
|
|
800
|
-
placeholder: '\u8BF7\u8F93\u5165\u9ED8\u8BA4\u9009\u4E2D\u9879\u7684\u503C',
|
|
801
|
-
onChange: this.handleDefaultValueChange,
|
|
802
|
-
value: defaultValueStr
|
|
803
|
-
})
|
|
804
|
-
)
|
|
805
|
-
),
|
|
806
|
-
_react2.default.createElement(
|
|
807
|
-
_row2.default,
|
|
808
|
-
{ type: 'flex' },
|
|
809
|
-
_react2.default.createElement(
|
|
810
|
-
_col2.default,
|
|
811
|
-
{ span: 12 },
|
|
812
|
-
_react2.default.createElement(
|
|
813
|
-
'div',
|
|
814
|
-
{ style: { marginBottom: '5px' } },
|
|
815
|
-
'\u590D\u9009\u6846\u6807\u7B7E'
|
|
816
|
-
),
|
|
817
|
-
_react2.default.createElement(TextArea, {
|
|
818
|
-
rows: 3,
|
|
819
|
-
placeholder: '\u8BF7\u8F93\u5165\u4E00\u7EC4\u590D\u9009\u6846\u6807\u7B7E\uFF0C\u4EE5\u9017\u53F7\',\'\u9694\u5F00\u3002\u5982\uFF1A\'\u6807\u7B7E1,\u6807\u7B7E2,\u6807\u7B7E3\'',
|
|
820
|
-
onChange: this.handleRadioLabelChange,
|
|
821
|
-
value: radioLabels
|
|
822
|
-
})
|
|
823
|
-
),
|
|
824
|
-
_react2.default.createElement(
|
|
825
|
-
_col2.default,
|
|
826
|
-
{ span: 12 },
|
|
827
|
-
_react2.default.createElement(
|
|
828
|
-
'div',
|
|
829
|
-
{ style: { marginBottom: '5px' } },
|
|
830
|
-
'\u590D\u9009\u6846\u503C'
|
|
831
|
-
),
|
|
832
|
-
_react2.default.createElement(TextArea, {
|
|
833
|
-
rows: 3,
|
|
834
|
-
placeholder: '\u8BF7\u8F93\u5165\u4E00\u7EC4\u590D\u9009\u6846\u503C\uFF0C\u4EE5\u9017\u53F7\',\'\u9694\u5F00\u3002\u5982\uFF1A\'\u503C1,\u503C2,\u503C3\'',
|
|
835
|
-
onChange: this.handleRadioValueChange,
|
|
836
|
-
value: radioValues
|
|
837
|
-
})
|
|
838
|
-
)
|
|
839
|
-
)
|
|
840
|
-
)
|
|
841
|
-
);
|
|
842
|
-
}
|
|
843
|
-
}]);
|
|
844
|
-
return SettingCheckbox;
|
|
845
|
-
}(_react2.default.Component);
|
|
846
|
-
|
|
847
|
-
SettingCheckbox.defaultProps = {
|
|
848
|
-
initFeature: ''
|
|
849
|
-
};
|
|
850
|
-
exports.default = SettingCheckbox;
|