Commit 314689e2 by zhangmengjie

23.4.11

parent 7f7adfeb
...@@ -10,6 +10,9 @@ ...@@ -10,6 +10,9 @@
<el-table-column type="index" width="50" label="序号" align="center"> <el-table-column type="index" width="50" label="序号" align="center">
</el-table-column> </el-table-column>
<el-table-column prop="couponType" label="券类型" :show-overflow-tooltip="true" align="center"> <el-table-column prop="couponType" label="券类型" :show-overflow-tooltip="true" align="center">
<template slot-scope="scope">
{{ scope.row.couponType | filtersList }}
</template>
</el-table-column> </el-table-column>
<el-table-column prop="fullSubtraction" label="优惠内容" :show-overflow-tooltip="true" align="center"> <el-table-column prop="fullSubtraction" label="优惠内容" :show-overflow-tooltip="true" align="center">
</el-table-column> </el-table-column>
...@@ -58,6 +61,16 @@ export default { ...@@ -58,6 +61,16 @@ export default {
isEdit: true,//判断添加修改详情的保存按钮是否显示 isEdit: true,//判断添加修改详情的保存按钮是否显示
}; };
}, },
filters:{
filtersList(val) {
switch (val) {
case '0':
return '满减卷'
case '1':
return '新用户'
}
}
},
created() { created() {
this.coupon() this.coupon()
}, },
......
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