Commit 61fa3b84 by caoyanzhi

update: 卡券列表调整

parent 0ede097e
......@@ -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>
......
......@@ -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: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment