Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-3
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
office
haoban-3
Commits
61fa3b84
Commit
61fa3b84
authored
Jun 20, 2022
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 卡券列表调整
parent
0ede097e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
16 deletions
+15
-16
cardList.vue
src/views/apps/card/cardList.vue
+1
-1
cardRecord.vue
src/views/apps/card/cardRecord.vue
+14
-15
No files found.
src/views/apps/card/cardList.vue
View file @
61fa3b84
...
...
@@ -35,7 +35,7 @@
<div>
{{
scope
.
row
.
couponStock
}}
</div>
</
template
>
</el-table-column>
<el-table-column
label=
"卡券状态"
prop=
"cardStatus"
min-width=
"90px"
>
<el-table-column
label=
"卡券
库
状态"
prop=
"cardStatus"
min-width=
"90px"
>
<
template
slot-scope=
"{ row }"
>
<!-- 0删除1有效 2已过期 3未开始 -->
<span
class=
"state-point state-point-error"
v-if=
"row.cardStatus == 0"
>
已删除
</span>
...
...
src/views/apps/card/cardRecord.vue
View file @
61fa3b84
...
...
@@ -84,9 +84,20 @@
{{
scope
.
row
.
templateValidity
}}
</
template
>
</el-table-column>
<el-table-column
width=
"100"
label=
"卡券状态"
>
<
template
slot-scope=
"scope"
>
<span
:style=
"scope.row.statusCode == 2 ? 'color:#F5222D' : ''"
>
{{
scope
.
row
.
statusCode
|
formatStatusCode
}}
</span>
<el-table-column
label=
"卡券库状态"
prop=
"cardStatus"
width=
"100"
>
<
template
slot-scope=
"{ row }"
>
<!-- 0删除1有效 2已过期 3未开始 -->
<span
class=
"state-point state-point-error"
v-if=
"row.cardStatus == 0"
>
已删除
</span>
<span
class=
"state-point state-point-success"
v-if=
"row.cardStatus == 1"
>
正常
</span>
<span
class=
"state-point state-point-error"
v-if=
"row.cardStatus == 2"
>
已过期
</span>
<span
class=
"state-point state-point-default"
v-if=
"row.cardStatus == 3"
>
未生效
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"活动状态"
prop=
"status"
width=
"80"
>
<
template
slot-scope=
"{ row }"
>
<!-- 0删除1有效 -->
<span
class=
"state-point state-point-error"
v-if=
"row.status == 0"
>
已删除
</span>
<span
class=
"state-point state-point-success"
v-if=
"row.status == 1"
>
正常
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
""
width=
"200"
label=
"操作"
fixed=
"right"
v-if=
"$getButtonLimit($buttonCode.sendCardLog) || $getButtonLimit($buttonCode.getCardLog)"
>
...
...
@@ -147,18 +158,6 @@ export default {
filters
:
{
percenteNum
(
val
)
{
return
val
>
0
?
Number
(
val
*
100
).
toFixed
(
2
)
+
'%'
:
Number
(
val
).
toFixed
(
2
)
+
'%'
;
},
formatStatusCode
(
value
)
{
let
val
=
'--'
;
switch
(
value
)
{
case
1
:
val
=
'正常'
;
break
;
case
2
:
val
=
'已删除'
;
break
;
}
return
val
;
}
},
watch
:
{
...
...
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