aldehyde 0.2.134 → 0.2.136
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/lib/controls/action/index.d.ts +8 -3
- package/lib/controls/action/index.d.ts.map +1 -1
- package/lib/controls/action/index.js +36 -12
- package/lib/controls/action/index.js.map +1 -1
- package/lib/detail/edit/fields-edit-card.d.ts +3 -3
- package/lib/detail/edit/fields-edit-card.d.ts.map +1 -1
- package/lib/detail/edit/fields-edit-card.js +5 -6
- package/lib/detail/edit/fields-edit-card.js.map +1 -1
- package/lib/form/fields-form.d.ts +1 -1
- package/lib/form/fields-form.d.ts.map +1 -1
- package/lib/form/fields-form.js.map +1 -1
- package/lib/login/login.d.ts +4 -0
- package/lib/login/login.d.ts.map +1 -1
- package/lib/login/login.js +32 -25
- package/lib/login/login.js.map +1 -1
- package/lib/login/vertify/index.css +144 -0
- package/lib/login/vertify/index.d.ts +78 -0
- package/lib/login/vertify/index.d.ts.map +1 -0
- package/lib/login/vertify/index.js +210 -0
- package/lib/login/vertify/index.js.map +1 -0
- package/lib/login/vertify/tool.d.ts +5 -0
- package/lib/login/vertify/tool.d.ts.map +1 -0
- package/lib/login/vertify/tool.js +11 -0
- package/lib/login/vertify/tool.js.map +1 -0
- package/lib/module/block-menu-tree-drawer.js +1 -1
- package/lib/module/block-menu-tree-drawer.js.map +1 -1
- package/lib/tmpl/interface.d.ts +25 -25
- package/lib/tmpl/interface.d.ts.map +1 -1
- package/lib/units/index.d.ts.map +1 -1
- package/lib/units/index.js.map +1 -1
- package/lib/welcome/HCWelcome.js +1 -17
- package/lib/welcome/HCWelcome.js.map +1 -1
- package/package.json +1 -1
- package/src/aldehyde/controls/action/index.tsx +50 -14
- package/src/aldehyde/detail/edit/fields-edit-card.tsx +9 -8
- package/src/aldehyde/form/fields-form.tsx +2 -2
- package/src/aldehyde/login/login.tsx +115 -79
- package/src/aldehyde/login/vertify/index.css +144 -0
- package/src/aldehyde/login/vertify/index.tsx +360 -0
- package/src/aldehyde/login/vertify/tool.ts +13 -0
- package/src/aldehyde/module/block-menu-tree-drawer.tsx +1 -1
- package/src/aldehyde/tmpl/interface.tsx +25 -25
- package/src/aldehyde/units/index.tsx +1 -0
- package/src/aldehyde/welcome/HCWelcome.js +20 -20
package/lib/welcome/HCWelcome.js
CHANGED
|
@@ -177,23 +177,7 @@ class HCWelcome extends React.Component {
|
|
|
177
177
|
React.createElement(Card, { className: "hovercard", title: React.createElement(BarChartOutlined, { style: { "fontSize": 30 } }) },
|
|
178
178
|
React.createElement(Row, { gutter: [{ xs: 4, sm: 8, md: 12, lg: 16 }, { xs: 4, sm: 8, md: 12, lg: 16 }] },
|
|
179
179
|
React.createElement(Col, { span: 16, style: { 'height': '400px' }, id: 'echart1' }),
|
|
180
|
-
React.createElement(Col, { span: 8, style: { 'height': '400px' }, id: 'echart2' })))))))
|
|
181
|
-
React.createElement(Row, null,
|
|
182
|
-
React.createElement(Col, null,
|
|
183
|
-
React.createElement(Button, { onClick: () => {
|
|
184
|
-
this.setState({
|
|
185
|
-
openDrawer: !this.state.openDrawer
|
|
186
|
-
});
|
|
187
|
-
} }, "\u6253\u5F00\u6743\u9650"))),
|
|
188
|
-
React.createElement(BlockMenuAuthTreeDrawer, { onCancel: () => {
|
|
189
|
-
this.setState({
|
|
190
|
-
openDrawer: false
|
|
191
|
-
});
|
|
192
|
-
}, onOk: () => {
|
|
193
|
-
this.setState({
|
|
194
|
-
openDrawer: false
|
|
195
|
-
});
|
|
196
|
-
}, open: openDrawer, roleCode: '374901611447492611' }));
|
|
180
|
+
React.createElement(Col, { span: 8, style: { 'height': '400px' }, id: 'echart2' }))))))));
|
|
197
181
|
}
|
|
198
182
|
}
|
|
199
183
|
export default withRouter(HCWelcome);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HCWelcome.js","sourceRoot":"","sources":["../../../../src/aldehyde/welcome/HCWelcome.js"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,K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"antd";
|
|
10
10
|
import "./index.css";
|
|
11
|
-
import { ActionConfig, DtmplData } from "../../tmpl/interface";
|
|
11
|
+
import { ActionConfig, DtmplData,DtmplConfig,LtmplConfig } from "../../tmpl/interface";
|
|
12
12
|
import { FormInstance } from "antd/lib/form/hooks/useForm";
|
|
13
13
|
import FieldsEditCard from "../../detail/edit/fields-edit-card";
|
|
14
14
|
import { SizeType } from "antd/lib/config-provider/SizeContext";
|
|
@@ -16,6 +16,7 @@ import ActionUtils from "./utils";
|
|
|
16
16
|
import Icon from "../../icon";
|
|
17
17
|
import { ButtonType } from "antd/lib/button";
|
|
18
18
|
import { LocaleContext } from "../../locale/LocaleProvider";
|
|
19
|
+
import ProgramConfig from "../../units";
|
|
19
20
|
|
|
20
21
|
export type ActionButtonIconType = "icon" | "icon-title" | "title";
|
|
21
22
|
export type ActionButtonType = "primary-block" | "dashed" | "primary";
|
|
@@ -25,18 +26,21 @@ interface ActionProps {
|
|
|
25
26
|
serverKey?: string;
|
|
26
27
|
disabled?: boolean;
|
|
27
28
|
actionConfig: ActionConfig;
|
|
29
|
+
// ltmplConfig:LtmplConfig,
|
|
28
30
|
data?: DtmplData[] | object[];
|
|
29
|
-
formRef?: RefObject<FormInstance>;
|
|
30
31
|
doAction: (string, Array, object) => void;
|
|
31
32
|
serial?: number;
|
|
32
33
|
buttonType?: ActionButtonType;
|
|
33
34
|
hiddenType?: ActionButtonHiddenType;
|
|
34
35
|
buttonSize?: SizeType;
|
|
35
36
|
iconType: ActionButtonIconType;
|
|
37
|
+
formRef?: RefObject<FormInstance>;
|
|
36
38
|
}
|
|
37
39
|
|
|
38
40
|
interface ActionState {
|
|
39
41
|
popoverOpen?: boolean;
|
|
42
|
+
appDtmplConfig?: DtmplConfig,
|
|
43
|
+
formRef?:RefObject<FormInstance>
|
|
40
44
|
}
|
|
41
45
|
|
|
42
46
|
export default class Action extends React.PureComponent<
|
|
@@ -47,17 +51,27 @@ export default class Action extends React.PureComponent<
|
|
|
47
51
|
hiddenType: "hidden",
|
|
48
52
|
buttonSize: undefined,
|
|
49
53
|
iconType: "icon-title",
|
|
54
|
+
//formRef:React.createRef<FormInstance>(),
|
|
50
55
|
};
|
|
51
56
|
static contextType = LocaleContext;
|
|
52
57
|
context: React.ContextType<typeof LocaleContext>;
|
|
53
58
|
|
|
54
59
|
state = {
|
|
55
60
|
popoverOpen: false,
|
|
61
|
+
appDtmplConfig:null,
|
|
62
|
+
formRef:React.createRef<FormInstance>()
|
|
56
63
|
};
|
|
57
64
|
|
|
58
65
|
componentDidMount() {
|
|
59
|
-
const {} = this.props;
|
|
60
|
-
|
|
66
|
+
const {data,actionConfig} = this.props;
|
|
67
|
+
let appDtmplConfig = ProgramConfig.getAppDtmplConfig(
|
|
68
|
+
{id:actionConfig.id,"groups":[{"fields":actionConfig.writes}]},
|
|
69
|
+
data && data[0] && data[0]['fieldMap'] ? {...data[0]} : {fieldMap:{...data[0]}},
|
|
70
|
+
null
|
|
71
|
+
);
|
|
72
|
+
|
|
73
|
+
this.setState({appDtmplConfig
|
|
74
|
+
});
|
|
61
75
|
}
|
|
62
76
|
|
|
63
77
|
componentDidUpdate(prevProps) {
|
|
@@ -66,19 +80,28 @@ export default class Action extends React.PureComponent<
|
|
|
66
80
|
// this.setState({collapse:!this.state.collapse})
|
|
67
81
|
}
|
|
68
82
|
}
|
|
69
|
-
|
|
83
|
+
//formRef = React.createRef<FormInstance>();
|
|
70
84
|
isShow = () => {
|
|
71
|
-
const { actionConfig, data
|
|
72
|
-
return ActionUtils.isShow(actionConfig, data,
|
|
85
|
+
const { actionConfig, data } = this.props;
|
|
86
|
+
return ActionUtils.isShow(actionConfig, data, this.getFormRef());
|
|
73
87
|
};
|
|
74
88
|
|
|
89
|
+
getFormRef=()=>{
|
|
90
|
+
const { formRef } = this.props;
|
|
91
|
+
if(formRef){
|
|
92
|
+
return formRef;
|
|
93
|
+
}else {
|
|
94
|
+
return this.state.formRef;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
75
98
|
getValue = () => {
|
|
76
|
-
const { data,
|
|
99
|
+
const { data, actionConfig } = this.props;
|
|
77
100
|
let value = {};
|
|
78
101
|
//从 dtmplData 与 ref
|
|
79
102
|
//dtmplData取第一个
|
|
80
103
|
let dtmplValue = data ? data[0] : undefined;
|
|
81
|
-
let upperFormValue =
|
|
104
|
+
let upperFormValue = this.getFormRef().current ;
|
|
82
105
|
for (let fieldConfig of actionConfig.writes) {
|
|
83
106
|
if (!fieldConfig) {
|
|
84
107
|
continue;
|
|
@@ -86,7 +109,7 @@ export default class Action extends React.PureComponent<
|
|
|
86
109
|
if (upperFormValue) {
|
|
87
110
|
if (upperFormValue.getFieldValue(fieldConfig.id)) {
|
|
88
111
|
value[fieldConfig.id] = ActionUtils.getFormRefValue(
|
|
89
|
-
|
|
112
|
+
this.getFormRef().current,
|
|
90
113
|
fieldConfig.id
|
|
91
114
|
);
|
|
92
115
|
} else {
|
|
@@ -132,10 +155,22 @@ export default class Action extends React.PureComponent<
|
|
|
132
155
|
popoverOpen: false,
|
|
133
156
|
});
|
|
134
157
|
};
|
|
135
|
-
onValuesChange = (value: object) => {
|
|
136
|
-
const {
|
|
137
|
-
|
|
138
|
-
|
|
158
|
+
onValuesChange = (value: object,allValues) => {
|
|
159
|
+
const { data } = this.props;
|
|
160
|
+
const { appDtmplConfig } = this.state;
|
|
161
|
+
if (this.getFormRef().current) {
|
|
162
|
+
this.getFormRef().current.setFieldsValue(value);
|
|
163
|
+
}
|
|
164
|
+
if (appDtmplConfig?.onValuesChange) {
|
|
165
|
+
//自定义值修改逻辑
|
|
166
|
+
appDtmplConfig.onValuesChange(
|
|
167
|
+
value,
|
|
168
|
+
{
|
|
169
|
+
code: data?data[0]['code']:null,
|
|
170
|
+
fieldMap: allValues,
|
|
171
|
+
},
|
|
172
|
+
this.getFormRef().current
|
|
173
|
+
);
|
|
139
174
|
}
|
|
140
175
|
};
|
|
141
176
|
|
|
@@ -183,6 +218,7 @@ export default class Action extends React.PureComponent<
|
|
|
183
218
|
trigger="click"
|
|
184
219
|
content={
|
|
185
220
|
<FieldsEditCard
|
|
221
|
+
formRef={this.getFormRef()}
|
|
186
222
|
serverKey={serverKey}
|
|
187
223
|
okDanger={actionConfig.beforeExeConfirm == "danger"}
|
|
188
224
|
needConfirm={true}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from "react";
|
|
1
|
+
import React ,{RefObject} from "react";
|
|
2
2
|
import { Button, Card, FormInstance, Popconfirm, Space } from "antd";
|
|
3
3
|
import { CloseOutlined } from "@ant-design/icons";
|
|
4
4
|
import { FieldConfig } from "../../tmpl/interface";
|
|
@@ -17,7 +17,8 @@ interface FieldsEditCardProps {
|
|
|
17
17
|
okButtonType?: ButtonType;
|
|
18
18
|
okDanger?: boolean;
|
|
19
19
|
needConfirm?: boolean;
|
|
20
|
-
onValuesChange: (value: object) => void;
|
|
20
|
+
onValuesChange: (value: object,allValues) => void;
|
|
21
|
+
formRef?: RefObject<FormInstance>;
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
interface FieldsEditCardState {}
|
|
@@ -26,7 +27,7 @@ export default class FieldsEditCard extends React.PureComponent<
|
|
|
26
27
|
FieldsEditCardProps,
|
|
27
28
|
FieldsEditCardState
|
|
28
29
|
> {
|
|
29
|
-
|
|
30
|
+
|
|
30
31
|
static defaultProps = {
|
|
31
32
|
forceRender: true,
|
|
32
33
|
style: { maxWidth: "calc(100vw - 60px)", maxHeight: "calc(100vh - 50px)" },
|
|
@@ -45,13 +46,13 @@ export default class FieldsEditCard extends React.PureComponent<
|
|
|
45
46
|
}
|
|
46
47
|
|
|
47
48
|
reset = () => {
|
|
48
|
-
if (this.formRef.current) {
|
|
49
|
-
this.formRef.current.resetFields();
|
|
49
|
+
if (this.props.formRef.current) {
|
|
50
|
+
this.props.formRef.current.resetFields();
|
|
50
51
|
}
|
|
51
52
|
};
|
|
52
53
|
|
|
53
54
|
onOk = () => {
|
|
54
|
-
this.formRef.current.submit();
|
|
55
|
+
this.props.formRef.current.submit();
|
|
55
56
|
};
|
|
56
57
|
|
|
57
58
|
render() {
|
|
@@ -66,7 +67,7 @@ export default class FieldsEditCard extends React.PureComponent<
|
|
|
66
67
|
needConfirm,
|
|
67
68
|
okDanger,
|
|
68
69
|
onValuesChange,
|
|
69
|
-
serverKey,
|
|
70
|
+
serverKey,formRef
|
|
70
71
|
} = this.props;
|
|
71
72
|
const {} = this.state;
|
|
72
73
|
const { translate } = this.context;
|
|
@@ -130,7 +131,7 @@ export default class FieldsEditCard extends React.PureComponent<
|
|
|
130
131
|
serverKey={serverKey}
|
|
131
132
|
onValuesChange={onValuesChange}
|
|
132
133
|
fields={fields}
|
|
133
|
-
formRef={
|
|
134
|
+
formRef={formRef}
|
|
134
135
|
value={value}
|
|
135
136
|
onFinish={onOk}
|
|
136
137
|
></FieldsForm>
|
|
@@ -12,7 +12,7 @@ export interface FieldsFormProps {
|
|
|
12
12
|
formRef?: RefObject<FormInstance>,
|
|
13
13
|
value?: object,
|
|
14
14
|
onFinish: (value: object) => void,
|
|
15
|
-
onValuesChange:(value: object) => void,
|
|
15
|
+
onValuesChange:(value: object,allValues) => void,
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
interface FieldsFormStat {
|
|
@@ -31,7 +31,7 @@ export default class FieldsForm extends React.PureComponent<FieldsFormProps, Fie
|
|
|
31
31
|
const {formRef, fields, value,onFinish,onValuesChange,serverKey} = this.props;
|
|
32
32
|
return (
|
|
33
33
|
<>
|
|
34
|
-
<AntdForm
|
|
34
|
+
<AntdForm onValuesChange={onValuesChange} labelWrap={true} ref={formRef} name="control-hooks" onFinish={onFinish}>
|
|
35
35
|
<FormItemGroup serverKey={serverKey} formRef={formRef} nameAttr={'id'} fields={fields}
|
|
36
36
|
valueMap={value}></FormItemGroup>
|
|
37
37
|
</AntdForm>
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
} from "@ant-design/icons";
|
|
9
9
|
import HCserviceV3 from "../tmpl/hcservice-v3";
|
|
10
10
|
import { LocaleContext } from "../locale/LocaleProvider";
|
|
11
|
+
import Vertify from "./vertify/index";
|
|
11
12
|
|
|
12
13
|
interface LoginProps {
|
|
13
14
|
onFinish: (token: string) => void;
|
|
@@ -24,6 +25,8 @@ interface LoginState {
|
|
|
24
25
|
kaptchaImg?: string;
|
|
25
26
|
kaptchaToken?: string;
|
|
26
27
|
pubkey?: string;
|
|
28
|
+
vertify: boolean;
|
|
29
|
+
showSlideVertify: boolean;
|
|
27
30
|
}
|
|
28
31
|
|
|
29
32
|
class Login extends React.PureComponent<LoginProps, LoginState> {
|
|
@@ -35,6 +38,8 @@ class Login extends React.PureComponent<LoginProps, LoginState> {
|
|
|
35
38
|
kaptchaImg: null,
|
|
36
39
|
kaptchaToken: null,
|
|
37
40
|
pubkey: undefined,
|
|
41
|
+
vertify: false,
|
|
42
|
+
showSlideVertify: false,
|
|
38
43
|
};
|
|
39
44
|
formRef = React.createRef<FormInstance>();
|
|
40
45
|
static contextType = LocaleContext;
|
|
@@ -72,11 +77,14 @@ class Login extends React.PureComponent<LoginProps, LoginState> {
|
|
|
72
77
|
this.setState({
|
|
73
78
|
loading: true,
|
|
74
79
|
});
|
|
75
|
-
let { kaptchaToken, pubkey } = this.state;
|
|
80
|
+
let { kaptchaToken, pubkey, needKaptcha, vertify } = this.state;
|
|
76
81
|
|
|
77
82
|
await this.formRef.current
|
|
78
83
|
.validateFields()
|
|
79
84
|
.then(async (values) => {
|
|
85
|
+
if (needKaptcha && !vertify)
|
|
86
|
+
return this.setState({ showSlideVertify: true });
|
|
87
|
+
|
|
80
88
|
const { programCode } = this.props;
|
|
81
89
|
let json = { username: values.username, password: values.password };
|
|
82
90
|
let res = await HCserviceV3.login(
|
|
@@ -89,6 +97,7 @@ class Login extends React.PureComponent<LoginProps, LoginState> {
|
|
|
89
97
|
if (res.status === "success") {
|
|
90
98
|
this.props.onFinish(res.token);
|
|
91
99
|
} else if (res.status === "error") {
|
|
100
|
+
this.setState({ needKaptcha: true, vertify: false });
|
|
92
101
|
await this.getKaptchaToken();
|
|
93
102
|
}
|
|
94
103
|
})
|
|
@@ -115,92 +124,119 @@ class Login extends React.PureComponent<LoginProps, LoginState> {
|
|
|
115
124
|
};
|
|
116
125
|
|
|
117
126
|
render() {
|
|
118
|
-
const { loading, needKaptcha, kaptchaImg } = this.state;
|
|
127
|
+
const { loading, needKaptcha, kaptchaImg, showSlideVertify } = this.state;
|
|
119
128
|
|
|
120
129
|
const { autoSaveUser = true } = this.props;
|
|
121
130
|
|
|
122
131
|
const { translate } = this.context;
|
|
123
132
|
return (
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
{this.props.title}
|
|
131
|
-
<Form.Item
|
|
132
|
-
name="username"
|
|
133
|
-
rules={[
|
|
134
|
-
{ required: true, message: translate("${请输入}${用户名}!") },
|
|
135
|
-
{ max: 30, min: 0, message: translate("${请输入}${0-30个字符}!") },
|
|
136
|
-
]}
|
|
137
|
-
>
|
|
138
|
-
<Input
|
|
139
|
-
prefix={<UserOutlined className="site-form-item-icon" />}
|
|
140
|
-
placeholder={translate("${用户名}")}
|
|
141
|
-
autoComplete={autoSaveUser ? "on" : "off"}
|
|
142
|
-
/>
|
|
143
|
-
</Form.Item>
|
|
144
|
-
<Form.Item
|
|
145
|
-
name="password"
|
|
146
|
-
rules={[{ required: true, message: translate("${请输入}${密码}!") }]}
|
|
133
|
+
<>
|
|
134
|
+
<Form
|
|
135
|
+
style={{ width: 350 }}
|
|
136
|
+
ref={this.formRef}
|
|
137
|
+
name="normal_login"
|
|
138
|
+
initialValues={{ remember: true }}
|
|
147
139
|
>
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
140
|
+
{this.props.title}
|
|
141
|
+
<Form.Item
|
|
142
|
+
name="username"
|
|
143
|
+
rules={[
|
|
144
|
+
{ required: true, message: translate("${请输入}${用户名}!") },
|
|
145
|
+
{
|
|
146
|
+
max: 30,
|
|
147
|
+
min: 0,
|
|
148
|
+
message: translate("${请输入}${0-30个字符}!"),
|
|
149
|
+
},
|
|
150
|
+
]}
|
|
151
|
+
>
|
|
152
|
+
<Input
|
|
153
|
+
prefix={<UserOutlined className="site-form-item-icon" />}
|
|
154
|
+
placeholder={translate("${用户名}")}
|
|
155
|
+
autoComplete={autoSaveUser ? "on" : "off"}
|
|
156
|
+
/>
|
|
157
|
+
</Form.Item>
|
|
158
|
+
<Form.Item
|
|
159
|
+
name="password"
|
|
160
|
+
rules={[
|
|
161
|
+
{ required: true, message: translate("${请输入}${密码}!") },
|
|
162
|
+
]}
|
|
163
|
+
>
|
|
164
|
+
<Input
|
|
165
|
+
style={
|
|
166
|
+
autoSaveUser
|
|
167
|
+
? {}
|
|
168
|
+
: ({ "-webkit-text-security": "disc" } as CSSProperties)
|
|
169
|
+
}
|
|
170
|
+
type={autoSaveUser ? "password" : "text"}
|
|
171
|
+
placeholder={translate("${密码}")}
|
|
172
|
+
onKeyDown={this.handleKeyDown}
|
|
173
|
+
autoComplete={autoSaveUser ? "on" : "off"}
|
|
174
|
+
prefix={<LockOutlined className="site-form-item-icon" />}
|
|
175
|
+
/>
|
|
176
|
+
</Form.Item>
|
|
177
|
+
{/* {needKaptcha ? (
|
|
178
|
+
<Row gutter={8}>
|
|
179
|
+
<Col span={12}>
|
|
180
|
+
<Form.Item
|
|
181
|
+
name="kaptchaText"
|
|
182
|
+
rules={[
|
|
183
|
+
{
|
|
184
|
+
required: true,
|
|
185
|
+
message: translate("${请输入}${验证码}!"),
|
|
186
|
+
},
|
|
187
|
+
]}
|
|
188
|
+
>
|
|
189
|
+
<Input
|
|
190
|
+
prefix={
|
|
191
|
+
<SafetyCertificateOutlined className="site-form-item-icon" />
|
|
192
|
+
}
|
|
193
|
+
placeholder={translate("${验证码}")}
|
|
194
|
+
onKeyDown={this.handleKeyDown}
|
|
195
|
+
/>
|
|
196
|
+
</Form.Item>
|
|
197
|
+
</Col>
|
|
198
|
+
<Col span={12}>
|
|
199
|
+
<img
|
|
200
|
+
style={{ cursor: "pointer" }}
|
|
201
|
+
height={30}
|
|
202
|
+
width={90}
|
|
203
|
+
title={translate("${点击刷新}")}
|
|
204
|
+
onClick={this.changeKaptcha}
|
|
205
|
+
src={kaptchaImg}
|
|
206
|
+
></img>
|
|
207
|
+
</Col>
|
|
208
|
+
</Row>
|
|
209
|
+
) : (
|
|
210
|
+
""
|
|
211
|
+
)} */}
|
|
212
|
+
<Form.Item>
|
|
213
|
+
<Button
|
|
214
|
+
type="primary"
|
|
215
|
+
style={{ width: "100%" }}
|
|
216
|
+
loading={loading}
|
|
217
|
+
onClick={this.handleSubmit}
|
|
218
|
+
>
|
|
219
|
+
{translate("${登录}")}
|
|
220
|
+
</Button>
|
|
221
|
+
</Form.Item>
|
|
222
|
+
</Form>
|
|
223
|
+
{showSlideVertify ? (
|
|
224
|
+
<div style={{ width: "100%", height: "100%", background: "white" }}>
|
|
225
|
+
<Vertify
|
|
226
|
+
onSuccess={() =>
|
|
227
|
+
this.setState({ vertify: true, showSlideVertify: false }, () =>
|
|
228
|
+
this.handleSubmit()
|
|
229
|
+
)
|
|
230
|
+
}
|
|
231
|
+
onFail={() =>
|
|
232
|
+
this.setState({ vertify: false, showSlideVertify: true })
|
|
233
|
+
}
|
|
234
|
+
></Vertify>
|
|
235
|
+
</div>
|
|
190
236
|
) : (
|
|
191
|
-
|
|
237
|
+
<></>
|
|
192
238
|
)}
|
|
193
|
-
|
|
194
|
-
<Button
|
|
195
|
-
type="primary"
|
|
196
|
-
style={{ width: "100%" }}
|
|
197
|
-
loading={loading}
|
|
198
|
-
onClick={this.handleSubmit}
|
|
199
|
-
>
|
|
200
|
-
{translate("${登录}")}
|
|
201
|
-
</Button>
|
|
202
|
-
</Form.Item>
|
|
203
|
-
</Form>
|
|
239
|
+
</>
|
|
204
240
|
);
|
|
205
241
|
}
|
|
206
242
|
}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
.vertifyWrap {
|
|
2
|
+
position: relative;
|
|
3
|
+
}
|
|
4
|
+
.vertifyWrap .block {
|
|
5
|
+
position: absolute;
|
|
6
|
+
left: 0;
|
|
7
|
+
top: 0;
|
|
8
|
+
cursor: pointer;
|
|
9
|
+
cursor: grab;
|
|
10
|
+
}
|
|
11
|
+
.vertifyWrap .block:active {
|
|
12
|
+
cursor: grabbing;
|
|
13
|
+
}
|
|
14
|
+
.vertifyWrap .sliderContainer {
|
|
15
|
+
position: relative;
|
|
16
|
+
text-align: center;
|
|
17
|
+
width: 310px;
|
|
18
|
+
height: 40px;
|
|
19
|
+
line-height: 40px;
|
|
20
|
+
margin-top: 15px;
|
|
21
|
+
background: #f7f9fa;
|
|
22
|
+
color: #45494c;
|
|
23
|
+
border: 1px solid #e4e7eb;
|
|
24
|
+
}
|
|
25
|
+
.vertifyWrap .sliderContainer_active .slider {
|
|
26
|
+
height: 38px;
|
|
27
|
+
top: -1px;
|
|
28
|
+
border: 1px solid #486cd6;
|
|
29
|
+
}
|
|
30
|
+
.vertifyWrap .sliderContainer_active .sliderMask {
|
|
31
|
+
height: 38px;
|
|
32
|
+
border-width: 1px;
|
|
33
|
+
}
|
|
34
|
+
.vertifyWrap .sliderContainer_success .slider {
|
|
35
|
+
height: 38px;
|
|
36
|
+
top: -1px;
|
|
37
|
+
border: 1px solid #0db87f;
|
|
38
|
+
background-color: #0ca14a !important;
|
|
39
|
+
}
|
|
40
|
+
.vertifyWrap .sliderContainer_success .sliderMask {
|
|
41
|
+
height: 38px;
|
|
42
|
+
border: 1px solid #0db87f;
|
|
43
|
+
background-color: #d2f4ef;
|
|
44
|
+
}
|
|
45
|
+
.vertifyWrap .sliderContainer_success .sliderIcon {
|
|
46
|
+
background-position: 0 -26px !important;
|
|
47
|
+
}
|
|
48
|
+
.vertifyWrap .sliderContainer_fail .slider {
|
|
49
|
+
height: 38px;
|
|
50
|
+
top: -1px;
|
|
51
|
+
border: 1px solid #f57a7a;
|
|
52
|
+
background-color: #f57a7a !important;
|
|
53
|
+
}
|
|
54
|
+
.vertifyWrap .sliderContainer_fail .sliderMask {
|
|
55
|
+
height: 38px;
|
|
56
|
+
border: 1px solid #f57a7a;
|
|
57
|
+
background-color: #fce1e1;
|
|
58
|
+
}
|
|
59
|
+
.vertifyWrap .sliderContainer_fail .sliderIcon {
|
|
60
|
+
top: 14px;
|
|
61
|
+
background-position: 0 -82px !important;
|
|
62
|
+
}
|
|
63
|
+
.vertifyWrap .sliderContainer_active .sliderText,
|
|
64
|
+
.vertifyWrap .sliderContainer_success .sliderText,
|
|
65
|
+
.vertifyWrap .sliderContainer_fail .sliderText {
|
|
66
|
+
display: none;
|
|
67
|
+
}
|
|
68
|
+
.vertifyWrap .sliderMask {
|
|
69
|
+
position: absolute;
|
|
70
|
+
left: 0;
|
|
71
|
+
top: 0;
|
|
72
|
+
height: 40px;
|
|
73
|
+
border: 0 solid #486cd6;
|
|
74
|
+
background: #d1e9fe;
|
|
75
|
+
}
|
|
76
|
+
.vertifyWrap .slider {
|
|
77
|
+
position: absolute;
|
|
78
|
+
top: 0;
|
|
79
|
+
left: 0;
|
|
80
|
+
width: 40px;
|
|
81
|
+
height: 40px;
|
|
82
|
+
background: #fff;
|
|
83
|
+
box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
|
|
84
|
+
transition: background 0.2s linear;
|
|
85
|
+
cursor: pointer;
|
|
86
|
+
cursor: grab;
|
|
87
|
+
}
|
|
88
|
+
.vertifyWrap .slider:active {
|
|
89
|
+
cursor: grabbing;
|
|
90
|
+
}
|
|
91
|
+
.vertifyWrap .slider:hover {
|
|
92
|
+
background: #486cd6;
|
|
93
|
+
}
|
|
94
|
+
.vertifyWrap .sliderIcon {
|
|
95
|
+
font-size: 18px;
|
|
96
|
+
color: #000;
|
|
97
|
+
display: flex;
|
|
98
|
+
justify-content: center;
|
|
99
|
+
align-items: center;
|
|
100
|
+
height: 100%;
|
|
101
|
+
}
|
|
102
|
+
.vertifyWrap .slider:hover .sliderIcon {
|
|
103
|
+
color: #fff;
|
|
104
|
+
}
|
|
105
|
+
.vertifyWrap .refreshIcon {
|
|
106
|
+
position: absolute;
|
|
107
|
+
right: 5px;
|
|
108
|
+
top: 5px;
|
|
109
|
+
width: 30px;
|
|
110
|
+
height: 30px;
|
|
111
|
+
cursor: pointer;
|
|
112
|
+
background-size: 32px;
|
|
113
|
+
}
|
|
114
|
+
.vertifyWrap .loadingContainer {
|
|
115
|
+
position: absolute;
|
|
116
|
+
left: 0;
|
|
117
|
+
top: 0;
|
|
118
|
+
width: 310px;
|
|
119
|
+
height: 155px;
|
|
120
|
+
display: flex;
|
|
121
|
+
flex-direction: column;
|
|
122
|
+
justify-content: center;
|
|
123
|
+
align-items: center;
|
|
124
|
+
font-size: 14px;
|
|
125
|
+
color: #45494c;
|
|
126
|
+
z-index: 2;
|
|
127
|
+
background: #edf0f2;
|
|
128
|
+
}
|
|
129
|
+
.vertifyWrap .loadingIcon {
|
|
130
|
+
width: 32px;
|
|
131
|
+
height: 32px;
|
|
132
|
+
margin-bottom: 10px;
|
|
133
|
+
background: url(http://cdn.dooring.cn/dr/icon12.png);
|
|
134
|
+
background-size: 32px;
|
|
135
|
+
animation: loading-icon-rotate 0.8s linear infinite;
|
|
136
|
+
}
|
|
137
|
+
@keyframes loading-icon-rotate {
|
|
138
|
+
from {
|
|
139
|
+
transform: rotate(0);
|
|
140
|
+
}
|
|
141
|
+
to {
|
|
142
|
+
transform: rotate(360deg);
|
|
143
|
+
}
|
|
144
|
+
}
|