easy3wui 1.5.21 → 1.5.22
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/package.json +1 -1
- package/assets/btn.css +0 -17
- package/assets/captcha.css +0 -5
- package/assets/card.css +0 -34
- package/assets/exception.css +0 -76
- package/assets/flow.css +0 -860
- package/assets/formPage.css +0 -15
- package/assets/globalFooter.css +0 -26
- package/assets/globalHeader.css +0 -69
- package/assets/gridPage.css +0 -93
- package/assets/index.css +0 -1454
- package/assets/login.css +0 -61
- package/assets/loginLayout.css +0 -115
- package/assets/modal.css +0 -0
- package/assets/result.css +0 -45
- package/assets/userLayout.css +0 -70
- package/lib/Easy3wA/index.js +0 -100
- package/lib/Easy3wAESDecrypt/index.js +0 -21
- package/lib/Easy3wAESEncrypt/index.js +0 -20
- package/lib/Easy3wBlankLayout/index.js +0 -114
- package/lib/Easy3wButton/index.js +0 -265
- package/lib/Easy3wButtonOne/index.js +0 -148
- package/lib/Easy3wCaHandler/index.js +0 -206
- package/lib/Easy3wCaptcha/index.js +0 -145
- package/lib/Easy3wCard/index.js +0 -66
- package/lib/Easy3wDictCode/index.js +0 -50
- package/lib/Easy3wDownLoad/Easy3wFileView.js +0 -82
- package/lib/Easy3wDownLoad/Easy3wImgView.js +0 -73
- package/lib/Easy3wDownLoad/Easy3wPDFView.js +0 -139
- package/lib/Easy3wDownLoad/Easy3wRCView.js +0 -65
- package/lib/Easy3wDownLoad/index.js +0 -315
- package/lib/Easy3wException/403.js +0 -21
- package/lib/Easy3wException/404.js +0 -21
- package/lib/Easy3wException/500.js +0 -21
- package/lib/Easy3wException/index.js +0 -94
- package/lib/Easy3wException/typeConfig.js +0 -23
- package/lib/Easy3wFlow/index.js +0 -546
- package/lib/Easy3wFormPage/index.js +0 -1591
- package/lib/Easy3wGetCookie/index.js +0 -14
- package/lib/Easy3wGlobalFooter/index.js +0 -73
- package/lib/Easy3wGlobalHeader/index.js +0 -148
- package/lib/Easy3wGridCheckBox/index.js +0 -69
- package/lib/Easy3wGridDatePicker/index.js +0 -90
- package/lib/Easy3wGridDateTimePicker/index.js +0 -122
- package/lib/Easy3wGridInput/index.js +0 -85
- package/lib/Easy3wGridInputNumber/index.js +0 -83
- package/lib/Easy3wGridInputNumberFormat/index.js +0 -93
- package/lib/Easy3wGridPage/index.js +0 -593
- package/lib/Easy3wGridRadio/index.js +0 -70
- package/lib/Easy3wGridSelect/index.js +0 -93
- package/lib/Easy3wGridTextArea/index.js +0 -84
- package/lib/Easy3wInput/index.js +0 -48
- package/lib/Easy3wLogin/index.js +0 -386
- package/lib/Easy3wLoginLayout/index.js +0 -628
- package/lib/Easy3wModal/index.js +0 -143
- package/lib/Easy3wPositionButton/index.js +0 -99
- package/lib/Easy3wQryGrid/index.js +0 -670
- package/lib/Easy3wResult/index.js +0 -77
- package/lib/Easy3wSetCookie/index.js +0 -13
- package/lib/Easy3wSpin/index.js +0 -69
- package/lib/Easy3wTabs/index.js +0 -89
- package/lib/Easy3wTagSelect/index.js +0 -238
- package/lib/Easy3wTagSelect/index.less +0 -120
- package/lib/Easy3wUpload/index.js +0 -507
- package/lib/Easy3wUploadB/index copy 2.js +0 -1011
- package/lib/Easy3wUploadB/index copy.js +0 -1020
- package/lib/Easy3wUploadB/index.js +0 -1039
- package/lib/Easy3wUploadM/index.js +0 -506
- package/lib/Easy3wUserLayout/index.js +0 -138
- package/lib/index.js +0 -383
package/assets/login.css
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
|
|
2
|
-
/* stylelint-disable no-duplicate-selectors */
|
|
3
|
-
/* stylelint-disable */
|
|
4
|
-
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
|
|
5
|
-
.e3wLoginMain {
|
|
6
|
-
width: 368px;
|
|
7
|
-
margin: 0 auto;
|
|
8
|
-
z-index: 100;
|
|
9
|
-
}
|
|
10
|
-
.e3wLoginMain .e3wLoginTabs {
|
|
11
|
-
padding: 0 2px;
|
|
12
|
-
margin: 0 -2px;
|
|
13
|
-
}
|
|
14
|
-
.e3wLoginMain .e3wLoginTabs :global .ant-tabs-tab {
|
|
15
|
-
font-size: 16px;
|
|
16
|
-
line-height: 24px;
|
|
17
|
-
}
|
|
18
|
-
.e3wLoginMain .e3wLoginTabs :global .ant-input-affix-wrapper .ant-input:not(:first-child) {
|
|
19
|
-
padding-left: 34px;
|
|
20
|
-
}
|
|
21
|
-
.e3wLoginMain :global .ant-tabs .ant-tabs-bar {
|
|
22
|
-
border-bottom: 0;
|
|
23
|
-
margin-bottom: 24px;
|
|
24
|
-
text-align: center;
|
|
25
|
-
}
|
|
26
|
-
.e3wLoginMain :global .ant-form-item {
|
|
27
|
-
margin-bottom: 24px;
|
|
28
|
-
}
|
|
29
|
-
.e3wLoginMain :global .ant-tooltip-inner {
|
|
30
|
-
background-color: #fff;
|
|
31
|
-
}
|
|
32
|
-
.e3wLoginMain .e3wLoginPrefixIcon {
|
|
33
|
-
font-size: 14px;
|
|
34
|
-
color: rgba(0, 0, 0, 0.25);
|
|
35
|
-
}
|
|
36
|
-
.e3wLoginMain .e3wLoginAdditional {
|
|
37
|
-
text-align: left;
|
|
38
|
-
}
|
|
39
|
-
.e3wLoginMain .e3wLoginAdditional .e3wLoginForgot {
|
|
40
|
-
float: right;
|
|
41
|
-
margin-right: 12px;
|
|
42
|
-
}
|
|
43
|
-
.e3wLoginMain .e3wLoginAdditional .e3wLoginSubmit {
|
|
44
|
-
width: 100%;
|
|
45
|
-
margin-top: 24px;
|
|
46
|
-
display: block;
|
|
47
|
-
}
|
|
48
|
-
.e3wLoginMain .e3wLoginAdditional :global .ant-form-item-control {
|
|
49
|
-
line-height: 22px;
|
|
50
|
-
}
|
|
51
|
-
.e3wLoginMain .e3wLoginOther {
|
|
52
|
-
text-align: left;
|
|
53
|
-
line-height: 22px;
|
|
54
|
-
}
|
|
55
|
-
.e3wLoginMain .e3wLoginOther .e3wLoginRegister {
|
|
56
|
-
float: right;
|
|
57
|
-
margin-right: 12px;
|
|
58
|
-
}
|
|
59
|
-
.e3wLoginMain #pop {
|
|
60
|
-
color: #5468ae;
|
|
61
|
-
}
|
package/assets/loginLayout.css
DELETED
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
|
|
2
|
-
/* stylelint-disable no-duplicate-selectors */
|
|
3
|
-
/* stylelint-disable */
|
|
4
|
-
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
|
|
5
|
-
.e3wLoginLayoutHeader {
|
|
6
|
-
padding: 0 12px 0 0;
|
|
7
|
-
background: #fff;
|
|
8
|
-
box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
|
|
9
|
-
position: relative;
|
|
10
|
-
}
|
|
11
|
-
.e3wLoginLayoutHeader h1 {
|
|
12
|
-
color: #000;
|
|
13
|
-
display: inline-block;
|
|
14
|
-
vertical-align: middle;
|
|
15
|
-
font-size: 14px;
|
|
16
|
-
font-family: 'Myriad Pro', 'Helvetica Neue', Arial, Helvetica, sans-serif;
|
|
17
|
-
font-weight: 400;
|
|
18
|
-
}
|
|
19
|
-
.e3wLoginLayoutLogo {
|
|
20
|
-
height: 64px;
|
|
21
|
-
position: relative;
|
|
22
|
-
line-height: 64px;
|
|
23
|
-
padding-left: 35px;
|
|
24
|
-
transition: all .3s;
|
|
25
|
-
background: #fff;
|
|
26
|
-
overflow: hidden;
|
|
27
|
-
}
|
|
28
|
-
.e3wLoginLayoutLogo img {
|
|
29
|
-
display: inline-block;
|
|
30
|
-
vertical-align: middle;
|
|
31
|
-
height: 24px;
|
|
32
|
-
}
|
|
33
|
-
.e3wLoginLayoutLogo h1 {
|
|
34
|
-
color: #fff;
|
|
35
|
-
display: inline-block;
|
|
36
|
-
vertical-align: middle;
|
|
37
|
-
font-size: 20px;
|
|
38
|
-
margin: 0 0 0 12px;
|
|
39
|
-
font-family: 'Myriad Pro', 'Helvetica Neue', Arial, Helvetica, sans-serif;
|
|
40
|
-
font-weight: 600;
|
|
41
|
-
}
|
|
42
|
-
.e3wLoginLayoutTrigger {
|
|
43
|
-
font-size: 20px;
|
|
44
|
-
line-height: 64px;
|
|
45
|
-
cursor: pointer;
|
|
46
|
-
transition: all .3s;
|
|
47
|
-
padding: 0 24px;
|
|
48
|
-
}
|
|
49
|
-
.e3wLoginLayoutTrigger:hover {
|
|
50
|
-
background: #e6f7ff;
|
|
51
|
-
}
|
|
52
|
-
.e3wLoginLayoutRight {
|
|
53
|
-
float: right;
|
|
54
|
-
height: 100%;
|
|
55
|
-
}
|
|
56
|
-
.e3wLoginLayoutRight .schedule {
|
|
57
|
-
cursor: pointer;
|
|
58
|
-
padding: 12px 12px;
|
|
59
|
-
display: inline-block;
|
|
60
|
-
transition: all .3s;
|
|
61
|
-
height: 100%;
|
|
62
|
-
}
|
|
63
|
-
.e3wLoginLayoutRight .schedule > i {
|
|
64
|
-
font-size: 14px;
|
|
65
|
-
vertical-align: middle;
|
|
66
|
-
}
|
|
67
|
-
.e3wLoginLayoutRight .schedule:global(.ant-popover-open),
|
|
68
|
-
.e3wLoginLayoutRight .schedule:hover {
|
|
69
|
-
background: #e6f7ff;
|
|
70
|
-
}
|
|
71
|
-
.e3wLoginLayoutRight .e3wLoginLayoutAction {
|
|
72
|
-
cursor: pointer;
|
|
73
|
-
padding: 0 12px;
|
|
74
|
-
display: inline-block;
|
|
75
|
-
transition: all .3s;
|
|
76
|
-
height: 100%;
|
|
77
|
-
}
|
|
78
|
-
.e3wLoginLayoutRight .e3wLoginLayoutAction > i {
|
|
79
|
-
font-size: 14px;
|
|
80
|
-
vertical-align: middle;
|
|
81
|
-
}
|
|
82
|
-
.e3wLoginLayoutRight .e3wLoginLayoutAction:global(.ant-popover-open),
|
|
83
|
-
.e3wLoginLayoutRight .e3wLoginLayoutAction:hover {
|
|
84
|
-
background: #e6f7ff;
|
|
85
|
-
}
|
|
86
|
-
.e3wLoginLayoutRight .search {
|
|
87
|
-
padding: 0;
|
|
88
|
-
margin: 0 12px;
|
|
89
|
-
}
|
|
90
|
-
.e3wLoginLayoutRight .search:hover {
|
|
91
|
-
background: transparent;
|
|
92
|
-
}
|
|
93
|
-
.e3wLoginLayoutRight .e3wLoginLayoutAccount .e3wLoginLayoutAvatar {
|
|
94
|
-
margin: 20px 8px 20px 0;
|
|
95
|
-
color: #1890ff;
|
|
96
|
-
background: rgba(255, 255, 255, 0.85);
|
|
97
|
-
vertical-align: middle;
|
|
98
|
-
}
|
|
99
|
-
.e3wLoginLayoutRight .e3wLoginLayoutIcon {
|
|
100
|
-
font-size: 14px;
|
|
101
|
-
padding: 4px;
|
|
102
|
-
}
|
|
103
|
-
.e3wLoginLayoutMenu :global(.anticon) {
|
|
104
|
-
margin-right: 8px;
|
|
105
|
-
}
|
|
106
|
-
.e3wLoginLayoutMenu :global(.ant-dropdown-menu-item) {
|
|
107
|
-
width: 160px;
|
|
108
|
-
}
|
|
109
|
-
.e3wLoginLayoutSider {
|
|
110
|
-
min-height: 100vh;
|
|
111
|
-
box-shadow: 2px 0 6px rgba(0, 21, 41, 0.35);
|
|
112
|
-
position: relative;
|
|
113
|
-
z-index: 10;
|
|
114
|
-
background: #21273f;
|
|
115
|
-
}
|
package/assets/modal.css
DELETED
|
File without changes
|
package/assets/result.css
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
|
|
2
|
-
/* stylelint-disable no-duplicate-selectors */
|
|
3
|
-
/* stylelint-disable */
|
|
4
|
-
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
|
|
5
|
-
.e3wResult {
|
|
6
|
-
text-align: center;
|
|
7
|
-
width: 72%;
|
|
8
|
-
margin: 0 auto;
|
|
9
|
-
}
|
|
10
|
-
.e3wResult .e3wResultIcon {
|
|
11
|
-
font-size: 72px;
|
|
12
|
-
line-height: 72px;
|
|
13
|
-
margin-bottom: 24px;
|
|
14
|
-
}
|
|
15
|
-
.e3wResult .e3wResultIcon > .e3wResultSuccess {
|
|
16
|
-
color: #52c41a;
|
|
17
|
-
}
|
|
18
|
-
.e3wResult .e3wResultIcon > .e3wResultError {
|
|
19
|
-
color: #f5222d;
|
|
20
|
-
}
|
|
21
|
-
.e3wResult .e3wResultTitle {
|
|
22
|
-
font-size: 24px;
|
|
23
|
-
color: rgba(0, 0, 0, 0.85);
|
|
24
|
-
font-weight: 500;
|
|
25
|
-
line-height: 32px;
|
|
26
|
-
margin-bottom: 16px;
|
|
27
|
-
}
|
|
28
|
-
.e3wResult .e3wResultDescription {
|
|
29
|
-
font-size: 14px;
|
|
30
|
-
line-height: 22px;
|
|
31
|
-
color: rgba(0, 0, 0, 0.45);
|
|
32
|
-
margin-bottom: 24px;
|
|
33
|
-
}
|
|
34
|
-
.e3wResult .e3wResultExtra {
|
|
35
|
-
background: #fafafa;
|
|
36
|
-
padding: 24px 40px;
|
|
37
|
-
border-radius: 2px;
|
|
38
|
-
text-align: left;
|
|
39
|
-
}
|
|
40
|
-
.e3wResult .e3wResultActions {
|
|
41
|
-
margin-top: 32px;
|
|
42
|
-
}
|
|
43
|
-
.e3wResult .e3wResultActions e3wResultButton:not(:last-child) {
|
|
44
|
-
margin-right: 8px;
|
|
45
|
-
}
|
package/assets/userLayout.css
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
|
|
2
|
-
/* stylelint-disable no-duplicate-selectors */
|
|
3
|
-
/* stylelint-disable */
|
|
4
|
-
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
|
|
5
|
-
.e3wUserLayoutContainer {
|
|
6
|
-
background: #f0f2f5;
|
|
7
|
-
width: 100%;
|
|
8
|
-
min-height: 100%;
|
|
9
|
-
background-repeat: no-repeat;
|
|
10
|
-
background-position: center;
|
|
11
|
-
background-size: 100%;
|
|
12
|
-
padding: 40px 0 0 0;
|
|
13
|
-
position: relative;
|
|
14
|
-
}
|
|
15
|
-
.e3wUserLayoutTop {
|
|
16
|
-
text-align: center;
|
|
17
|
-
}
|
|
18
|
-
.e3wUserLayoutHeader {
|
|
19
|
-
padding: 0 12px 0 0;
|
|
20
|
-
background: #fff;
|
|
21
|
-
box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
|
|
22
|
-
position: relative;
|
|
23
|
-
}
|
|
24
|
-
.e3wUserLayoutRight {
|
|
25
|
-
float: right;
|
|
26
|
-
height: 100%;
|
|
27
|
-
}
|
|
28
|
-
.e3wUserLayoutLogo {
|
|
29
|
-
float: left;
|
|
30
|
-
height: 100%;
|
|
31
|
-
line-height: 64px;
|
|
32
|
-
padding-left: 24px;
|
|
33
|
-
transition: all .3s;
|
|
34
|
-
overflow: hidden;
|
|
35
|
-
}
|
|
36
|
-
.e3wUserLayoutLogo img {
|
|
37
|
-
display: inline-block;
|
|
38
|
-
vertical-align: middle;
|
|
39
|
-
height: 32px;
|
|
40
|
-
}
|
|
41
|
-
.e3wUserLayoutLogo h1 {
|
|
42
|
-
color: #000;
|
|
43
|
-
display: inline-block;
|
|
44
|
-
vertical-align: middle;
|
|
45
|
-
font-size: 14px;
|
|
46
|
-
margin: 0 0 0 12px;
|
|
47
|
-
font-family: AppleSystemUIFont, 'Myriad Pro', 'Helvetica Neue', Arial, Helvetica, sans-serif;
|
|
48
|
-
font-weight: 400;
|
|
49
|
-
}
|
|
50
|
-
.e3wUserLayoutTitle {
|
|
51
|
-
font-size: 33px;
|
|
52
|
-
color: rgba(0, 0, 0, 0.85);
|
|
53
|
-
font-family: 'Myriad Pro', 'Helvetica Neue', Arial, Helvetica, sans-serif;
|
|
54
|
-
font-weight: 600;
|
|
55
|
-
position: relative;
|
|
56
|
-
top: 2px;
|
|
57
|
-
}
|
|
58
|
-
.e3wUserLayoutDesc {
|
|
59
|
-
font-size: 14px;
|
|
60
|
-
color: rgba(0, 0, 0, 0.45);
|
|
61
|
-
margin-top: 12px;
|
|
62
|
-
margin-bottom: 40px;
|
|
63
|
-
}
|
|
64
|
-
.e3wUserLayoutFooter {
|
|
65
|
-
bottom: 0px;
|
|
66
|
-
left: 0px;
|
|
67
|
-
width: 100%;
|
|
68
|
-
height: 50px;
|
|
69
|
-
z-index: 99;
|
|
70
|
-
}
|
package/lib/Easy3wA/index.js
DELETED
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
|
|
5
|
-
var _extends2 = require('babel-runtime/helpers/extends');
|
|
6
|
-
|
|
7
|
-
var _extends3 = _interopRequireDefault(_extends2);
|
|
8
|
-
|
|
9
|
-
var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties');
|
|
10
|
-
|
|
11
|
-
var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2);
|
|
12
|
-
|
|
13
|
-
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
|
|
14
|
-
|
|
15
|
-
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
|
|
16
|
-
|
|
17
|
-
var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');
|
|
18
|
-
|
|
19
|
-
var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
|
|
20
|
-
|
|
21
|
-
var _inherits2 = require('babel-runtime/helpers/inherits');
|
|
22
|
-
|
|
23
|
-
var _inherits3 = _interopRequireDefault(_inherits2);
|
|
24
|
-
|
|
25
|
-
var _react = require('react');
|
|
26
|
-
|
|
27
|
-
var _react2 = _interopRequireDefault(_react);
|
|
28
|
-
|
|
29
|
-
require('antd/lib/icon/style');
|
|
30
|
-
|
|
31
|
-
var _notification = require('antd/lib/notification');
|
|
32
|
-
|
|
33
|
-
var _notification2 = _interopRequireDefault(_notification);
|
|
34
|
-
|
|
35
|
-
require('antd/lib/notification/style');
|
|
36
|
-
|
|
37
|
-
var _dva = require('dva');
|
|
38
|
-
|
|
39
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
40
|
-
|
|
41
|
-
var Easy3wA = function (_Component) {
|
|
42
|
-
(0, _inherits3['default'])(Easy3wA, _Component);
|
|
43
|
-
|
|
44
|
-
function Easy3wA() {
|
|
45
|
-
var _temp, _this, _ret;
|
|
46
|
-
|
|
47
|
-
(0, _classCallCheck3['default'])(this, Easy3wA);
|
|
48
|
-
|
|
49
|
-
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
|
|
50
|
-
args[_key] = arguments[_key];
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
return _ret = (_temp = (_this = (0, _possibleConstructorReturn3['default'])(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.onClickFunc = function (e, func) {
|
|
54
|
-
var globalLoading = _this.props.loading.global;
|
|
55
|
-
if (globalLoading) {
|
|
56
|
-
_notification2['default'].warning({
|
|
57
|
-
message: '温馨提示',
|
|
58
|
-
description: '正在后台处理,请稍后!',
|
|
59
|
-
duration: 3
|
|
60
|
-
});
|
|
61
|
-
} else {
|
|
62
|
-
func(e);
|
|
63
|
-
}
|
|
64
|
-
}, _temp), (0, _possibleConstructorReturn3['default'])(_this, _ret);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
Easy3wA.prototype.render = function render() {
|
|
68
|
-
var _this2 = this;
|
|
69
|
-
|
|
70
|
-
var _props = this.props,
|
|
71
|
-
children = _props.children,
|
|
72
|
-
onClick = _props.onClick,
|
|
73
|
-
notPrevent = _props.notPrevent,
|
|
74
|
-
otherProps = (0, _objectWithoutProperties3['default'])(_props, ['children', 'onClick', 'notPrevent']);
|
|
75
|
-
|
|
76
|
-
if (notPrevent) {
|
|
77
|
-
return _react2['default'].createElement(
|
|
78
|
-
'a',
|
|
79
|
-
this.props,
|
|
80
|
-
children || ''
|
|
81
|
-
);
|
|
82
|
-
}
|
|
83
|
-
return _react2['default'].createElement(
|
|
84
|
-
'a',
|
|
85
|
-
(0, _extends3['default'])({}, otherProps, { onClick: onClick ? function (e) {
|
|
86
|
-
return _this2.onClickFunc(e, onClick);
|
|
87
|
-
} : '' }),
|
|
88
|
-
children || ''
|
|
89
|
-
);
|
|
90
|
-
};
|
|
91
|
-
|
|
92
|
-
return Easy3wA;
|
|
93
|
-
}(_react.Component);
|
|
94
|
-
|
|
95
|
-
exports['default'] = (0, _dva.connect)(function (state) {
|
|
96
|
-
return {
|
|
97
|
-
loading: state.loading
|
|
98
|
-
};
|
|
99
|
-
})(Easy3wA);
|
|
100
|
-
module.exports = exports['default'];
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports['default'] = Easy3wAESDecrypt;
|
|
5
|
-
|
|
6
|
-
var _base64Url = require('base64-url');
|
|
7
|
-
|
|
8
|
-
var _base64Url2 = _interopRequireDefault(_base64Url);
|
|
9
|
-
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
11
|
-
|
|
12
|
-
function Easy3wAESDecrypt(cipherText, AESKey, AESIV) {
|
|
13
|
-
var text = _base64Url2['default'].decode(cipherText);
|
|
14
|
-
var CryptoJS = require('crypto-js');
|
|
15
|
-
var keyStr = CryptoJS.enc.Utf8.parse(AESKey);
|
|
16
|
-
var ivStr = CryptoJS.enc.Utf8.parse(AESIV);
|
|
17
|
-
var bytes = CryptoJS.AES.decrypt(text, keyStr, { iv: ivStr, mode: CryptoJS.mode.CBC, padding: CryptoJS.pad.Pkcs7 });
|
|
18
|
-
var originalText = bytes.toString(CryptoJS.enc.Utf8);
|
|
19
|
-
return originalText;
|
|
20
|
-
}
|
|
21
|
-
module.exports = exports['default'];
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports['default'] = Easy3wAESEncrypt;
|
|
5
|
-
|
|
6
|
-
var _base64Url = require('base64-url');
|
|
7
|
-
|
|
8
|
-
var _base64Url2 = _interopRequireDefault(_base64Url);
|
|
9
|
-
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
11
|
-
|
|
12
|
-
function Easy3wAESEncrypt(data, AESKey, AESIV) {
|
|
13
|
-
var CryptoJS = require('crypto-js');
|
|
14
|
-
var srcData = CryptoJS.enc.Utf8.parse(data);
|
|
15
|
-
var keyStr = CryptoJS.enc.Utf8.parse(AESKey);
|
|
16
|
-
var ivStr = CryptoJS.enc.Utf8.parse(AESIV);
|
|
17
|
-
var ciphertext = CryptoJS.AES.encrypt(srcData, keyStr, { iv: ivStr, mode: CryptoJS.mode.CBC, padding: CryptoJS.pad.Pkcs7 }).toString();
|
|
18
|
-
return _base64Url2['default'].encode(ciphertext);
|
|
19
|
-
}
|
|
20
|
-
module.exports = exports['default'];
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
|
|
5
|
-
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
|
|
6
|
-
|
|
7
|
-
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
|
|
8
|
-
|
|
9
|
-
var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');
|
|
10
|
-
|
|
11
|
-
var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
|
|
12
|
-
|
|
13
|
-
var _inherits2 = require('babel-runtime/helpers/inherits');
|
|
14
|
-
|
|
15
|
-
var _inherits3 = _interopRequireDefault(_inherits2);
|
|
16
|
-
|
|
17
|
-
var _react = require('react');
|
|
18
|
-
|
|
19
|
-
var _react2 = _interopRequireDefault(_react);
|
|
20
|
-
|
|
21
|
-
var _router = require('dva/router');
|
|
22
|
-
|
|
23
|
-
var _reactDocumentTitle = require('react-document-title');
|
|
24
|
-
|
|
25
|
-
var _reactDocumentTitle2 = _interopRequireDefault(_reactDocumentTitle);
|
|
26
|
-
|
|
27
|
-
var _icon = require('antd/lib/icon');
|
|
28
|
-
|
|
29
|
-
var _icon2 = _interopRequireDefault(_icon);
|
|
30
|
-
|
|
31
|
-
require('antd/lib/icon/style');
|
|
32
|
-
|
|
33
|
-
var _layout = require('antd/lib/layout');
|
|
34
|
-
|
|
35
|
-
var _layout2 = _interopRequireDefault(_layout);
|
|
36
|
-
|
|
37
|
-
require('antd/lib/layout/style');
|
|
38
|
-
|
|
39
|
-
var _classnames = require('classnames');
|
|
40
|
-
|
|
41
|
-
var _classnames2 = _interopRequireDefault(_classnames);
|
|
42
|
-
|
|
43
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
|
44
|
-
|
|
45
|
-
var Content = _layout2['default'].Content;
|
|
46
|
-
|
|
47
|
-
var Easy3wBlankLayout = function (_React$PureComponent) {
|
|
48
|
-
(0, _inherits3['default'])(Easy3wBlankLayout, _React$PureComponent);
|
|
49
|
-
|
|
50
|
-
function Easy3wBlankLayout() {
|
|
51
|
-
(0, _classCallCheck3['default'])(this, Easy3wBlankLayout);
|
|
52
|
-
return (0, _possibleConstructorReturn3['default'])(this, _React$PureComponent.apply(this, arguments));
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
Easy3wBlankLayout.prototype.getChildContext = function getChildContext() {
|
|
56
|
-
var location = this.props.location;
|
|
57
|
-
|
|
58
|
-
return { location: location };
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
Easy3wBlankLayout.prototype.render = function render() {
|
|
62
|
-
var _this2 = this;
|
|
63
|
-
|
|
64
|
-
var _props = this.props,
|
|
65
|
-
getRouteData = _props.getRouteData,
|
|
66
|
-
rootRedirectPath = _props.rootRedirectPath,
|
|
67
|
-
routeDataLayout = _props.routeDataLayout;
|
|
68
|
-
|
|
69
|
-
var getPageTitle = function getPageTitle() {
|
|
70
|
-
var _props2 = _this2.props,
|
|
71
|
-
location = _props2.location,
|
|
72
|
-
systemName = _props2.systemName;
|
|
73
|
-
var pathname = location.pathname;
|
|
74
|
-
|
|
75
|
-
var title = systemName;
|
|
76
|
-
getRouteData('' + routeDataLayout).forEach(function (item) {
|
|
77
|
-
if (item.path === pathname) {
|
|
78
|
-
title = item.name + ' - ' + systemName;
|
|
79
|
-
}
|
|
80
|
-
});
|
|
81
|
-
return title;
|
|
82
|
-
};
|
|
83
|
-
return _react2['default'].createElement(
|
|
84
|
-
_reactDocumentTitle2['default'],
|
|
85
|
-
{ title: getPageTitle() },
|
|
86
|
-
_react2['default'].createElement(
|
|
87
|
-
_layout2['default'],
|
|
88
|
-
null,
|
|
89
|
-
_react2['default'].createElement(
|
|
90
|
-
Content,
|
|
91
|
-
null,
|
|
92
|
-
_react2['default'].createElement(
|
|
93
|
-
_router.Switch,
|
|
94
|
-
null,
|
|
95
|
-
getRouteData('' + routeDataLayout).map(function (item) {
|
|
96
|
-
return _react2['default'].createElement(_router.Route, {
|
|
97
|
-
exact: item.exact,
|
|
98
|
-
key: item.path,
|
|
99
|
-
path: item.path,
|
|
100
|
-
component: item.component
|
|
101
|
-
});
|
|
102
|
-
}),
|
|
103
|
-
_react2['default'].createElement(_router.Redirect, { exact: true, from: '/', to: rootRedirectPath })
|
|
104
|
-
)
|
|
105
|
-
)
|
|
106
|
-
)
|
|
107
|
-
);
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
return Easy3wBlankLayout;
|
|
111
|
-
}(_react2['default'].PureComponent);
|
|
112
|
-
|
|
113
|
-
exports['default'] = Easy3wBlankLayout;
|
|
114
|
-
module.exports = exports['default'];
|