Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
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
linweijiong
jinfa-platform
Commits
b326debe
Commit
b326debe
authored
Oct 09, 2020
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
对接授信额度管理列表中
parent
f1feab42
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
18 deletions
+32
-18
index.tsx
...ages/payandSettle/creditApplication/quotaMenage/index.tsx
+30
-16
index.ts
...ayandSettle/creditApplication/quotaMenage/schema/index.ts
+2
-2
No files found.
src/pages/payandSettle/creditApplication/quotaMenage/index.tsx
View file @
b326debe
...
@@ -4,6 +4,7 @@ import { StandardTable } from 'god';
...
@@ -4,6 +4,7 @@ import { StandardTable } from 'god';
import
{
ColumnType
}
from
'antd/lib/table/interface'
;
import
{
ColumnType
}
from
'antd/lib/table/interface'
;
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
;
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
;
import
{
createFormActions
}
from
'@formily/antd'
;
import
{
createFormActions
}
from
'@formily/antd'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
useStateFilterSearchLinkageEffect
}
from
'@/formSchema/effects/useFilterSearch'
;
import
{
useStateFilterSearchLinkageEffect
}
from
'@/formSchema/effects/useFilterSearch'
;
import
{
useAsyncInitSelect
}
from
'@/formSchema/effects/useAsyncInitSelect'
;
import
{
useAsyncInitSelect
}
from
'@/formSchema/effects/useAsyncInitSelect'
;
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
;
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
;
...
@@ -48,7 +49,7 @@ const QuotaMenage: React.FC = () => {
...
@@ -48,7 +49,7 @@ const QuotaMenage: React.FC = () => {
const
defaultColumns
:
ColumnType
<
any
>
[]
=
[
const
defaultColumns
:
ColumnType
<
any
>
[]
=
[
{
{
title
:
'会员归属'
,
title
:
'会员归属'
,
dataIndex
:
'
m
emberName'
,
dataIndex
:
'
parentM
emberName'
,
align
:
'center'
,
align
:
'center'
,
render
:
(
text
,
record
)
=>
(
render
:
(
text
,
record
)
=>
(
<
EyePreview
<
EyePreview
...
@@ -60,34 +61,34 @@ const QuotaMenage: React.FC = () => {
...
@@ -60,34 +61,34 @@ const QuotaMenage: React.FC = () => {
},
},
{
{
title
:
'会员类型'
,
title
:
'会员类型'
,
dataIndex
:
'memberType'
,
dataIndex
:
'memberType
Name
'
,
align
:
'center'
,
align
:
'center'
,
},
},
{
{
title
:
'会员角色'
,
title
:
'会员角色'
,
dataIndex
:
'memberRole'
,
dataIndex
:
'memberRole
Name
'
,
align
:
'center'
,
align
:
'center'
,
render
:
(
text
,
record
)
=>
<>
{
text
}
</>,
render
:
(
text
,
record
)
=>
<>
{
text
}
</>,
},
},
{
{
title
:
'所属会员等级'
,
title
:
'所属会员等级'
,
dataIndex
:
'memberLevel'
,
dataIndex
:
'memberLevel
Name
'
,
align
:
'center'
,
align
:
'center'
,
render
:
(
text
,
record
)
=>
<>
{
text
}
</>,
render
:
(
text
,
record
)
=>
<>
{
text
}
</>,
},
},
{
{
title
:
'剩余可用额度(元)'
,
title
:
'剩余可用额度(元)'
,
dataIndex
:
'
available
'
,
dataIndex
:
'
canUseQuota
'
,
align
:
'center'
,
align
:
'center'
,
},
},
{
{
title
:
'总额度/已用额度(元)'
,
title
:
'总额度/已用额度(元)'
,
dataIndex
:
'
count
'
,
dataIndex
:
'
quota
'
,
align
:
'center'
,
align
:
'center'
,
render
:
(
text
,
record
)
=>
(
render
:
(
text
,
record
)
=>
(
<>
<>
<
div
>
总额度:
{
text
}
</
div
>
<
div
>
总额度:
{
text
}
</
div
>
<
div
>
已使用:
{
record
.
use
d
}
</
div
>
<
div
>
已使用:
{
record
.
use
Quota
}
</
div
>
</>
</>
),
),
},
},
...
@@ -98,7 +99,7 @@ const QuotaMenage: React.FC = () => {
...
@@ -98,7 +99,7 @@ const QuotaMenage: React.FC = () => {
render
:
(
text
,
record
)
=>
(
render
:
(
text
,
record
)
=>
(
<
Progress
<
Progress
type=
"circle"
type=
"circle"
percent=
{
40
}
percent=
{
Math
.
floor
(
record
.
useQuota
/
record
.
quota
)
}
strokeColor=
"#41CC9E"
strokeColor=
"#41CC9E"
strokeWidth=
{
12
}
strokeWidth=
{
12
}
width=
{
40
}
width=
{
40
}
...
@@ -108,28 +109,41 @@ const QuotaMenage: React.FC = () => {
...
@@ -108,28 +109,41 @@ const QuotaMenage: React.FC = () => {
},
},
{
{
title
:
'还款状态'
,
title
:
'还款状态'
,
dataIndex
:
'repay
mentStatus
'
,
dataIndex
:
'repay
StatusName
'
,
align
:
'center'
,
align
:
'center'
,
render
:
(
text
,
record
)
=>
(
render
:
(
text
,
record
)
=>
(
<
StatusTag
type=
"warnning"
title=
"逾期 3 天"
/>
<
StatusTag
type=
"warnning"
title=
{
text
}
/>
),
),
},
},
{
{
title
:
'状态'
,
title
:
'状态'
,
dataIndex
:
'status'
,
dataIndex
:
'status
Name
'
,
align
:
'center'
,
align
:
'center'
,
filters
:
[],
filters
:
[],
onFilter
:
(
value
,
record
)
=>
record
.
innerStatus
===
value
,
onFilter
:
(
value
,
record
)
=>
record
.
innerStatus
===
value
,
render
:
(
text
,
record
)
=>
<
Badge
color=
"#41CC9E"
text=
"正常"
/>,
render
:
(
text
,
record
)
=>
<
Badge
color=
"#41CC9E"
text=
{
text
}
/>,
},
},
];
];
const
[
columns
,
setColumns
]
=
useState
<
any
[]
>
(
defaultColumns
);
const
[
columns
,
setColumns
]
=
useState
<
any
[]
>
(
defaultColumns
);
const
fetchListData
=
(
params
:
any
)
=>
{
const
fetchListData
=
(
params
:
any
)
=>
{
return
Promise
.
resolve
({
const
{
status
=
0
,
rePayStatus
=
0
,
...
rest
}
=
params
;
total
:
2
,
return
new
Promise
((
resolve
,
reject
)
=>
{
data
:
mock
,
PublicApi
.
getPayCreditApplyPageCredit
({
status
,
rePayStatus
,
...
rest
,
})
.
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
resolve
(
res
.
data
);
}
reject
();
})
.
catch
(()
=>
{
reject
();
});
});
});
};
};
...
@@ -156,7 +170,7 @@ const QuotaMenage: React.FC = () => {
...
@@ -156,7 +170,7 @@ const QuotaMenage: React.FC = () => {
useStateFilterSearchLinkageEffect
(
useStateFilterSearchLinkageEffect
(
$
,
$
,
actions
,
actions
,
'
n
ame'
,
'
parentMemberN
ame'
,
FORM_FILTER_PATH
,
FORM_FILTER_PATH
,
);
);
useAsyncInitSelect
(
useAsyncInitSelect
(
...
...
src/pages/payandSettle/creditApplication/quotaMenage/schema/index.ts
View file @
b326debe
...
@@ -16,7 +16,7 @@ export const listSearchSchema: ISchema = {
...
@@ -16,7 +16,7 @@ export const listSearchSchema: ISchema = {
type
:
'object'
,
type
:
'object'
,
'x-component'
:
'mega-layout'
,
'x-component'
:
'mega-layout'
,
properties
:
{
properties
:
{
n
ame
:
{
parentMemberN
ame
:
{
type
:
'string'
,
type
:
'string'
,
'x-component'
:
'Search'
,
'x-component'
:
'Search'
,
'x-component-props'
:
{
'x-component-props'
:
{
...
@@ -35,7 +35,7 @@ export const listSearchSchema: ISchema = {
...
@@ -35,7 +35,7 @@ export const listSearchSchema: ISchema = {
columns
:
6
,
columns
:
6
,
},
},
properties
:
{
properties
:
{
re
payment
Status
:
{
re
Pay
Status
:
{
type
:
'string'
,
type
:
'string'
,
default
:
undefined
,
default
:
undefined
,
enum
:
[],
enum
:
[],
...
...
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