Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-admin
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shenshaokai
jinfa-admin
Commits
8371424c
Commit
8371424c
authored
Aug 14, 2020
by
tjy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整
parent
fdf3352a
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
8 deletions
+17
-8
addMember.tsx
src/pages/member/memberMaintain/addMember.tsx
+1
-1
index.tsx
src/pages/member/memberMaintain/index.tsx
+1
-1
index.tsx
src/pages/member/memberUpgradeRule/index.tsx
+13
-5
request.ts
src/utils/request.ts
+2
-1
No files found.
src/pages/member/memberMaintain/addMember.tsx
View file @
8371424c
...
@@ -10,7 +10,7 @@ import NiceForm from '@/components/NiceForm';
...
@@ -10,7 +10,7 @@ import NiceForm from '@/components/NiceForm';
import
{
useStateFilterSearchLinkageEffect
}
from
'@/formSchema/effects/useFilterSearch'
;
import
{
useStateFilterSearchLinkageEffect
}
from
'@/formSchema/effects/useFilterSearch'
;
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
;
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
;
import
{
initDetailSchema
}
from
'./schema'
;
import
{
initDetailSchema
}
from
'./schema'
;
import
{
useAsyncSelect
}
from
'@/formSchema/effects/useAsyncSelect'
import
{
useAsyncSelect
}
from
'@/formSchema/effects/useAsyncSelect'
;
import
{
useAsyncInitSelect
}
from
'@/formSchema/effects/useAsyncInitSelect'
;
import
{
useAsyncInitSelect
}
from
'@/formSchema/effects/useAsyncInitSelect'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
PublicApi
}
from
'@/services/api'
;
...
...
src/pages/member/memberMaintain/index.tsx
View file @
8371424c
...
@@ -57,7 +57,7 @@ const memberMaintain: React.FC<[]> = () => {
...
@@ -57,7 +57,7 @@ const memberMaintain: React.FC<[]> = () => {
key
:
'name'
,
key
:
'name'
,
render
:
(
text
:
any
,
record
:
any
)
=>
(
render
:
(
text
:
any
,
record
:
any
)
=>
(
<
EyePreview
<
EyePreview
url=
{
`/memberAbility/manage/
addMember
?id=${record.id}&preview=1`
}
url=
{
`/memberAbility/manage/
memberDetail
?id=${record.id}&preview=1`
}
>
>
{
text
}
{
text
}
</
EyePreview
>
</
EyePreview
>
...
...
src/pages/member/memberUpgradeRule/index.tsx
View file @
8371424c
...
@@ -37,21 +37,29 @@ const MemberUpgradeRule: React.FC<[]> = () => {
...
@@ -37,21 +37,29 @@ const MemberUpgradeRule: React.FC<[]> = () => {
},
},
{
{
title
:
'可获取的分值'
,
title
:
'可获取的分值'
,
dataIndex
:
'
score
'
,
dataIndex
:
'
point
'
,
align
:
'center'
,
align
:
'center'
,
key
:
'
score
'
,
key
:
'
point
'
,
render
:
(
text
:
any
,
record
:
any
)
=>
{
render
:
(
text
:
any
,
record
:
any
)
=>
{
let
component
:
ReactNode
=
null
;
let
component
:
ReactNode
=
null
;
component
=
component
=
record
.
ruleTypeEnum
===
1
?
(
record
.
id
===
1
?
(
<
Input
addonAfter=
"%"
value=
{
record
.
score
}
/>
<
Input
addonAfter=
"%"
value=
{
record
.
point
}
onChange=
{
e
=>
{
e
.
preventDefault
();
record
.
point
=
e
.
target
.
value
;
}
}
/>
)
:
(
)
:
(
<
Input
value=
{
record
.
score
}
/>
<
Input
value=
{
record
.
point
}
/>
);
);
return
component
;
return
component
;
},
},
},
},
];
];
const
handleSubmit
=
()
=>
{};
const
handleSubmit
=
()
=>
{};
return
(
return
(
...
...
src/utils/request.ts
View file @
8371424c
...
@@ -47,7 +47,8 @@ const errorHandler = (error: ResponseError): IRequestError => {
...
@@ -47,7 +47,8 @@ const errorHandler = (error: ResponseError): IRequestError => {
const
defaultHeaders
=
{
const
defaultHeaders
=
{
'Content-Type'
:
'Application/json'
,
'Content-Type'
:
'Application/json'
,
'token'
:
'99dbcd04b7253c8920f319f4103ec5c1'
'token'
:
'99dbcd04b7253c8920f319f4103ec5c1'
,
'source'
:
'99'
}
}
/**
/**
...
...
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