Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_web
Overview
Overview
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
pseer
gxpt_web
Commits
dbfc4f6d
Commit
dbfc4f6d
authored
Jan 11, 2024
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改时段限制
parent
a167b2bd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
36 deletions
+10
-36
index.vue
src/views/system/consumerCoupon/index.vue
+10
-0
durationIndex.vue
src/views/system/coupon/durationIndex.vue
+0
-10
index.vue
src/views/system/coupon/index.vue
+0
-26
No files found.
src/views/system/consumerCoupon/index.vue
View file @
dbfc4f6d
...
@@ -51,6 +51,16 @@
...
@@ -51,6 +51,16 @@
/>
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"使用状态"
prop=
"useStatus"
>
<el-select
v-model=
"queryParams.useStatus"
placeholder=
"请选择使用状态"
clearable
>
<el-option
v-for=
"dict in dict.type.coupon_use_status"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
/>
</el-select>
</el-form-item>
<el-form-item
label=
"有效期开始"
prop=
"startDate"
>
<el-form-item
label=
"有效期开始"
prop=
"startDate"
>
<el-date-picker
clearable
<el-date-picker
clearable
...
...
src/views/system/coupon/durationIndex.vue
View file @
dbfc4f6d
...
@@ -51,16 +51,6 @@
...
@@ -51,16 +51,6 @@
placeholder=
"请选择有效期结束"
>
placeholder=
"请选择有效期结束"
>
</el-date-picker>
</el-date-picker>
</el-form-item>
</el-form-item>
<el-form-item
label=
"使用状态"
prop=
"useStatus"
>
<el-select
v-model=
"queryParams.useStatus"
placeholder=
"请选择使用状态"
clearable
>
<el-option
v-for=
"dict in dict.type.coupon_use_status"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
/>
</el-select>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
...
...
src/views/system/coupon/index.vue
View file @
dbfc4f6d
...
@@ -51,16 +51,6 @@
...
@@ -51,16 +51,6 @@
placeholder=
"请选择有效期结束"
>
placeholder=
"请选择有效期结束"
>
</el-date-picker>
</el-date-picker>
</el-form-item>
</el-form-item>
<el-form-item
label=
"使用状态"
prop=
"useStatus"
>
<el-select
v-model=
"queryParams.useStatus"
placeholder=
"请选择使用状态"
clearable
>
<el-option
v-for=
"dict in dict.type.coupon_use_status"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
/>
</el-select>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
...
@@ -331,22 +321,6 @@ export default {
...
@@ -331,22 +321,6 @@ export default {
duration
:
[
duration
:
[
{
required
:
true
,
message
:
"时长不能为空"
,
trigger
:
"blur"
}
{
required
:
true
,
message
:
"时长不能为空"
,
trigger
:
"blur"
}
],
],
validEndTime
:
[
//结束时段必须大于开始时段
{
validator
:
(
rule
,
value
,
callback
)
=>
{
if
(
this
.
form
.
validStartTime
&&
this
.
form
.
validEndTime
)
{
if
(
this
.
form
.
validStartTime
>=
this
.
form
.
validEndTime
)
{
callback
(
new
Error
(
"结束时段必须大于开始时段"
));
}
else
{
callback
();
}
}
else
{
callback
();
}
},
trigger
:
"blur"
}
],
}
}
};
};
},
},
...
...
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