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
52577705
Commit
52577705
authored
Oct 29, 2020
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixbug、提取公共shema
parent
48f1a45e
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
24 additions
and
482 deletions
+24
-482
.gitignore
.gitignore
+0
-2
index.tsx
src/pages/member/memberMaintain/detailed/index.tsx
+1
-1
index.tsx
src/pages/member/memberMaintain/index.tsx
+0
-1
index.tsx
src/pages/member/memberMaintain/schema/index.tsx
+14
-1
auditPr1.tsx
src/pages/member/memberPr1/auditPr1.tsx
+1
-2
index.tsx
src/pages/member/memberPr1/index.tsx
+1
-1
auditPr2.tsx
src/pages/member/memberPr2/auditPr2.tsx
+1
-2
index.tsx
src/pages/member/memberPr2/index.tsx
+1
-1
index.ts
src/pages/member/memberPr2/schema/index.ts
+0
-152
auditPrComfirm.tsx
src/pages/member/memberPrConfirm/auditPrComfirm.tsx
+1
-2
index.tsx
src/pages/member/memberPrConfirm/index.tsx
+1
-1
index.ts
src/pages/member/memberPrConfirm/schema/index.ts
+0
-159
auditPrSubmit.tsx
src/pages/member/memberPrSubmit/auditPrSubmit.tsx
+1
-2
index.tsx
src/pages/member/memberPrSubmit/index.tsx
+1
-1
index.ts
src/pages/member/memberPrSubmit/schema/index.ts
+0
-152
auditSchema.ts
src/pages/member/schema/auditSchema.ts
+1
-2
yarn.lock
yarn.lock
+0
-0
No files found.
.gitignore
View file @
52577705
...
...
@@ -4,8 +4,6 @@
/node_modules
/npm-debug.log*
/yarn-error.log
/yarn.lock
/package-lock.json
# production
/dist
...
...
src/pages/member/memberMaintain/detailed/index.tsx
View file @
52577705
...
...
@@ -132,7 +132,7 @@ const MemberMaintainDetailed: React.FC<QueryProps> = props => {
<>
<
PageHeader
style=
{
{
padding
:
'0'
}
}
onBack=
{
()
=>
history
.
goBack
(
)
}
onBack=
{
()
=>
history
.
push
(
`/memberAbility/manage/maintian`
)
}
title=
{
<
HeadInfo
info=
{
{
...
...
src/pages/member/memberMaintain/index.tsx
View file @
52577705
...
...
@@ -53,7 +53,6 @@ const memberMaintain: React.FC<[]> = () => {
const
[
visibleModal
,
setVisibleModal
]
=
useState
(
false
);
const
fetchData
=
async
(
params
:
any
)
=>
{
console
.
log
(
'params'
,
params
)
const
{
startDate
,
endDate
}
=
params
;
const
payload
=
params
;
const
res
=
await
PublicApi
.
getMemberMaintenancePage
({
...
...
src/pages/member/memberMaintain/schema/index.tsx
View file @
52577705
...
...
@@ -263,7 +263,15 @@ export const initDetailSchema = (props: any) => {
'x-component-props'
:
{
label
:
'注册手机'
,
required
:
true
,
inline
:
true
,
wrapperCol
:
24
,
},
properties
:
{
MEGA_LAYOUT1_1_1
:
{
type
:
'object'
,
'x-component'
:
'mega-layout'
,
'x-component-props'
:
{
grid
:
true
,
full
:
true
,
},
properties
:
{
countryCodeId
:
{
...
...
@@ -277,6 +285,9 @@ export const initDetailSchema = (props: any) => {
phone
:
{
type
:
'string'
,
required
:
true
,
'x-mega-props'
:
{
span
:
2
,
},
'x-component-props'
:
{
placeholder
:
'请输入你的手机号码'
,
maxLength
:
11
,
...
...
@@ -290,6 +301,8 @@ export const initDetailSchema = (props: any) => {
},
},
},
},
},
email
:
{
type
:
'string'
,
title
:
'邮箱'
,
...
...
src/pages/member/memberPr1/auditPr1.tsx
View file @
52577705
...
...
@@ -26,13 +26,12 @@ import {
MEMBER_INNER_STATUS_BADGE_COLOR
,
MEMBER_OUTER_STATUS_TYPE
,
}
from
'../constant'
;
import
{
auditModalSchema
}
from
'.
/s
chema'
;
import
{
auditModalSchema
}
from
'.
./schema/auditS
chema'
;
import
HeadInfo
from
'../components/HeadInfo'
;
import
StatusTag
from
'../components/StatusTag'
;
import
BasicInfo
from
'../components/BasicInfo'
;
import
AuditProcess
from
'../components/AuditProcess'
;
import
styles
from
'./index.less'
;
import
{
values
}
from
'mobx'
;
const
treeActions
=
createTreeActions
();
const
modalFormActions
=
createFormActions
();
...
...
src/pages/member/memberPr1/index.tsx
View file @
52577705
...
...
@@ -11,7 +11,7 @@ import { useStateFilterSearchLinkageEffect } from '@/formSchema/effects/useFilte
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
;
import
{
useAsyncInitSelect
}
from
'@/formSchema/effects/useAsyncInitSelect'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
auditSchema
}
from
'.
/s
chema'
;
import
{
auditSchema
}
from
'.
./schema/auditS
chema'
;
import
{
MEMBER_STATUS_TAG_MAP
,
MEMBER_INNER_STATUS_BADGE_COLOR
,
...
...
src/pages/member/memberPr2/auditPr2.tsx
View file @
52577705
...
...
@@ -26,13 +26,12 @@ import {
MEMBER_INNER_STATUS_BADGE_COLOR
,
MEMBER_OUTER_STATUS_TYPE
,
}
from
'../constant'
;
import
{
auditModalSchema
}
from
'.
/s
chema'
;
import
{
auditModalSchema
}
from
'.
./schema/auditS
chema'
;
import
HeadInfo
from
'../components/HeadInfo'
;
import
StatusTag
from
'../components/StatusTag'
;
import
BasicInfo
from
'../components/BasicInfo'
;
import
AuditProcess
from
'../components/AuditProcess'
;
import
styles
from
'./index.less'
;
import
{
values
}
from
'mobx'
;
const
treeActions
=
createTreeActions
();
const
modalFormActions
=
createFormActions
();
...
...
src/pages/member/memberPr2/index.tsx
View file @
52577705
...
...
@@ -11,7 +11,7 @@ import { useStateFilterSearchLinkageEffect } from '@/formSchema/effects/useFilte
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
;
import
{
useAsyncInitSelect
}
from
'@/formSchema/effects/useAsyncInitSelect'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
auditSchema
}
from
'.
/s
chema'
;
import
{
auditSchema
}
from
'.
./schema/auditS
chema'
;
import
{
MEMBER_STATUS_TAG_MAP
,
MEMBER_INNER_STATUS_BADGE_COLOR
,
...
...
src/pages/member/memberPr2/schema/index.ts
deleted
100644 → 0
View file @
48f1a45e
import
{
ISchema
}
from
'@formily/antd'
;
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
;
export
const
auditSchema
:
ISchema
=
{
type
:
'object'
,
properties
:
{
MEGA_LAYOUT
:
{
type
:
'object'
,
'x-component'
:
'mega-layout'
,
properties
:
{
topLayout
:
{
type
:
'object'
,
'x-component'
:
'mega-layout'
,
'x-component-props'
:
{
grid
:
true
,
},
properties
:
{
ctl
:
{
type
:
'object'
,
'x-component'
:
'Children'
,
'x-component-props'
:
{
children
:
'{{controllerBtns}}'
,
},
},
name
:
{
type
:
'string'
,
'x-component'
:
'Search'
,
'x-component-props'
:
{
placeholder
:
'搜索'
,
},
},
},
},
[
FORM_FILTER_PATH
]:
{
type
:
'object'
,
'x-component'
:
'flex-layout'
,
'x-component-props'
:
{
colStyle
:
{
marginLeft
:
20
,
},
},
properties
:
{
memberTypeId
:
{
type
:
'string'
,
default
:
undefined
,
enum
:
[],
'x-component-props'
:
{
placeholder
:
'会员类型(全部)'
,
allowClear
:
true
,
},
},
status
:
{
type
:
'string'
,
default
:
undefined
,
enum
:
[],
'x-component-props'
:
{
placeholder
:
'会员状态(全部)'
,
allowClear
:
true
,
},
},
roleId
:
{
type
:
'string'
,
default
:
undefined
,
enum
:
[],
'x-component-props'
:
{
placeholder
:
'会员角色(全部)'
,
allowClear
:
true
,
},
},
level
:
{
type
:
'string'
,
default
:
undefined
,
enum
:
[],
'x-component-props'
:
{
placeholder
:
'会员等级(全部)'
,
allowClear
:
true
,
},
},
source
:
{
type
:
'string'
,
default
:
undefined
,
enum
:
[],
'x-component-props'
:
{
placeholder
:
'申请来源(全部)'
,
allowClear
:
true
,
},
},
'[startDate, endDate]'
:
{
type
:
'string'
,
default
:
''
,
'x-component'
:
'dateSelect'
,
'x-component-props'
:
{
placeholder
:
'时间范围(全部)'
,
allowClear
:
true
,
},
},
submit
:
{
'x-component'
:
'Submit'
,
'x-mega-props'
:
{
span
:
1
,
},
'x-component-props'
:
{
children
:
'查询'
,
},
},
},
},
},
},
},
};
export
const
auditModalSchema
:
ISchema
=
{
type
:
'object'
,
properties
:
{
MEGA_LAYOUT
:
{
type
:
'object'
,
'x-component'
:
'mega-layout'
,
'x-component-props'
:
{
labelAlign
:
'top'
,
},
properties
:
{
agree
:
{
type
:
'string'
,
default
:
1
,
enum
:
[
{
label
:
'审核通过'
,
value
:
1
},
{
label
:
'审核不通过'
,
value
:
0
},
],
'x-component'
:
'radio'
,
'x-component-props'
:
{},
},
reason
:
{
type
:
'string'
,
title
:
'审核不通过原因'
,
required
:
true
,
'x-component'
:
'textarea'
,
'x-component-props'
:
{
placeholder
:
'在此输入你的内容,最长120个字符,60个汉字'
,
rows
:
5
,
},
'x-rules'
:
[
{
limitByte
:
true
,
// 自定义校验规则
maxByte
:
120
,
}
],
},
},
},
},
};
src/pages/member/memberPrConfirm/auditPrComfirm.tsx
View file @
52577705
...
...
@@ -27,13 +27,12 @@ import {
MEMBER_INNER_STATUS_BADGE_COLOR
,
MEMBER_OUTER_STATUS_TYPE
,
}
from
'../constant'
;
import
{
auditModalSchema
}
from
'.
/s
chema'
;
import
{
auditModalSchema
}
from
'.
./schema/auditS
chema'
;
import
HeadInfo
from
'../components/HeadInfo'
;
import
StatusTag
from
'../components/StatusTag'
;
import
BasicInfo
from
'../components/BasicInfo'
;
import
AuditProcess
from
'../components/AuditProcess'
;
import
styles
from
'./index.less'
;
import
{
values
}
from
'mobx'
;
const
treeActions
=
createTreeActions
();
const
modalFormActions
=
createAsyncFormActions
();
...
...
src/pages/member/memberPrConfirm/index.tsx
View file @
52577705
...
...
@@ -12,7 +12,7 @@ import { FORM_FILTER_PATH } from '@/formSchema/const';
import
{
useAsyncInitSelect
}
from
'@/formSchema/effects/useAsyncInitSelect'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
MEMBER_INNER_STATUS_SUCCESS
,
MEMBER_INNER_STATUS_FAILED
}
from
'@/constants'
;
import
{
auditSchema
}
from
'.
/s
chema'
;
import
{
auditSchema
}
from
'.
./schema/auditS
chema'
;
import
{
MEMBER_STATUS_TAG_MAP
,
MEMBER_INNER_STATUS_BADGE_COLOR
,
...
...
src/pages/member/memberPrConfirm/schema/index.ts
deleted
100644 → 0
View file @
48f1a45e
import
{
ISchema
}
from
'@formily/antd'
;
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
;
export
const
auditSchema
:
ISchema
=
{
type
:
'object'
,
properties
:
{
MEGA_LAYOUT
:
{
type
:
'object'
,
'x-component'
:
'mega-layout'
,
properties
:
{
topLayout
:
{
type
:
'object'
,
'x-component'
:
'mega-layout'
,
'x-component-props'
:
{
grid
:
true
,
},
properties
:
{
ctl
:
{
type
:
'object'
,
'x-component'
:
'Children'
,
'x-component-props'
:
{
children
:
'{{controllerBtns}}'
,
},
},
name
:
{
type
:
'string'
,
'x-component'
:
'Search'
,
'x-component-props'
:
{
placeholder
:
'搜索'
,
},
},
},
},
[
FORM_FILTER_PATH
]:
{
type
:
'object'
,
'x-component'
:
'flex-layout'
,
'x-component-props'
:
{
colStyle
:
{
marginLeft
:
20
,
},
},
properties
:
{
memberTypeId
:
{
type
:
'string'
,
default
:
undefined
,
enum
:
[],
'x-component-props'
:
{
placeholder
:
'会员类型(全部)'
,
allowClear
:
true
,
},
},
status
:
{
type
:
'string'
,
default
:
undefined
,
enum
:
[],
'x-component-props'
:
{
placeholder
:
'会员状态(全部)'
,
allowClear
:
true
,
},
},
roleId
:
{
type
:
'string'
,
default
:
undefined
,
enum
:
[],
'x-component-props'
:
{
placeholder
:
'会员角色(全部)'
,
allowClear
:
true
,
},
},
level
:
{
type
:
'string'
,
default
:
undefined
,
enum
:
[],
'x-component-props'
:
{
placeholder
:
'会员等级(全部)'
,
allowClear
:
true
,
},
},
source
:
{
type
:
'string'
,
default
:
undefined
,
enum
:
[],
'x-component-props'
:
{
placeholder
:
'申请来源(全部)'
,
allowClear
:
true
,
},
},
'[startDate, endDate]'
:
{
type
:
'string'
,
default
:
''
,
'x-component'
:
'dateSelect'
,
'x-component-props'
:
{
placeholder
:
'时间范围(全部)'
,
allowClear
:
true
,
},
},
submit
:
{
'x-component'
:
'Submit'
,
'x-mega-props'
:
{
span
:
1
,
},
'x-component-props'
:
{
children
:
'查询'
,
},
},
},
},
},
},
},
};
export
const
auditModalSchema
:
ISchema
=
{
type
:
'object'
,
properties
:
{
MEGA_LAYOUT
:
{
type
:
'object'
,
'x-component'
:
'mega-layout'
,
'x-component-props'
:
{
labelAlign
:
'top'
,
},
properties
:
{
agree
:
{
type
:
'string'
,
default
:
1
,
enum
:
[
{
label
:
'审核通过'
,
value
:
1
,
disabled
:
false
,
},
{
label
:
'审核不通过'
,
value
:
0
,
},
],
'x-component'
:
'radio'
,
'x-component-props'
:
{},
},
reason
:
{
type
:
'string'
,
title
:
'审核不通过原因'
,
required
:
true
,
'x-component'
:
'textarea'
,
'x-component-props'
:
{
placeholder
:
'在此输入你的内容,最长120个字符,60个汉字'
,
rows
:
5
,
},
'x-rules'
:
[
{
limitByte
:
true
,
// 自定义校验规则
maxByte
:
120
,
}
],
},
},
},
},
};
src/pages/member/memberPrSubmit/auditPrSubmit.tsx
View file @
52577705
...
...
@@ -26,13 +26,12 @@ import {
MEMBER_INNER_STATUS_BADGE_COLOR
,
MEMBER_OUTER_STATUS_TYPE
,
}
from
'../constant'
;
import
{
auditModalSchema
}
from
'.
/s
chema'
;
import
{
auditModalSchema
}
from
'.
./schema/auditS
chema'
;
import
HeadInfo
from
'../components/HeadInfo'
;
import
StatusTag
from
'../components/StatusTag'
;
import
BasicInfo
from
'../components/BasicInfo'
;
import
AuditProcess
from
'../components/AuditProcess'
;
import
styles
from
'./index.less'
;
import
{
values
}
from
'mobx'
;
const
treeActions
=
createTreeActions
();
const
modalFormActions
=
createFormActions
();
...
...
src/pages/member/memberPrSubmit/index.tsx
View file @
52577705
...
...
@@ -11,7 +11,7 @@ import { useStateFilterSearchLinkageEffect } from '@/formSchema/effects/useFilte
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
;
import
{
useAsyncInitSelect
}
from
'@/formSchema/effects/useAsyncInitSelect'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
auditSchema
}
from
'.
/s
chema'
;
import
{
auditSchema
}
from
'.
./schema/auditS
chema'
;
import
{
MEMBER_STATUS_TAG_MAP
,
MEMBER_INNER_STATUS_BADGE_COLOR
,
...
...
src/pages/member/memberPrSubmit/schema/index.ts
deleted
100644 → 0
View file @
48f1a45e
import
{
ISchema
}
from
'@formily/antd'
;
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
;
export
const
auditSchema
:
ISchema
=
{
type
:
'object'
,
properties
:
{
MEGA_LAYOUT
:
{
type
:
'object'
,
'x-component'
:
'mega-layout'
,
properties
:
{
topLayout
:
{
type
:
'object'
,
'x-component'
:
'mega-layout'
,
'x-component-props'
:
{
grid
:
true
,
},
properties
:
{
ctl
:
{
type
:
'object'
,
'x-component'
:
'Children'
,
'x-component-props'
:
{
children
:
'{{controllerBtns}}'
,
},
},
name
:
{
type
:
'string'
,
'x-component'
:
'Search'
,
'x-component-props'
:
{
placeholder
:
'搜索'
,
},
},
},
},
[
FORM_FILTER_PATH
]:
{
type
:
'object'
,
'x-component'
:
'flex-layout'
,
'x-component-props'
:
{
colStyle
:
{
marginLeft
:
20
,
},
},
properties
:
{
memberTypeId
:
{
type
:
'string'
,
default
:
undefined
,
enum
:
[],
'x-component-props'
:
{
placeholder
:
'会员类型(全部)'
,
allowClear
:
true
,
},
},
status
:
{
type
:
'string'
,
default
:
undefined
,
enum
:
[],
'x-component-props'
:
{
placeholder
:
'会员状态(全部)'
,
allowClear
:
true
,
},
},
roleId
:
{
type
:
'string'
,
default
:
undefined
,
enum
:
[],
'x-component-props'
:
{
placeholder
:
'会员角色(全部)'
,
allowClear
:
true
,
},
},
level
:
{
type
:
'string'
,
default
:
undefined
,
enum
:
[],
'x-component-props'
:
{
placeholder
:
'会员等级(全部)'
,
allowClear
:
true
,
},
},
source
:
{
type
:
'string'
,
default
:
undefined
,
enum
:
[],
'x-component-props'
:
{
placeholder
:
'申请来源(全部)'
,
allowClear
:
true
,
},
},
'[startDate, endDate]'
:
{
type
:
'string'
,
default
:
''
,
'x-component'
:
'dateSelect'
,
'x-component-props'
:
{
placeholder
:
'时间范围(全部)'
,
allowClear
:
true
,
},
},
submit
:
{
'x-component'
:
'Submit'
,
'x-mega-props'
:
{
span
:
1
,
},
'x-component-props'
:
{
children
:
'查询'
,
},
},
},
},
},
},
},
};
export
const
auditModalSchema
:
ISchema
=
{
type
:
'object'
,
properties
:
{
MEGA_LAYOUT
:
{
type
:
'object'
,
'x-component'
:
'mega-layout'
,
'x-component-props'
:
{
labelAlign
:
'top'
,
},
properties
:
{
agree
:
{
type
:
'string'
,
default
:
1
,
enum
:
[
{
label
:
'审核通过'
,
value
:
1
},
{
label
:
'审核不通过'
,
value
:
0
},
],
'x-component'
:
'radio'
,
'x-component-props'
:
{},
},
reason
:
{
type
:
'string'
,
title
:
'审核不通过原因'
,
required
:
true
,
'x-component'
:
'textarea'
,
'x-component-props'
:
{
placeholder
:
'在此输入你的内容,最长120个字符,60个汉字'
,
rows
:
5
,
},
'x-rules'
:
[
{
limitByte
:
true
,
// 自定义校验规则
maxByte
:
120
,
}
],
},
},
},
},
};
src/pages/member/
memberPr1/schema/index
.ts
→
src/pages/member/
schema/auditSchema
.ts
View file @
52577705
...
...
@@ -133,8 +133,8 @@ export const auditModalSchema: ISchema = {
reason
:
{
type
:
'string'
,
title
:
'审核不通过原因'
,
required
:
true
,
'x-component'
:
'textarea'
,
required
:
true
,
'x-component-props'
:
{
placeholder
:
'在此输入你的内容,最长120个字符,60个汉字'
,
rows
:
5
,
...
...
@@ -150,4 +150,3 @@ export const auditModalSchema: ISchema = {
},
},
};
yarn.lock
0 → 100644
View file @
52577705
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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