Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
罗超
SuperMan
Commits
834bb569
Commit
834bb569
authored
May 15, 2019
by
huangyuanyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优惠券添加条件
parent
3e14311e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
1 deletion
+29
-1
CouponList.vue
src/components/activity/CouponList.vue
+29
-1
No files found.
src/components/activity/CouponList.vue
View file @
834bb569
...
...
@@ -82,6 +82,20 @@
</el-select>
</span>
</li>
<li>
<span>
<em>
使用范围
</em>
<el-select
filterable
v-model=
"msg.couponsUseScope"
>
<el-option
:label=
"$t('active.cl_tongyong')"
:value=
"1"
></el-option>
<el-option
:label=
"$t('active.cl_team')"
:value=
"2"
></el-option>
<el-option
:label=
"$t('active.cl_qianzheng')"
:value=
"3"
></el-option>
<el-option
:label=
"$t('active.cl_jipiao')"
:value=
"4"
></el-option>
<el-option
label=
"门票"
:value=
"5"
></el-option>
<el-option
label=
"车辆"
:value=
"6"
></el-option>
</el-select>
</span>
</li>
<li>
<input
type=
"button"
...
...
@@ -116,6 +130,7 @@
<th>
{{
$t
(
'active.cl_sxriqi'
)
}}
</th>
<th>
{{
$t
(
'active.cl_sxzhuangtai'
)
}}
</th>
<th>
{{
$t
(
'active.cl_gqriqi'
)
}}
</th>
<th>
使用范围
</th>
<th>
{{
$t
(
'admin.admin_status'
)
}}
</th>
<th>
{{
$t
(
'active.cl_addPp'
)
}}
</th>
<th>
{{
$t
(
'system.table_operation'
)
}}
</th>
...
...
@@ -141,7 +156,16 @@
<span
v-if=
"item.couponEffectStatus === 2"
style=
"color: gray"
>
{{
$t
(
'active.cl_wsxiao'
)
}}
</span>
<span
v-if=
"item.couponEffectStatus === 3"
style=
"color: red"
>
{{
$t
(
'active.cl_ygqi'
)
}}
</span>
</td>
<td>
{{
item
.
expirationDate
}}
</td>
<td>
<span
v-if=
"item.couponsUseScope == 1"
>
全场通用
</span>
<span
v-if=
"item.couponsUseScope == 2"
>
团队
</span>
<span
v-if=
"item.couponsUseScope == 3"
>
签证
</span>
<span
v-if=
"item.couponsUseScope == 4"
>
机票
</span>
<span
v-if=
"item.couponsUseScope == 5"
>
门票
</span>
<span
v-if=
"item.couponsUseScope == 6"
>
车辆
</span>
</td>
<td>
<span
v-if=
"item.couponStatus == 1"
style=
"color: green"
>
{{
$t
(
'pub.normalSel'
)
}}
</span>
<span
v-if=
"item.couponStatus == 2"
style=
"color: gray"
>
{{
$t
(
'active.ld_jinyong'
)
}}
</span>
...
...
@@ -343,6 +367,8 @@
<el-option
:label=
"$t('active.cl_team')"
:value=
"2"
></el-option>
<el-option
:label=
"$t('active.cl_qianzheng')"
:value=
"3"
></el-option>
<el-option
:label=
"$t('active.cl_jipiao')"
:value=
"4"
></el-option>
<el-option
label=
"门票"
:value=
"5"
></el-option>
<el-option
label=
"车辆"
:value=
"6"
></el-option>
</el-select>
</el-form-item>
</td>
...
...
@@ -384,6 +410,7 @@ export default {
couponStatus
:
-
1
,
groupId
:
''
,
branchId
:
''
,
couponsUseScope
:
""
,
},
rules
:
{
branchId
:
[{
required
:
true
,
message
:
this
.
$t
(
'rule.company'
),
trigger
:
"change"
}],
...
...
@@ -471,7 +498,8 @@ export default {
if
(
res
.
data
.
resultCode
===
1
)
{
// this.currentPage = res.data.data.pageCount
this
.
total
=
res
.
data
.
data
.
count
this
.
DataList
=
res
.
data
.
data
.
pageData
this
.
DataList
=
res
.
data
.
data
.
pageData
;
console
.
log
(
"DataList"
,
this
.
DataList
);
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
)
}
...
...
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