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
project
jinfa-admin
Commits
612cda66
Commit
612cda66
authored
Dec 31, 2020
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 添加搜索框 Tip 提示
parent
19e7265d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
212 additions
and
210 deletions
+212
-210
index.tsx
src/pages/member/memberLevel/schema/index.tsx
+59
-58
index.tsx
src/pages/member/memberMaintain/schema/index.tsx
+0
-0
auditSchema.ts
src/pages/member/schema/auditSchema.ts
+153
-152
No files found.
src/pages/member/memberLevel/schema/index.tsx
View file @
612cda66
import
{
ISchema
}
from
'@formily/antd'
;
import
{
ISchema
}
from
'@formily/antd'
;
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
;
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
;
export
const
levelSchema
:
ISchema
=
{
export
const
levelSchema
:
ISchema
=
{
type
:
'object'
,
type
:
'object'
,
properties
:
{
properties
:
{
MEGA_LAYOUI
:
{
MEGA_LAYOUI
:
{
type
:
'object'
,
type
:
'object'
,
'x-component'
:
'mega-layout'
,
'x-component'
:
'mega-layout'
,
properties
:
{
properties
:
{
topLayout
:
{
topLayout
:
{
type
:
'object'
,
type
:
'object'
,
'x-component'
:
'mega-layout'
,
'x-component'
:
'mega-layout'
,
'x-component-props'
:
{
'x-component-props'
:
{
grid
:
true
,
grid
:
true
,
},
},
properties
:
{
properties
:
{
levelTag
:
{
levelTag
:
{
type
:
'string'
,
type
:
'string'
,
'x-component'
:
'Search'
,
'x-component'
:
'Search'
,
'x-component-props'
:
{
'x-component-props'
:
{
placeholder
:
'搜索'
,
placeholder
:
'搜索'
,
},
tip
:
'输入 会员等级标签 进行搜索'
,
},
},
},
},
},
},
[
FORM_FILTER_PATH
]:
{
},
type
:
'object'
,
[
FORM_FILTER_PATH
]:
{
'x-component'
:
'flex-layout'
,
type
:
'object'
,
'x-component-props'
:
{
'x-component'
:
'flex-layout'
,
rowStyle
:
{
'x-component-props'
:
{
flexWrap
:
'nowrap'
,
rowStyle
:
{
},
flexWrap
:
'nowrap'
,
colStyle
:
{
},
marginLeft
:
20
,
colStyle
:
{
},
marginLeft
:
20
,
},
},
properties
:
{
},
roleName
:
{
properties
:
{
type
:
'string'
,
roleName
:
{
'x-component'
:
'Input'
,
type
:
'string'
,
'x-component-props'
:
{
'x-component'
:
'Input'
,
placeholder
:
'角色名称'
,
'x-component-props'
:
{
allowClear
:
true
,
placeholder
:
'角色名称'
,
},
allowClear
:
true
,
},
},
submit
:
{
},
'x-component'
:
'Submit'
,
submit
:
{
'x-component-props'
:
{
'x-component'
:
'Submit'
,
children
:
'查询'
,
'x-component-props'
:
{
},
children
:
'查询'
,
},
},
},
},
},
},
},
},
},
},
},
},
};
},
};
src/pages/member/memberMaintain/schema/index.tsx
View file @
612cda66
This diff is collapsed.
Click to expand it.
src/pages/member/schema/auditSchema.ts
View file @
612cda66
import
{
ISchema
}
from
'@formily/antd'
;
import
{
ISchema
}
from
'@formily/antd'
;
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
;
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
;
export
const
auditSchema
:
ISchema
=
{
export
const
auditSchema
:
ISchema
=
{
type
:
'object'
,
type
:
'object'
,
properties
:
{
properties
:
{
MEGA_LAYOUT
:
{
MEGA_LAYOUT
:
{
type
:
'object'
,
type
:
'object'
,
'x-component'
:
'mega-layout'
,
'x-component'
:
'mega-layout'
,
properties
:
{
properties
:
{
topLayout
:
{
topLayout
:
{
type
:
'object'
,
type
:
'object'
,
'x-component'
:
'mega-layout'
,
'x-component'
:
'mega-layout'
,
'x-component-props'
:
{
'x-component-props'
:
{
grid
:
true
,
grid
:
true
,
},
},
properties
:
{
properties
:
{
ctl
:
{
ctl
:
{
type
:
'object'
,
type
:
'object'
,
'x-component'
:
'Children'
,
'x-component'
:
'Children'
,
'x-component-props'
:
{
'x-component-props'
:
{
children
:
'{{controllerBtns}}'
,
children
:
'{{controllerBtns}}'
,
},
},
},
},
name
:
{
name
:
{
type
:
'string'
,
type
:
'string'
,
'x-component'
:
'Search'
,
'x-component'
:
'Search'
,
'x-component-props'
:
{
'x-component-props'
:
{
placeholder
:
'搜索'
,
placeholder
:
'搜索'
,
},
tip
:
'输入 会员名称 进行搜索'
,
},
},
},
},
},
},
[
FORM_FILTER_PATH
]:
{
},
type
:
'object'
,
[
FORM_FILTER_PATH
]:
{
'x-component'
:
'flex-layout'
,
type
:
'object'
,
'x-component-props'
:
{
'x-component'
:
'flex-layout'
,
colStyle
:
{
'x-component-props'
:
{
marginLeft
:
20
,
colStyle
:
{
},
marginLeft
:
20
,
},
},
properties
:
{
},
memberTypeId
:
{
properties
:
{
type
:
'string'
,
memberTypeId
:
{
default
:
undefined
,
type
:
'string'
,
enum
:
[],
default
:
undefined
,
'x-component-props'
:
{
enum
:
[],
placeholder
:
'会员类型(全部)'
,
'x-component-props'
:
{
allowClear
:
true
,
placeholder
:
'会员类型(全部)'
,
},
allowClear
:
true
,
},
},
// status: {
},
// type: 'string',
// status: {
// default: undefined,
// type: 'string',
// enum: [],
// default: undefined,
// 'x-component-props': {
// enum: [],
// placeholder: '会员状态(全部)',
// 'x-component-props': {
// allowClear: true,
// placeholder: '会员状态(全部)',
// },
// allowClear: true,
// },
// },
roleId
:
{
// },
type
:
'string'
,
roleId
:
{
default
:
undefined
,
type
:
'string'
,
enum
:
[],
default
:
undefined
,
'x-component-props'
:
{
enum
:
[],
placeholder
:
'会员角色(全部)'
,
'x-component-props'
:
{
allowClear
:
true
,
placeholder
:
'会员角色(全部)'
,
},
allowClear
:
true
,
},
},
level
:
{
},
type
:
'string'
,
level
:
{
default
:
undefined
,
type
:
'string'
,
enum
:
[],
default
:
undefined
,
'x-component-props'
:
{
enum
:
[],
placeholder
:
'会员等级(全部)'
,
'x-component-props'
:
{
allowClear
:
true
,
placeholder
:
'会员等级(全部)'
,
},
allowClear
:
true
,
},
},
source
:
{
},
type
:
'string'
,
source
:
{
default
:
undefined
,
type
:
'string'
,
enum
:
[],
default
:
undefined
,
'x-component-props'
:
{
enum
:
[],
placeholder
:
'申请来源(全部)'
,
'x-component-props'
:
{
allowClear
:
true
,
placeholder
:
'申请来源(全部)'
,
},
allowClear
:
true
,
},
},
'[startDate, endDate]'
:
{
},
type
:
'string'
,
'[startDate, endDate]'
:
{
default
:
''
,
type
:
'string'
,
'x-component'
:
'dateSelect'
,
default
:
''
,
'x-component-props'
:
{
'x-component'
:
'dateSelect'
,
placeholder
:
'时间范围(全部)'
,
'x-component-props'
:
{
allowClear
:
true
,
placeholder
:
'时间范围(全部)'
,
},
allowClear
:
true
,
},
},
submit
:
{
},
'x-component'
:
'Submit'
,
submit
:
{
'x-mega-props'
:
{
'x-component'
:
'Submit'
,
span
:
1
,
'x-mega-props'
:
{
},
span
:
1
,
'x-component-props'
:
{
},
children
:
'查询'
,
'x-component-props'
:
{
},
children
:
'查询'
,
},
},
},
},
},
},
},
},
},
},
},
},
};
},
};
export
const
auditModalSchema
:
ISchema
=
{
type
:
'object'
,
export
const
auditModalSchema
:
ISchema
=
{
properties
:
{
type
:
'object'
,
MEGA_LAYOUT
:
{
properties
:
{
type
:
'object'
,
MEGA_LAYOUT
:
{
'x-component'
:
'mega-layout'
,
type
:
'object'
,
'x-component-props'
:
{
'x-component'
:
'mega-layout'
,
labelAlign
:
'top'
,
'x-component-props'
:
{
},
labelAlign
:
'top'
,
properties
:
{
},
agree
:
{
properties
:
{
type
:
'string'
,
agree
:
{
default
:
1
,
type
:
'string'
,
enum
:
[
default
:
1
,
{
label
:
'审核通过'
,
value
:
1
},
enum
:
[
{
label
:
'审核不通过'
,
value
:
0
},
{
label
:
'审核通过'
,
value
:
1
},
],
{
label
:
'审核不通过'
,
value
:
0
},
'x-component'
:
'radio'
,
],
'x-component-props'
:
{},
'x-component'
:
'radio'
,
},
'x-component-props'
:
{},
reason
:
{
},
type
:
'string'
,
reason
:
{
title
:
'审核不通过原因'
,
type
:
'string'
,
'x-component'
:
'textarea'
,
title
:
'审核不通过原因'
,
required
:
true
,
'x-component'
:
'textarea'
,
'x-component-props'
:
{
required
:
true
,
placeholder
:
'在此输入你的内容,最长120个字符,60个汉字'
,
'x-component-props'
:
{
rows
:
5
,
placeholder
:
'在此输入你的内容,最长120个字符,60个汉字'
,
},
rows
:
5
,
'x-rules'
:
[
},
{
'x-rules'
:
[
limitByte
:
true
,
// 自定义校验规则
{
maxByte
:
120
,
limitByte
:
true
,
// 自定义校验规则
}
maxByte
:
120
,
],
}
},
],
},
},
},
},
},
},
};
},
};
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