Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
freemud-coupon-export-app
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
秦嘉祺
freemud-coupon-export-app
Commits
b28e7890
Commit
b28e7890
authored
Jun 15, 2020
by
QJQ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
压测改造
parent
8ff199ba
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
12 deletions
+26
-12
src/pages/table-list/components/CreateForm.tsx
+24
-10
src/pages/table-list/service.ts
+2
-2
No files found.
src/pages/table-list/components/CreateForm.tsx
View file @
b28e7890
...
...
@@ -18,6 +18,15 @@ interface CreateFormProps extends FormComponentProps {
class
CreateForm
extends
Component
<
CreateFormProps
,
any
>
{
// const { dispatch } = this.props;
// const { modalVisible, form, handleAdd, handleModalVisible } = this.props;
componentDidMount
(){
// const { form, handleAdd } = this.props;
// form.setFieldsValue({
// });
}
okHandle
=
()
=>
{
const
{
form
,
handleAdd
}
=
this
.
props
;
form
.
validateFields
((
err
,
fieldsValue
)
=>
{
...
...
@@ -60,8 +69,9 @@ class CreateForm extends Component<CreateFormProps, any> {
onOk=
{
this
.
okHandle
}
onCancel=
{
()
=>
handleModalVisible
()
}
>
<
FormItem
labelCol=
{
{
span
:
5
}
}
wrapperCol=
{
{
span
:
15
}
}
label=
{
"商户名称"
}
>
<
FormItem
labelCol=
{
{
span
:
5
}
}
wrapperCol=
{
{
span
:
15
}
}
label=
{
"商户名称"
}
>
{
getFieldDecorator
(
'PartnerID'
,
{
initialValue
:
"1205"
,
rules
:
[
{
required
:
true
,
...
...
@@ -75,11 +85,13 @@ class CreateForm extends Component<CreateFormProps, any> {
</
FormItem
>
<
FormItem
labelCol=
{
{
span
:
5
}
}
wrapperCol=
{
{
span
:
15
}
}
label=
"活动号"
>
{
getFieldDecorator
(
'ActiveCode'
,
{
initialValue
:
"P120520200514201223"
,
rules
:
[{
required
:
true
,
message
:
'请输入活动号'
,
min
:
1
}],
})(<
Input
placeholder=
"请输入活动号"
/>)
}
})(<
Input
placeholder=
"请输入活动号"
defaultValue=
"P120520200514201223"
/>)
}
</
FormItem
>
<
FormItem
labelCol=
{
{
span
:
5
}
}
wrapperCol=
{
{
span
:
15
}
}
label=
"导码量"
>
{
getFieldDecorator
(
'CouponAmount'
,
{
initialValue
:
"10"
,
rules
:
[
{
required
:
true
,
message
:
'请输入导码量'
},
{
pattern
:
/^
[
1-9
]\d
*$/g
,
required
:
true
,
message
:
'只能输入正整数'
}],
...
...
@@ -87,6 +99,7 @@ class CreateForm extends Component<CreateFormProps, any> {
</
FormItem
>
<
FormItem
labelCol=
{
{
span
:
5
}
}
wrapperCol=
{
{
span
:
15
}
}
label=
{
"有效期"
}
>
{
getFieldDecorator
(
'vaildDate'
,
{
initialValue
:
[
moment
(
'2020-06-01 00:00:00'
),
moment
(
'2020-08-08 23:59:59'
)],
rules
:
[
{
required
:
true
,
...
...
@@ -110,6 +123,7 @@ class CreateForm extends Component<CreateFormProps, any> {
</
FormItem
>
<
FormItem
labelCol=
{
{
span
:
5
}
}
wrapperCol=
{
{
span
:
15
}
}
label=
{
"渠道名称"
}
>
{
getFieldDecorator
(
'ProviderID'
,
{
initialValue
:
"1679"
,
rules
:
[
{
required
:
true
,
...
...
@@ -117,20 +131,14 @@ class CreateForm extends Component<CreateFormProps, any> {
}
],
})
// (
// <Select placeholder="请选择供应商" style=
{{
width
:
'100%'
}}
>
// <Option value="1575">趋加</Option>
// <Option value="2250">趋加麦钱包</Option>
// <Option value="1701">趋加支付宝</Option>
// </Select>)
}
(
<
Select
placeholder=
"请选择供应商"
style=
{
{
width
:
'100%'
}
}
>
<
Option
value=
"1679"
>
趋佳
</
Option
>
<
Option
value=
"1997"
>
趋佳麦钱包
</
Option
>
{
/*
<Option value="1997">趋佳麦钱包</Option>
<Option value="1701">趋佳支付宝</Option>
<Option value="1523">微众银行</Option>
<Option value="1628">mcoffee</Option>
<
Option
value=
"2444"
>
微信商家券
</
Option
>
<Option value="2444">微信商家券</Option>
*/
}
</
Select
>)
}
</
FormItem
>
<
FormItem
labelCol=
{
{
span
:
5
}
}
wrapperCol=
{
{
span
:
15
}
}
label=
{
"收件人"
}
>
...
...
@@ -148,3 +156,9 @@ class CreateForm extends Component<CreateFormProps, any> {
}
export
default
Form
.
create
<
CreateFormProps
>
()(
CreateForm
);
// export default Form.create<CreateFormProps>({
// mapPropsToFields(props: PropsOwn) {
// const params = props.se
// }
// })(CreateForm);
src/pages/table-list/service.ts
View file @
b28e7890
...
...
@@ -2,8 +2,8 @@ import request from '@/utils/request';
import
{
TableListParams
}
from
'./data.d'
;
//export const apiAddress = "http://localhost:8001";
//export const apiAddress = "http://172.16.0.152:809
";
export
const
apiAddress
=
"http://115.159.226.87:8090"
;
export
const
apiAddress
=
"http://10.55.6.170:8001
"
;
//
export const apiAddress = "http://115.159.226.87:8090";
const
getExportRecord
=
apiAddress
+
"/Coupon/GetExportRecord"
;
const
addExportRecord
=
apiAddress
+
"/Coupon/AddExportRecord"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment