dlt-for-react 1.1.2 → 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 +9 -2
- package/lib/index.js +13 -1
- package/lib/layouts/LeftMenu/index.js +322 -296
- 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 +46 -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,1004 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
|
|
7
|
-
var _card = require("antd-mobile/lib/card");
|
|
8
|
-
|
|
9
|
-
var _card2 = _interopRequireDefault(_card);
|
|
10
|
-
|
|
11
|
-
var _whiteSpace = require("antd-mobile/lib/white-space");
|
|
12
|
-
|
|
13
|
-
var _whiteSpace2 = _interopRequireDefault(_whiteSpace);
|
|
14
|
-
|
|
15
|
-
var _list = require("antd-mobile/lib/list");
|
|
16
|
-
|
|
17
|
-
var _list2 = _interopRequireDefault(_list);
|
|
18
|
-
|
|
19
|
-
var _textareaItem = require("antd-mobile/lib/textarea-item");
|
|
20
|
-
|
|
21
|
-
var _textareaItem2 = _interopRequireDefault(_textareaItem);
|
|
22
|
-
|
|
23
|
-
var _inputItem = require("antd-mobile/lib/input-item");
|
|
24
|
-
|
|
25
|
-
var _inputItem2 = _interopRequireDefault(_inputItem);
|
|
26
|
-
|
|
27
|
-
var _toast = require("antd-mobile/lib/toast");
|
|
28
|
-
|
|
29
|
-
var _toast2 = _interopRequireDefault(_toast);
|
|
30
|
-
|
|
31
|
-
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
32
|
-
|
|
33
|
-
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
34
|
-
|
|
35
|
-
require("antd-mobile/lib/card/style/css");
|
|
36
|
-
|
|
37
|
-
require("antd-mobile/lib/white-space/style/css");
|
|
38
|
-
|
|
39
|
-
require("antd-mobile/lib/list/style/css");
|
|
40
|
-
|
|
41
|
-
require("antd-mobile/lib/textarea-item/style/css");
|
|
42
|
-
|
|
43
|
-
require("antd-mobile/lib/input-item/style/css");
|
|
44
|
-
|
|
45
|
-
require("antd-mobile/lib/toast/style/css");
|
|
46
|
-
|
|
47
|
-
var _react = require("react");
|
|
48
|
-
|
|
49
|
-
var _react2 = _interopRequireDefault(_react);
|
|
50
|
-
|
|
51
|
-
var _NHFetch = require("../../../../utils/NHFetch");
|
|
52
|
-
|
|
53
|
-
var _NHFetch2 = _interopRequireDefault(_NHFetch);
|
|
54
|
-
|
|
55
|
-
var _rcForm = require("rc-form");
|
|
56
|
-
|
|
57
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
58
|
-
|
|
59
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
60
|
-
|
|
61
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
62
|
-
|
|
63
|
-
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; }
|
|
64
|
-
|
|
65
|
-
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; }
|
|
66
|
-
|
|
67
|
-
var EditInitForm = function (_React$Component) {
|
|
68
|
-
_inherits(EditInitForm, _React$Component);
|
|
69
|
-
|
|
70
|
-
function EditInitForm(props) {
|
|
71
|
-
_classCallCheck(this, EditInitForm);
|
|
72
|
-
|
|
73
|
-
var _this = _possibleConstructorReturn(this, (EditInitForm.__proto__ || Object.getPrototypeOf(EditInitForm)).call(this, props));
|
|
74
|
-
|
|
75
|
-
_this.componentDidMount = function () {
|
|
76
|
-
_this.selectBjxx();
|
|
77
|
-
_this.initXx();
|
|
78
|
-
_this.selectXycj();
|
|
79
|
-
};
|
|
80
|
-
|
|
81
|
-
_this.selectBjxx = function () {
|
|
82
|
-
var objId = _this.props.objId;
|
|
83
|
-
|
|
84
|
-
(0, _NHFetch2.default)('api/sm-student/openapi/selectBjxx', 'GET', { objId: objId }).then(function (res) {
|
|
85
|
-
if (res && res.data) {
|
|
86
|
-
var params = res.data;
|
|
87
|
-
_this.setState({
|
|
88
|
-
bzmc: params.BZMC,
|
|
89
|
-
bzr: params.BZR,
|
|
90
|
-
tzbsj: params.TZBSJ,
|
|
91
|
-
xsrs: params.XSRS
|
|
92
|
-
});
|
|
93
|
-
} else {
|
|
94
|
-
_toast2.default.fail("获取不到该班级的数据信息");
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
|
-
};
|
|
98
|
-
|
|
99
|
-
_this.selectXycj = function () {
|
|
100
|
-
var objId = _this.props.objId;
|
|
101
|
-
|
|
102
|
-
(0, _NHFetch2.default)('api/sm-student/openapi/selectXycj', 'GET', { objId: objId }).then(function (res) {
|
|
103
|
-
if (res && res.code == 200) {
|
|
104
|
-
if (res.data) {
|
|
105
|
-
_this.setState({
|
|
106
|
-
xscj: res.data
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
} else {
|
|
110
|
-
_toast2.default.fail("调用接口失败");
|
|
111
|
-
}
|
|
112
|
-
});
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
_this.initXx = function () {
|
|
116
|
-
var pkid = _this.props.pkid;
|
|
117
|
-
|
|
118
|
-
(0, _NHFetch2.default)('api/sm-honorary-title/openapi/selectInitXx/' + pkid, 'GET').then(function (res) {
|
|
119
|
-
if (res && res.code === 200) {
|
|
120
|
-
if (res.data) {
|
|
121
|
-
var params = res.data;
|
|
122
|
-
_this.setState({
|
|
123
|
-
dyrs: params.DYRS,
|
|
124
|
-
djrdsqsrs: params.DJRDSQSRS,
|
|
125
|
-
dxjyrs: params.DXJYRS,
|
|
126
|
-
rdjjfzrs: params.RDJJFZRS,
|
|
127
|
-
skcql: params.SKCQL,
|
|
128
|
-
cd: params.CD,
|
|
129
|
-
zt: params.ZT,
|
|
130
|
-
ktzx: params.KTZX,
|
|
131
|
-
cxzy: params.CXZY,
|
|
132
|
-
kszb: params.KSZB,
|
|
133
|
-
kwtydlcql: params.KWTYDLCQL,
|
|
134
|
-
dbl: params.DBL,
|
|
135
|
-
xsgbqk: params.XSGBQK,
|
|
136
|
-
hjqk: params.HJQK,
|
|
137
|
-
kzhdqk: params.KZHDQK,
|
|
138
|
-
zysj: params.ZYSJ,
|
|
139
|
-
dyrsszbl: params.DYRSSZBL,
|
|
140
|
-
djrdszbl: params.DJRDSZBL,
|
|
141
|
-
dxjyszbl: params.DXJYSZBL,
|
|
142
|
-
rdjjfzszbl: params.RDJJFZSZBL
|
|
143
|
-
});
|
|
144
|
-
}
|
|
145
|
-
} else {
|
|
146
|
-
_toast2.default.fail("调用接口失败");
|
|
147
|
-
}
|
|
148
|
-
});
|
|
149
|
-
};
|
|
150
|
-
|
|
151
|
-
_this.onChange = function (value, key) {
|
|
152
|
-
var xsrs = _this.state.xsrs;
|
|
153
|
-
|
|
154
|
-
_this.setState(_defineProperty({}, key, (value / xsrs).toFixed(2) * 100 + "%"));
|
|
155
|
-
};
|
|
156
|
-
|
|
157
|
-
_this.requiredParams = function (required, id) {
|
|
158
|
-
var getFieldError = _this.props.form.getFieldError;
|
|
159
|
-
|
|
160
|
-
return {
|
|
161
|
-
error: getFieldError(id) !== undefined
|
|
162
|
-
};
|
|
163
|
-
};
|
|
164
|
-
|
|
165
|
-
_this.getDataList = function (fieldMap) {
|
|
166
|
-
var _this$props$form = _this.props.form,
|
|
167
|
-
getFieldProps = _this$props$form.getFieldProps,
|
|
168
|
-
getFieldError = _this$props$form.getFieldError;
|
|
169
|
-
var _this$state = _this.state,
|
|
170
|
-
bzmc = _this$state.bzmc,
|
|
171
|
-
bzr = _this$state.bzr,
|
|
172
|
-
tzbsj = _this$state.tzbsj,
|
|
173
|
-
xsrs = _this$state.xsrs,
|
|
174
|
-
dyrs = _this$state.dyrs,
|
|
175
|
-
djrdsqsrs = _this$state.djrdsqsrs,
|
|
176
|
-
dxjyrs = _this$state.dxjyrs,
|
|
177
|
-
rdjjfzrs = _this$state.rdjjfzrs,
|
|
178
|
-
xscj = _this$state.xscj,
|
|
179
|
-
skcql = _this$state.skcql,
|
|
180
|
-
cd = _this$state.cd,
|
|
181
|
-
zt = _this$state.zt,
|
|
182
|
-
ktzx = _this$state.ktzx,
|
|
183
|
-
cxzy = _this$state.cxzy,
|
|
184
|
-
kszb = _this$state.kszb,
|
|
185
|
-
kwtydlcql = _this$state.kwtydlcql,
|
|
186
|
-
dbl = _this$state.dbl,
|
|
187
|
-
xsgbqk = _this$state.xsgbqk,
|
|
188
|
-
hjqk = _this$state.hjqk,
|
|
189
|
-
kzhdqk = _this$state.kzhdqk,
|
|
190
|
-
zysj = _this$state.zysj,
|
|
191
|
-
dyrsszbl = _this$state.dyrsszbl,
|
|
192
|
-
djrdszbl = _this$state.djrdszbl,
|
|
193
|
-
dxjyszbl = _this$state.dxjyszbl,
|
|
194
|
-
rdjjfzszbl = _this$state.rdjjfzszbl;
|
|
195
|
-
|
|
196
|
-
var dataList = [];
|
|
197
|
-
|
|
198
|
-
dataList.push({
|
|
199
|
-
title: '班长',
|
|
200
|
-
text: bzmc,
|
|
201
|
-
render: function render() {
|
|
202
|
-
return _react2.default.createElement(
|
|
203
|
-
_inputItem2.default,
|
|
204
|
-
_extends({
|
|
205
|
-
className: "nh-input-item",
|
|
206
|
-
value: bzmc,
|
|
207
|
-
editable: false
|
|
208
|
-
}, getFieldProps('bzmc', {
|
|
209
|
-
initialValue: bzmc
|
|
210
|
-
})),
|
|
211
|
-
"\u73ED\u957F"
|
|
212
|
-
);
|
|
213
|
-
}
|
|
214
|
-
});
|
|
215
|
-
|
|
216
|
-
dataList.push({
|
|
217
|
-
title: '团支部书记',
|
|
218
|
-
text: tzbsj,
|
|
219
|
-
render: function render() {
|
|
220
|
-
return _react2.default.createElement(
|
|
221
|
-
_inputItem2.default,
|
|
222
|
-
_extends({
|
|
223
|
-
className: "nh-input-item",
|
|
224
|
-
value: tzbsj,
|
|
225
|
-
editable: false
|
|
226
|
-
}, getFieldProps('tzbsj', {
|
|
227
|
-
initialValue: tzbsj
|
|
228
|
-
})),
|
|
229
|
-
"\u56E2\u652F\u90E8\u4E66\u8BB0"
|
|
230
|
-
);
|
|
231
|
-
}
|
|
232
|
-
});
|
|
233
|
-
|
|
234
|
-
dataList.push({
|
|
235
|
-
title: '班主任',
|
|
236
|
-
text: bzr,
|
|
237
|
-
render: function render() {
|
|
238
|
-
return _react2.default.createElement(
|
|
239
|
-
_inputItem2.default,
|
|
240
|
-
_extends({
|
|
241
|
-
className: "nh-input-item",
|
|
242
|
-
value: bzr,
|
|
243
|
-
editable: false
|
|
244
|
-
}, getFieldProps('bzmc', {
|
|
245
|
-
initialValue: bzr
|
|
246
|
-
})),
|
|
247
|
-
"\u73ED\u4E3B\u4EFB"
|
|
248
|
-
);
|
|
249
|
-
}
|
|
250
|
-
});
|
|
251
|
-
|
|
252
|
-
dataList.push({
|
|
253
|
-
title: '学生人数',
|
|
254
|
-
text: xsrs,
|
|
255
|
-
render: function render() {
|
|
256
|
-
return _react2.default.createElement(
|
|
257
|
-
_inputItem2.default,
|
|
258
|
-
_extends({
|
|
259
|
-
className: "nh-input-item",
|
|
260
|
-
value: xsrs,
|
|
261
|
-
editable: false
|
|
262
|
-
}, getFieldProps('xsrs', {
|
|
263
|
-
initialValue: xsrs
|
|
264
|
-
})),
|
|
265
|
-
"\u5B66\u751F\u4EBA\u6570"
|
|
266
|
-
);
|
|
267
|
-
}
|
|
268
|
-
});
|
|
269
|
-
|
|
270
|
-
if (fieldMap.DYRS && fieldMap.DYRS.sfxs === '1') {
|
|
271
|
-
var required = fieldMap.DYRS.sfbt === "1" ? true : false;
|
|
272
|
-
var editable = fieldMap.DYRS.sfbj === "1" ? true : false;
|
|
273
|
-
dataList.push({
|
|
274
|
-
title: '党员人数',
|
|
275
|
-
text: dyrs,
|
|
276
|
-
render: function render() {
|
|
277
|
-
return _react2.default.createElement(
|
|
278
|
-
_inputItem2.default,
|
|
279
|
-
_extends({
|
|
280
|
-
className: "nh-input-item",
|
|
281
|
-
placeholder: "\u8BF7\u8F93\u5165\u515A\u5458\u4EBA\u6570",
|
|
282
|
-
value: dyrs,
|
|
283
|
-
type: "number",
|
|
284
|
-
editable: editable,
|
|
285
|
-
disabled: !editable
|
|
286
|
-
}, getFieldProps('dyrs', {
|
|
287
|
-
initialValue: dyrs,
|
|
288
|
-
rules: [{ required: required, message: '请输入党员人数!' }],
|
|
289
|
-
onChange: function onChange(value) {
|
|
290
|
-
return _this.onChange(value, 'dyrsszbl');
|
|
291
|
-
}
|
|
292
|
-
})),
|
|
293
|
-
"\u515A\u5458\u4EBA\u6570"
|
|
294
|
-
);
|
|
295
|
-
}
|
|
296
|
-
});
|
|
297
|
-
|
|
298
|
-
dataList.push({
|
|
299
|
-
title: '党员人数所占比例',
|
|
300
|
-
text: dyrsszbl,
|
|
301
|
-
render: function render() {
|
|
302
|
-
return _react2.default.createElement(
|
|
303
|
-
_inputItem2.default,
|
|
304
|
-
_extends({
|
|
305
|
-
className: "nh-input-item",
|
|
306
|
-
value: dyrsszbl,
|
|
307
|
-
editable: false
|
|
308
|
-
}, getFieldProps('dyrsszbl', {
|
|
309
|
-
initialValue: dyrsszbl
|
|
310
|
-
})),
|
|
311
|
-
"\u515A\u5458\u4EBA\u6570\u6240\u5360\u6BD4\u4F8B"
|
|
312
|
-
);
|
|
313
|
-
}
|
|
314
|
-
});
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
if (fieldMap.DJRDSQSRS && fieldMap.DJRDSQSRS.sfxs === '1') {
|
|
318
|
-
var _required = fieldMap.DJRDSQSRS.sfbt === "1" ? true : false;
|
|
319
|
-
var _editable = fieldMap.DJRDSQSRS.sfbj === "1" ? true : false;
|
|
320
|
-
dataList.push({
|
|
321
|
-
title: '递交入党申请书人数',
|
|
322
|
-
text: djrdsqsrs,
|
|
323
|
-
render: function render() {
|
|
324
|
-
return _react2.default.createElement(
|
|
325
|
-
_inputItem2.default,
|
|
326
|
-
_extends({
|
|
327
|
-
className: "nh-input-item",
|
|
328
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
329
|
-
value: djrdsqsrs,
|
|
330
|
-
type: "number",
|
|
331
|
-
editable: _editable,
|
|
332
|
-
disabled: !_editable
|
|
333
|
-
}, getFieldProps('djrdsqsrs', {
|
|
334
|
-
initialValue: djrdsqsrs,
|
|
335
|
-
rules: [{ required: _required, message: '请输入递交入党申请书人数!' }],
|
|
336
|
-
onChange: function onChange(value) {
|
|
337
|
-
return _this.onChange(value, 'djrdszbl');
|
|
338
|
-
}
|
|
339
|
-
})),
|
|
340
|
-
"\u9012\u4EA4\u5165\u515A\u7533\u8BF7\u4E66\u4EBA\u6570"
|
|
341
|
-
);
|
|
342
|
-
}
|
|
343
|
-
});
|
|
344
|
-
|
|
345
|
-
dataList.push({
|
|
346
|
-
title: '入党申请所占比例',
|
|
347
|
-
text: djrdszbl,
|
|
348
|
-
render: function render() {
|
|
349
|
-
return _react2.default.createElement(
|
|
350
|
-
_inputItem2.default,
|
|
351
|
-
_extends({
|
|
352
|
-
className: "nh-input-item",
|
|
353
|
-
value: djrdszbl,
|
|
354
|
-
editable: false
|
|
355
|
-
}, getFieldProps('djrdszbl', {
|
|
356
|
-
initialValue: djrdszbl
|
|
357
|
-
})),
|
|
358
|
-
"\u5165\u515A\u7533\u8BF7\u6240\u5360\u6BD4\u4F8B"
|
|
359
|
-
);
|
|
360
|
-
}
|
|
361
|
-
});
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
if (fieldMap.DXJYRS && fieldMap.DXJYRS.sfxs === '1') {
|
|
365
|
-
var _required2 = fieldMap.DXJYRS.sfbt === "1" ? true : false;
|
|
366
|
-
var _editable2 = fieldMap.DXJYRS.sfbj === "1" ? true : false;
|
|
367
|
-
dataList.push({
|
|
368
|
-
title: '党校结业人数',
|
|
369
|
-
text: dxjyrs,
|
|
370
|
-
render: function render() {
|
|
371
|
-
return _react2.default.createElement(
|
|
372
|
-
_inputItem2.default,
|
|
373
|
-
_extends({
|
|
374
|
-
className: "nh-input-item",
|
|
375
|
-
placeholder: "\u8BF7\u8F93\u5165\u515A\u6821\u7ED3\u4E1A\u4EBA\u6570",
|
|
376
|
-
value: dxjyrs,
|
|
377
|
-
type: "number",
|
|
378
|
-
editable: _editable2,
|
|
379
|
-
disabled: !_editable2
|
|
380
|
-
}, getFieldProps('dxjyrs', {
|
|
381
|
-
initialValue: dxjyrs,
|
|
382
|
-
rules: [{ required: _required2, message: '请输入党校结业人数' }],
|
|
383
|
-
onChange: function onChange(value) {
|
|
384
|
-
return _this.onChange(value, 'dxjyszbl');
|
|
385
|
-
}
|
|
386
|
-
})),
|
|
387
|
-
"\u515A\u6821\u7ED3\u4E1A\u4EBA\u6570"
|
|
388
|
-
);
|
|
389
|
-
}
|
|
390
|
-
});
|
|
391
|
-
|
|
392
|
-
dataList.push({
|
|
393
|
-
title: '党校结业所占比例',
|
|
394
|
-
text: dxjyszbl,
|
|
395
|
-
render: function render() {
|
|
396
|
-
return _react2.default.createElement(
|
|
397
|
-
_inputItem2.default,
|
|
398
|
-
_extends({
|
|
399
|
-
className: "nh-input-item",
|
|
400
|
-
value: dxjyszbl,
|
|
401
|
-
editable: false
|
|
402
|
-
}, getFieldProps('dxjyszbl', {
|
|
403
|
-
initialValue: dxjyszbl
|
|
404
|
-
})),
|
|
405
|
-
"\u515A\u6821\u7ED3\u4E1A\u6240\u5360\u6BD4\u4F8B"
|
|
406
|
-
);
|
|
407
|
-
}
|
|
408
|
-
});
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
if (fieldMap.RDJJFZRS && fieldMap.RDJJFZRS.sfxs === '1') {
|
|
412
|
-
var _required3 = fieldMap.RDJJFZRS.sfbt === "1" ? true : false;
|
|
413
|
-
var _editable3 = fieldMap.RDJJFZRS.sfbj === "1" ? true : false;
|
|
414
|
-
dataList.push({
|
|
415
|
-
title: '入党积极分子人数',
|
|
416
|
-
text: rdjjfzrs,
|
|
417
|
-
render: function render() {
|
|
418
|
-
return _react2.default.createElement(
|
|
419
|
-
_inputItem2.default,
|
|
420
|
-
_extends({
|
|
421
|
-
className: "nh-input-item",
|
|
422
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
423
|
-
value: rdjjfzrs,
|
|
424
|
-
type: "number",
|
|
425
|
-
editable: _editable3,
|
|
426
|
-
disabled: !_editable3
|
|
427
|
-
}, getFieldProps('rdjjfzrs', {
|
|
428
|
-
initialValue: rdjjfzrs,
|
|
429
|
-
rules: [{ required: _required3, message: '请输入入党积极分子人数' }],
|
|
430
|
-
onChange: function onChange(value) {
|
|
431
|
-
return _this.onChange(value, 'rdjjfzszbl');
|
|
432
|
-
}
|
|
433
|
-
})),
|
|
434
|
-
"\u5165\u515A\u79EF\u6781\u5206\u5B50\u4EBA\u6570"
|
|
435
|
-
);
|
|
436
|
-
}
|
|
437
|
-
});
|
|
438
|
-
}
|
|
439
|
-
dataList.push({
|
|
440
|
-
title: '入党积极分子所占比例',
|
|
441
|
-
text: rdjjfzszbl,
|
|
442
|
-
render: function render() {
|
|
443
|
-
return _react2.default.createElement(
|
|
444
|
-
_inputItem2.default,
|
|
445
|
-
_extends({
|
|
446
|
-
className: "nh-input-item",
|
|
447
|
-
value: rdjjfzszbl ? rdjjfzszbl : "0%",
|
|
448
|
-
editable: false
|
|
449
|
-
}, getFieldProps('rdjjfzszbl', {
|
|
450
|
-
initialValue: rdjjfzszbl
|
|
451
|
-
})),
|
|
452
|
-
"\u5165\u515A\u79EF\u6781\u5206\u5B50\u6240\u5360\u6BD4\u4F8B"
|
|
453
|
-
);
|
|
454
|
-
}
|
|
455
|
-
});
|
|
456
|
-
|
|
457
|
-
xscj ? xscj.map(function (item) {
|
|
458
|
-
dataList.push({
|
|
459
|
-
title: '学期',
|
|
460
|
-
text: item.XQ,
|
|
461
|
-
render: function render() {
|
|
462
|
-
return _react2.default.createElement(
|
|
463
|
-
_inputItem2.default,
|
|
464
|
-
{
|
|
465
|
-
className: "nh-input-item",
|
|
466
|
-
value: item.XQ,
|
|
467
|
-
editable: false
|
|
468
|
-
},
|
|
469
|
-
"\u5B66\u671F"
|
|
470
|
-
);
|
|
471
|
-
}
|
|
472
|
-
});
|
|
473
|
-
dataList.push({
|
|
474
|
-
title: '平均成绩',
|
|
475
|
-
text: item.AVGCJ,
|
|
476
|
-
render: function render() {
|
|
477
|
-
return _react2.default.createElement(
|
|
478
|
-
_inputItem2.default,
|
|
479
|
-
{
|
|
480
|
-
className: "nh-input-item",
|
|
481
|
-
value: item.AVGCJ,
|
|
482
|
-
editable: false
|
|
483
|
-
},
|
|
484
|
-
"\u5E73\u5747\u6210\u7EE9"
|
|
485
|
-
);
|
|
486
|
-
}
|
|
487
|
-
});
|
|
488
|
-
dataList.push({
|
|
489
|
-
title: '不及格人数',
|
|
490
|
-
text: item.GKRS,
|
|
491
|
-
render: function render() {
|
|
492
|
-
return _react2.default.createElement(
|
|
493
|
-
_inputItem2.default,
|
|
494
|
-
{
|
|
495
|
-
className: "nh-input-item",
|
|
496
|
-
value: item.GKRS,
|
|
497
|
-
editable: false
|
|
498
|
-
},
|
|
499
|
-
"\u4E0D\u53CA\u683C\u4EBA\u6570"
|
|
500
|
-
);
|
|
501
|
-
}
|
|
502
|
-
});
|
|
503
|
-
dataList.push({
|
|
504
|
-
title: '不及格率',
|
|
505
|
-
text: item.GKL,
|
|
506
|
-
render: function render() {
|
|
507
|
-
return _react2.default.createElement(
|
|
508
|
-
_inputItem2.default,
|
|
509
|
-
{
|
|
510
|
-
className: "nh-input-item",
|
|
511
|
-
value: item.GKL,
|
|
512
|
-
editable: false
|
|
513
|
-
},
|
|
514
|
-
"\u4E0D\u53CA\u683C\u7387"
|
|
515
|
-
);
|
|
516
|
-
}
|
|
517
|
-
});
|
|
518
|
-
}) : null;
|
|
519
|
-
|
|
520
|
-
if (fieldMap.SKCQL && fieldMap.SKCQL.sfxs === '1') {
|
|
521
|
-
var _required4 = fieldMap.SKCQL.sfbt === "1" ? true : false;
|
|
522
|
-
var _editable4 = fieldMap.SKCQL.sfbj === "1" ? true : false;
|
|
523
|
-
dataList.push({
|
|
524
|
-
id: 'skcql',
|
|
525
|
-
title: '上课出勤率',
|
|
526
|
-
text: skcql,
|
|
527
|
-
render: function render() {
|
|
528
|
-
return _react2.default.createElement(
|
|
529
|
-
_inputItem2.default,
|
|
530
|
-
_extends({
|
|
531
|
-
className: "nh-input-item",
|
|
532
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
533
|
-
value: skcql,
|
|
534
|
-
editable: _editable4,
|
|
535
|
-
disabled: !_editable4
|
|
536
|
-
}, getFieldProps('skcql', {
|
|
537
|
-
initialValue: skcql,
|
|
538
|
-
rules: [{ required: _required4, message: '请输入上课出勤率' }]
|
|
539
|
-
})),
|
|
540
|
-
"\u4E0A\u8BFE\u51FA\u52E4\u7387"
|
|
541
|
-
);
|
|
542
|
-
}
|
|
543
|
-
});
|
|
544
|
-
}
|
|
545
|
-
|
|
546
|
-
if (fieldMap.CD && fieldMap.CD.sfxs === '1') {
|
|
547
|
-
var _required5 = fieldMap.CD.sfbt === "1" ? true : false;
|
|
548
|
-
var _editable5 = fieldMap.CD.sfbj === "1" ? true : false;
|
|
549
|
-
dataList.push({
|
|
550
|
-
id: 'cd',
|
|
551
|
-
title: '迟到',
|
|
552
|
-
text: cd,
|
|
553
|
-
render: function render() {
|
|
554
|
-
return _react2.default.createElement(
|
|
555
|
-
_inputItem2.default,
|
|
556
|
-
_extends({
|
|
557
|
-
className: "nh-input-item",
|
|
558
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
559
|
-
value: cd,
|
|
560
|
-
editable: _editable5,
|
|
561
|
-
disabled: !_editable5
|
|
562
|
-
}, getFieldProps('cd', {
|
|
563
|
-
initialValue: cd,
|
|
564
|
-
rules: [{ required: _required5, message: '请输入迟到' }]
|
|
565
|
-
})),
|
|
566
|
-
"\u8FDF\u5230"
|
|
567
|
-
);
|
|
568
|
-
}
|
|
569
|
-
});
|
|
570
|
-
}
|
|
571
|
-
|
|
572
|
-
if (fieldMap.ZT && fieldMap.ZT.sfxs === '1') {
|
|
573
|
-
var _required6 = fieldMap.ZT.sfbt === "1" ? true : false;
|
|
574
|
-
var _editable6 = fieldMap.ZT.sfbj === "1" ? true : false;
|
|
575
|
-
dataList.push({
|
|
576
|
-
id: 'zt',
|
|
577
|
-
title: '早退',
|
|
578
|
-
text: zt,
|
|
579
|
-
render: function render() {
|
|
580
|
-
return _react2.default.createElement(
|
|
581
|
-
_inputItem2.default,
|
|
582
|
-
_extends({
|
|
583
|
-
className: "nh-input-item",
|
|
584
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
585
|
-
value: zt,
|
|
586
|
-
editable: _editable6,
|
|
587
|
-
disabled: !_editable6
|
|
588
|
-
}, getFieldProps('zt', {
|
|
589
|
-
initialValue: zt,
|
|
590
|
-
rules: [{ required: _required6, message: '请输入早退' }]
|
|
591
|
-
})),
|
|
592
|
-
"\u65E9\u9000"
|
|
593
|
-
);
|
|
594
|
-
}
|
|
595
|
-
});
|
|
596
|
-
}
|
|
597
|
-
|
|
598
|
-
if (fieldMap.KTZX && fieldMap.KTZX.sfxs === '1') {
|
|
599
|
-
var _required7 = fieldMap.KTZX.sfbt === "1" ? true : false;
|
|
600
|
-
var _editable7 = fieldMap.KTZX.sfbj === "1" ? true : false;
|
|
601
|
-
dataList.push({
|
|
602
|
-
id: 'ktzx',
|
|
603
|
-
title: '课堂秩序',
|
|
604
|
-
text: ktzx,
|
|
605
|
-
render: function render() {
|
|
606
|
-
return _react2.default.createElement(
|
|
607
|
-
_inputItem2.default,
|
|
608
|
-
_extends({
|
|
609
|
-
className: "nh-input-item",
|
|
610
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
611
|
-
value: ktzx,
|
|
612
|
-
editable: _editable7,
|
|
613
|
-
disabled: !_editable7
|
|
614
|
-
}, getFieldProps('ktzx', {
|
|
615
|
-
initialValue: ktzx,
|
|
616
|
-
rules: [{ required: _required7, message: '请输入课堂秩序' }]
|
|
617
|
-
})),
|
|
618
|
-
"\u8BFE\u5802\u79E9\u5E8F"
|
|
619
|
-
);
|
|
620
|
-
}
|
|
621
|
-
});
|
|
622
|
-
}
|
|
623
|
-
|
|
624
|
-
if (fieldMap.CXZY && fieldMap.CXZY.sfxs === '1') {
|
|
625
|
-
var _required8 = fieldMap.CXZY.sfbt === "1" ? true : false;
|
|
626
|
-
var _editable8 = fieldMap.CXZY.sfbj === "1" ? true : false;
|
|
627
|
-
dataList.push({
|
|
628
|
-
id: 'cxzy',
|
|
629
|
-
title: '抄袭作业',
|
|
630
|
-
text: cxzy,
|
|
631
|
-
render: function render() {
|
|
632
|
-
return _react2.default.createElement(
|
|
633
|
-
_inputItem2.default,
|
|
634
|
-
_extends({
|
|
635
|
-
className: "nh-input-item",
|
|
636
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
637
|
-
value: cxzy,
|
|
638
|
-
editable: _editable8,
|
|
639
|
-
disabled: !_editable8
|
|
640
|
-
}, getFieldProps('cxzy', {
|
|
641
|
-
initialValue: cxzy,
|
|
642
|
-
rules: [{ required: _required8, message: '请输入抄袭作业' }]
|
|
643
|
-
})),
|
|
644
|
-
"\u6284\u88AD\u4F5C\u4E1A"
|
|
645
|
-
);
|
|
646
|
-
}
|
|
647
|
-
});
|
|
648
|
-
}
|
|
649
|
-
|
|
650
|
-
if (fieldMap.KSZB && fieldMap.KSZB.sfxs === '1') {
|
|
651
|
-
var _required9 = fieldMap.KSZB.sfbt === "1" ? true : false;
|
|
652
|
-
var _editable9 = fieldMap.KSZB.sfbj === "1" ? true : false;
|
|
653
|
-
dataList.push({
|
|
654
|
-
id: 'kszb',
|
|
655
|
-
title: '考试作弊',
|
|
656
|
-
text: kszb,
|
|
657
|
-
render: function render() {
|
|
658
|
-
return _react2.default.createElement(
|
|
659
|
-
_inputItem2.default,
|
|
660
|
-
_extends({
|
|
661
|
-
className: "nh-input-item",
|
|
662
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
663
|
-
value: kszb,
|
|
664
|
-
editable: _editable9,
|
|
665
|
-
disabled: !_editable9
|
|
666
|
-
}, getFieldProps('kszb', {
|
|
667
|
-
initialValue: kszb,
|
|
668
|
-
rules: [{ required: _required9, message: '请输入考试作弊' }]
|
|
669
|
-
})),
|
|
670
|
-
"\u8003\u8BD5\u4F5C\u5F0A"
|
|
671
|
-
);
|
|
672
|
-
}
|
|
673
|
-
});
|
|
674
|
-
}
|
|
675
|
-
|
|
676
|
-
if (fieldMap.KWTYDLCQL && fieldMap.KWTYDLCQL.sfxs === '1') {
|
|
677
|
-
var _required10 = fieldMap.KWTYDLCQL.sfbt === "1" ? true : false;
|
|
678
|
-
var _editable10 = fieldMap.KWTYDLCQL.sfbj === "1" ? true : false;
|
|
679
|
-
dataList.push({
|
|
680
|
-
id: 'kwtydlcql',
|
|
681
|
-
title: '课外体育锻炼出勤率',
|
|
682
|
-
text: kwtydlcql,
|
|
683
|
-
render: function render() {
|
|
684
|
-
return _react2.default.createElement(
|
|
685
|
-
_inputItem2.default,
|
|
686
|
-
_extends({
|
|
687
|
-
className: "nh-input-item",
|
|
688
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
689
|
-
value: kwtydlcql,
|
|
690
|
-
editable: _editable10,
|
|
691
|
-
disabled: !_editable10
|
|
692
|
-
}, getFieldProps('kwtydlcql', {
|
|
693
|
-
initialValue: kwtydlcql,
|
|
694
|
-
rules: [{ required: _required10, message: '请输入体育出勤率' }]
|
|
695
|
-
})),
|
|
696
|
-
"\u8BFE\u5916\u4F53\u80B2\u953B\u70BC\u51FA\u52E4\u7387"
|
|
697
|
-
);
|
|
698
|
-
}
|
|
699
|
-
});
|
|
700
|
-
}
|
|
701
|
-
|
|
702
|
-
if (fieldMap.DBL && fieldMap.DBL.sfxs === '1') {
|
|
703
|
-
var _required11 = fieldMap.DBL.sfbt === "1" ? true : false;
|
|
704
|
-
var _editable11 = fieldMap.DBL.sfbj === "1" ? true : false;
|
|
705
|
-
dataList.push({
|
|
706
|
-
id: 'dbl',
|
|
707
|
-
title: '《大学生体育合格标准》达标率',
|
|
708
|
-
text: dbl,
|
|
709
|
-
render: function render() {
|
|
710
|
-
return _react2.default.createElement(
|
|
711
|
-
_inputItem2.default,
|
|
712
|
-
_extends({
|
|
713
|
-
className: "nh-input-item",
|
|
714
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
715
|
-
value: dbl,
|
|
716
|
-
editable: _editable11,
|
|
717
|
-
disabled: !_editable11
|
|
718
|
-
}, getFieldProps('dbl', {
|
|
719
|
-
initialValue: dbl,
|
|
720
|
-
rules: [{ required: _required11, message: '请输入达标率' }]
|
|
721
|
-
})),
|
|
722
|
-
"\u300A\u5927\u5B66\u751F\u4F53\u80B2\u5408\u683C\u6807\u51C6\u300B\u8FBE\u6807\u7387"
|
|
723
|
-
);
|
|
724
|
-
}
|
|
725
|
-
});
|
|
726
|
-
}
|
|
727
|
-
|
|
728
|
-
if (fieldMap.XSGBQK && fieldMap.XSGBQK.sfxs === '1') {
|
|
729
|
-
var _required12 = fieldMap.XSGBQK.sfbt === "1" ? true : false;
|
|
730
|
-
var _editable12 = fieldMap.XSGBQK.sfbj === "1" ? true : false;
|
|
731
|
-
dataList.push({
|
|
732
|
-
id: 'xsgbqk',
|
|
733
|
-
title: '任校、院两级学生干部情况',
|
|
734
|
-
text: xsgbqk,
|
|
735
|
-
required: _required12,
|
|
736
|
-
isUpload: false,
|
|
737
|
-
render: function render() {
|
|
738
|
-
return _react2.default.createElement(_textareaItem2.default, _extends({
|
|
739
|
-
title: "\u4EFB\u6821\u3001\u9662\u4E24\u7EA7\u5B66\u751F\u5E72\u90E8\u60C5\u51B5",
|
|
740
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
741
|
-
"data-seed": "logId",
|
|
742
|
-
rows: 2,
|
|
743
|
-
count: 300,
|
|
744
|
-
editable: _editable12,
|
|
745
|
-
disabled: !_editable12
|
|
746
|
-
}, _this.requiredParams(_required12, 'xsgbqk'), getFieldProps('xsgbqk', {
|
|
747
|
-
initialValue: xsgbqk,
|
|
748
|
-
rules: [{ required: _required12, message: '请输入干部情况!' }],
|
|
749
|
-
onChange: function onChange(v) {
|
|
750
|
-
return _this.setState({ xsgbqk: v });
|
|
751
|
-
}
|
|
752
|
-
})));
|
|
753
|
-
}
|
|
754
|
-
});
|
|
755
|
-
}
|
|
756
|
-
|
|
757
|
-
if (fieldMap.HJQK && fieldMap.HJQK.sfxs === '1') {
|
|
758
|
-
var _required13 = fieldMap.HJQK.sfbt === "1" ? true : false;
|
|
759
|
-
var _editable13 = fieldMap.HJQK.sfbj === "1" ? true : false;
|
|
760
|
-
dataList.push({
|
|
761
|
-
id: 'hjqk',
|
|
762
|
-
title: '班级或个人获校级及以上奖励情况',
|
|
763
|
-
text: hjqk,
|
|
764
|
-
required: _required13,
|
|
765
|
-
isUpload: false,
|
|
766
|
-
render: function render() {
|
|
767
|
-
return _react2.default.createElement(_textareaItem2.default, _extends({
|
|
768
|
-
title: "\u73ED\u7EA7\u6216\u4E2A\u4EBA\u83B7\u6821\u7EA7\u53CA\u4EE5\u4E0A\u5956\u52B1\u60C5\u51B5",
|
|
769
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
770
|
-
"data-seed": "logId",
|
|
771
|
-
rows: 2,
|
|
772
|
-
count: 300,
|
|
773
|
-
editable: _editable13,
|
|
774
|
-
disabled: !_editable13
|
|
775
|
-
}, _this.requiredParams(_required13, 'hjqk'), getFieldProps('hjqk', {
|
|
776
|
-
initialValue: hjqk,
|
|
777
|
-
rules: [{ required: _required13, message: '请输入奖励情况!' }],
|
|
778
|
-
onChange: function onChange(v) {
|
|
779
|
-
return _this.setState({ hjqk: v });
|
|
780
|
-
}
|
|
781
|
-
})));
|
|
782
|
-
}
|
|
783
|
-
});
|
|
784
|
-
}
|
|
785
|
-
|
|
786
|
-
if (fieldMap.KZHDQK && fieldMap.KZHDQK.sfxs === '1') {
|
|
787
|
-
var _required14 = fieldMap.KZHDQK.sfbt === "1" ? true : false;
|
|
788
|
-
var _editable14 = fieldMap.KZHDQK.sfbj === "1" ? true : false;
|
|
789
|
-
dataList.push({
|
|
790
|
-
id: 'kzhdqk',
|
|
791
|
-
title: '班级开展活动情况',
|
|
792
|
-
text: kzhdqk,
|
|
793
|
-
required: _required14,
|
|
794
|
-
isUpload: false,
|
|
795
|
-
render: function render() {
|
|
796
|
-
return _react2.default.createElement(_textareaItem2.default, _extends({
|
|
797
|
-
title: "\u73ED\u7EA7\u5F00\u5C55\u6D3B\u52A8\u60C5\u51B5",
|
|
798
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
799
|
-
"data-seed": "logId",
|
|
800
|
-
rows: 2,
|
|
801
|
-
count: 300,
|
|
802
|
-
editable: _editable14,
|
|
803
|
-
disabled: !_editable14
|
|
804
|
-
}, _this.requiredParams(_required14, 'kzhdqk'), getFieldProps('kzhdqk', {
|
|
805
|
-
initialValue: kzhdqk,
|
|
806
|
-
rules: [{ required: _required14, message: '请输入活动情况!' }],
|
|
807
|
-
onChange: function onChange(v) {
|
|
808
|
-
return _this.setState({ kzhdqk: v });
|
|
809
|
-
}
|
|
810
|
-
})));
|
|
811
|
-
}
|
|
812
|
-
});
|
|
813
|
-
}
|
|
814
|
-
|
|
815
|
-
if (fieldMap.ZYSJ && fieldMap.ZYSJ.sfxs === '1') {
|
|
816
|
-
var _required15 = fieldMap.ZYSJ.sfbt === "1" ? true : false;
|
|
817
|
-
var _editable15 = fieldMap.ZYSJ.sfbj === "1" ? true : false;
|
|
818
|
-
dataList.push({
|
|
819
|
-
id: 'zysj',
|
|
820
|
-
title: '班级主要事迹',
|
|
821
|
-
text: zysj,
|
|
822
|
-
required: _required15,
|
|
823
|
-
isUpload: false,
|
|
824
|
-
render: function render() {
|
|
825
|
-
return _react2.default.createElement(_textareaItem2.default, _extends({
|
|
826
|
-
title: "\u73ED\u7EA7\u4E3B\u8981\u4E8B\u8FF9",
|
|
827
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
828
|
-
"data-seed": "logId",
|
|
829
|
-
rows: 2,
|
|
830
|
-
count: 300,
|
|
831
|
-
editable: _editable15,
|
|
832
|
-
disabled: !_editable15
|
|
833
|
-
}, _this.requiredParams(_required15, 'zysj'), getFieldProps('zysj', {
|
|
834
|
-
initialValue: zysj,
|
|
835
|
-
rules: [{ required: _required15, message: '请输入主要事迹!' }],
|
|
836
|
-
onChange: function onChange(v) {
|
|
837
|
-
return _this.setState({ zysj: v });
|
|
838
|
-
}
|
|
839
|
-
})));
|
|
840
|
-
}
|
|
841
|
-
});
|
|
842
|
-
}
|
|
843
|
-
|
|
844
|
-
return dataList;
|
|
845
|
-
};
|
|
846
|
-
|
|
847
|
-
_this.state = {
|
|
848
|
-
bzmc: '', //班长名称
|
|
849
|
-
tzbsj: '', //团支部书记
|
|
850
|
-
bzr: '', //班主任
|
|
851
|
-
xsrs: 0, //学生人数
|
|
852
|
-
dyrs: '', //党员人数
|
|
853
|
-
djrdsqsrs: '', //递交入党申请书人数
|
|
854
|
-
dxjyrs: '', //党校结业人数
|
|
855
|
-
rdjjfzrs: '', //入党积极分子人数
|
|
856
|
-
xscj: [], //学习成绩
|
|
857
|
-
skcql: '', //上课出勤率
|
|
858
|
-
cd: '', //迟到
|
|
859
|
-
zt: '', //早退
|
|
860
|
-
ktzx: '', //课堂秩序
|
|
861
|
-
cxzy: '', //抄袭作业
|
|
862
|
-
kszb: '', //考试作弊
|
|
863
|
-
kwtydlcql: '', //课外体育锻炼出勤率
|
|
864
|
-
dbl: '', //大学生体育合格达标率
|
|
865
|
-
xsgbqk: '', //学生干部情况
|
|
866
|
-
hjqk: '', //获奖情况
|
|
867
|
-
zysj: '', //主要事迹
|
|
868
|
-
kzhdqk: '', //班级开展活动情
|
|
869
|
-
dyrsszbl: '', //党员人数占比
|
|
870
|
-
djrdszbl: '', //递交入党占比
|
|
871
|
-
dxjyszbl: '', //党校结业占比
|
|
872
|
-
rdjjfzszbl: '' //入党积极分子占比
|
|
873
|
-
};
|
|
874
|
-
return _this;
|
|
875
|
-
}
|
|
876
|
-
|
|
877
|
-
//查询班级基本信息
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
/**
|
|
881
|
-
* * 自定义表单项渲染
|
|
882
|
-
*
|
|
883
|
-
* @memberof EditInitForm
|
|
884
|
-
*/
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
_createClass(EditInitForm, [{
|
|
888
|
-
key: "render",
|
|
889
|
-
value: function render() {
|
|
890
|
-
var _props = this.props,
|
|
891
|
-
form = _props.form,
|
|
892
|
-
isEdit = _props.isEdit,
|
|
893
|
-
fieldMap = _props.fieldMap,
|
|
894
|
-
title = _props.title;
|
|
895
|
-
|
|
896
|
-
var dataList = this.getDataList(fieldMap);
|
|
897
|
-
return isEdit ? _react2.default.createElement(
|
|
898
|
-
"form",
|
|
899
|
-
null,
|
|
900
|
-
_react2.default.createElement(
|
|
901
|
-
"style",
|
|
902
|
-
null,
|
|
903
|
-
"\n .am-list-extra{\n -webkit-flex-basis: 50% !important;\n -ms-flex-preferred-size: 50% !important;\n flex-basis: 50% !important;\n }\n "
|
|
904
|
-
),
|
|
905
|
-
_react2.default.createElement(
|
|
906
|
-
_list2.default,
|
|
907
|
-
{ renderHeader: function renderHeader() {
|
|
908
|
-
return title;
|
|
909
|
-
} },
|
|
910
|
-
dataList.filter(function (item, index) {
|
|
911
|
-
return index < 2;
|
|
912
|
-
}).map(function (item) {
|
|
913
|
-
return item.render !== undefined ? item.render() : null;
|
|
914
|
-
})
|
|
915
|
-
),
|
|
916
|
-
dataList && dataList.length >= 2 ? _react2.default.createElement(
|
|
917
|
-
_list2.default,
|
|
918
|
-
{ renderHeader: function renderHeader() {
|
|
919
|
-
return "";
|
|
920
|
-
} },
|
|
921
|
-
dataList.filter(function (item, index) {
|
|
922
|
-
return index >= 2 && index < 5;
|
|
923
|
-
}).map(function (item) {
|
|
924
|
-
return item.render !== undefined ? item.render() : null;
|
|
925
|
-
})
|
|
926
|
-
) : null,
|
|
927
|
-
dataList && dataList.length >= 5 ? _react2.default.createElement(
|
|
928
|
-
_list2.default,
|
|
929
|
-
{ renderHeader: function renderHeader() {
|
|
930
|
-
return "";
|
|
931
|
-
} },
|
|
932
|
-
dataList.filter(function (item, index) {
|
|
933
|
-
return index >= 5 && index < 7;
|
|
934
|
-
}).map(function (item) {
|
|
935
|
-
return item.render !== undefined ? item.render() : null;
|
|
936
|
-
})
|
|
937
|
-
) : null,
|
|
938
|
-
dataList && dataList.length >= 7 ? _react2.default.createElement(
|
|
939
|
-
_list2.default,
|
|
940
|
-
{ renderHeader: function renderHeader() {
|
|
941
|
-
return "";
|
|
942
|
-
} },
|
|
943
|
-
dataList.filter(function (item, index) {
|
|
944
|
-
return index >= 7;
|
|
945
|
-
}).map(function (item) {
|
|
946
|
-
return item.render !== undefined ? item.render() : null;
|
|
947
|
-
})
|
|
948
|
-
) : null,
|
|
949
|
-
_react2.default.createElement(_whiteSpace2.default, { size: "lg" })
|
|
950
|
-
) : _react2.default.createElement(
|
|
951
|
-
"div",
|
|
952
|
-
null,
|
|
953
|
-
_react2.default.createElement(
|
|
954
|
-
_card2.default,
|
|
955
|
-
{ full: true },
|
|
956
|
-
_react2.default.createElement(_card2.default.Header, {
|
|
957
|
-
title: _react2.default.createElement(
|
|
958
|
-
"div",
|
|
959
|
-
{ style: { borderLeft: '3px solid #1890ff', paddingLeft: '10px' } },
|
|
960
|
-
title
|
|
961
|
-
)
|
|
962
|
-
}),
|
|
963
|
-
_react2.default.createElement(
|
|
964
|
-
_card2.default.Body,
|
|
965
|
-
null,
|
|
966
|
-
dataList.map(function (item, index) {
|
|
967
|
-
if (item.isUpload) {
|
|
968
|
-
return _react2.default.createElement(
|
|
969
|
-
"div",
|
|
970
|
-
{ key: index },
|
|
971
|
-
_react2.default.createElement(
|
|
972
|
-
"font",
|
|
973
|
-
{ color: "grey" },
|
|
974
|
-
item.title,
|
|
975
|
-
"\uFF1A "
|
|
976
|
-
),
|
|
977
|
-
item.renderView()
|
|
978
|
-
);
|
|
979
|
-
}
|
|
980
|
-
return _react2.default.createElement(
|
|
981
|
-
"div",
|
|
982
|
-
{ key: index },
|
|
983
|
-
_react2.default.createElement(
|
|
984
|
-
"font",
|
|
985
|
-
{ color: "grey" },
|
|
986
|
-
item.title,
|
|
987
|
-
"\uFF1A "
|
|
988
|
-
),
|
|
989
|
-
item.text,
|
|
990
|
-
_react2.default.createElement("br", null)
|
|
991
|
-
);
|
|
992
|
-
})
|
|
993
|
-
)
|
|
994
|
-
),
|
|
995
|
-
_react2.default.createElement(_whiteSpace2.default, { size: "lg" })
|
|
996
|
-
);
|
|
997
|
-
}
|
|
998
|
-
}]);
|
|
999
|
-
|
|
1000
|
-
return EditInitForm;
|
|
1001
|
-
}(_react2.default.Component);
|
|
1002
|
-
|
|
1003
|
-
var EditForm = (0, _rcForm.createForm)()(EditInitForm);
|
|
1004
|
-
exports.default = EditForm;
|