Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
glsx-oss-merchant-data
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e277dcf0
authored
Apr 02, 2019
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改日期限制及长度验证
1 parent
b3925a89
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
10 deletions
src/views/customer/businessGroup/index.vue
src/views/customer/businessGroupDetail/index.vue
src/views/customer/businessList/AddDialog.vue
src/views/customer/businessList/SearchDialog.vue
src/views/customer/businessManagement/index.vue
src/views/customer/businessGroup/index.vue
View file @
e277dcf
...
@@ -84,7 +84,7 @@ export default {
...
@@ -84,7 +84,7 @@ export default {
rules
:
{
rules
:
{
groupName
:
[
groupName
:
[
{
required
:
true
,
message
:
'请输入分组名称'
,
trigger
:
'blur'
},
{
required
:
true
,
message
:
'请输入分组名称'
,
trigger
:
'blur'
},
{
max
:
10
,
message
:
'长度最多10
个字符'
,
trigger
:
'blur'
}
{
max
:
64
,
message
:
'长度最多64
个字符'
,
trigger
:
'blur'
}
],
],
businessCode
:
[
businessCode
:
[
{
required
:
true
,
message
:
'请选择业务类型'
,
trigger
:
'change'
}
{
required
:
true
,
message
:
'请选择业务类型'
,
trigger
:
'change'
}
...
@@ -101,7 +101,7 @@ export default {
...
@@ -101,7 +101,7 @@ export default {
border
:
true
,
border
:
true
,
stripe
:
true
,
stripe
:
true
,
align
:
'center'
,
align
:
'center'
,
height
:
parseInt
(
this
.
$client_height
()
-
140
),
//
height: parseInt(this.$client_height() - 140),
data
:
[],
data
:
[],
column
:
[
column
:
[
{
{
...
...
src/views/customer/businessGroupDetail/index.vue
View file @
e277dcf
...
@@ -87,6 +87,7 @@
...
@@ -87,6 +87,7 @@
end-placeholder=
"结束日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd HH:mm:ss"
value-format=
"yyyy-MM-dd HH:mm:ss"
:default-time=
"['00:00:00', '23:59:59']"
:default-time=
"['00:00:00', '23:59:59']"
:picker-options=
"pickerOptions"
>
>
</gl-date-picker>
</gl-date-picker>
</gl-form-item>
</gl-form-item>
...
@@ -127,6 +128,11 @@ export default {
...
@@ -127,6 +128,11 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
pickerOptions
:
{
disabledDate
(
time
)
{
return
time
.
getTime
()
>
Date
.
now
()
}
},
groupId
:
''
,
groupId
:
''
,
searchParams
:
{
searchParams
:
{
// groupId: '',
// groupId: '',
...
@@ -156,7 +162,7 @@ export default {
...
@@ -156,7 +162,7 @@ export default {
border
:
true
,
border
:
true
,
stripe
:
true
,
stripe
:
true
,
align
:
'center'
,
align
:
'center'
,
height
:
parseInt
(
this
.
$client_height
()
-
140
),
//
height: parseInt(this.$client_height() - 140),
data
:
[],
data
:
[],
column
:
[
column
:
[
{
{
...
...
src/views/customer/businessList/AddDialog.vue
View file @
e277dcf
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
placeholder=
"请输入商户名称"
placeholder=
"请输入商户名称"
name=
"name"
name=
"name"
data-vv-as=
"商户名称"
data-vv-as=
"商户名称"
v-validate=
"'required'"
v-validate=
"'required
|max:128
'"
clearable
clearable
></gl-input>
></gl-input>
<span
v-show=
"errorBags.has('name')"
class=
"error"
>
{{
errorBags
.
first
(
'name'
)
}}
</span>
<span
v-show=
"errorBags.has('name')"
class=
"error"
>
{{
errorBags
.
first
(
'name'
)
}}
</span>
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
placeholder=
"请输入详细地址"
placeholder=
"请输入详细地址"
name=
"address"
name=
"address"
data-vv-as=
"详细地址"
data-vv-as=
"详细地址"
v-validate=
"'required'"
v-validate=
"'required
|max:256
'"
clearable
clearable
>
>
</gl-input>
</gl-input>
...
@@ -68,7 +68,7 @@
...
@@ -68,7 +68,7 @@
placeholder=
"请输入联系人姓名"
placeholder=
"请输入联系人姓名"
name=
"contactor"
name=
"contactor"
data-vv-as=
"联系人姓名"
data-vv-as=
"联系人姓名"
v-validate=
"'required'"
v-validate=
"'required
|max:64
'"
clearable
clearable
></gl-input>
></gl-input>
<span
v-show=
"errorBags.has('contactor')"
class=
"error"
>
{{
errorBags
.
first
(
'contactor'
)
}}
</span>
<span
v-show=
"errorBags.has('contactor')"
class=
"error"
>
{{
errorBags
.
first
(
'contactor'
)
}}
</span>
...
...
src/views/customer/businessList/SearchDialog.vue
View file @
e277dcf
...
@@ -80,7 +80,8 @@
...
@@ -80,7 +80,8 @@
range-separator=
"至"
range-separator=
"至"
start-placeholder=
"开始日期"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
end-placeholder=
"结束日期"
:default-time=
"['00:00:00', '23:59:59']"
>
:default-time=
"['00:00:00', '23:59:59']"
:picker-options=
"pickerOptions"
>
</gl-date-picker>
</gl-date-picker>
</gl-col>
</gl-col>
</gl-form-item>
</gl-form-item>
...
@@ -107,7 +108,12 @@ export default {
...
@@ -107,7 +108,12 @@ export default {
title
:
'高级搜索'
,
title
:
'高级搜索'
,
eventBus
:
null
,
eventBus
:
null
,
showCity
:
[
1
,
1
],
showCity
:
[
1
,
1
],
channelList
:
[]
channelList
:
[],
pickerOptions
:
{
disabledDate
(
time
)
{
return
time
.
getTime
()
>
Date
.
now
()
}
}
}
}
},
},
props
:
{
props
:
{
...
...
src/views/customer/businessManagement/index.vue
View file @
e277dcf
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
name=
"confKey"
name=
"confKey"
placeholder=
"请输入业务名称"
placeholder=
"请输入业务名称"
data-vv-as=
"业务名称"
data-vv-as=
"业务名称"
v-validate=
"'required'"
v-validate=
"'required
|max:8
'"
></gl-input>
></gl-input>
<span
<span
v-show=
"errorBags.has('confKey')"
v-show=
"errorBags.has('confKey')"
...
@@ -47,7 +47,7 @@
...
@@ -47,7 +47,7 @@
placeholder=
"请输入业务描述"
placeholder=
"请输入业务描述"
name=
"memo"
name=
"memo"
data-vv-as=
"业务描述"
data-vv-as=
"业务描述"
v-validate=
"'required'"
v-validate=
"'required
|max:256
'"
></gl-input>
></gl-input>
<span
<span
v-show=
"errorBags.has('memo')"
v-show=
"errorBags.has('memo')"
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment